File size: 2,237 Bytes
9db6b8b
 
ea8047a
 
 
 
 
 
 
 
 
 
9db6b8b
ea8047a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
00c5eb6
 
 
 
 
ea8047a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
license: llama3.2
base_model: meta-llama/Llama-3.2-3B-Instruct
pipeline_tag: text-generation
library_name: rkllm
tags:
- rkllm
- rockchip
- rk3576
- rk3588
- llama
- llama-3.2
---

# Llama-3.2-3B-Instruct-RKLLM

RKLLM-converted Llama 3.2 3B Instruct language-model artifacts for Rockchip RK3576 and RK3588 NPUs.

These hardware-specific `.rkllm` files require a compatible Rockchip RKLLM runtime. They are not Transformers checkpoints and cannot be loaded directly with Transformers, llama.cpp, or Ollama.

## Base model

- Upstream model: [meta-llama/Llama-3.2-3B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct)
- License: Llama 3.2 Community License
- Model type: LLM (text only)

The upstream model is gated. Review Meta's license and acceptable-use policy before use or redistribution.

## Conversion and variants

### Toolkit version

**RKLLM Toolkit: v1.3.0**

Use a file built for the exact target SoC.

| Target | Quantization | File | SHA256 |
| --- | --- | --- | --- |
| RK3576 | W4A16 (g128) | [Llama-3.2-3B-Instruct_RK3576_w4a16_g128.rkllm](RK3576/Llama-3.2-3B-Instruct_RK3576_w4a16_g128.rkllm) | `211ddffb27a2e429917639ce319a96fcc878b493433ebca3d0c28666a188750e` |
| RK3576 | W8A8 | [Llama-3.2-3B-Instruct_RK3576_w8a8.rkllm](RK3576/Llama-3.2-3B-Instruct_RK3576_w8a8.rkllm) | `117fa31e1f7d483d02513ddb073f1818b62ea48affc474f1e562e733179e50e9` |
| RK3588 | W8A8 | [Llama-3.2-3B-Instruct_RK3588_w8a8.rkllm](RK3588/Llama-3.2-3B-Instruct_RK3588_w8a8.rkllm) | `5373bb69394504fd7df55087a3431ccacb6af6df52781940ff11307ab409d535` |

The repository also includes `Llama-3.2-3B-Instruct_data_quant.json`, used as calibration data during conversion.

## Usage

```bash
hf download HanzoHuang/Llama-3.2-3B-Instruct-RKLLM \
  RK3576/Llama-3.2-3B-Instruct_RK3576_w4a16_g128.rkllm \
  --local-dir Llama-3.2-3B-Instruct-RKLLM
```

Use the Llama 3.2 Instruct chat template with the RKLLM runtime. For Docker deployment, see [Hanzo-Huang/rkllm-docker](https://github.com/Hanzo-Huang/rkllm-docker).

## Limitations

These are target-specific converted artifacts. Validate quality, memory use, and runtime compatibility on your own Rockchip device.

## Acknowledgements

Thanks to Meta, Rockchip, and the RKLLM community.