GatekeeperZA commited on
Commit
02f0149
·
verified ·
1 Parent(s): bd9bae8

Add model card

Browse files
Files changed (1) hide show
  1. README.md +112 -0
README.md ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3.2
3
+ base_model: meta-llama/Llama-3.2-3B-Instruct
4
+ tags:
5
+ - rkllm
6
+ - rk3588
7
+ - rockchip
8
+ - npu
9
+ - quantized
10
+ - llama
11
+ language:
12
+ - en
13
+ ---
14
+
15
+ # Llama-3.2-3B-Instruct — RKLLM v1.2.3 (w8a8, RK3588)
16
+
17
+ RKLLM conversion of [meta-llama/Llama-3.2-3B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct) for Rockchip RK3588 NPU inference.
18
+
19
+ Converted with RKLLM Toolkit v1.2.3. This is a standard instruct model — it does **not** produce `<think>` reasoning blocks.
20
+
21
+ ## Key Details
22
+
23
+ | Property | Value |
24
+ |----------|-------|
25
+ | Base Model | meta-llama/Llama-3.2-3B-Instruct |
26
+ | Toolkit Version | RKLLM Toolkit v1.2.3 |
27
+ | Runtime Version | RKLLM Runtime ≥ v1.2.1 (v1.2.3 recommended) |
28
+ | Quantization | w8a8 (8-bit weights, 8-bit activations) |
29
+ | Quantization Algorithm | normal |
30
+ | Target Platform | RK3588 |
31
+ | NPU Cores | 3 |
32
+ | Max Context Length | 8192 tokens |
33
+ | Optimization Level | 0 |
34
+ | Thinking Mode | ❌ Not supported |
35
+ | Languages | English (+ multilingual inherited from Llama 3.2) |
36
+
37
+ ## Why This Model?
38
+
39
+ Llama 3.2 3B Instruct is Meta's latest compact instruction model. It brings a different architecture and training lineage to the RK3588 NPU lineup — strong at instruction following, coding, and general reasoning without the overhead of a thinking/reasoning mode.
40
+
41
+ At ~3B parameters it sits between the 1.7B and 4B Qwen3 models, offering a useful middle ground.
42
+
43
+ ## Hardware Tested
44
+
45
+ - **Orange Pi 5 Plus** — RK3588, 16GB RAM, Armbian Linux
46
+ - RKNPU driver 0.9.8
47
+ - RKLLM Runtime v1.2.3
48
+
49
+ ## Usage
50
+
51
+ ### With the official RKLLM API demo
52
+
53
+ ```bash
54
+ # Clone the runtime
55
+ git clone https://github.com/airockchip/rknn-llm.git
56
+ cd rknn-llm/examples/rkllm_api_demo
57
+
58
+ # Run (aarch64)
59
+ ./build/rkllm_api_demo /path/to/Llama-3.2-3B-Instruct-rk3588-w8a8.rkllm 4096 8192
60
+ ```
61
+
62
+ ### With the RKLLM API Server
63
+
64
+ Download and place in `~/models/`:
65
+
66
+ ```bash
67
+ mkdir -p ~/models/Llama-3.2-3B-Instruct
68
+ cd ~/models/Llama-3.2-3B-Instruct
69
+ git lfs install && git clone https://huggingface.co/GatekeeperZA/Llama-3.2-3B-Instruct-RKLLM-v1.2.3 .
70
+ ```
71
+
72
+ The server auto-detects the model as `instruct` capability (no thinking). Use with [GatekeeperZA/RKLLM-API-Server](https://github.com/GatekeeperZA/RKLLM-API-Server).
73
+
74
+ ## Conversion Script
75
+
76
+ ```python
77
+ from rkllm.api import RKLLM
78
+
79
+ llm = RKLLM()
80
+ llm.load_huggingface(model="meta-llama/Llama-3.2-3B-Instruct", device="cpu", dtype="float32")
81
+ llm.build(
82
+ do_quantization=True,
83
+ optimization_level=0,
84
+ quantized_dtype="w8a8",
85
+ quantized_algorithm="normal",
86
+ target_platform="rk3588",
87
+ num_npu_core=3,
88
+ max_context=8192,
89
+ )
90
+ llm.export_rkllm("./Llama-3.2-3B-Instruct-rk3588-w8a8.rkllm")
91
+ ```
92
+
93
+ > **WSL2 note:** Requires ≥16GB WSL2 memory (`memory=16GB` in `~/.wslconfig`). Write the output to a native Linux path (`/home/user/`) first, then copy to `/mnt/` — writing directly to the Windows mount triggers OOM during the export phase.
94
+
95
+ ## File Listing
96
+
97
+ | File | Description |
98
+ |------|-------------|
99
+ | `Llama-3.2-3B-Instruct-rk3588-w8a8.rkllm` | Quantized model for RK3588 NPU |
100
+
101
+ ## Compatibility Notes
102
+
103
+ - Minimum runtime: RKLLM Runtime v1.2.1. v1.2.3 recommended.
104
+ - RKNPU driver: ≥ 0.9.6
105
+ - SoCs: RK3588 / RK3588S (3 NPU cores). Not compatible with RK3576 (2 cores) without reconversion.
106
+ - RAM: ~3.5GB loaded. Runs comfortably on 8GB+ boards.
107
+
108
+ ## Acknowledgements
109
+
110
+ - Meta / FAIR for the Llama 3.2 base model
111
+ - Rockchip / airockchip for the RKLLM toolkit and runtime
112
+ - Converted by [GatekeeperZA](https://huggingface.co/GatekeeperZA)