ameva-runtime 2.7.2__tar.gz → 2.7.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/LICENSE +1 -1
- ameva_runtime-2.7.4/PKG-INFO +213 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/README.md +166 -127
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/pyproject.toml +136 -136
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/__init__.py +75 -75
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/_version.py +8 -8
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/adapters/base.py +9 -5
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/adapters/bitnet.py +1 -1
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/adapters/diffusion.py +36 -7
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/adapters/llamacpp.py +49 -23
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/adapters/stt.py +17 -3
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/adapters/tts.py +378 -378
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/core.py +9 -5
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/detector.py +250 -217
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/doctor.py +3 -2
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/installer.py +968 -955
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/router.py +122 -13
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/__init__.py +82 -82
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/bindings.py +126 -126
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/cli.py +1 -1
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/doctor.py +1014 -1013
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/exceptions.py +1 -1
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/platform.py +277 -277
- ameva_runtime-2.7.4/python/ameva_runtime.egg-info/PKG-INFO +213 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime.egg-info/SOURCES.txt +0 -4
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/setup.cfg +4 -4
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/setup.py +38 -38
- ameva_runtime-2.7.2/MANIFEST.in +0 -6
- ameva_runtime-2.7.2/NOTICE +0 -12
- ameva_runtime-2.7.2/PKG-INFO +0 -99
- ameva_runtime-2.7.2/README.pypi.md +0 -47
- ameva_runtime-2.7.2/python/ameva_runtime/vulkan/profiles/validated-vulkan-profiles.json +0 -214
- ameva_runtime-2.7.2/python/ameva_runtime.egg-info/PKG-INFO +0 -99
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/adapters/__init__.py +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/adapters/vision.py +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/cli.py +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/exceptions.py +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/platform.py +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/protocol.py +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/adapters/__init__.py +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/core.py +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/lib/libegl_shim.so +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/loader.py +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/profiles/__init__.py +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4/python/ameva_runtime/vulkan}/profiles/validated-vulkan-profiles.json +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/protocol.py +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime/vulkan/py.typed +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime.egg-info/dependency_links.txt +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime.egg-info/entry_points.txt +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime.egg-info/requires.txt +0 -0
- {ameva_runtime-2.7.2 → ameva_runtime-2.7.4}/python/ameva_runtime.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: ameva-runtime
|
|
3
|
+
Version: 2.7.4
|
|
4
|
+
Summary: Unified Next-Gen Hardware Orchestration & AI Acceleration Runtime for Mobile & Edge
|
|
5
|
+
Home-page: https://github.com/uno-km/ameva-runtime
|
|
6
|
+
Author: Eunho Kim
|
|
7
|
+
Author-email: Eunho Kim <contact@uno-km.com>
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Project-URL: Homepage, https://uno-km.vercel.app/lib/vulkan/
|
|
10
|
+
Project-URL: Repository, https://github.com/uno-km/ameva-runtime
|
|
11
|
+
Project-URL: Documentation, https://uno-km.vercel.app/lib/vulkan/
|
|
12
|
+
Keywords: vulkan-compute,mobile-gpu,hardware-acceleration,hardware-abstraction-layer,adreno-gpu,arm-mali,snapdragon-8-elite,exynos,termux,on-device-ai,edge-ai,tensor-acceleration,spir-v,compute-shaders,zero-silent-fallback,llamacpp,whisper-cpp,sherpa-onnx,stable-diffusion,vision-language-models,bitnet,gguf,ncnn,bionic-loader,arm64,aarch64,cgroup-management,cpu-neon,thermal-throttling,power-efficiency,smart-router,hardware-orchestration,multi-modal-ai,subgroup-operations,gemm-acceleration,mobile-vlm,speech-to-text,text-to-speech,image-generation,edge-inference,unprivileged-userspace,termux-wake-lock,phantom-process-killer,android-ai-runtime,valhall-gpu,adreno-830,mali-g68,ameva-foundation,uno-km,open-source-ai
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
17
|
+
Classifier: Operating System :: Android
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
25
|
+
Requires-Python: >=3.8
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
Provides-Extra: stt
|
|
29
|
+
Requires-Dist: termux-stt>=1.2.0; extra == "stt"
|
|
30
|
+
Provides-Extra: diffusion
|
|
31
|
+
Requires-Dist: termux-diffusion>=1.5.0; extra == "diffusion"
|
|
32
|
+
Provides-Extra: bitnet
|
|
33
|
+
Requires-Dist: termux-bitnet>=1.2.0; extra == "bitnet"
|
|
34
|
+
Provides-Extra: llamacpp
|
|
35
|
+
Requires-Dist: termux-llamacpp>=1.3.0; extra == "llamacpp"
|
|
36
|
+
Provides-Extra: tts
|
|
37
|
+
Requires-Dist: termux-tts>=1.4.0; extra == "tts"
|
|
38
|
+
Provides-Extra: vision
|
|
39
|
+
Requires-Dist: termux-vision>=1.2.0; extra == "vision"
|
|
40
|
+
Provides-Extra: all
|
|
41
|
+
Requires-Dist: termux-stt>=1.2.0; extra == "all"
|
|
42
|
+
Requires-Dist: termux-diffusion>=1.5.0; extra == "all"
|
|
43
|
+
Requires-Dist: termux-bitnet>=1.2.0; extra == "all"
|
|
44
|
+
Requires-Dist: termux-llamacpp>=1.3.0; extra == "all"
|
|
45
|
+
Requires-Dist: termux-tts>=1.4.0; extra == "all"
|
|
46
|
+
Requires-Dist: termux-vision>=1.2.0; extra == "all"
|
|
47
|
+
|
|
48
|
+
# AMEVA-Runtime
|
|
49
|
+
|
|
50
|
+
[](https://pypi.org/project/ameva-runtime/)
|
|
51
|
+
[](https://pypi.org/project/ameva-runtime/)
|
|
52
|
+
[](https://www.npmjs.com/package/@ameva/runtime)
|
|
53
|
+
[](https://github.com/uno-km/ameva-runtime-releases/releases/tag/v2.7.4)
|
|
54
|
+
[](https://github.com/uno-km/ameva-runtime)
|
|
55
|
+
<img src="https://img.shields.io/badge/BitNet%201.58b-Vulkan%20Compute%20Accelerated-purple.svg?logo=vulkan&logoColor=white" alt="BitNet Vulkan">
|
|
56
|
+
|
|
57
|
+
> Next-Gen Unified On-Device Hardware Orchestration & 6-Modality AI Acceleration Runtime (with BitNet 1.58-bit Vulkan Compute) for Mobile & Edge
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Architecture & Overview
|
|
62
|
+
|
|
63
|
+
AMEVA-Runtime is a hardware abstraction layer (HAL) and compute orchestration engine engineered specifically for mobile ARM64 devices (Android Termux, Linux Edge). It continuously inspects underlying silicon topology (/dev/kgsl-3d0, /dev/mali0) to route tensor execution across Qualcomm Adreno, ARM Mali, and ARM Cortex CPU-NEON backends.
|
|
64
|
+
|
|
65
|
+
### 6-Modality Acceleration Matrix
|
|
66
|
+
|
|
67
|
+
| Modality | Engine Integration | Status (v2.7.4) | Hardware Acceleration Mechanism |
|
|
68
|
+
| :--- | :--- | :---: | :--- |
|
|
69
|
+
| **1. LLM (Text)** | Llama.cpp & Termux-BitNet (1.58-bit i2_s) | **Production (v2.7.4)** | Vulkan 25/25 layer VRAM offload (`ngl=999`), BitNet full pipeline & strict `AmbiguousModelMatchError` |
|
|
70
|
+
| **2. STT (Speech)** | Whisper.cpp (Large-v3-Turbo) | **Production (v2.7.4 / STT v1.3.2)** | Vulkan GPU acceleration with greedy decoding default (`-bs 1`), 6-SoC fleet validated |
|
|
71
|
+
| **3. TTS (Audio)** | MeloTTS / Piper / Kokoro / Supertonic | **Production (v2.7.4 / TTS v1.5.0)** | Bionic Direct Vulkan (`/system/lib64/libvulkan.so`) & HiFi-GAN 32MB buffer temporal tiling |
|
|
72
|
+
| **4. Diffusion (Image)** | SDXS / SD1.5 / Z-Image Turbo (6.0B DiT) | **Production (v2.7.4 / Diffusion v1.8.0)** | Z-Image Turbo 6.0B DiT, Flash Attention (`--diffusion-fa`), VAE Tiling, Zero-Collision Bionic Vulkan backend |
|
|
73
|
+
| **5. Vision (VLM)** | CLIP / MobileVLM / LLaVA | **In Development** | GGML Vulkan vision encoder tensor bindings |
|
|
74
|
+
| **6. Train (Training)** | On-Device LoRA / QLoRA | **In Development** | Mobile Vulkan gradient descent backpropagation |
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Empirical Physical Device Benchmarks
|
|
79
|
+
|
|
80
|
+
Tested on physical devices running Android 16 under Termux ARM64:
|
|
81
|
+
|
|
82
|
+
### 1. LLM Generation (Qwen2.5-0.5B-Instruct Q4_K_M)
|
|
83
|
+
| Target Device | Hardware Architecture | Active Backend | Layers in VRAM | Generation Speed | Prompt Processing | Speedup |
|
|
84
|
+
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
85
|
+
| **Galaxy S25** | Snapdragon 8 Elite / Adreno 830 | Vulkan 1.3 | **25/25 (100%)** | **35.80 t/s** (27.9 ms/t) | 4.53 t/s | **35.8x (vs CPU)** |
|
|
86
|
+
| **Galaxy A35** | Exynos 1380 / ARM Mali-G68 MP5 | Vulkan 1.3 | **25/25 (100%)** | **4.44 t/s** (225 ms/t) | 6.12 t/s | **+26.9% (vs NEON)** |
|
|
87
|
+
| **Galaxy A35** | Cortex-A78 CPU-NEON (3 Threads) | CPU-NEON | 0/25 | 3.55 t/s (281 ms/t) | 8.05 t/s | Baseline |
|
|
88
|
+
|
|
89
|
+
### 2. Speech-to-Text (Whisper Large-v3-Turbo Q5_0, 548MB)
|
|
90
|
+
| Target Device | Hardware Architecture | Backend Mode | Latency (1-min audio) | GPU Load | CPU Load | Speedup |
|
|
91
|
+
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
92
|
+
| **Galaxy S25** | Snapdragon 8 Elite / Adreno 830 | Vulkan GPU | **4.40 s (0.07x RTF)** | Adreno Turbo | ~12% | **18.5x (vs CPU)** |
|
|
93
|
+
| **Galaxy S22** | Snapdragon 8 Gen 1 / Adreno 730 | Vulkan GPU | **5.13 s (Encoder)** | Adreno Native | ~14% | **3.73x (vs CPU)** |
|
|
94
|
+
| **Galaxy A35** | Exynos 1380 / Mali-G68 MP5 | Vulkan GPU | **360.60 s (6m 00s)** | **949 MHz (100%)** | 20~30% | **2.26x (56% time saved)** |
|
|
95
|
+
| **Galaxy A35** | Cortex-A78 x4 Cores | CPU-NEON | 816.48 s (13m 36s) | 0% | 291% | Baseline |
|
|
96
|
+
|
|
97
|
+
### 3. Text-to-Speech (AMEVA Bionic Native Vulkan Fleet Benchmarks)
|
|
98
|
+
| Target Device | Hardware Architecture | Neural Engine / Model | Backend Mode | Latency | RTF | Forensics (RMS/Peak) | Status |
|
|
99
|
+
| :--- | :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
100
|
+
| **Galaxy S22** | Snapdragon 8 Gen 1 / Adreno 730 | MeloTTS Universal Bilingual | **Bionic Vulkan GPU** | **2,750 ms** | **0.88x** | 0.0814 / 0.6974 | Real-time Synthesized |
|
|
101
|
+
| **Galaxy S21** | Exynos 2100 / ARM Mali-G78 | Piper VITS (On-chip Tiled) | **Bionic Vulkan GPU** | **560 ms** | **0.18x** | 0.0921 / 0.7412 | 5.5x Faster than RT |
|
|
102
|
+
| **Galaxy S20** | Exynos 990 / ARM Mali-G77 | Piper VITS (On-chip Tiled) | **Bionic Vulkan GPU** | **750 ms** | **0.24x** | 0.0890 / 0.7105 | 4.1x Faster than RT |
|
|
103
|
+
| **Galaxy S25** | Snapdragon 8 Elite / Adreno 830 | Supertonic 3 Flow / Piper | **Bionic Vulkan GPU** | **380 ms** | **0.12x** | 0.1042 / 0.8120 | Studio Ultra-Fast |
|
|
104
|
+
| **Galaxy A35** | Exynos 1380 / ARM Mali-G68 MP5 | Piper VITS (`lessac-medium`) | **Vulkan GPU** | **5,180 ms** | **1.146x** | 0.0782 / 0.6540 | Validated |
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
### 4. BitNet 1.58-bit LLM (Microsoft BitNet b1.58 2B-4T i2_s)
|
|
109
|
+
| Target Device | Hardware Architecture | Active Backend | Generation Speed | Prompt Latency | Speedup | Status |
|
|
110
|
+
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
111
|
+
| **Galaxy S25** | Snapdragon 8 Elite / Adreno 830 | **AMEVA Vulkan GPU** | **17.558 t/s** | **205.9 ms** | **12.58x** | **Verified (Ground Truth)** |
|
|
112
|
+
| Galaxy S25 | Snapdragon 8 Elite / Oryon CPU | Native CPU (4 Threads) | 1.396 t/s | 2,041.0 ms | 1.00x | Baseline |
|
|
113
|
+
| **Galaxy A35** | Exynos 1380 / Mali-G68 MP5 | **AMEVA Vulkan GPU** | **3.471 t/s** | **1,552.8 ms** | **5.94x** | **Verified (Ground Truth)** |
|
|
114
|
+
| Galaxy A35 | Exynos 1380 / Cortex-A78 CPU | Native CPU (4 Threads) | 0.584 t/s | 8,775.0 ms | 1.00x | Baseline |
|
|
115
|
+
|
|
116
|
+
## Root-Cause Driver Solutions
|
|
117
|
+
|
|
118
|
+
1. **ARM Mali-G68 Valhall Integer Truncation**: Enforced medium tile matmul kernel dispatch (`loadstride_b = 4 > 0`), permanently eliminating shader zero-stride infinite loops on subgroup-16 hardware.
|
|
119
|
+
2. **Qualcomm Adreno 830 JIT Register Bug**: Bounded vector column specialization (`mul_mat_vec_max_cols = 2`), preventing compiler crash `VK_ERROR_UNKNOWN (-13)`.
|
|
120
|
+
3. **Bionic Direct Vulkan Linking**: Permanently bypasses Termux `$PREFIX/lib/libvulkan.so` Mesa `llvmpipe` CPU software emulator trap by dynamically binding `/system/lib64/libvulkan.so` directly, routing compute shader execution to physical Adreno/Mali silicon.
|
|
121
|
+
4. **Mobile GPU 32MB Memory Ceiling & Temporal Tiling**: Resolved MeloTTS HiFi-GAN 52.4MB buffer overflow (`VK_ERROR_OUT_OF_DEVICE_MEMORY` / kernel TDR kill) via temporal chunk slicing ($T_{\text{chunk}} \le 819$) and Piper VITS on-chip SRAM tiling.
|
|
122
|
+
5. **Zero-Silent-Fallback & Strict Model Resolution**: Guaranteed fail-fast architecture without silent CPU degradation. Explicitly raises `AmbiguousModelMatchError` on multi-model ambiguity and rejects silent guessing.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Two-Track Supply Chain Architecture
|
|
127
|
+
|
|
128
|
+
To simultaneously guarantee **100% intellectual property & source code protection** and **frictionless, tokenless binary deployment**, AMEVA enforces a strict Two-Track Supply Chain Architecture:
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
[Track 1: Local Ground Truth & Offline Staging]
|
|
132
|
+
├── dev/ameva/ameva-runtime/releases/ (Consolidated 6-Modality SOTA Binaries)
|
|
133
|
+
└── dev/termux/termux-*/releases/ (Domain-Specific Compiled Binaries)
|
|
134
|
+
│
|
|
135
|
+
▼ Synchronized via Git & Automated Release Workflows
|
|
136
|
+
[Track 2: Remote Public GitHub Releases Cloud & CDN]
|
|
137
|
+
├── uno-km/ameva-runtime-releases (Public Unified Binary Hub: Releases v2.7.4)
|
|
138
|
+
└── uno-km/termux-* (diffusion, stt) (Domain-Specific Public GitHub Releases)
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
1. **Core Source Code (`uno-km/ameva-runtime`)**: Kept **100% Private**. Architectural proprietary logic, HAL implementations, and optimization kernels are permanently protected.
|
|
142
|
+
2. **Public Binary Distribution Hub (`uno-km/ameva-runtime-releases`)**: **Public Registry**. Hosts verified precompiled binaries, hardware acceleration compute shaders, and wheels for anonymous 1-Click installation without requiring personal GitHub tokens.
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Installation & Engine Auto-Provisioning
|
|
147
|
+
|
|
148
|
+
### 1. Python SDK Installation
|
|
149
|
+
```bash
|
|
150
|
+
# Direct install from public release wheel
|
|
151
|
+
pip install --upgrade "https://github.com/uno-km/ameva-runtime-releases/releases/latest/download/ameva_runtime-2.7.4-py3-none-any.whl"
|
|
152
|
+
|
|
153
|
+
# Or standard PyPI install
|
|
154
|
+
pip install ameva-runtime
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### 2. 1-Click Native Engine Provisioning
|
|
158
|
+
The `NativeAssetManager` automatically retrieves cryptographically verified native engine binaries from the public registry and establishes system links in `$PREFIX/bin`:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
# Provision all hardware engines at once
|
|
162
|
+
ameva install --all
|
|
163
|
+
|
|
164
|
+
# Or provision specific engine modalities individually
|
|
165
|
+
ameva install --modality diffusion # Stable Diffusion Vulkan Engine (sd-cli)
|
|
166
|
+
ameva install --modality stt # Whisper STT Vulkan Engine (whisper-cli)
|
|
167
|
+
ameva install --modality llm # LLaMA C++ Vulkan Engine (llama-cli)
|
|
168
|
+
ameva install --modality tts # Sherpa-NCNN Neural Voice Engine
|
|
169
|
+
ameva install --modality bitnet # BitNet 1.58-bit Acceleration Engine
|
|
170
|
+
|
|
171
|
+
# Validate system readiness with 12-stage hardware diagnostic
|
|
172
|
+
ameva doctor
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Quickstart
|
|
178
|
+
|
|
179
|
+
### Python SDK
|
|
180
|
+
```python
|
|
181
|
+
import ameva_runtime as ameva
|
|
182
|
+
from ameva_runtime import vulkan
|
|
183
|
+
|
|
184
|
+
# 1. Inspect on-device silicon topology
|
|
185
|
+
profile = ameva.detect_hardware()
|
|
186
|
+
print(f"SoC: {profile.soc_name} | GPU: {profile.gpu_vendor}")
|
|
187
|
+
|
|
188
|
+
# 2. Run hardware self-test
|
|
189
|
+
doc = vulkan.Doctor()
|
|
190
|
+
report = doc.run_self_test()
|
|
191
|
+
print(f"GPU: {report.device_name} (Passed: {report.passed_stages}/{report.total_stages})")
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Node.js / TypeScript
|
|
195
|
+
```typescript
|
|
196
|
+
import { Doctor, createContext } from '@ameva/runtime';
|
|
197
|
+
|
|
198
|
+
const doc = new Doctor();
|
|
199
|
+
const report = await doc.runSelfTest();
|
|
200
|
+
console.log(`Vulkan GPU: ${report.deviceName}`);
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Official Documentation & Benchmarks
|
|
206
|
+
- [Official Architecture & API Reference](https://uno-km.vercel.app/lib/vulkan/)
|
|
207
|
+
- [Ecosystem Metrics & Registry Stats](https://uno-km.vercel.app/foundation/metrics)
|
|
208
|
+
- [AMEVA Open-Source Foundation Portal](https://uno-km.vercel.app/foundation/index.html)
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## License
|
|
213
|
+
Licensed under the Apache-2.0 License. Copyright (c) 2026 Eunho Kim ([@uno-km](https://github.com/uno-km)).
|
|
@@ -1,127 +1,166 @@
|
|
|
1
|
-
# AMEVA-Runtime
|
|
2
|
-
|
|
3
|
-
[](https://pypi.org/project/ameva-runtime/)
|
|
4
|
-
[](https://pypi.org/project/ameva-runtime/)
|
|
5
|
-
[](https://www.npmjs.com/package/@ameva/runtime)
|
|
6
|
-
[](https://github.com/uno-km/ameva-runtime/releases/tag/v2.7.
|
|
7
|
-
[](https://github.com/uno-km/ameva-runtime)
|
|
8
|
-
<img src="https://img.shields.io/badge/BitNet%201.58b-Vulkan%20Compute%20Accelerated-purple.svg?logo=vulkan&logoColor=white" alt="BitNet Vulkan">
|
|
9
|
-
|
|
10
|
-
> Next-Gen Unified On-Device Hardware Orchestration & 6-Modality AI Acceleration Runtime (with BitNet 1.58-bit Vulkan Compute) for Mobile & Edge
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Architecture & Overview
|
|
15
|
-
|
|
16
|
-
AMEVA-Runtime is a hardware abstraction layer (HAL) and compute orchestration engine engineered specifically for mobile ARM64 devices (Android Termux, Linux Edge). It continuously inspects underlying silicon topology (/dev/kgsl-3d0, /dev/mali0) to route tensor execution across Qualcomm Adreno, ARM Mali, and ARM Cortex CPU-NEON backends.
|
|
17
|
-
|
|
18
|
-
### 6-Modality Acceleration Matrix
|
|
19
|
-
|
|
20
|
-
| Modality | Engine Integration | Status (v2.7.
|
|
21
|
-
| :--- | :--- | :---: | :--- |
|
|
22
|
-
| **1. LLM (Text)** | Llama.cpp & Termux-BitNet (1.58-bit i2_s) | **Production (v2.7.
|
|
23
|
-
| **2. STT (Speech)** | Whisper.cpp (Large-v3-Turbo) | **Production (v2.7.
|
|
24
|
-
| **3. TTS (Audio)** | MeloTTS / Piper / Kokoro / Supertonic | **Production (v2.7.
|
|
25
|
-
| **4.
|
|
26
|
-
| **5.
|
|
27
|
-
| **6. Train (Training)** | On-Device LoRA / QLoRA | **In Development** | Mobile Vulkan gradient descent backpropagation |
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## Empirical Physical Device Benchmarks
|
|
32
|
-
|
|
33
|
-
Tested on physical devices running Android 16 under Termux ARM64:
|
|
34
|
-
|
|
35
|
-
### 1. LLM Generation (Qwen2.5-0.5B-Instruct Q4_K_M)
|
|
36
|
-
| Target Device | Hardware Architecture | Active Backend | Layers in VRAM | Generation Speed | Prompt Processing | Speedup |
|
|
37
|
-
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
38
|
-
| **Galaxy S25** | Snapdragon 8 Elite / Adreno 830 | Vulkan 1.3 | **25/25 (100%)** | **35.80 t/s** (27.9 ms/t) | 4.53 t/s | **35.8x (vs CPU)** |
|
|
39
|
-
| **Galaxy A35** | Exynos 1380 / ARM Mali-G68 MP5 | Vulkan 1.3 | **25/25 (100%)** | **4.44 t/s** (225 ms/t) | 6.12 t/s | **+26.9% (vs NEON)** |
|
|
40
|
-
| **Galaxy A35** | Cortex-A78 CPU-NEON (3 Threads) | CPU-NEON | 0/25 | 3.55 t/s (281 ms/t) | 8.05 t/s | Baseline |
|
|
41
|
-
|
|
42
|
-
### 2. Speech-to-Text (Whisper Large-v3-Turbo Q5_0, 548MB)
|
|
43
|
-
| Target Device | Hardware Architecture | Backend Mode | Latency (1-min audio) | GPU Load | CPU Load | Speedup |
|
|
44
|
-
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
45
|
-
| **Galaxy S25** | Snapdragon 8 Elite / Adreno 830 | Vulkan GPU | **4.40 s (0.07x RTF)** | Adreno Turbo | ~12% | **18.5x (vs CPU)** |
|
|
46
|
-
| **Galaxy S22** | Snapdragon 8 Gen 1 / Adreno 730 | Vulkan GPU | **5.13 s (Encoder)** | Adreno Native | ~14% | **3.73x (vs CPU)** |
|
|
47
|
-
| **Galaxy A35** | Exynos 1380 / Mali-G68 MP5 | Vulkan GPU | **360.60 s (6m 00s)** | **949 MHz (100%)** | 20~30% | **2.26x (56% time saved)** |
|
|
48
|
-
| **Galaxy A35** | Cortex-A78 x4 Cores | CPU-NEON | 816.48 s (13m 36s) | 0% | 291% | Baseline |
|
|
49
|
-
|
|
50
|
-
### 3. Text-to-Speech (AMEVA Bionic Native Vulkan Fleet Benchmarks)
|
|
51
|
-
| Target Device | Hardware Architecture | Neural Engine / Model | Backend Mode | Latency | RTF | Forensics (RMS/Peak) | Status |
|
|
52
|
-
| :--- | :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
53
|
-
| **Galaxy S22** | Snapdragon 8 Gen 1 / Adreno 730 | MeloTTS Universal Bilingual | **Bionic Vulkan GPU** | **2,750 ms** | **0.88x** | 0.0814 / 0.6974 | Real-time Synthesized |
|
|
54
|
-
| **Galaxy S21** | Exynos 2100 / ARM Mali-G78 | Piper VITS (On-chip Tiled) | **Bionic Vulkan GPU** | **560 ms** | **0.18x** | 0.0921 / 0.7412 | 5.5x Faster than RT |
|
|
55
|
-
| **Galaxy S20** | Exynos 990 / ARM Mali-G77 | Piper VITS (On-chip Tiled) | **Bionic Vulkan GPU** | **750 ms** | **0.24x** | 0.0890 / 0.7105 | 4.1x Faster than RT |
|
|
56
|
-
| **Galaxy S25** | Snapdragon 8 Elite / Adreno 830 | Supertonic 3 Flow / Piper | **Bionic Vulkan GPU** | **380 ms** | **0.12x** | 0.1042 / 0.8120 | Studio Ultra-Fast |
|
|
57
|
-
| **Galaxy A35** | Exynos 1380 / ARM Mali-G68 MP5 | Piper VITS (`lessac-medium`) | **Vulkan GPU** | **5,180 ms** | **1.146x** | 0.0782 / 0.6540 | Validated |
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
### 4. BitNet 1.58-bit LLM (Microsoft BitNet b1.58 2B-4T i2_s)
|
|
62
|
-
| Target Device | Hardware Architecture | Active Backend | Generation Speed | Prompt Latency | Speedup | Status |
|
|
63
|
-
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
64
|
-
| **Galaxy S25** | Snapdragon 8 Elite / Adreno 830 | **AMEVA Vulkan GPU** | **17.558 t/s** | **205.9 ms** | **12.58x** | **Verified (Ground Truth)** |
|
|
65
|
-
| Galaxy S25 | Snapdragon 8 Elite / Oryon CPU | Native CPU (4 Threads) | 1.396 t/s | 2,041.0 ms | 1.00x | Baseline |
|
|
66
|
-
| **Galaxy A35** | Exynos 1380 / Mali-G68 MP5 | **AMEVA Vulkan GPU** | **3.471 t/s** | **1,552.8 ms** | **5.94x** | **Verified (Ground Truth)** |
|
|
67
|
-
| Galaxy A35 | Exynos 1380 / Cortex-A78 CPU | Native CPU (4 Threads) | 0.584 t/s | 8,775.0 ms | 1.00x | Baseline |
|
|
68
|
-
|
|
69
|
-
## Root-Cause Driver Solutions
|
|
70
|
-
|
|
71
|
-
1. **ARM Mali-G68 Valhall Integer Truncation**: Enforced medium tile matmul kernel dispatch (`loadstride_b = 4 > 0`), permanently eliminating shader zero-stride infinite loops on subgroup-16 hardware.
|
|
72
|
-
2. **Qualcomm Adreno 830 JIT Register Bug**: Bounded vector column specialization (`mul_mat_vec_max_cols = 2`), preventing compiler crash `VK_ERROR_UNKNOWN (-13)`.
|
|
73
|
-
3. **Bionic Direct Vulkan Linking**: Permanently bypasses Termux `$PREFIX/lib/libvulkan.so` Mesa `llvmpipe` CPU software emulator trap by dynamically binding `/system/lib64/libvulkan.so` directly, routing compute shader execution to physical Adreno/Mali silicon.
|
|
74
|
-
4. **Mobile GPU 32MB Memory Ceiling & Temporal Tiling**: Resolved MeloTTS HiFi-GAN 52.4MB buffer overflow (`VK_ERROR_OUT_OF_DEVICE_MEMORY` / kernel TDR kill) via temporal chunk slicing ($T_{\text{chunk}} \le 819$) and Piper VITS on-chip SRAM tiling.
|
|
75
|
-
5. **Zero-Silent-Fallback & Strict Model Resolution**: Guaranteed fail-fast architecture without silent CPU degradation. Explicitly raises `AmbiguousModelMatchError` on multi-model ambiguity and rejects silent guessing.
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
##
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
1
|
+
# AMEVA-Runtime
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/ameva-runtime/)
|
|
4
|
+
[](https://pypi.org/project/ameva-runtime/)
|
|
5
|
+
[](https://www.npmjs.com/package/@ameva/runtime)
|
|
6
|
+
[](https://github.com/uno-km/ameva-runtime-releases/releases/tag/v2.7.4)
|
|
7
|
+
[](https://github.com/uno-km/ameva-runtime)
|
|
8
|
+
<img src="https://img.shields.io/badge/BitNet%201.58b-Vulkan%20Compute%20Accelerated-purple.svg?logo=vulkan&logoColor=white" alt="BitNet Vulkan">
|
|
9
|
+
|
|
10
|
+
> Next-Gen Unified On-Device Hardware Orchestration & 6-Modality AI Acceleration Runtime (with BitNet 1.58-bit Vulkan Compute) for Mobile & Edge
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Architecture & Overview
|
|
15
|
+
|
|
16
|
+
AMEVA-Runtime is a hardware abstraction layer (HAL) and compute orchestration engine engineered specifically for mobile ARM64 devices (Android Termux, Linux Edge). It continuously inspects underlying silicon topology (/dev/kgsl-3d0, /dev/mali0) to route tensor execution across Qualcomm Adreno, ARM Mali, and ARM Cortex CPU-NEON backends.
|
|
17
|
+
|
|
18
|
+
### 6-Modality Acceleration Matrix
|
|
19
|
+
|
|
20
|
+
| Modality | Engine Integration | Status (v2.7.4) | Hardware Acceleration Mechanism |
|
|
21
|
+
| :--- | :--- | :---: | :--- |
|
|
22
|
+
| **1. LLM (Text)** | Llama.cpp & Termux-BitNet (1.58-bit i2_s) | **Production (v2.7.4)** | Vulkan 25/25 layer VRAM offload (`ngl=999`), BitNet full pipeline & strict `AmbiguousModelMatchError` |
|
|
23
|
+
| **2. STT (Speech)** | Whisper.cpp (Large-v3-Turbo) | **Production (v2.7.4 / STT v1.3.2)** | Vulkan GPU acceleration with greedy decoding default (`-bs 1`), 6-SoC fleet validated |
|
|
24
|
+
| **3. TTS (Audio)** | MeloTTS / Piper / Kokoro / Supertonic | **Production (v2.7.4 / TTS v1.5.0)** | Bionic Direct Vulkan (`/system/lib64/libvulkan.so`) & HiFi-GAN 32MB buffer temporal tiling |
|
|
25
|
+
| **4. Diffusion (Image)** | SDXS / SD1.5 / Z-Image Turbo (6.0B DiT) | **Production (v2.7.4 / Diffusion v1.8.0)** | Z-Image Turbo 6.0B DiT, Flash Attention (`--diffusion-fa`), VAE Tiling, Zero-Collision Bionic Vulkan backend |
|
|
26
|
+
| **5. Vision (VLM)** | CLIP / MobileVLM / LLaVA | **In Development** | GGML Vulkan vision encoder tensor bindings |
|
|
27
|
+
| **6. Train (Training)** | On-Device LoRA / QLoRA | **In Development** | Mobile Vulkan gradient descent backpropagation |
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Empirical Physical Device Benchmarks
|
|
32
|
+
|
|
33
|
+
Tested on physical devices running Android 16 under Termux ARM64:
|
|
34
|
+
|
|
35
|
+
### 1. LLM Generation (Qwen2.5-0.5B-Instruct Q4_K_M)
|
|
36
|
+
| Target Device | Hardware Architecture | Active Backend | Layers in VRAM | Generation Speed | Prompt Processing | Speedup |
|
|
37
|
+
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
38
|
+
| **Galaxy S25** | Snapdragon 8 Elite / Adreno 830 | Vulkan 1.3 | **25/25 (100%)** | **35.80 t/s** (27.9 ms/t) | 4.53 t/s | **35.8x (vs CPU)** |
|
|
39
|
+
| **Galaxy A35** | Exynos 1380 / ARM Mali-G68 MP5 | Vulkan 1.3 | **25/25 (100%)** | **4.44 t/s** (225 ms/t) | 6.12 t/s | **+26.9% (vs NEON)** |
|
|
40
|
+
| **Galaxy A35** | Cortex-A78 CPU-NEON (3 Threads) | CPU-NEON | 0/25 | 3.55 t/s (281 ms/t) | 8.05 t/s | Baseline |
|
|
41
|
+
|
|
42
|
+
### 2. Speech-to-Text (Whisper Large-v3-Turbo Q5_0, 548MB)
|
|
43
|
+
| Target Device | Hardware Architecture | Backend Mode | Latency (1-min audio) | GPU Load | CPU Load | Speedup |
|
|
44
|
+
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
45
|
+
| **Galaxy S25** | Snapdragon 8 Elite / Adreno 830 | Vulkan GPU | **4.40 s (0.07x RTF)** | Adreno Turbo | ~12% | **18.5x (vs CPU)** |
|
|
46
|
+
| **Galaxy S22** | Snapdragon 8 Gen 1 / Adreno 730 | Vulkan GPU | **5.13 s (Encoder)** | Adreno Native | ~14% | **3.73x (vs CPU)** |
|
|
47
|
+
| **Galaxy A35** | Exynos 1380 / Mali-G68 MP5 | Vulkan GPU | **360.60 s (6m 00s)** | **949 MHz (100%)** | 20~30% | **2.26x (56% time saved)** |
|
|
48
|
+
| **Galaxy A35** | Cortex-A78 x4 Cores | CPU-NEON | 816.48 s (13m 36s) | 0% | 291% | Baseline |
|
|
49
|
+
|
|
50
|
+
### 3. Text-to-Speech (AMEVA Bionic Native Vulkan Fleet Benchmarks)
|
|
51
|
+
| Target Device | Hardware Architecture | Neural Engine / Model | Backend Mode | Latency | RTF | Forensics (RMS/Peak) | Status |
|
|
52
|
+
| :--- | :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
53
|
+
| **Galaxy S22** | Snapdragon 8 Gen 1 / Adreno 730 | MeloTTS Universal Bilingual | **Bionic Vulkan GPU** | **2,750 ms** | **0.88x** | 0.0814 / 0.6974 | Real-time Synthesized |
|
|
54
|
+
| **Galaxy S21** | Exynos 2100 / ARM Mali-G78 | Piper VITS (On-chip Tiled) | **Bionic Vulkan GPU** | **560 ms** | **0.18x** | 0.0921 / 0.7412 | 5.5x Faster than RT |
|
|
55
|
+
| **Galaxy S20** | Exynos 990 / ARM Mali-G77 | Piper VITS (On-chip Tiled) | **Bionic Vulkan GPU** | **750 ms** | **0.24x** | 0.0890 / 0.7105 | 4.1x Faster than RT |
|
|
56
|
+
| **Galaxy S25** | Snapdragon 8 Elite / Adreno 830 | Supertonic 3 Flow / Piper | **Bionic Vulkan GPU** | **380 ms** | **0.12x** | 0.1042 / 0.8120 | Studio Ultra-Fast |
|
|
57
|
+
| **Galaxy A35** | Exynos 1380 / ARM Mali-G68 MP5 | Piper VITS (`lessac-medium`) | **Vulkan GPU** | **5,180 ms** | **1.146x** | 0.0782 / 0.6540 | Validated |
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
### 4. BitNet 1.58-bit LLM (Microsoft BitNet b1.58 2B-4T i2_s)
|
|
62
|
+
| Target Device | Hardware Architecture | Active Backend | Generation Speed | Prompt Latency | Speedup | Status |
|
|
63
|
+
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
64
|
+
| **Galaxy S25** | Snapdragon 8 Elite / Adreno 830 | **AMEVA Vulkan GPU** | **17.558 t/s** | **205.9 ms** | **12.58x** | **Verified (Ground Truth)** |
|
|
65
|
+
| Galaxy S25 | Snapdragon 8 Elite / Oryon CPU | Native CPU (4 Threads) | 1.396 t/s | 2,041.0 ms | 1.00x | Baseline |
|
|
66
|
+
| **Galaxy A35** | Exynos 1380 / Mali-G68 MP5 | **AMEVA Vulkan GPU** | **3.471 t/s** | **1,552.8 ms** | **5.94x** | **Verified (Ground Truth)** |
|
|
67
|
+
| Galaxy A35 | Exynos 1380 / Cortex-A78 CPU | Native CPU (4 Threads) | 0.584 t/s | 8,775.0 ms | 1.00x | Baseline |
|
|
68
|
+
|
|
69
|
+
## Root-Cause Driver Solutions
|
|
70
|
+
|
|
71
|
+
1. **ARM Mali-G68 Valhall Integer Truncation**: Enforced medium tile matmul kernel dispatch (`loadstride_b = 4 > 0`), permanently eliminating shader zero-stride infinite loops on subgroup-16 hardware.
|
|
72
|
+
2. **Qualcomm Adreno 830 JIT Register Bug**: Bounded vector column specialization (`mul_mat_vec_max_cols = 2`), preventing compiler crash `VK_ERROR_UNKNOWN (-13)`.
|
|
73
|
+
3. **Bionic Direct Vulkan Linking**: Permanently bypasses Termux `$PREFIX/lib/libvulkan.so` Mesa `llvmpipe` CPU software emulator trap by dynamically binding `/system/lib64/libvulkan.so` directly, routing compute shader execution to physical Adreno/Mali silicon.
|
|
74
|
+
4. **Mobile GPU 32MB Memory Ceiling & Temporal Tiling**: Resolved MeloTTS HiFi-GAN 52.4MB buffer overflow (`VK_ERROR_OUT_OF_DEVICE_MEMORY` / kernel TDR kill) via temporal chunk slicing ($T_{\text{chunk}} \le 819$) and Piper VITS on-chip SRAM tiling.
|
|
75
|
+
5. **Zero-Silent-Fallback & Strict Model Resolution**: Guaranteed fail-fast architecture without silent CPU degradation. Explicitly raises `AmbiguousModelMatchError` on multi-model ambiguity and rejects silent guessing.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Two-Track Supply Chain Architecture
|
|
80
|
+
|
|
81
|
+
To simultaneously guarantee **100% intellectual property & source code protection** and **frictionless, tokenless binary deployment**, AMEVA enforces a strict Two-Track Supply Chain Architecture:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
[Track 1: Local Ground Truth & Offline Staging]
|
|
85
|
+
├── dev/ameva/ameva-runtime/releases/ (Consolidated 6-Modality SOTA Binaries)
|
|
86
|
+
└── dev/termux/termux-*/releases/ (Domain-Specific Compiled Binaries)
|
|
87
|
+
│
|
|
88
|
+
▼ Synchronized via Git & Automated Release Workflows
|
|
89
|
+
[Track 2: Remote Public GitHub Releases Cloud & CDN]
|
|
90
|
+
├── uno-km/ameva-runtime-releases (Public Unified Binary Hub: Releases v2.7.4)
|
|
91
|
+
└── uno-km/termux-* (diffusion, stt) (Domain-Specific Public GitHub Releases)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
1. **Core Source Code (`uno-km/ameva-runtime`)**: Kept **100% Private**. Architectural proprietary logic, HAL implementations, and optimization kernels are permanently protected.
|
|
95
|
+
2. **Public Binary Distribution Hub (`uno-km/ameva-runtime-releases`)**: **Public Registry**. Hosts verified precompiled binaries, hardware acceleration compute shaders, and wheels for anonymous 1-Click installation without requiring personal GitHub tokens.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Installation & Engine Auto-Provisioning
|
|
100
|
+
|
|
101
|
+
### 1. Python SDK Installation
|
|
102
|
+
```bash
|
|
103
|
+
# Direct install from public release wheel
|
|
104
|
+
pip install --upgrade "https://github.com/uno-km/ameva-runtime-releases/releases/latest/download/ameva_runtime-2.7.4-py3-none-any.whl"
|
|
105
|
+
|
|
106
|
+
# Or standard PyPI install
|
|
107
|
+
pip install ameva-runtime
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### 2. 1-Click Native Engine Provisioning
|
|
111
|
+
The `NativeAssetManager` automatically retrieves cryptographically verified native engine binaries from the public registry and establishes system links in `$PREFIX/bin`:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
# Provision all hardware engines at once
|
|
115
|
+
ameva install --all
|
|
116
|
+
|
|
117
|
+
# Or provision specific engine modalities individually
|
|
118
|
+
ameva install --modality diffusion # Stable Diffusion Vulkan Engine (sd-cli)
|
|
119
|
+
ameva install --modality stt # Whisper STT Vulkan Engine (whisper-cli)
|
|
120
|
+
ameva install --modality llm # LLaMA C++ Vulkan Engine (llama-cli)
|
|
121
|
+
ameva install --modality tts # Sherpa-NCNN Neural Voice Engine
|
|
122
|
+
ameva install --modality bitnet # BitNet 1.58-bit Acceleration Engine
|
|
123
|
+
|
|
124
|
+
# Validate system readiness with 12-stage hardware diagnostic
|
|
125
|
+
ameva doctor
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Quickstart
|
|
131
|
+
|
|
132
|
+
### Python SDK
|
|
133
|
+
```python
|
|
134
|
+
import ameva_runtime as ameva
|
|
135
|
+
from ameva_runtime import vulkan
|
|
136
|
+
|
|
137
|
+
# 1. Inspect on-device silicon topology
|
|
138
|
+
profile = ameva.detect_hardware()
|
|
139
|
+
print(f"SoC: {profile.soc_name} | GPU: {profile.gpu_vendor}")
|
|
140
|
+
|
|
141
|
+
# 2. Run hardware self-test
|
|
142
|
+
doc = vulkan.Doctor()
|
|
143
|
+
report = doc.run_self_test()
|
|
144
|
+
print(f"GPU: {report.device_name} (Passed: {report.passed_stages}/{report.total_stages})")
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Node.js / TypeScript
|
|
148
|
+
```typescript
|
|
149
|
+
import { Doctor, createContext } from '@ameva/runtime';
|
|
150
|
+
|
|
151
|
+
const doc = new Doctor();
|
|
152
|
+
const report = await doc.runSelfTest();
|
|
153
|
+
console.log(`Vulkan GPU: ${report.deviceName}`);
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Official Documentation & Benchmarks
|
|
159
|
+
- [Official Architecture & API Reference](https://uno-km.vercel.app/lib/vulkan/)
|
|
160
|
+
- [Ecosystem Metrics & Registry Stats](https://uno-km.vercel.app/foundation/metrics)
|
|
161
|
+
- [AMEVA Open-Source Foundation Portal](https://uno-km.vercel.app/foundation/index.html)
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## License
|
|
166
|
+
Licensed under the Apache-2.0 License. Copyright (c) 2026 Eunho Kim ([@uno-km](https://github.com/uno-km)).
|