Views
No views yet
Qwen/Qwen3-14B, quantized post-training to
GPTQ int4 (W4A16, group=32, symmetric) and verified as a
DSpark speculative-decoding target
(draft: deepseek-ai/dspark_qwen3_14b_block7).chosen_win ≥ 0.4 (hit at epoch ~3.9).
The anti-loop preference flips from 5% to 45% chosen-win during training.| config | tok/s | DSpark accept |
|---|---|---|
| this model + DSpark k=7 + CUDA graphs | 263 (peaks 343) | 30.8% |
| this model, native (no speculation) | 144 | — |
| reference: official Qwen3-14B-AWQ + DSpark k=7 | 244 | 25.5% |
| reference: official Qwen3-14B-AWQ, native | 147 | — |
| model | doom-loop rate |
|---|---|
| original Qwen3-14B (official AWQ) | 21/2039 = 1.03% |
| this model (antidoom) | 8/2039 = 0.39% |
1from vllm import LLM, SamplingParams
2from transformers import AutoTokenizer
3
4MODEL = "Danny-Dasilva/Qwen3-14B-antidoom-W4A16-GPTQ-g32-DSpark"
5DRAFT = "deepseek-ai/dspark_qwen3_14b_block7"
6
7llm = LLM(
8 model=MODEL,
9 max_model_len=8192,
10 attention_backend="FLASHINFER",
11 speculative_config={
12 "method": "dspark",
13 "model": DRAFT,
14 "num_speculative_tokens": 7, # draft block size; keep at 7
15 "attention_backend": "TRITON_ATTN",
16 },
17)
18tok = AutoTokenizer.from_pretrained(MODEL)
19prompt = tok.apply_chat_template([{"role": "user", "content": "Hello!"}],
20 add_generation_prompt=True, tokenize=False)
21print(llm.generate([prompt], SamplingParams(temperature=0.0, max_tokens=256))[0].outputs[0].text)temperature=0.01, prompt sources filtered to code/instruction-following (3-8× higher loop yield
than math/QA), pair budget 58 (5h generation cap; the model is extremely loop-resistant), num_epochs=10, lr=3e-5, lora_r=128, max_seq_length=3072, load_in_4bit for the training pass (14B bf16 + optimizer exceeds 32 GB), with the built-in chosen_win ≥ 0.4 early stop. Note: vLLM needs gpu_memory_utilization≈0.70 for this target+draft pair on 32 GB.Qwen/Qwen3-14B (bf16) → antidoom FTPO LoRA merge → GPTQ W4A16 g32