Simwang commited on
Commit
cf0ded8
·
verified ·
1 Parent(s): 8a3835f

Add MoBiQuant checkpoint model card

Browse files
Files changed (1) hide show
  1. README.md +58 -0
README.md CHANGED
@@ -1,3 +1,61 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - mobiquant
7
+ - quantization
8
+ - mixed-precision
9
+ - llama
10
  ---
11
+
12
+ # MoBiQuant Checkpoints
13
+
14
+ Calibrated OmniQuant and router parameters for **MoBiQuant** on four LLaMA base models.
15
+
16
+ **Code:** [SimWangArizona/MoBiQuant](https://github.com/SimWangArizona/MoBiQuant)
17
+
18
+ ## Available checkpoints
19
+
20
+ | Directory | Base model |
21
+ |---|---|
22
+ | `llama2-7b` | Llama-2-7B |
23
+ | `llama3-8b` | Llama-3-8B |
24
+ | `llama3-3b` | Llama-3.2-3B |
25
+ | `llama3-1b` | Llama-3.2-1B |
26
+
27
+ Each directory contains:
28
+
29
+ - `omni_parameters.pth`: learned quantization parameters.
30
+ - `router_parameters.pth`: learned router parameters.
31
+
32
+ These are supplemental parameter checkpoints. Original pretrained model weights and tokenizer files are required separately; this repository cannot be loaded directly with `AutoModelForCausalLM.from_pretrained()`.
33
+
34
+ ## Quantization configuration
35
+
36
+ - Weight-only quantization with 16-bit activations.
37
+ - Group size: **128**.
38
+ - Bit slices: **[2, 2, 2, 2]** — a 2-bit base plus three routed residual slices.
39
+ - Routing covers Attention q/k/v/o and MLP gate/up/down projections.
40
+ - Effective average bits depend on routing and the evaluation target; Attention is not fixed at 4 bits.
41
+
42
+ ## Download
43
+
44
+ ```python
45
+ from huggingface_hub import snapshot_download
46
+
47
+ checkpoint_dir = snapshot_download(
48
+ repo_id="Simwang/MoBiQuant",
49
+ allow_patterns=["llama3-1b/*.pth"],
50
+ )
51
+ ```
52
+
53
+ Replace `llama3-1b` with another directory above to download its parameters. See the code repository for evaluation instructions. The current directory-resume workflow additionally expects `router_stats.pth`; that file is not included in this release, so the downloaded pair alone is not a complete directory-resume bundle.
54
+
55
+ ## Validation and limitations
56
+
57
+ All four checkpoints passed per-layer parameter restoration checks against the current MoBiQuant implementation. GPU WikiText2 sweeps are in progress; this release does not claim that all paper results have been reproduced.
58
+
59
+ The implementation evaluates quantization using floating-point simulation. These files do not constitute a packed low-bit deployment format or establish inference speedups.
60
+
61
+ The Apache-2.0 metadata applies to this release; obtain and use the original base models under their respective model licenses and access conditions.