blkpws commited on
Commit
1aeb05f
·
verified ·
1 Parent(s): b0b30c5

temporary param test

Browse files
Files changed (1) hide show
  1. README.md +4 -74
README.md CHANGED
@@ -3,83 +3,13 @@ license: apache-2.0
3
  language:
4
  - en
5
  tags:
6
- - objectscript
7
- - intersystems
8
- - iris
9
- - cache
10
- - qwen3.8
11
- - nvfp4
12
- - finetuned
13
  base_model: Qwen/Qwen3.8-27B
14
  pipeline_tag: text-generation
15
  library_name: transformers
16
- quantization_config:
17
- quantization_method: compressed-tensors
18
  ---
19
 
20
- # Qwen3.8-27B-NVFP4-IRIS-Cache-ObjectScript
21
 
22
- Fine-tuned **Qwen3.8-27B** specialized for **ObjectScript / InterSystems Caché / IRIS** (including IRIS SQL).
23
- Merged to BF16 and re-quantized to a **compressed-tensors mixed recipe**: NVFP4 (W4A4, group 16) on MLP + lm_head, FP8 static on attention — ready to deploy on a **DGX Spark (GB10, SM 12.1)**.
24
-
25
- ## Model facts
26
-
27
- | Property | Value |
28
- |---|---|
29
- | Base model | `Qwen/Qwen3.8-27B` (hybrid: 48 linear_attn + 16 self_attn layers) |
30
- | **Parameters (BF16)** | **~27.8B** (the HF "18b" label below is the **quantized file size** in GB / 1e9, not the parameter count) |
31
- | **Default context window** | **262,144 tokens (256K)** — `max_position_embeddings: 262144` in `config.json` |
32
- | Architecture | `Qwen3_5ForCausalLM` (`qwen3_5_text`), hidden 5120, 64 layers, 24 heads / 4 KV, vocab 248,320 |
33
- | Quantization | compressed-tensors: NVFP4 (W4A4 static, group 16) on MLP+lm_head, FP8 (W8A8 static) on attention |
34
- | Quantized size on disk | ~18–20 GB (4-bit) |
35
-
36
- > **Why it shows "~18B" on Hub:** HuggingFace derives the number from the safetensors **storage size** (≈18–20 GB after 4-bit NVFP4 quantization) and displays it as "b". The model is genuinely a **27B-class** model (`Qwen3.8-27B`, ~27.8B BF16 params); 4-bit quantization shrinks the *file size*, not the parameter count.
37
-
38
- ## Quick deploy on a DGX Spark (vLLM)
39
-
40
- ```bash
41
- # vLLM (eugr/spark-vllm or Aeon image), compressed-tensors loads natively
42
- vllm serve blkpws/Qwen3.8-27B-NVFP4-IRIS-Cache-ObjectScript \
43
- --quantization compressed-tensors \
44
- --load-format fastsafetensors \
45
- --dtype auto \
46
- --max-model-len 262144 \
47
- --max-num-seqs 4 \
48
- --gpu-memory-utilization 0.85 \
49
- --kv-cache-dtype fp8_e4m3 \
50
- --attention-backend FLASHINFER \
51
- --enable-chunked-prefill \
52
- --max-cudagraph-capture-size 4 \
53
- --no-enable-flashinfer-autotune \
54
- --enable-auto-tool-choice \
55
- --tool-call-parser qwen3_coder \
56
- --reasoning-parser qwen3
57
- ```
58
-
59
- > **Default context is 256K (262,144 tokens).** When running a *batch* server, note that at full 262,144 the KV cache can reach **~72.8 GiB** on a single long request (GB10 has 128 GB unified); prefer `--max-num-seqs 4` for concurrency, or drop `--max-model-len` (e.g. to 65536) if you need high-concurrency short-context serving.
60
- >
61
- > **GB10 notes:** keep `--gpu-memory-utilization` ≤ 0.85 and the freeze guards (`--max-cudagraph-capture-size 4`, `--no-enable-flashinfer-autotune`) — higher fractions / missing guards can hard-freeze the Spark on SM 12.1.
62
-
63
- ## Training
64
-
65
- - Base: `Qwen/Qwen3.8-27B` (hybrid: 48 linear_attn + 16 self_attn layers), **BF16**, never merged into quantized weights
66
- - Method: 4-bit qLoRA (BitsAndBytes) + custom PEFT `transformers.Trainer`
67
- - Adapter target modules: **all 12** — `q/k/v/o/gate/up/down` + `linear_attn.{in_proj_a,in_proj_b,in_proj_qkv,in_proj_z,out_proj}` (the linear-attention coverage is what fixes degenerate `!`-babble)
68
- - Hyperparams: r=32, lora_alpha=64, LR 1.5e-4, batch 1, 1200 steps, max len 2048
69
- - Data: version-tagged ObjectScript corpus from InterSystems Caché (PDFs, 2008–2018) + IRIS (HTML, 2019.1–2026.2) docs + permissive-license ObjectScript repos (18,687 train / 984 eval)
70
- - Final eval loss 0.589
71
-
72
- ## Quantization (production-matching recipe)
73
-
74
- `vllm-project/llm-compressor` (`.oneshot`) → `compressed-tensors` output, calibrated on the domain-matched training corpus (256 samples):
75
-
76
- | Group | Layers | Scheme |
77
- |-------|--------|--------|
78
- | Attention | `linear_attn.{in_proj_a,in_proj_b,in_proj_qkv,in_proj_z,out_proj}` (48×5) + `self_attn.{q,k,v,o}_proj` (16×4) | FP8 (W8A8 static) |
79
- | MLP + head | `mlp.{gate,up,down}_proj` (64×3) + `lm_head` | NVFP4 (W4A4 static, group 16) |
80
-
81
- `in_proj_a/b` are **quantized** (unlike the base ModelOpt recipe) so the SGLang/vLLM `compressed-tensors` loader gets weight+input scales on every linear layer.
82
-
83
- ## Verified behavior
84
-
85
- Generates idiomatic ObjectScript: `ClassMethod` definitions, `%Persistent` classes, `%DynamicObject`/`%JSON`, `ClassQuery` + host variables, `$SYSTEM`/`%Library` API usage. Reasoning streams in the `reasoning` field under vLLM's `--reasoning-parser qwen3`.
 
3
  language:
4
  - en
5
  tags:
6
+ - test-param
 
 
 
 
 
 
7
  base_model: Qwen/Qwen3.8-27B
8
  pipeline_tag: text-generation
9
  library_name: transformers
10
+ parameters: "27.8B"
 
11
  ---
12
 
13
+ # test params badge
14
 
15
+ x