Model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model:
|
| 4 |
+
- openbmb/MiniCPM5-2B
|
| 5 |
+
- openbmb/MiniCPM5-2B-DSpark
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
- zh
|
| 10 |
+
tags:
|
| 11 |
+
- radiance
|
| 12 |
+
- rocm
|
| 13 |
+
- amd
|
| 14 |
+
- rdna4
|
| 15 |
+
- fp8
|
| 16 |
+
- speculative-decoding
|
| 17 |
+
- dspark
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# MiniCPM5-2B FP8 + DSpark — radiance container
|
| 21 |
+
|
| 22 |
+
[openbmb/MiniCPM5-2B](https://huggingface.co/openbmb/MiniCPM5-2B) as a single `.rad` container for
|
| 23 |
+
the **radiance** inference engine (AMD RDNA4, ROCm), with the
|
| 24 |
+
[MiniCPM5-2B-DSpark](https://huggingface.co/openbmb/MiniCPM5-2B-DSpark) block drafter merged in for
|
| 25 |
+
speculative decoding.
|
| 26 |
+
|
| 27 |
+
| | |
|
| 28 |
+
|---|---|
|
| 29 |
+
| File | `minicpm5-2b-fp8.rad` — 3.03 GiB |
|
| 30 |
+
| Weights | every linear FP8 E4M3 with a bf16 scale per 128×128 block (round to nearest); embeddings and norms bf16 |
|
| 31 |
+
| Speculator | DSpark (5 layers, block size 7), FP8; its vocabulary head at 2 bits |
|
| 32 |
+
| Context | 131,072 tokens (the checkpoint's trained length) |
|
| 33 |
+
| Modalities | text |
|
| 34 |
+
|
| 35 |
+
## Serve
|
| 36 |
+
|
| 37 |
+
```sh
|
| 38 |
+
radiance --model minicpm5-2b-fp8.rad --tp 2 --max-model-len 131072 --kv-cache-dtype fp8 \
|
| 39 |
+
--max-num-seqs 8 --host 0.0.0.0 --port 8000
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
`--tp 1` serves it on one card. The server speaks the OpenAI API (`/v1/chat/completions`,
|
| 43 |
+
`/v1/completions`) with tool calls and structured output; the drafter's depth is chosen
|
| 44 |
+
automatically (`--num-speculative-tokens N` states one, `0` turns speculation off).
|
| 45 |
+
|
| 46 |
+
Built and tested on Radeon AI PRO R9700 (gfx1201).
|