bite-baseline
收藏资源简介:
bite-baseline数据集是用于极端量化(三元权重)Qwen3.6-35B-A3B混合专家大语言模型的开源压缩管道ihavespoons/bite的配套产物集。该数据集旨在通过PTQ(后训练量化)初始化和量化感知蒸馏技术,将包含256位专家的MoE(混合专家)模型(总参数量35B,激活参数量约3B)压缩至三元权重(-1, 0, +1)表示,达到1.71比特每权重的压缩率。数据集包含多个关键组件:FP16参考评估文件(如baseline.json),其中MMLU得分0.8393作为项目退化基准指标;专家路由器覆盖率分析(coverage.json),显示在256个校准序列上无死专家且基尼系数为0.51;教师蒸馏目标数据(teacher_topk/),包含基于512个序列×2048个token的c4-en数据提取的top-64 logits和输入ID;量化学生模型检查点(qad_student/和e2e_student/),分别代表块级修复和端到端QAD(量化感知蒸馏)修复的三元学生模型,后者经过500微步训练使交叉熵从8.3降至1.26;以及配套的训练评估指标文件。数据集派生自Apache-2.0许可的Qwen/Qwen3.6-35B-A3B模型,教师logits基于allenai/c4英文数据集计算,主要用于大模型压缩、量化感知蒸馏、混合专家模型优化等研究任务。
The bite-baseline dataset is a companion product set for the open-source compression pipeline ihavespoons/bite used for extreme quantization (ternary weights) of the Qwen3.6-35B-A3B mixture-of-experts large language model. This dataset aims to compress a MoE model with 256 experts (total parameters 35B, activation parameters approximately 3B) into ternary weight representation (-1, 0, +1) through PTQ initialization and quantization-aware distillation techniques, achieving a compression rate of 1.71 bits per weight. The dataset includes multiple key components: FP16 reference evaluation files (e.g., baseline.json) with an MMLU score of 0.8393 as the project degradation baseline metric; expert router coverage analysis (coverage.json), showing no dead experts on 256 calibration sequences and a Gini coefficient of 0.51; teacher distillation target data (teacher_topk/), containing top-64 logits and input IDs extracted from c4-en data with 512 sequences × 2048 tokens; quantized student model checkpoints (qad_student/ and e2e_student/), representing ternary student models for block-level repair and end-to-end QAD repair, respectively, with the latter trained over 500 micro-steps to reduce cross-entropy from 8.3 to 1.26; and accompanying training evaluation metric files. Derived from the Apache-2.0 licensed Qwen/Qwen3.6-35B-A3B model, with teacher logits computed based on the allenai/c4 English dataset, the dataset is primarily used for research tasks such as large model compression, quantization-aware distillation, and mixture-of-experts model optimization.
数据集概述:bite-baseline
数据集来源:本数据集是 ihavespoons/bite 项目的配套数据集,该项目旨在对混合专家(MoE)大语言模型进行极端三元量化(ternary quantization),将权重压缩至 {-1,0,+1}(1.71 bpw)。
基础模型:量化目标模型为 Qwen/Qwen3.6-35B-A3B(Apache-2.0 许可),参数量为 35B 总参 / 约 3B 激活参数,包含 256 个专家。教师logits基于 allenai/c4 (en) 计算。
许可协议:Apache-2.0
数据集内容与结构:
| 路径 | 说明 |
|---|---|
baseline.json、baseline_chat.json |
FP16 参考评估结果(基于 lm-eval 0.4.12)。MMLU 得分为 0.8393,作为项目性能退化的衡量基准。 |
coverage.json |
在 256 条校准序列上,每个专家的路由器覆盖情况。结果:0 个专家死亡(死专家数为 0),基尼系数为 0.51。 |
teacher_topk/ |
教师蒸馏目标:每个 token 对应的 top-64 logits + input_ids;包含 64 个自包含的 safetensors 分片(约 407 MB);数据为 512 条序列 × 2048 个 token 的 c4-en 内容。可使用 bite.train.teacher.load_teacher_shard 加载。 |
qad_student/ |
经分块修复(block-wise healing)的三元学生模型(分片 safetensors,包含伪量化潜在密钥 parametrizations.*.original)。MMLU 得分为 0.245,表明局部修复效果不足。 |
e2e_student/model.safetensors |
经端到端量化感知蒸馏(QAD)修复的三元学生模型(合并的 bf16 潜在权重)。经过约 1M token 上的 500 个微步训练,训练交叉熵从 8.3 降至 1.26。 |
qad_metrics.json、e2e_metrics.json、e2e_eval.json |
各次运行的评估指标文件。 |
重要说明:
- 检查点存储的是 bf16 格式的伪量化潜在权重(约 70 GB),量化操作在通过仓库的参数化机制访问时应用。
- 重建学生模型的方法:调用
build_student(...),然后使用load_state_dict(st.load_file(...), strict=False, assign=True)加载权重(参见scripts/eval_quant.py --load-weights)。




