Datasets:
QAD: reject muon+TP early
Browse files- .hf_revision +1 -0
- kit_manifest.json +5 -2
- lanes/asym8-wide8-d1e-1-08b.json +48 -0
- lanes/rht128-sym8-wide8-08b.json +48 -0
- lanes/rht64-sym8-wide8-08b.json +48 -0
- scripts/qad_finetune.py +6 -0
.hf_revision
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
b4883c6629e39e2c13c3db07fa50355f72db2f68
|
kit_manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"built_from_commit": "
|
| 3 |
"capabilities": [
|
| 4 |
"rht_int4_convert.layer_filter",
|
| 5 |
"eval_quantized.dtype",
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"scripts/eval_quantized.py": "5b4e5454630724c116d14fbc64061ffdd6066f4a458e228d372354d3eb32c5b0",
|
| 28 |
"scripts/eval_external_model.py": "55e432b6e581ad78e7ea6e292eff25fbaf7a17706f8eebc492a58fc03a51f948",
|
| 29 |
"scripts/quantize_speculator.py": "6d9299c63774476d93463ea7b5714f090c31d4cba3fdfc07b561982c78d47afa",
|
| 30 |
-
"scripts/qad_finetune.py": "
|
| 31 |
"scripts/compute_bpc.py": "2b55fd1df406d54b40daeeca2ecaf2efb35981655f5bf5e0cc10c057ce796256",
|
| 32 |
"scripts/run_lane.py": "f60869399ab84ae84f654e9773794b813ae1ab52bd031927e46c0ba0650d9b04",
|
| 33 |
"scripts/make_sweep_spec.py": "dc31ec026c89e7db316a185575a4423bca988c2ac6cf08ef6df8f955328cda69",
|
|
@@ -60,6 +60,7 @@
|
|
| 60 |
"data/eval_en_wikitext2_dedup.txt": "342e8f6a77fb9db7e1a14aa7cabe13c1f13eeaa4f045f8fb3689c0b26c742c0e",
|
| 61 |
"data/eval_ja_wikipedia_dedup.txt": "707c9a6c951dd0b831c746a5d6e6972e4dbc71498e75c4aa8f12140eeed89213",
|
| 62 |
"lanes/README.md": "44743cd2b9831d0a2249da307c031f70b2822ca71339db7182964e71d8b4a887",
|
|
|
|
| 63 |
"lanes/balanced-h-08b.json": "21a16d50b0b5096843e0a8fb944a6fdbb7314f3c2c51618eb9651a7575192cb8",
|
| 64 |
"lanes/balanced-h-d1e-2-08b.json": "418eacf0ad80e5fb29c4d987f682f41fe9645ddcc42d866364a48177c3fb2e48",
|
| 65 |
"lanes/bit-alloc-ablation-08b.json": "80cec2d70824daa57dc62dc9caa8073c837930674060e618a8c48066adddc116",
|
|
@@ -72,6 +73,8 @@
|
|
| 72 |
"lanes/eval-4b-rtn.json": "301987233bd76481e48a8a157bf7ab14190dd3f3cc88d2a0ee7799141db63f9c",
|
| 73 |
"lanes/group-size-ablation-08b.json": "2d9ff0b7ab1c6253d76720f7f30509c1b8578fa81d497c8786927aeb1af33cd2",
|
| 74 |
"lanes/q512-probe.json": "ad7b5444a8314a19b0094c6f2adc23b37145f2c50c580ace24ef00422ecf2580",
|
|
|
|
|
|
|
| 75 |
"lanes/robustness-08b-shard1of3.json": "11bd73ddfb110c60420546e1c6f47d777ce6d8c321cf31ce5003d15c96743b9b",
|
| 76 |
"lanes/robustness-08b-shard1of5.json": "2a9a72e2f09a6f42c1f90676d24c0bdc009b686e684eac7b622294fec50ec029",
|
| 77 |
"lanes/robustness-08b-shard2of3.json": "3196a32cf56eb1e3792a4f15a29effa561ff0472d82282f5e98ad8e283249935",
|
|
|
|
| 1 |
{
|
| 2 |
+
"built_from_commit": "19e193597e8394fdbf41e2d7c45e97d04dc4e1b8",
|
| 3 |
"capabilities": [
|
| 4 |
"rht_int4_convert.layer_filter",
|
| 5 |
"eval_quantized.dtype",
|
|
|
|
| 27 |
"scripts/eval_quantized.py": "5b4e5454630724c116d14fbc64061ffdd6066f4a458e228d372354d3eb32c5b0",
|
| 28 |
"scripts/eval_external_model.py": "55e432b6e581ad78e7ea6e292eff25fbaf7a17706f8eebc492a58fc03a51f948",
|
| 29 |
"scripts/quantize_speculator.py": "6d9299c63774476d93463ea7b5714f090c31d4cba3fdfc07b561982c78d47afa",
|
| 30 |
+
"scripts/qad_finetune.py": "00c644d03085c826fd0586efc89a6df4e75eee03aba4cad2d0b5789e57861185",
|
| 31 |
"scripts/compute_bpc.py": "2b55fd1df406d54b40daeeca2ecaf2efb35981655f5bf5e0cc10c057ce796256",
|
| 32 |
"scripts/run_lane.py": "f60869399ab84ae84f654e9773794b813ae1ab52bd031927e46c0ba0650d9b04",
|
| 33 |
"scripts/make_sweep_spec.py": "dc31ec026c89e7db316a185575a4423bca988c2ac6cf08ef6df8f955328cda69",
|
|
|
|
| 60 |
"data/eval_en_wikitext2_dedup.txt": "342e8f6a77fb9db7e1a14aa7cabe13c1f13eeaa4f045f8fb3689c0b26c742c0e",
|
| 61 |
"data/eval_ja_wikipedia_dedup.txt": "707c9a6c951dd0b831c746a5d6e6972e4dbc71498e75c4aa8f12140eeed89213",
|
| 62 |
"lanes/README.md": "44743cd2b9831d0a2249da307c031f70b2822ca71339db7182964e71d8b4a887",
|
| 63 |
+
"lanes/asym8-wide8-d1e-1-08b.json": "d67020f8a3b98c774c22bf56cccf896c64447debcf63e04f3257a74335af1280",
|
| 64 |
"lanes/balanced-h-08b.json": "21a16d50b0b5096843e0a8fb944a6fdbb7314f3c2c51618eb9651a7575192cb8",
|
| 65 |
"lanes/balanced-h-d1e-2-08b.json": "418eacf0ad80e5fb29c4d987f682f41fe9645ddcc42d866364a48177c3fb2e48",
|
| 66 |
"lanes/bit-alloc-ablation-08b.json": "80cec2d70824daa57dc62dc9caa8073c837930674060e618a8c48066adddc116",
|
|
|
|
| 73 |
"lanes/eval-4b-rtn.json": "301987233bd76481e48a8a157bf7ab14190dd3f3cc88d2a0ee7799141db63f9c",
|
| 74 |
"lanes/group-size-ablation-08b.json": "2d9ff0b7ab1c6253d76720f7f30509c1b8578fa81d497c8786927aeb1af33cd2",
|
| 75 |
"lanes/q512-probe.json": "ad7b5444a8314a19b0094c6f2adc23b37145f2c50c580ace24ef00422ecf2580",
|
| 76 |
+
"lanes/rht128-sym8-wide8-08b.json": "fd9ec1430c151e90639ced6ac8299623cde60bc2df35b2024e9c60c80f3b7f9b",
|
| 77 |
+
"lanes/rht64-sym8-wide8-08b.json": "3ef3ae2f657d0d2a7703d9237476c568997c5f1a92a769340a179d161f083aaa",
|
| 78 |
"lanes/robustness-08b-shard1of3.json": "11bd73ddfb110c60420546e1c6f47d777ce6d8c321cf31ce5003d15c96743b9b",
|
| 79 |
"lanes/robustness-08b-shard1of5.json": "2a9a72e2f09a6f42c1f90676d24c0bdc009b686e684eac7b622294fec50ec029",
|
| 80 |
"lanes/robustness-08b-shard2of3.json": "3196a32cf56eb1e3792a4f15a29effa561ff0472d82282f5e98ad8e283249935",
|
lanes/asym8-wide8-d1e-1-08b.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"lane": "asym8-wide8-d1e-1-08b",
|
| 3 |
+
"model": {
|
| 4 |
+
"hf_repo": "Qwen/Qwen3.5-0.8B",
|
| 5 |
+
"spec_name": "Qwen3.5-0.8B",
|
| 6 |
+
"bf16_dir": "bf16-lalamo",
|
| 7 |
+
"bf16_source": "/kaggle/input/uzu-bf16-08b-lalamo",
|
| 8 |
+
"bf16_source_auto": true
|
| 9 |
+
},
|
| 10 |
+
"paths": {
|
| 11 |
+
"kit": "kit",
|
| 12 |
+
"work": "/kaggle/working",
|
| 13 |
+
"jax_platform": "gpu"
|
| 14 |
+
},
|
| 15 |
+
"eval": {
|
| 16 |
+
"max_sequences": 100,
|
| 17 |
+
"max_tokens": 128,
|
| 18 |
+
"min_tokens": 16,
|
| 19 |
+
"corpora": {
|
| 20 |
+
"en": "data/eval_en_wikitext2_dedup.txt",
|
| 21 |
+
"ja": "data/eval_ja_wikipedia_dedup.txt"
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
"condition_defaults": {
|
| 25 |
+
"samples": 32,
|
| 26 |
+
"max_tokens": 128,
|
| 27 |
+
"output_block": "small",
|
| 28 |
+
"output_block_limit": 2048,
|
| 29 |
+
"damping": 0.1,
|
| 30 |
+
"raw_output": false
|
| 31 |
+
},
|
| 32 |
+
"convert": {
|
| 33 |
+
"bits": 4,
|
| 34 |
+
"group_size": 32,
|
| 35 |
+
"block_size": 32,
|
| 36 |
+
"parallel": "tensor",
|
| 37 |
+
"symmetric_bits": "",
|
| 38 |
+
"quantize_embedding": true,
|
| 39 |
+
"embedding_bits": 4,
|
| 40 |
+
"layer_bits_json": "lanes/bits-wide-8.json"
|
| 41 |
+
},
|
| 42 |
+
"conditions": [
|
| 43 |
+
{
|
| 44 |
+
"name": "wide8-d1e-1",
|
| 45 |
+
"calibration_corpus": "data/calibration_mixed_en_ja_dedup.txt"
|
| 46 |
+
}
|
| 47 |
+
]
|
| 48 |
+
}
|
lanes/rht128-sym8-wide8-08b.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"lane": "rht128-sym8-wide8-08b",
|
| 3 |
+
"model": {
|
| 4 |
+
"hf_repo": "Qwen/Qwen3.5-0.8B",
|
| 5 |
+
"spec_name": "Qwen3.5-0.8B",
|
| 6 |
+
"bf16_dir": "bf16-lalamo",
|
| 7 |
+
"bf16_source": "/kaggle/input/uzu-bf16-08b-lalamo",
|
| 8 |
+
"bf16_source_auto": true
|
| 9 |
+
},
|
| 10 |
+
"paths": {
|
| 11 |
+
"kit": "kit",
|
| 12 |
+
"work": "/kaggle/working",
|
| 13 |
+
"jax_platform": "gpu"
|
| 14 |
+
},
|
| 15 |
+
"eval": {
|
| 16 |
+
"max_sequences": 100,
|
| 17 |
+
"max_tokens": 128,
|
| 18 |
+
"min_tokens": 16,
|
| 19 |
+
"corpora": {
|
| 20 |
+
"en": "data/eval_en_wikitext2_dedup.txt",
|
| 21 |
+
"ja": "data/eval_ja_wikipedia_dedup.txt"
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
"condition_defaults": {
|
| 25 |
+
"samples": 32,
|
| 26 |
+
"max_tokens": 128,
|
| 27 |
+
"output_block": "small",
|
| 28 |
+
"output_block_limit": 2048,
|
| 29 |
+
"damping": 0.1,
|
| 30 |
+
"raw_output": false
|
| 31 |
+
},
|
| 32 |
+
"convert": {
|
| 33 |
+
"bits": 4,
|
| 34 |
+
"group_size": 32,
|
| 35 |
+
"block_size": 128,
|
| 36 |
+
"parallel": "tensor",
|
| 37 |
+
"symmetric_bits": "8",
|
| 38 |
+
"quantize_embedding": true,
|
| 39 |
+
"embedding_bits": 4,
|
| 40 |
+
"layer_bits_json": "lanes/bits-wide-8.json"
|
| 41 |
+
},
|
| 42 |
+
"conditions": [
|
| 43 |
+
{
|
| 44 |
+
"name": "wide8-d1e-1",
|
| 45 |
+
"calibration_corpus": "data/calibration_mixed_en_ja_dedup.txt"
|
| 46 |
+
}
|
| 47 |
+
]
|
| 48 |
+
}
|
lanes/rht64-sym8-wide8-08b.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"lane": "rht64-sym8-wide8-08b",
|
| 3 |
+
"model": {
|
| 4 |
+
"hf_repo": "Qwen/Qwen3.5-0.8B",
|
| 5 |
+
"spec_name": "Qwen3.5-0.8B",
|
| 6 |
+
"bf16_dir": "bf16-lalamo",
|
| 7 |
+
"bf16_source": "/kaggle/input/uzu-bf16-08b-lalamo",
|
| 8 |
+
"bf16_source_auto": true
|
| 9 |
+
},
|
| 10 |
+
"paths": {
|
| 11 |
+
"kit": "kit",
|
| 12 |
+
"work": "/kaggle/working",
|
| 13 |
+
"jax_platform": "gpu"
|
| 14 |
+
},
|
| 15 |
+
"eval": {
|
| 16 |
+
"max_sequences": 100,
|
| 17 |
+
"max_tokens": 128,
|
| 18 |
+
"min_tokens": 16,
|
| 19 |
+
"corpora": {
|
| 20 |
+
"en": "data/eval_en_wikitext2_dedup.txt",
|
| 21 |
+
"ja": "data/eval_ja_wikipedia_dedup.txt"
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
"condition_defaults": {
|
| 25 |
+
"samples": 32,
|
| 26 |
+
"max_tokens": 128,
|
| 27 |
+
"output_block": "small",
|
| 28 |
+
"output_block_limit": 2048,
|
| 29 |
+
"damping": 0.1,
|
| 30 |
+
"raw_output": false
|
| 31 |
+
},
|
| 32 |
+
"convert": {
|
| 33 |
+
"bits": 4,
|
| 34 |
+
"group_size": 32,
|
| 35 |
+
"block_size": 64,
|
| 36 |
+
"parallel": "tensor",
|
| 37 |
+
"symmetric_bits": "8",
|
| 38 |
+
"quantize_embedding": true,
|
| 39 |
+
"embedding_bits": 4,
|
| 40 |
+
"layer_bits_json": "lanes/bits-wide-8.json"
|
| 41 |
+
},
|
| 42 |
+
"conditions": [
|
| 43 |
+
{
|
| 44 |
+
"name": "wide8-d1e-1",
|
| 45 |
+
"calibration_corpus": "data/calibration_mixed_en_ja_dedup.txt"
|
| 46 |
+
}
|
| 47 |
+
]
|
| 48 |
+
}
|
scripts/qad_finetune.py
CHANGED
|
@@ -176,6 +176,12 @@ def parse_args() -> argparse.Namespace:
|
|
| 176 |
|
| 177 |
def main() -> None:
|
| 178 |
args = parse_args()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
sys.path.insert(0, args.lalamo_path)
|
| 180 |
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
| 181 |
|
|
|
|
| 176 |
|
| 177 |
def main() -> None:
|
| 178 |
args = parse_args()
|
| 179 |
+
if args.optimizer == "muon" and args.parallel == "tensor":
|
| 180 |
+
raise SystemExit(
|
| 181 |
+
"muon cannot run with tensor parallelism: Newton-Schulz contracts the "
|
| 182 |
+
"sharded gradient (x @ x.T), and JAX cannot infer the output sharding. "
|
| 183 |
+
"Use --parallel data or --parallel replicated, or --optimizer adamw."
|
| 184 |
+
)
|
| 185 |
sys.path.insert(0, args.lalamo_path)
|
| 186 |
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
| 187 |
|