vmlinux commited on
Commit
7b24c5d
·
verified ·
1 Parent(s): 25517f0

Add reproducible build plan

Browse files
Files changed (1) hide show
  1. BUILD_PLAN.md +67 -0
BUILD_PLAN.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Muse-Glimmer-30B ROCmFPX build
2
+
3
+ ## Pinned inputs
4
+
5
+ - Hugging Face model: `meta-models/Muse-Glimmer-30B`
6
+ - Model revision: `f84ecc3a0ea984a4c04542a84269e3d065350a6e`
7
+ - ROCmFPX base: `00d54526e24e3aba4c76474e3147cbf9c7cc034c`
8
+ - Upstream Muse support: `62bf73d25c53b8161f8a22894d4f90c4aebbd7d0`
9
+ - Upstream converter worktree: `d2f83055dca6dd009d8a52bdff792fbb286f4444`
10
+ - Converter environment: Python venv with `transformers==5.15.0`
11
+ - Target GPU: AMD Strix Halo, `gfx1151`
12
+
13
+ The toolchain directory is an uncommitted worktree based on ROCmFPX with the
14
+ upstream Muse support adapted to the older ROCmFPX APIs. It does not alter the
15
+ canonical `/home/vmlinux/models/llama.cpp` checkout or build.
16
+
17
+ ## Deliverables
18
+
19
+ | Artifact label | Quantizer preset | Intent |
20
+ | --- | --- | --- |
21
+ | ROCmFP4 | `Q4_0_ROCMFP4_STRIX` | Strix Halo speed/quality recipe; dual-scale FP4 attention K/V and Q6_K token embeddings |
22
+ | ROCmFP8 | `Q8_0_ROCMFPX` | High-fidelity 8.25-bpw reference layout |
23
+ | ROCmFP4-Q6-QUALITY | `Q4_0_ROCMFP4_COHERENT` | Dual-scale FP4 body with Q6_K token embeddings for the coherence-biased quality build |
24
+
25
+ The two FP4 builds use a 500-chunk importance matrix generated from the local
26
+ `narrative-general-imatrix-sample.txt` corpus. This supplies varied prose,
27
+ reasoning, and general-language activations; the coherence preset itself
28
+ provides the agent/tool-oriented tensor routing. The FP8 reference does not
29
+ need an importance matrix because its preset does not consume importance
30
+ weights.
31
+
32
+ ## Paths
33
+
34
+ - Source snapshot: `source/Muse-Glimmer-30B/`
35
+ - BF16 text model and projector: `intermediate/`
36
+ - Importance matrix: `calibration/`
37
+ - Final models: `artifacts/`
38
+ - Logs and checksums: `logs/` and `manifests/`
39
+
40
+ ## Conversion and quantization outline
41
+
42
+ ```bash
43
+ .venv/bin/python converter-upstream/convert_hf_to_gguf.py source/Muse-Glimmer-30B \
44
+ --outtype bf16 --outfile intermediate/Muse-Glimmer-30B-BF16.gguf
45
+
46
+ .venv/bin/python converter-upstream/convert_hf_to_gguf.py source/Muse-Glimmer-30B \
47
+ --mmproj --outtype bf16 \
48
+ --outfile intermediate/mmproj-Muse-Glimmer-30B-BF16.gguf
49
+
50
+ toolchain/build-muse-rocmfpx/bin/llama-quantize \
51
+ --imatrix calibration/Muse-Glimmer-30B-narrative-general.imatrix \
52
+ intermediate/Muse-Glimmer-30B-BF16.gguf \
53
+ artifacts/Muse-Glimmer-30B-ROCmFP4.gguf Q4_0_ROCMFP4_STRIX
54
+
55
+ toolchain/build-muse-rocmfpx/bin/llama-quantize \
56
+ intermediate/Muse-Glimmer-30B-BF16.gguf \
57
+ artifacts/Muse-Glimmer-30B-ROCmFP8.gguf Q8_0_ROCMFPX
58
+
59
+ toolchain/build-muse-rocmfpx/bin/llama-quantize \
60
+ --imatrix calibration/Muse-Glimmer-30B-narrative-general.imatrix \
61
+ intermediate/Muse-Glimmer-30B-BF16.gguf \
62
+ artifacts/Muse-Glimmer-30B-ROCmFP4-Q6-QUALITY.gguf \
63
+ Q4_0_ROCMFP4_COHERENT
64
+ ```
65
+
66
+ Exact tensor inventories, sizes, checksums, and smoke-test results are in
67
+ `BUILD_RESULTS.md` and `manifests/SHA256SUMS`.