Blackfrost-AI commited on
Commit
e179fcb
·
verified ·
1 Parent(s): f8116e0

Upload deploy/DEPLOYMENT.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. deploy/DEPLOYMENT.md +86 -0
deploy/DEPLOYMENT.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Muse-Glimmer-30B-Abliterated-GGUF — Deployment Kit
2
+
3
+ Serve the abliterated Muse Glimmer 30B locally with **llama.cpp**, optionally with the
4
+ **DFlash** block-diffusion drafter for ~1.6–3× faster decoding (lossless — identical output).
5
+
6
+ ---
7
+
8
+ ## 1. Requirements
9
+
10
+ - A recent **llama.cpp** build with CUDA/Metal (DFlash support merged in [ggml-org/llama.cpp#26841](https://github.com/ggml-org/llama.cpp/pull/26841)). Build from `master`.
11
+ - Disk for the quant you pick (Q4_K_M ≈ 16 GB, Q8_0 ≈ 28 GB) + the DFlash drafter (≈ 4.8 GB).
12
+ - A GPU with enough VRAM for the quant, or CPU (slower).
13
+
14
+ ## 2. Get the files
15
+
16
+ Text quant (pick one) + the DFlash drafter, from this repo:
17
+
18
+ ```bash
19
+ hf download Blackfrost-Research/Muse-Glimmer-30B-Abliterated-GGUF \
20
+ Muse-Glimmer-30B-Abliterated-Q8_0.gguf \
21
+ dflash-Muse-Glimmer-30B-Abliterated-F16.gguf \
22
+ --local-dir ./muse
23
+ # for image input, also grab a projector:
24
+ hf download Blackfrost-Research/Muse-Glimmer-30B-Abliterated-GGUF \
25
+ mmproj-Muse-Glimmer-30B-Abliterated-F16.gguf --local-dir ./muse
26
+ ```
27
+
28
+ ## 3. Serve
29
+
30
+ **Plain (no speculation):**
31
+ ```bash
32
+ llama-server -m ./muse/Muse-Glimmer-30B-Abliterated-Q8_0.gguf \
33
+ -ngl 999 --jinja --host 0.0.0.0 --port 8080 -c 16384 \
34
+ --temp 1.0 --top-p 0.95 --top-k 64
35
+ ```
36
+
37
+ **With DFlash speculative decoding (recommended — faster, same output):**
38
+ ```bash
39
+ llama-server -m ./muse/Muse-Glimmer-30B-Abliterated-Q8_0.gguf \
40
+ -md ./muse/dflash-Muse-Glimmer-30B-Abliterated-F16.gguf \
41
+ --spec-type draft-dflash --spec-draft-n-max 15 \
42
+ -ngl 999 -ngld 999 --jinja --host 0.0.0.0 --port 8080 -c 16384 \
43
+ --temp 1.0 --top-p 0.95 --top-k 64
44
+ ```
45
+
46
+ - `--spec-type draft-dflash` selects the block-diffusion draft path (block size 16, drafter injects the target's hidden states into its attention). DFlash must run under `llama-server` (it needs the shared target context) — not `llama-cli`.
47
+ - `--spec-draft-n-max 15` is the draft block length (clamped to the trained 16).
48
+ - `-md` = the DFlash drafter file; `-ngld 999` offloads it to GPU too.
49
+
50
+ **Multimodal (image input):** add the projector to either command:
51
+ ```bash
52
+ --mmproj ./muse/mmproj-Muse-Glimmer-30B-Abliterated-F16.gguf
53
+ ```
54
+
55
+ Or run the ready-made script in this kit: `bash serve.sh` (see `serve.sh`).
56
+
57
+ ## 4. Query (OpenAI-compatible)
58
+
59
+ ```bash
60
+ curl http://localhost:8080/v1/chat/completions -H 'content-type: application/json' -d '{
61
+ "messages":[{"role":"user","content":"Write a binary search in Python."}],
62
+ "max_tokens": 2048, "temperature": 1.0, "top_p": 0.95, "top_k": 64
63
+ }'
64
+ ```
65
+
66
+ ## 5. Important notes
67
+
68
+ - **Heavy thinker.** Muse spends tokens on a reasoning channel first. Use a **generous `max_tokens` (≥ 1024)** or the answer can come back empty (the budget is consumed by reasoning). llama-server returns the reasoning in `reasoning_content` and the answer in `content`.
69
+ - **Sampling (Meta guidance):** `temperature 1.0, top_p 0.95, top_k 64`. Steer depth with a `Reasoning strength: low/medium/high/xhigh` line in the system prompt.
70
+ - **Flash attention:** `-fa on` is fastest and lets DFlash reach its peak speedup. If your GPU/CUDA combo hangs at load with `-fa on` (seen on some brand-new archs paired with an older CUDA toolkit), use `-fa off` — everything works, at a modest speed cost.
71
+ - **Persona:** ships with an "AI assistant" system template baked in; override with your own system message.
72
+
73
+ ## 6. Reference performance
74
+
75
+ Single NVIDIA RTX PRO 6000 (Blackwell), Q8_0, `-fa off`:
76
+
77
+ | config | decode tok/s | speedup |
78
+ |---|--:|--:|
79
+ | baseline | ~46 | 1.0× |
80
+ | + DFlash | ~73 | **1.6×** |
81
+
82
+ DFlash speedup rises with structured/code output and with `-fa on`. Meta reports up to 3.1× on an RTX 5090.
83
+
84
+ ---
85
+
86
+ *Built by [Blackfrost](https://x.com/Blackfrost_AI) · Las Vegas, NV. Not affiliated with Meta.*