Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/README.md +5 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/SHA256SUMS +63 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/dumps/base_k160000/fixed_k160000.jsonl +0 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/dumps/base_k160000/no_mask.jsonl +0 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/dumps/r2_k160000/fixed_k160000.jsonl +0 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/dumps/r2_k160000/no_mask.jsonl +0 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/dumps/r8_k160000/fixed_k160000.jsonl +0 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/dumps/r8_k160000/no_mask.jsonl +0 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/eval/base_k160000_masks.json +30 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/eval/r2_k160000_masks.json +30 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/eval/r8_k160000_masks.json +30 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/download_hy_lora_conditions.log +4 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/eval_base_k160000.log +12 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/eval_r2_k160000.log +14 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/eval_r8_k160000.log +14 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/runner.outer.log +248 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/xcomet_base_fixed_k160000.log +66 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/xcomet_r2_fixed_k160000.log +66 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/xcomet_r8_fixed_k160000.log +66 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/manifest.json +84 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/notes/issue32_true28_repro.md +65 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/scripts/evaluate_translation_adapter_masks.py +301 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/scripts/issue32_hy_lora_conditions_repro_runner.sh +200 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/scripts/issue32_true28_repro_runner.sh +220 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/scripts/package_issue32_true28_repro_hf_upload.sh +103 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/scripts/summarize_issue32_true28_repro.py +137 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/README.md +29 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/adapter/README.md +207 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/adapter/adapter_config.json +48 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/adapter/adapter_model.safetensors +3 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/adapter/chat_template.jinja +1 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/adapter/tokenizer.json +0 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/adapter/tokenizer_config.json +10 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/config.json +47 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/train_summary.json +77 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/adapter/README.md +207 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/adapter/adapter_config.json +48 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/adapter/adapter_model.safetensors +3 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/adapter/chat_template.jinja +1 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/adapter/tokenizer.json +0 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/adapter/tokenizer_config.json +10 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/config.json +47 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/train_summary.json +77 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/manifest.json +44 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/masked_kl/k160_r32/adapter/README.md +207 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/masked_kl/k160_r32/adapter/adapter_config.json +48 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/masked_kl/k160_r32/adapter/adapter_model.safetensors +3 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/masked_kl/k160_r32/adapter/chat_template.jinja +1 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/masked_kl/k160_r32/adapter/tokenizer.json +0 -0
- circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/masked_kl/k160_r32/adapter/tokenizer_config.json +10 -0
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue 32 True Issue 28 Reproduction Artifacts
|
| 2 |
+
|
| 3 |
+
This folder contains the rebuilt issue #28 EN->PT k=160k LoRA rank-ladder artifacts: ReLP mask, PEFT adapters, generation dumps, XCOMET summaries, logs, summaries, specs, and reusable scripts.
|
| 4 |
+
|
| 5 |
+
Upstream HY-MT/XCOMET weights, Hugging Face caches, merged full checkpoints, API keys, and service tokens are intentionally excluded.
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/SHA256SUMS
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
eecc85d1f56120e85e1695297132bedadc146aca0e5d2bdf025ab296c3ed3262 ./README.md
|
| 2 |
+
8fb4cc48f8daabbe72742c11ea8c58d4557656a51c527aa9985c685efc6f1669 ./SHA256SUMS
|
| 3 |
+
e2874b7c335668eef712ec27fe30338e7e88c32257c85ae6720903cec0449d65 ./dumps/base_k160000/fixed_k160000.jsonl
|
| 4 |
+
614863ee0b3907f0549e9405637a241b1c9733abb96005c36e40ee221180d0db ./dumps/base_k160000/no_mask.jsonl
|
| 5 |
+
65b5704a1d6175bda3495336150d68f8c70110acea5ea6bff1c7ff834d981a87 ./dumps/r2_k160000/fixed_k160000.jsonl
|
| 6 |
+
094af49f65afbfa854cd3e0411316ee248e3f8e7f8adb17156bb1d152e1f4d80 ./dumps/r2_k160000/no_mask.jsonl
|
| 7 |
+
0257f0fdba506031b5f40cd74d02fd05f6afacedc76cbb28e7e85838fd443a9e ./dumps/r8_k160000/fixed_k160000.jsonl
|
| 8 |
+
97d4102b760f17eb8fa7e006215e260d3c465f5462a0d175e32559361fb2e1f5 ./dumps/r8_k160000/no_mask.jsonl
|
| 9 |
+
d6ff1f143328336b20b2af2ed7a9ba7912db269f170f945471df09df62a79e46 ./eval/base_k160000_masks.json
|
| 10 |
+
a5fbc42e83d1d379778c7d31fe5b18e4b4c69b76788d66d27a9bb1bb6e451cdb ./eval/r2_k160000_masks.json
|
| 11 |
+
be0f076d74288fffdbfab088edac678fabbbdc2ad0d7544d88ab3559bd76a3ba ./eval/r8_k160000_masks.json
|
| 12 |
+
be2218696f32bef9eeb5eced61d332e4f16d6f1043b40000243fb1c158b45c38 ./logs/download_hy_lora_conditions.log
|
| 13 |
+
a6c88766189b0f6ae07f14ca2ba0325b80d7d59ae76f8f7b2d7904ad8cc21ab9 ./logs/eval_base_k160000.log
|
| 14 |
+
b3067b1d32fd92aa4a7d0e43e67d08f2f6d73f468f343fa281457f9e58248afd ./logs/eval_r2_k160000.log
|
| 15 |
+
56eff871c43d71e9424375c461d35eff607b8b67c34c7ed5d21dde208b08a6f6 ./logs/eval_r8_k160000.log
|
| 16 |
+
3e5eccf3effd87010bcaed7e3f0b933620dcd9d49860b50629821b205099fef2 ./logs/runner.outer.log
|
| 17 |
+
a790eb859e37b46bbae6a2cb2ab9b7e265632d341d2490fa050cae8c4576e597 ./logs/xcomet_base_fixed_k160000.log
|
| 18 |
+
441ab94ac405c30069e15784b41d100fe9724df85e24c46a53e86eb2c7a9c4ca ./logs/xcomet_r2_fixed_k160000.log
|
| 19 |
+
6762fc1302822d9409fb2fcfdb1282afba6dc7c42c766d27a3a92bd79d58a19e ./logs/xcomet_r8_fixed_k160000.log
|
| 20 |
+
c736705c39b7d15b553582b0abea6b71ba8f181f39a6d22d980150c55b275053 ./manifest.json
|
| 21 |
+
37d6425e72bde1446eb404d0847de8d0d17857b951bc92f1b2eb8fa90224ef7a ./notes/issue32_true28_repro.md
|
| 22 |
+
d24585e5853518e2635ceefd158f678bf9af0cf322f541f86fea420edc6b27a9 ./scripts/evaluate_translation_adapter_masks.py
|
| 23 |
+
9fcfd4090f86b1141571a54aa4bf7b990efd43f75879f0959d7b66661395a5ce ./scripts/issue32_hy_lora_conditions_repro_runner.sh
|
| 24 |
+
8415dbf932f91996f2bb786c7a72529d2dc30c4008982fdb7d4a6907b16c9dee ./scripts/issue32_true28_repro_runner.sh
|
| 25 |
+
e0e901f8c3f1620327cdcad37aeaf067900ddf25e752d9b7d373f000b5280d54 ./scripts/package_issue32_true28_repro_hf_upload.sh
|
| 26 |
+
4b2f81f341f6f747994e9172fde8969a1df84b3c9d94d782a892cb9e3a9428ff ./scripts/summarize_issue32_true28_repro.py
|
| 27 |
+
7a085e85ff6883a887ef3c77685013bda5d93dcafb397254ada71f2799a0d150 ./source_artifacts/README.md
|
| 28 |
+
2ffdd8cca915620f13b64d70960056cecafaf78bcd4bdba9b658f9418eeeef79 ./source_artifacts/low_rank_lens/k160_r2/adapter/README.md
|
| 29 |
+
6f6ae26678f0f880d624c48fb79cc624cfbf6ad2a63a01fa0bdc5e67121c32d2 ./source_artifacts/low_rank_lens/k160_r2/adapter/adapter_config.json
|
| 30 |
+
571d954ae125763dd73dae82fbc6c45335d15e965e8286e87cd7d6d5e089508c ./source_artifacts/low_rank_lens/k160_r2/adapter/adapter_model.safetensors
|
| 31 |
+
b7491ec0e9c869dfce20f2176758099bf248d979dd05530ede99deb21698acee ./source_artifacts/low_rank_lens/k160_r2/adapter/chat_template.jinja
|
| 32 |
+
b475bbef1b0b2fd57dcb865332b546475bd1ede2deb3bb91bafd0c047a8a530a ./source_artifacts/low_rank_lens/k160_r2/adapter/tokenizer.json
|
| 33 |
+
5abf46ce322b931371ede40634ee8c3c694202503e9f0a2eb2ec9761cbbe738e ./source_artifacts/low_rank_lens/k160_r2/adapter/tokenizer_config.json
|
| 34 |
+
5136715624a75e3964c34c266df14de3bd97c7e2fac33e5581074ac7c28fd719 ./source_artifacts/low_rank_lens/k160_r2/config.json
|
| 35 |
+
480782657bf4890009dd5ffb9512e54e83fb6a3077fc973f449b22c130a0f96f ./source_artifacts/low_rank_lens/k160_r2/train_summary.json
|
| 36 |
+
2ffdd8cca915620f13b64d70960056cecafaf78bcd4bdba9b658f9418eeeef79 ./source_artifacts/low_rank_lens/k160_r8/adapter/README.md
|
| 37 |
+
66315394f48a67e84ab75ce2b88a148763fd24c8c8b2ee7a64cbbe14c44783a7 ./source_artifacts/low_rank_lens/k160_r8/adapter/adapter_config.json
|
| 38 |
+
409d0932242a888ed6f8703f15e5c3ed2a7e0fae3b20eb64bc88b33c27e18e7f ./source_artifacts/low_rank_lens/k160_r8/adapter/adapter_model.safetensors
|
| 39 |
+
b7491ec0e9c869dfce20f2176758099bf248d979dd05530ede99deb21698acee ./source_artifacts/low_rank_lens/k160_r8/adapter/chat_template.jinja
|
| 40 |
+
b475bbef1b0b2fd57dcb865332b546475bd1ede2deb3bb91bafd0c047a8a530a ./source_artifacts/low_rank_lens/k160_r8/adapter/tokenizer.json
|
| 41 |
+
5abf46ce322b931371ede40634ee8c3c694202503e9f0a2eb2ec9761cbbe738e ./source_artifacts/low_rank_lens/k160_r8/adapter/tokenizer_config.json
|
| 42 |
+
cf405a9daba066d2f6259126a09164ff18122c2e1099c1741f38689dc4628e6c ./source_artifacts/low_rank_lens/k160_r8/config.json
|
| 43 |
+
55be4dfeedcf429d60cc51524ddbf0435df00119b54ffffcc3f3ccbdd622bca9 ./source_artifacts/low_rank_lens/k160_r8/train_summary.json
|
| 44 |
+
b537b3d0388c97ef3fa4fb7dce17aeb125c90295084141dcfd467e5f1ff29639 ./source_artifacts/manifest.json
|
| 45 |
+
2ffdd8cca915620f13b64d70960056cecafaf78bcd4bdba9b658f9418eeeef79 ./source_artifacts/masked_kl/k160_r32/adapter/README.md
|
| 46 |
+
a85238203fb95699c97604830d43745846f0777f8a7124efac90adc65c91534b ./source_artifacts/masked_kl/k160_r32/adapter/adapter_config.json
|
| 47 |
+
447196e8e6fb3fd89bbba8550122853a1d01adb1eeb3e145845b64cd3a7310aa ./source_artifacts/masked_kl/k160_r32/adapter/adapter_model.safetensors
|
| 48 |
+
b7491ec0e9c869dfce20f2176758099bf248d979dd05530ede99deb21698acee ./source_artifacts/masked_kl/k160_r32/adapter/chat_template.jinja
|
| 49 |
+
b475bbef1b0b2fd57dcb865332b546475bd1ede2deb3bb91bafd0c047a8a530a ./source_artifacts/masked_kl/k160_r32/adapter/tokenizer.json
|
| 50 |
+
5abf46ce322b931371ede40634ee8c3c694202503e9f0a2eb2ec9761cbbe738e ./source_artifacts/masked_kl/k160_r32/adapter/tokenizer_config.json
|
| 51 |
+
1515d92d9b83b55250fe031e083e6e32c13b03ac6c6b17accbb5bd72b44df574 ./source_artifacts/masked_kl/k160_r32/config.json
|
| 52 |
+
86cdbb4d7dc526ec7cf339170eb006306e3f81775a1532af589a27f4b42671dc ./source_artifacts/masked_kl/k160_r32/train_summary.json
|
| 53 |
+
7f44da6aa7c02bb7d891b7c537de51dffa5cbf7f41ffc3e0433fa3ce25914de6 ./source_artifacts/masks/base_attr/relp_k160000.full.npz
|
| 54 |
+
ed7b3aa6cc21de3b2e3f4931eba9256f450c7ba73313ae4fa90f55c9aa50d934 ./spec/issue32_hy_lora_conditions_repro.json
|
| 55 |
+
49a88d8b08bf5513b9ca45ddaa381f15dc7fe9f55c7195d9c299483c4cd23246 ./spec/issue32_true28_repro_enpt.json
|
| 56 |
+
b6b2eb7c5cd8cf2f37ca3106c798a1668d7ea32e75978fc0ca1777b25fe43282 ./summaries/issue32_true28_repro_summary.json
|
| 57 |
+
0e9197ca775597a1cc8288086c49e5e538f0bec043676ef381caf2100bb2d0ad ./summaries/issue32_true28_repro_summary.md
|
| 58 |
+
0bd7ce7f536edb020a3c12c83285a6c07c7f18ae5a3216e0c64a7589221e35c8 ./xcomet/base_fixed_k160000.json
|
| 59 |
+
e9bf4d5ebfe80c6f2516a0e39e9c218a26e5476ca40381ca9df8e2c3c13fbc62 ./xcomet/base_fixed_k160000.scored_pool.jsonl
|
| 60 |
+
cb15c0d38d03d87a02d52f6392e4b9f81360bb34f60ce52d9a773bdd3b4f4aaf ./xcomet/r2_fixed_k160000.json
|
| 61 |
+
4f470707d6b421b1a608b1ed6cdde1551f9a052c6f5e563e19ca9d51215b5d3d ./xcomet/r2_fixed_k160000.scored_pool.jsonl
|
| 62 |
+
3ce7abf11c8017d4608705890c491667b2e2f1303745da39fc7deaf269d98d97 ./xcomet/r8_fixed_k160000.json
|
| 63 |
+
007d0df12e8be3acbb527d3c56fcccaa507289b422aa19c5996c588e074592f3 ./xcomet/r8_fixed_k160000.scored_pool.jsonl
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/dumps/base_k160000/fixed_k160000.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/dumps/base_k160000/no_mask.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/dumps/r2_k160000/fixed_k160000.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/dumps/r2_k160000/no_mask.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/dumps/r8_k160000/fixed_k160000.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/dumps/r8_k160000/no_mask.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/eval/base_k160000_masks.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_model": "tencent/HY-MT1.5-1.8B",
|
| 3 |
+
"adapter": null,
|
| 4 |
+
"n_layers": 32,
|
| 5 |
+
"d_ffn": 6144,
|
| 6 |
+
"n_examples": 1012,
|
| 7 |
+
"n_calib": 64,
|
| 8 |
+
"results": {
|
| 9 |
+
"no_mask": {
|
| 10 |
+
"scores": {
|
| 11 |
+
"chrFpp": 54.1532647306025,
|
| 12 |
+
"chrF": 56.86009355829216,
|
| 13 |
+
"BLEU": 25.694258665462407,
|
| 14 |
+
"n": 1012
|
| 15 |
+
},
|
| 16 |
+
"kept": -1
|
| 17 |
+
},
|
| 18 |
+
"fixed_k160000": {
|
| 19 |
+
"scores": {
|
| 20 |
+
"chrFpp": 46.967458026096146,
|
| 21 |
+
"chrF": 49.828345760177974,
|
| 22 |
+
"BLEU": 18.370739044824525,
|
| 23 |
+
"n": 1012
|
| 24 |
+
},
|
| 25 |
+
"kept": 160000,
|
| 26 |
+
"mask_path": "/root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/masks/base_attr/relp_k160000.full.npz",
|
| 27 |
+
"elapsed_s": 56.12802314758301
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/eval/r2_k160000_masks.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_model": "tencent/HY-MT1.5-1.8B",
|
| 3 |
+
"adapter": "/root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/low_rank_lens/k160_r2/adapter",
|
| 4 |
+
"n_layers": 32,
|
| 5 |
+
"d_ffn": 6144,
|
| 6 |
+
"n_examples": 1012,
|
| 7 |
+
"n_calib": 64,
|
| 8 |
+
"results": {
|
| 9 |
+
"no_mask": {
|
| 10 |
+
"scores": {
|
| 11 |
+
"chrFpp": 54.2900767781082,
|
| 12 |
+
"chrF": 57.09539358850508,
|
| 13 |
+
"BLEU": 25.89748559065704,
|
| 14 |
+
"n": 1012
|
| 15 |
+
},
|
| 16 |
+
"kept": -1
|
| 17 |
+
},
|
| 18 |
+
"fixed_k160000": {
|
| 19 |
+
"scores": {
|
| 20 |
+
"chrFpp": 51.21753789709872,
|
| 21 |
+
"chrF": 54.0653544449977,
|
| 22 |
+
"BLEU": 22.47180926693969,
|
| 23 |
+
"n": 1012
|
| 24 |
+
},
|
| 25 |
+
"kept": 160000,
|
| 26 |
+
"mask_path": "/root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/masks/base_attr/relp_k160000.full.npz",
|
| 27 |
+
"elapsed_s": 58.085695028305054
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/eval/r8_k160000_masks.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_model": "tencent/HY-MT1.5-1.8B",
|
| 3 |
+
"adapter": "/root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/low_rank_lens/k160_r8/adapter",
|
| 4 |
+
"n_layers": 32,
|
| 5 |
+
"d_ffn": 6144,
|
| 6 |
+
"n_examples": 1012,
|
| 7 |
+
"n_calib": 64,
|
| 8 |
+
"results": {
|
| 9 |
+
"no_mask": {
|
| 10 |
+
"scores": {
|
| 11 |
+
"chrFpp": 53.682599818043684,
|
| 12 |
+
"chrF": 56.50196836912086,
|
| 13 |
+
"BLEU": 24.96002699511978,
|
| 14 |
+
"n": 1012
|
| 15 |
+
},
|
| 16 |
+
"kept": -1
|
| 17 |
+
},
|
| 18 |
+
"fixed_k160000": {
|
| 19 |
+
"scores": {
|
| 20 |
+
"chrFpp": 51.31005902924941,
|
| 21 |
+
"chrF": 54.10140531214584,
|
| 22 |
+
"BLEU": 22.6611180101592,
|
| 23 |
+
"n": 1012
|
| 24 |
+
},
|
| 25 |
+
"kept": 160000,
|
| 26 |
+
"mask_path": "/root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/masks/base_attr/relp_k160000.full.npz",
|
| 27 |
+
"elapsed_s": 58.91963839530945
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/download_hy_lora_conditions.log
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Download complete. Moving file to /root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/masks/base_attr/relp_k160000.full.npz
|
| 3 |
+
|
| 4 |
+
/root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/eval_base_k160000.log
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[load] tokenizer from tencent/HY-MT1.5-1.8B
|
| 2 |
+
[load] base model tencent/HY-MT1.5-1.8B
|
| 3 |
+
[data] eval_rows=1012
|
| 4 |
+
[mean] building mean cache from 64 prompts
|
| 5 |
+
[eval] no-mask
|
| 6 |
+
The following generation flags are not valid and may be ignored: ['temperature', 'top_p', 'top_k']. Set `TRANSFORMERS_VERBOSITY=info` for more details.
|
| 7 |
+
no_mask: {'chrFpp': 54.1532647306025, 'chrF': 56.86009355829216, 'BLEU': 25.694258665462407, 'n': 1012}
|
| 8 |
+
dumped 1012 hyps -> /root/runs/issue32_hy_lora_conditions_repro/dumps/base_k160000/no_mask.jsonl
|
| 9 |
+
[eval] mask=fixed_k160000 from /root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/masks/base_attr/relp_k160000.full.npz
|
| 10 |
+
fixed_k160000: kept=160000 {'chrFpp': 46.967458026096146, 'chrF': 49.828345760177974, 'BLEU': 18.370739044824525, 'n': 1012} (56.1s)
|
| 11 |
+
dumped 1012 hyps -> /root/runs/issue32_hy_lora_conditions_repro/dumps/base_k160000/fixed_k160000.jsonl
|
| 12 |
+
[done] wrote /root/runs/issue32_hy_lora_conditions_repro/eval/base_k160000_masks.json
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/eval_r2_k160000.log
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[load] tokenizer from tencent/HY-MT1.5-1.8B
|
| 2 |
+
[load] base model tencent/HY-MT1.5-1.8B
|
| 3 |
+
[load] adapter /root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/low_rank_lens/k160_r2/adapter
|
| 4 |
+
[merge] merging adapter in memory
|
| 5 |
+
[data] eval_rows=1012
|
| 6 |
+
[mean] building mean cache from 64 prompts
|
| 7 |
+
[eval] no-mask
|
| 8 |
+
The following generation flags are not valid and may be ignored: ['temperature', 'top_p', 'top_k']. Set `TRANSFORMERS_VERBOSITY=info` for more details.
|
| 9 |
+
no_mask: {'chrFpp': 54.2900767781082, 'chrF': 57.09539358850508, 'BLEU': 25.89748559065704, 'n': 1012}
|
| 10 |
+
dumped 1012 hyps -> /root/runs/issue32_hy_lora_conditions_repro/dumps/r2_k160000/no_mask.jsonl
|
| 11 |
+
[eval] mask=fixed_k160000 from /root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/masks/base_attr/relp_k160000.full.npz
|
| 12 |
+
fixed_k160000: kept=160000 {'chrFpp': 51.21753789709872, 'chrF': 54.0653544449977, 'BLEU': 22.47180926693969, 'n': 1012} (58.1s)
|
| 13 |
+
dumped 1012 hyps -> /root/runs/issue32_hy_lora_conditions_repro/dumps/r2_k160000/fixed_k160000.jsonl
|
| 14 |
+
[done] wrote /root/runs/issue32_hy_lora_conditions_repro/eval/r2_k160000_masks.json
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/eval_r8_k160000.log
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[load] tokenizer from tencent/HY-MT1.5-1.8B
|
| 2 |
+
[load] base model tencent/HY-MT1.5-1.8B
|
| 3 |
+
[load] adapter /root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/low_rank_lens/k160_r8/adapter
|
| 4 |
+
[merge] merging adapter in memory
|
| 5 |
+
[data] eval_rows=1012
|
| 6 |
+
[mean] building mean cache from 64 prompts
|
| 7 |
+
[eval] no-mask
|
| 8 |
+
The following generation flags are not valid and may be ignored: ['temperature', 'top_p', 'top_k']. Set `TRANSFORMERS_VERBOSITY=info` for more details.
|
| 9 |
+
no_mask: {'chrFpp': 53.682599818043684, 'chrF': 56.50196836912086, 'BLEU': 24.96002699511978, 'n': 1012}
|
| 10 |
+
dumped 1012 hyps -> /root/runs/issue32_hy_lora_conditions_repro/dumps/r8_k160000/no_mask.jsonl
|
| 11 |
+
[eval] mask=fixed_k160000 from /root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/masks/base_attr/relp_k160000.full.npz
|
| 12 |
+
fixed_k160000: kept=160000 {'chrFpp': 51.31005902924941, 'chrF': 54.10140531214584, 'BLEU': 22.6611180101592, 'n': 1012} (58.9s)
|
| 13 |
+
dumped 1012 hyps -> /root/runs/issue32_hy_lora_conditions_repro/dumps/r8_k160000/fixed_k160000.jsonl
|
| 14 |
+
[done] wrote /root/runs/issue32_hy_lora_conditions_repro/eval/r8_k160000_masks.json
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/runner.outer.log
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Download complete. Moving file to /root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/masks/base_attr/relp_k160000.full.npz
|
| 3 |
+
|
| 4 |
+
/root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions
|
| 5 |
+
[load] tokenizer from tencent/HY-MT1.5-1.8B
|
| 6 |
+
[load] base model tencent/HY-MT1.5-1.8B
|
| 7 |
+
[data] eval_rows=1012
|
| 8 |
+
[mean] building mean cache from 64 prompts
|
| 9 |
+
[eval] no-mask
|
| 10 |
+
The following generation flags are not valid and may be ignored: ['temperature', 'top_p', 'top_k']. Set `TRANSFORMERS_VERBOSITY=info` for more details.
|
| 11 |
+
no_mask: {'chrFpp': 54.1532647306025, 'chrF': 56.86009355829216, 'BLEU': 25.694258665462407, 'n': 1012}
|
| 12 |
+
dumped 1012 hyps -> /root/runs/issue32_hy_lora_conditions_repro/dumps/base_k160000/no_mask.jsonl
|
| 13 |
+
[eval] mask=fixed_k160000 from /root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/masks/base_attr/relp_k160000.full.npz
|
| 14 |
+
fixed_k160000: kept=160000 {'chrFpp': 46.967458026096146, 'chrF': 49.828345760177974, 'BLEU': 18.370739044824525, 'n': 1012} (56.1s)
|
| 15 |
+
dumped 1012 hyps -> /root/runs/issue32_hy_lora_conditions_repro/dumps/base_k160000/fixed_k160000.jsonl
|
| 16 |
+
[done] wrote /root/runs/issue32_hy_lora_conditions_repro/eval/base_k160000_masks.json
|
| 17 |
+
./issue32_hy_lora_conditions_repro_runner.sh: line 190: unexpected EOF while looking for matching `"'
|
| 18 |
+
[load] tokenizer from tencent/HY-MT1.5-1.8B
|
| 19 |
+
[load] tokenizer from tencent/HY-MT1.5-1.8B
|
| 20 |
+
[load] base model tencent/HY-MT1.5-1.8B
|
| 21 |
+
[load] base model tencent/HY-MT1.5-1.8B
|
| 22 |
+
[load] adapter /root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/low_rank_lens/k160_r2/adapter
|
| 23 |
+
[load] adapter /root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/low_rank_lens/k160_r8/adapter
|
| 24 |
+
[merge] merging adapter in memory
|
| 25 |
+
[data] eval_rows=1012
|
| 26 |
+
[mean] building mean cache from 64 prompts
|
| 27 |
+
[merge] merging adapter in memory
|
| 28 |
+
[data] eval_rows=1012
|
| 29 |
+
[mean] building mean cache from 64 prompts
|
| 30 |
+
[eval] no-mask
|
| 31 |
+
The following generation flags are not valid and may be ignored: ['temperature', 'top_p', 'top_k']. Set `TRANSFORMERS_VERBOSITY=info` for more details.
|
| 32 |
+
[eval] no-mask
|
| 33 |
+
The following generation flags are not valid and may be ignored: ['temperature', 'top_p', 'top_k']. Set `TRANSFORMERS_VERBOSITY=info` for more details.
|
| 34 |
+
no_mask: {'chrFpp': 54.2900767781082, 'chrF': 57.09539358850508, 'BLEU': 25.89748559065704, 'n': 1012}
|
| 35 |
+
dumped 1012 hyps -> /root/runs/issue32_hy_lora_conditions_repro/dumps/r2_k160000/no_mask.jsonl
|
| 36 |
+
[eval] mask=fixed_k160000 from /root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/masks/base_attr/relp_k160000.full.npz
|
| 37 |
+
no_mask: {'chrFpp': 53.682599818043684, 'chrF': 56.50196836912086, 'BLEU': 24.96002699511978, 'n': 1012}
|
| 38 |
+
dumped 1012 hyps -> /root/runs/issue32_hy_lora_conditions_repro/dumps/r8_k160000/no_mask.jsonl
|
| 39 |
+
[eval] mask=fixed_k160000 from /root/runs/issue32_hy_lora_conditions_repro/hy_lora_conditions/masks/base_attr/relp_k160000.full.npz
|
| 40 |
+
fixed_k160000: kept=160000 {'chrFpp': 51.21753789709872, 'chrF': 54.0653544449977, 'BLEU': 22.47180926693969, 'n': 1012} (58.1s)
|
| 41 |
+
dumped 1012 hyps -> /root/runs/issue32_hy_lora_conditions_repro/dumps/r2_k160000/fixed_k160000.jsonl
|
| 42 |
+
[done] wrote /root/runs/issue32_hy_lora_conditions_repro/eval/r2_k160000_masks.json
|
| 43 |
+
fixed_k160000: kept=160000 {'chrFpp': 51.31005902924941, 'chrF': 54.10140531214584, 'BLEU': 22.6611180101592, 'n': 1012} (58.9s)
|
| 44 |
+
dumped 1012 hyps -> /root/runs/issue32_hy_lora_conditions_repro/dumps/r8_k160000/fixed_k160000.jsonl
|
| 45 |
+
[done] wrote /root/runs/issue32_hy_lora_conditions_repro/eval/r8_k160000_masks.json
|
| 46 |
+
[load] 1012 rows from /root/runs/issue32_hy_lora_conditions_repro/dumps/r2_k160000/fixed_k160000.jsonl
|
| 47 |
+
[load] 1012 rows from /root/runs/issue32_hy_lora_conditions_repro/dumps/base_k160000/fixed_k160000.jsonl
|
| 48 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/torchmetrics/utilities/imports.py:23: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
|
| 49 |
+
from pkg_resources import DistributionNotFound, get_distribution
|
| 50 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/torchmetrics/utilities/imports.py:23: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
|
| 51 |
+
from pkg_resources import DistributionNotFound, get_distribution
|
| 52 |
+
|
| 53 |
+
[comet] loading Unbabel/XCOMET-XXL from /root/.cache/huggingface/hub/models--Unbabel--XCOMET-XXL/snapshots/873bac1b1c461e410c4a6e379f6790d3d1c7c214/checkpoints/model.ckpt
|
| 54 |
+
|
| 55 |
+
[comet] loading Unbabel/XCOMET-XXL from /root/.cache/huggingface/hub/models--Unbabel--XCOMET-XXL/snapshots/873bac1b1c461e410c4a6e379f6790d3d1c7c214/checkpoints/model.ckpt
|
| 56 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/core/saving.py:197: Found keys that are not in the model state dict but in the checkpoint: ['encoder.model.embeddings.position_ids']
|
| 57 |
+
[comet] scoring 1012 rows batch=8 chunk=128
|
| 58 |
+
GPU available: True (cuda), used: True
|
| 59 |
+
TPU available: False, using: 0 TPU cores
|
| 60 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 61 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 62 |
+
You are using a CUDA device ('NVIDIA RTX PRO 6000 Blackwell Server Edition') that has Tensor Cores. To properly utilize them, you should set `torch.set_float32_matmul_precision('medium' | 'high')` which will trade-off precision for performance. For more details, read https://pytorch.org/docs/stable/generated/torch.set_float32_matmul_precision.html#torch.set_float32_matmul_precision
|
| 63 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 64 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/core/saving.py:197: Found keys that are not in the model state dict but in the checkpoint: ['encoder.model.embeddings.position_ids']
|
| 65 |
+
[comet] scoring 1012 rows batch=8 chunk=128
|
| 66 |
+
GPU available: True (cuda), used: True
|
| 67 |
+
TPU available: False, using: 0 TPU cores
|
| 68 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 69 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 70 |
+
You are using a CUDA device ('NVIDIA RTX PRO 6000 Blackwell Server Edition') that has Tensor Cores. To properly utilize them, you should set `torch.set_float32_matmul_precision('medium' | 'high')` which will trade-off precision for performance. For more details, read https://pytorch.org/docs/stable/generated/torch.set_float32_matmul_precision.html#torch.set_float32_matmul_precision
|
| 71 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 72 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 73 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 74 |
+
[chunk] 128/1012 mean=0.8013 throughput=4.05 seg/s
|
| 75 |
+
GPU available: True (cuda), used: True
|
| 76 |
+
TPU available: False, using: 0 TPU cores
|
| 77 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 78 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 79 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 80 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 81 |
+
[chunk] 128/1012 mean=0.5670 throughput=3.87 seg/s
|
| 82 |
+
GPU available: True (cuda), used: True
|
| 83 |
+
TPU available: False, using: 0 TPU cores
|
| 84 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 85 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 86 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 87 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 88 |
+
[chunk] 256/1012 mean=0.8058 throughput=4.13 seg/s
|
| 89 |
+
GPU available: True (cuda), used: True
|
| 90 |
+
TPU available: False, using: 0 TPU cores
|
| 91 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 92 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 93 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 94 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 95 |
+
[chunk] 256/1012 mean=0.6006 throughput=3.91 seg/s
|
| 96 |
+
GPU available: True (cuda), used: True
|
| 97 |
+
TPU available: False, using: 0 TPU cores
|
| 98 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 99 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 100 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 101 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 102 |
+
[chunk] 384/1012 mean=0.8094 throughput=4.14 seg/s
|
| 103 |
+
GPU available: True (cuda), used: True
|
| 104 |
+
TPU available: False, using: 0 TPU cores
|
| 105 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 106 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 107 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 108 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 109 |
+
[chunk] 384/1012 mean=0.6058 throughput=3.92 seg/s
|
| 110 |
+
GPU available: True (cuda), used: True
|
| 111 |
+
TPU available: False, using: 0 TPU cores
|
| 112 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 113 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 114 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 115 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 116 |
+
[chunk] 512/1012 mean=0.8078 throughput=4.12 seg/s
|
| 117 |
+
GPU available: True (cuda), used: True
|
| 118 |
+
TPU available: False, using: 0 TPU cores
|
| 119 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 120 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 121 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 122 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 123 |
+
[chunk] 512/1012 mean=0.6068 throughput=4.03 seg/s
|
| 124 |
+
GPU available: True (cuda), used: True
|
| 125 |
+
TPU available: False, using: 0 TPU cores
|
| 126 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 127 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 128 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 129 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 130 |
+
[chunk] 640/1012 mean=0.8057 throughput=4.13 seg/s
|
| 131 |
+
GPU available: True (cuda), used: True
|
| 132 |
+
TPU available: False, using: 0 TPU cores
|
| 133 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 134 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 135 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 136 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 137 |
+
[chunk] 640/1012 mean=0.6155 throughput=4.01 seg/s
|
| 138 |
+
GPU available: True (cuda), used: True
|
| 139 |
+
TPU available: False, using: 0 TPU cores
|
| 140 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 141 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 142 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 143 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 144 |
+
[chunk] 768/1012 mean=0.8045 throughput=4.10 seg/s
|
| 145 |
+
GPU available: True (cuda), used: True
|
| 146 |
+
TPU available: False, using: 0 TPU cores
|
| 147 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 148 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 149 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 150 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 151 |
+
[chunk] 768/1012 mean=0.6166 throughput=3.97 seg/s
|
| 152 |
+
GPU available: True (cuda), used: True
|
| 153 |
+
TPU available: False, using: 0 TPU cores
|
| 154 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 155 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 156 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 157 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 158 |
+
[chunk] 896/1012 mean=0.8037 throughput=4.10 seg/s
|
| 159 |
+
GPU available: True (cuda), used: True
|
| 160 |
+
TPU available: False, using: 0 TPU cores
|
| 161 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 162 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 163 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 164 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 165 |
+
[chunk] 896/1012 mean=0.6255 throughput=3.96 seg/s
|
| 166 |
+
GPU available: True (cuda), used: True
|
| 167 |
+
TPU available: False, using: 0 TPU cores
|
| 168 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 169 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 170 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 171 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 172 |
+
[chunk] 1012/1012 mean=0.8031 throughput=4.06 seg/s
|
| 173 |
+
[save] scored pool -> /root/runs/issue32_hy_lora_conditions_repro/xcomet/r2_fixed_k160000.scored_pool.jsonl
|
| 174 |
+
[save] summary -> /root/runs/issue32_hy_lora_conditions_repro/xcomet/r2_fixed_k160000.json
|
| 175 |
+
[chunk] 1012/1012 mean=0.6278 throughput=3.91 seg/s
|
| 176 |
+
[save] scored pool -> /root/runs/issue32_hy_lora_conditions_repro/xcomet/base_fixed_k160000.scored_pool.jsonl
|
| 177 |
+
[save] summary -> /root/runs/issue32_hy_lora_conditions_repro/xcomet/base_fixed_k160000.json
|
| 178 |
+
[load] 1012 rows from /root/runs/issue32_hy_lora_conditions_repro/dumps/r8_k160000/fixed_k160000.jsonl
|
| 179 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/torchmetrics/utilities/imports.py:23: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
|
| 180 |
+
from pkg_resources import DistributionNotFound, get_distribution
|
| 181 |
+
|
| 182 |
+
[comet] loading Unbabel/XCOMET-XXL from /root/.cache/huggingface/hub/models--Unbabel--XCOMET-XXL/snapshots/873bac1b1c461e410c4a6e379f6790d3d1c7c214/checkpoints/model.ckpt
|
| 183 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/core/saving.py:197: Found keys that are not in the model state dict but in the checkpoint: ['encoder.model.embeddings.position_ids']
|
| 184 |
+
[comet] scoring 1012 rows batch=8 chunk=128
|
| 185 |
+
GPU available: True (cuda), used: True
|
| 186 |
+
TPU available: False, using: 0 TPU cores
|
| 187 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 188 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 189 |
+
You are using a CUDA device ('NVIDIA RTX PRO 6000 Blackwell Server Edition') that has Tensor Cores. To properly utilize them, you should set `torch.set_float32_matmul_precision('medium' | 'high')` which will trade-off precision for performance. For more details, read https://pytorch.org/docs/stable/generated/torch.set_float32_matmul_precision.html#torch.set_float32_matmul_precision
|
| 190 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 191 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 192 |
+
[chunk] 128/1012 mean=0.8164 throughput=4.01 seg/s
|
| 193 |
+
GPU available: True (cuda), used: True
|
| 194 |
+
TPU available: False, using: 0 TPU cores
|
| 195 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 196 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 197 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 198 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 199 |
+
[chunk] 256/1012 mean=0.8263 throughput=4.05 seg/s
|
| 200 |
+
GPU available: True (cuda), used: True
|
| 201 |
+
TPU available: False, using: 0 TPU cores
|
| 202 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 203 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 204 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 205 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 206 |
+
[chunk] 384/1012 mean=0.8262 throughput=4.06 seg/s
|
| 207 |
+
GPU available: True (cuda), used: True
|
| 208 |
+
TPU available: False, using: 0 TPU cores
|
| 209 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 210 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 211 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 212 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 213 |
+
[chunk] 512/1012 mean=0.8286 throughput=4.04 seg/s
|
| 214 |
+
GPU available: True (cuda), used: True
|
| 215 |
+
TPU available: False, using: 0 TPU cores
|
| 216 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 217 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 218 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 219 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 220 |
+
[chunk] 640/1012 mean=0.8205 throughput=4.07 seg/s
|
| 221 |
+
GPU available: True (cuda), used: True
|
| 222 |
+
TPU available: False, using: 0 TPU cores
|
| 223 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 224 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 225 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 226 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 227 |
+
[chunk] 768/1012 mean=0.8164 throughput=4.02 seg/s
|
| 228 |
+
GPU available: True (cuda), used: True
|
| 229 |
+
TPU available: False, using: 0 TPU cores
|
| 230 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 231 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 232 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 233 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 234 |
+
[chunk] 896/1012 mean=0.8150 throughput=4.03 seg/s
|
| 235 |
+
GPU available: True (cuda), used: True
|
| 236 |
+
TPU available: False, using: 0 TPU cores
|
| 237 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 238 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 239 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 240 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 241 |
+
[chunk] 1012/1012 mean=0.8146 throughput=3.98 seg/s
|
| 242 |
+
[save] scored pool -> /root/runs/issue32_hy_lora_conditions_repro/xcomet/r8_fixed_k160000.scored_pool.jsonl
|
| 243 |
+
[save] summary -> /root/runs/issue32_hy_lora_conditions_repro/xcomet/r8_fixed_k160000.json
|
| 244 |
+
{
|
| 245 |
+
"out_json": "/root/runs/issue32_hy_lora_conditions_repro/summaries/issue32_true28_repro_summary.json",
|
| 246 |
+
"out_md": "/root/runs/issue32_hy_lora_conditions_repro/summaries/issue32_true28_repro_summary.md",
|
| 247 |
+
"rows": 4
|
| 248 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/xcomet_base_fixed_k160000.log
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[load] 1012 rows from /root/runs/issue32_hy_lora_conditions_repro/dumps/base_k160000/fixed_k160000.jsonl
|
| 2 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/torchmetrics/utilities/imports.py:23: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
|
| 3 |
+
from pkg_resources import DistributionNotFound, get_distribution
|
| 4 |
+
|
| 5 |
+
[comet] loading Unbabel/XCOMET-XXL from /root/.cache/huggingface/hub/models--Unbabel--XCOMET-XXL/snapshots/873bac1b1c461e410c4a6e379f6790d3d1c7c214/checkpoints/model.ckpt
|
| 6 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/core/saving.py:197: Found keys that are not in the model state dict but in the checkpoint: ['encoder.model.embeddings.position_ids']
|
| 7 |
+
[comet] scoring 1012 rows batch=8 chunk=128
|
| 8 |
+
GPU available: True (cuda), used: True
|
| 9 |
+
TPU available: False, using: 0 TPU cores
|
| 10 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 11 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 12 |
+
You are using a CUDA device ('NVIDIA RTX PRO 6000 Blackwell Server Edition') that has Tensor Cores. To properly utilize them, you should set `torch.set_float32_matmul_precision('medium' | 'high')` which will trade-off precision for performance. For more details, read https://pytorch.org/docs/stable/generated/torch.set_float32_matmul_precision.html#torch.set_float32_matmul_precision
|
| 13 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 14 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 15 |
+
[chunk] 128/1012 mean=0.5670 throughput=3.87 seg/s
|
| 16 |
+
GPU available: True (cuda), used: True
|
| 17 |
+
TPU available: False, using: 0 TPU cores
|
| 18 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 19 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 20 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 21 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 22 |
+
[chunk] 256/1012 mean=0.6006 throughput=3.91 seg/s
|
| 23 |
+
GPU available: True (cuda), used: True
|
| 24 |
+
TPU available: False, using: 0 TPU cores
|
| 25 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 26 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 27 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 28 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 29 |
+
[chunk] 384/1012 mean=0.6058 throughput=3.92 seg/s
|
| 30 |
+
GPU available: True (cuda), used: True
|
| 31 |
+
TPU available: False, using: 0 TPU cores
|
| 32 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 33 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 34 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 35 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 36 |
+
[chunk] 512/1012 mean=0.6068 throughput=4.03 seg/s
|
| 37 |
+
GPU available: True (cuda), used: True
|
| 38 |
+
TPU available: False, using: 0 TPU cores
|
| 39 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 40 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 41 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 42 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 43 |
+
[chunk] 640/1012 mean=0.6155 throughput=4.01 seg/s
|
| 44 |
+
GPU available: True (cuda), used: True
|
| 45 |
+
TPU available: False, using: 0 TPU cores
|
| 46 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 47 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 48 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 49 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 50 |
+
[chunk] 768/1012 mean=0.6166 throughput=3.97 seg/s
|
| 51 |
+
GPU available: True (cuda), used: True
|
| 52 |
+
TPU available: False, using: 0 TPU cores
|
| 53 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 54 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 55 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 56 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 57 |
+
[chunk] 896/1012 mean=0.6255 throughput=3.96 seg/s
|
| 58 |
+
GPU available: True (cuda), used: True
|
| 59 |
+
TPU available: False, using: 0 TPU cores
|
| 60 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 61 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 62 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 63 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 64 |
+
[chunk] 1012/1012 mean=0.6278 throughput=3.91 seg/s
|
| 65 |
+
[save] scored pool -> /root/runs/issue32_hy_lora_conditions_repro/xcomet/base_fixed_k160000.scored_pool.jsonl
|
| 66 |
+
[save] summary -> /root/runs/issue32_hy_lora_conditions_repro/xcomet/base_fixed_k160000.json
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/xcomet_r2_fixed_k160000.log
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[load] 1012 rows from /root/runs/issue32_hy_lora_conditions_repro/dumps/r2_k160000/fixed_k160000.jsonl
|
| 2 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/torchmetrics/utilities/imports.py:23: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
|
| 3 |
+
from pkg_resources import DistributionNotFound, get_distribution
|
| 4 |
+
|
| 5 |
+
[comet] loading Unbabel/XCOMET-XXL from /root/.cache/huggingface/hub/models--Unbabel--XCOMET-XXL/snapshots/873bac1b1c461e410c4a6e379f6790d3d1c7c214/checkpoints/model.ckpt
|
| 6 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/core/saving.py:197: Found keys that are not in the model state dict but in the checkpoint: ['encoder.model.embeddings.position_ids']
|
| 7 |
+
[comet] scoring 1012 rows batch=8 chunk=128
|
| 8 |
+
GPU available: True (cuda), used: True
|
| 9 |
+
TPU available: False, using: 0 TPU cores
|
| 10 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 11 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 12 |
+
You are using a CUDA device ('NVIDIA RTX PRO 6000 Blackwell Server Edition') that has Tensor Cores. To properly utilize them, you should set `torch.set_float32_matmul_precision('medium' | 'high')` which will trade-off precision for performance. For more details, read https://pytorch.org/docs/stable/generated/torch.set_float32_matmul_precision.html#torch.set_float32_matmul_precision
|
| 13 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 14 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 15 |
+
[chunk] 128/1012 mean=0.8013 throughput=4.05 seg/s
|
| 16 |
+
GPU available: True (cuda), used: True
|
| 17 |
+
TPU available: False, using: 0 TPU cores
|
| 18 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 19 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 20 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 21 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 22 |
+
[chunk] 256/1012 mean=0.8058 throughput=4.13 seg/s
|
| 23 |
+
GPU available: True (cuda), used: True
|
| 24 |
+
TPU available: False, using: 0 TPU cores
|
| 25 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 26 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 27 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 28 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 29 |
+
[chunk] 384/1012 mean=0.8094 throughput=4.14 seg/s
|
| 30 |
+
GPU available: True (cuda), used: True
|
| 31 |
+
TPU available: False, using: 0 TPU cores
|
| 32 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 33 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 34 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 35 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 36 |
+
[chunk] 512/1012 mean=0.8078 throughput=4.12 seg/s
|
| 37 |
+
GPU available: True (cuda), used: True
|
| 38 |
+
TPU available: False, using: 0 TPU cores
|
| 39 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 40 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 41 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 42 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 43 |
+
[chunk] 640/1012 mean=0.8057 throughput=4.13 seg/s
|
| 44 |
+
GPU available: True (cuda), used: True
|
| 45 |
+
TPU available: False, using: 0 TPU cores
|
| 46 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 47 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 48 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 49 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 50 |
+
[chunk] 768/1012 mean=0.8045 throughput=4.10 seg/s
|
| 51 |
+
GPU available: True (cuda), used: True
|
| 52 |
+
TPU available: False, using: 0 TPU cores
|
| 53 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 54 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 55 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 56 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 57 |
+
[chunk] 896/1012 mean=0.8037 throughput=4.10 seg/s
|
| 58 |
+
GPU available: True (cuda), used: True
|
| 59 |
+
TPU available: False, using: 0 TPU cores
|
| 60 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 61 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 62 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [1]
|
| 63 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 64 |
+
[chunk] 1012/1012 mean=0.8031 throughput=4.06 seg/s
|
| 65 |
+
[save] scored pool -> /root/runs/issue32_hy_lora_conditions_repro/xcomet/r2_fixed_k160000.scored_pool.jsonl
|
| 66 |
+
[save] summary -> /root/runs/issue32_hy_lora_conditions_repro/xcomet/r2_fixed_k160000.json
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/logs/xcomet_r8_fixed_k160000.log
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[load] 1012 rows from /root/runs/issue32_hy_lora_conditions_repro/dumps/r8_k160000/fixed_k160000.jsonl
|
| 2 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/torchmetrics/utilities/imports.py:23: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
|
| 3 |
+
from pkg_resources import DistributionNotFound, get_distribution
|
| 4 |
+
|
| 5 |
+
[comet] loading Unbabel/XCOMET-XXL from /root/.cache/huggingface/hub/models--Unbabel--XCOMET-XXL/snapshots/873bac1b1c461e410c4a6e379f6790d3d1c7c214/checkpoints/model.ckpt
|
| 6 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/core/saving.py:197: Found keys that are not in the model state dict but in the checkpoint: ['encoder.model.embeddings.position_ids']
|
| 7 |
+
[comet] scoring 1012 rows batch=8 chunk=128
|
| 8 |
+
GPU available: True (cuda), used: True
|
| 9 |
+
TPU available: False, using: 0 TPU cores
|
| 10 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 11 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 12 |
+
You are using a CUDA device ('NVIDIA RTX PRO 6000 Blackwell Server Edition') that has Tensor Cores. To properly utilize them, you should set `torch.set_float32_matmul_precision('medium' | 'high')` which will trade-off precision for performance. For more details, read https://pytorch.org/docs/stable/generated/torch.set_float32_matmul_precision.html#torch.set_float32_matmul_precision
|
| 13 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 14 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 15 |
+
[chunk] 128/1012 mean=0.8164 throughput=4.01 seg/s
|
| 16 |
+
GPU available: True (cuda), used: True
|
| 17 |
+
TPU available: False, using: 0 TPU cores
|
| 18 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 19 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 20 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 21 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 22 |
+
[chunk] 256/1012 mean=0.8263 throughput=4.05 seg/s
|
| 23 |
+
GPU available: True (cuda), used: True
|
| 24 |
+
TPU available: False, using: 0 TPU cores
|
| 25 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 26 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 27 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 28 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 29 |
+
[chunk] 384/1012 mean=0.8262 throughput=4.06 seg/s
|
| 30 |
+
GPU available: True (cuda), used: True
|
| 31 |
+
TPU available: False, using: 0 TPU cores
|
| 32 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 33 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 34 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 35 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 36 |
+
[chunk] 512/1012 mean=0.8286 throughput=4.04 seg/s
|
| 37 |
+
GPU available: True (cuda), used: True
|
| 38 |
+
TPU available: False, using: 0 TPU cores
|
| 39 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 40 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 41 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 42 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 43 |
+
[chunk] 640/1012 mean=0.8205 throughput=4.07 seg/s
|
| 44 |
+
GPU available: True (cuda), used: True
|
| 45 |
+
TPU available: False, using: 0 TPU cores
|
| 46 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 47 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 48 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 49 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 50 |
+
[chunk] 768/1012 mean=0.8164 throughput=4.02 seg/s
|
| 51 |
+
GPU available: True (cuda), used: True
|
| 52 |
+
TPU available: False, using: 0 TPU cores
|
| 53 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 54 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 55 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 56 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 57 |
+
[chunk] 896/1012 mean=0.8150 throughput=4.03 seg/s
|
| 58 |
+
GPU available: True (cuda), used: True
|
| 59 |
+
TPU available: False, using: 0 TPU cores
|
| 60 |
+
💡 Tip: For seamless cloud logging and experiment tracking, try installing [litlogger](https://pypi.org/project/litlogger/) to enable LitLogger, which logs metrics and artifacts automatically to the Lightning Experiments platform.
|
| 61 |
+
💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.
|
| 62 |
+
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
| 63 |
+
/root/work/circuit-shotting/.venv/lib/python3.12/site-packages/pytorch_lightning/utilities/_pytree.py:21: `isinstance(treespec, LeafSpec)` is deprecated, use `isinstance(treespec, TreeSpec) and treespec.is_leaf()` instead.
|
| 64 |
+
[chunk] 1012/1012 mean=0.8146 throughput=3.98 seg/s
|
| 65 |
+
[save] scored pool -> /root/runs/issue32_hy_lora_conditions_repro/xcomet/r8_fixed_k160000.scored_pool.jsonl
|
| 66 |
+
[save] summary -> /root/runs/issue32_hy_lora_conditions_repro/xcomet/r8_fixed_k160000.json
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/manifest.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"issue": 32,
|
| 3 |
+
"task": "True issue #28 EN->PT low-rank LoRA k=160k reproduction",
|
| 4 |
+
"run_root": "/root/runs/issue32_hy_lora_conditions_repro",
|
| 5 |
+
"upload_prefix": "issue32_hy_lora_conditions_repro_20260513T141918Z",
|
| 6 |
+
"source_artifact_repo": "Occupying-Mars/hy-lora-conditions",
|
| 7 |
+
"source_commit": "11a0d84",
|
| 8 |
+
"summary": {
|
| 9 |
+
"issue": 32,
|
| 10 |
+
"run_root": "/root/runs/issue32_hy_lora_conditions_repro",
|
| 11 |
+
"k": 160000,
|
| 12 |
+
"recorded_issue28": {
|
| 13 |
+
"base_fixed_k160000": 0.6300551002,
|
| 14 |
+
"r2_fixed_k160000": 0.7655800197,
|
| 15 |
+
"r4_fixed_k160000": 0.7979727848,
|
| 16 |
+
"r8_fixed_k160000": 0.8121489377
|
| 17 |
+
},
|
| 18 |
+
"rows": [
|
| 19 |
+
{
|
| 20 |
+
"condition": "base",
|
| 21 |
+
"xcomet": 0.627828843148035,
|
| 22 |
+
"recorded_issue28_xcomet": 0.6300551002,
|
| 23 |
+
"delta_vs_recorded": -0.002226257051964997,
|
| 24 |
+
"masked_chrFpp": 46.967458026096146,
|
| 25 |
+
"masked_chrF": 49.828345760177974,
|
| 26 |
+
"masked_BLEU": 18.370739044824525,
|
| 27 |
+
"no_mask_chrFpp": 54.1532647306025
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"condition": "r2",
|
| 31 |
+
"xcomet": 0.8031356554964314,
|
| 32 |
+
"recorded_issue28_xcomet": 0.7655800197,
|
| 33 |
+
"delta_vs_recorded": 0.0375556357964314,
|
| 34 |
+
"masked_chrFpp": 51.21753789709872,
|
| 35 |
+
"masked_chrF": 54.0653544449977,
|
| 36 |
+
"masked_BLEU": 22.47180926693969,
|
| 37 |
+
"no_mask_chrFpp": 54.2900767781082
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"condition": "r4",
|
| 41 |
+
"xcomet": null,
|
| 42 |
+
"recorded_issue28_xcomet": 0.7979727848,
|
| 43 |
+
"delta_vs_recorded": null,
|
| 44 |
+
"masked_chrFpp": null,
|
| 45 |
+
"masked_chrF": null,
|
| 46 |
+
"masked_BLEU": null,
|
| 47 |
+
"no_mask_chrFpp": null
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"condition": "r8",
|
| 51 |
+
"xcomet": 0.8145537328549289,
|
| 52 |
+
"recorded_issue28_xcomet": 0.8121489377,
|
| 53 |
+
"delta_vs_recorded": 0.0024047951549289737,
|
| 54 |
+
"masked_chrFpp": 51.31005902924941,
|
| 55 |
+
"masked_chrF": 54.10140531214584,
|
| 56 |
+
"masked_BLEU": 22.6611180101592,
|
| 57 |
+
"no_mask_chrFpp": 53.682599818043684
|
| 58 |
+
}
|
| 59 |
+
],
|
| 60 |
+
"observed_ranking": [
|
| 61 |
+
"r8",
|
| 62 |
+
"r2",
|
| 63 |
+
"base"
|
| 64 |
+
],
|
| 65 |
+
"target_ranking": [
|
| 66 |
+
"r8",
|
| 67 |
+
"r4",
|
| 68 |
+
"r2",
|
| 69 |
+
"base"
|
| 70 |
+
],
|
| 71 |
+
"strongest_observed": {
|
| 72 |
+
"condition": "r8",
|
| 73 |
+
"xcomet": 0.8145537328549289,
|
| 74 |
+
"recorded_issue28_xcomet": 0.8121489377,
|
| 75 |
+
"delta_vs_recorded": 0.0024047951549289737,
|
| 76 |
+
"masked_chrFpp": 51.31005902924941,
|
| 77 |
+
"masked_chrF": 54.10140531214584,
|
| 78 |
+
"masked_BLEU": 22.6611180101592,
|
| 79 |
+
"no_mask_chrFpp": 53.682599818043684
|
| 80 |
+
}
|
| 81 |
+
},
|
| 82 |
+
"file_count": 60,
|
| 83 |
+
"weights_policy": "Includes PEFT adapters, but excludes upstream HY-MT/XCOMET weights, HF caches, merged full model checkpoints, API keys, and service tokens."
|
| 84 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/notes/issue32_true28_repro.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue 32 True Issue 28 Reproduction Runbook
|
| 2 |
+
|
| 3 |
+
This run reconstructs the strongest recorded issue #28 EN->PT result from the
|
| 4 |
+
issue #23/#24/#28 science trail because the exact #28 adapter and mask bundle was
|
| 5 |
+
not initially available.
|
| 6 |
+
|
| 7 |
+
Update: the preserved adapter/mask bundle is now known to live at
|
| 8 |
+
`Occupying-Mars/hy-lora-conditions`. That repo should be treated as the source
|
| 9 |
+
of truth for reproducing #28 before any regenerated approximation. Its manifest
|
| 10 |
+
contains `low_rank_lens/k160_r2`, `low_rank_lens/k160_r8`, and
|
| 11 |
+
`masks/base_attr/relp_k160000.full.npz`; it does not list a
|
| 12 |
+
`low_rank_lens/k160_r4` adapter.
|
| 13 |
+
|
| 14 |
+
The reproduction target is the issue #28 XCOMET table:
|
| 15 |
+
|
| 16 |
+
| condition | k | XCOMET |
|
| 17 |
+
|---|---:|---:|
|
| 18 |
+
| base fixed mask | 160000 | `0.6300551002` |
|
| 19 |
+
| r2 LoRA fixed mask | 160000 | `0.7655800197` |
|
| 20 |
+
| r4 LoRA fixed mask | 160000 | `0.7979727848` |
|
| 21 |
+
| r8 LoRA fixed mask | 160000 | `0.8121489377` |
|
| 22 |
+
|
| 23 |
+
The preserved-artifact replay uses:
|
| 24 |
+
|
| 25 |
+
- source repo: `Occupying-Mars/hy-lora-conditions`
|
| 26 |
+
- base model: `tencent/HY-MT1.5-1.8B`
|
| 27 |
+
- held-out eval: NTREX EN->PT, 1,012 rows
|
| 28 |
+
- mask: preserved `masks/base_attr/relp_k160000.full.npz`
|
| 29 |
+
- available low-rank lens adapters: `low_rank_lens/k160_r2/adapter`,
|
| 30 |
+
`low_rank_lens/k160_r8/adapter`
|
| 31 |
+
- replay runner: `issue32_hy_lora_conditions_repro_runner.sh`
|
| 32 |
+
|
| 33 |
+
The regenerated fallback setup follows the prior issue trail:
|
| 34 |
+
|
| 35 |
+
- base model: `tencent/HY-MT1.5-1.8B`
|
| 36 |
+
- train/calibration source: FLORES EN->PT devtest, 1,012 rows
|
| 37 |
+
- train targets: unmasked HY-MT teacher hypotheses in `model_hyp`
|
| 38 |
+
- attribution source: FLORES EN->PT dev inside `attribute_translation.py`
|
| 39 |
+
- held-out eval: NTREX EN->PT, 1,012 rows
|
| 40 |
+
- mask: ReLP `relp_k160000.full.npz`, `n_attr=200`, `first_token_logit`
|
| 41 |
+
- lesion: mean ablation at MLP `down_proj` input, selected channels live
|
| 42 |
+
- rescue: all-linear rsLoRA, ranks `2,4,8`, `alpha=2*r`
|
| 43 |
+
- objective: masked KL to unmasked teacher logits + CE on teacher hypotheses +
|
| 44 |
+
small unmasked KL guardrail
|
| 45 |
+
|
| 46 |
+
The runner intentionally avoids saving merged full model checkpoints. It keeps
|
| 47 |
+
PEFT adapters and evaluates them by merging into memory, so backups do not
|
| 48 |
+
duplicate upstream HY-MT weights.
|
| 49 |
+
|
| 50 |
+
Primary files:
|
| 51 |
+
|
| 52 |
+
- `configs/issue32_true28_repro_enpt.json`
|
| 53 |
+
- `evaluate_translation_adapter_masks.py`
|
| 54 |
+
- `issue32_true28_repro_runner.sh`
|
| 55 |
+
- `summarize_issue32_true28_repro.py`
|
| 56 |
+
- `scripts/package_issue32_true28_repro_hf_upload.sh`
|
| 57 |
+
|
| 58 |
+
Interpretation:
|
| 59 |
+
|
| 60 |
+
- A strong reproduction should recover the issue #28 ordering
|
| 61 |
+
`r8 > r4 > r2 > base` and land near the recorded r8 XCOMET frontier.
|
| 62 |
+
- If the reconstructed base/mask anchor is far away, the run should be treated
|
| 63 |
+
as a fresh #28-style reproduction attempt, not a byte-identical replay.
|
| 64 |
+
- Only after this table is reproduced should the region-student contract be
|
| 65 |
+
compared against the strongest r8 anchor.
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/scripts/evaluate_translation_adapter_masks.py
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Evaluate HY-MT EN->PT translation masks with an optional PEFT adapter.
|
| 3 |
+
|
| 4 |
+
This is the issue #28 reproduction evaluator. It mirrors
|
| 5 |
+
evaluate_translation_masks.py, but loads a base model plus a saved LoRA adapter
|
| 6 |
+
and merges the adapter in memory before generation. That preserves the original
|
| 7 |
+
LoRA rescue inference contract without writing full merged model checkpoints to
|
| 8 |
+
disk.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from __future__ import annotations
|
| 12 |
+
|
| 13 |
+
import argparse
|
| 14 |
+
import json
|
| 15 |
+
import time
|
| 16 |
+
from pathlib import Path
|
| 17 |
+
from typing import Dict, List, Tuple
|
| 18 |
+
|
| 19 |
+
import numpy as np
|
| 20 |
+
import sacrebleu
|
| 21 |
+
import torch
|
| 22 |
+
from peft import PeftModel
|
| 23 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 24 |
+
|
| 25 |
+
from src.circuit_tracing.ablation import MeanCache
|
| 26 |
+
from translation_io import (
|
| 27 |
+
DEFAULT_PROMPT_STYLE,
|
| 28 |
+
DEFAULT_TARGET_LANGUAGE,
|
| 29 |
+
Pair,
|
| 30 |
+
apply_chat,
|
| 31 |
+
generate_translations,
|
| 32 |
+
load_flores_devtest_any,
|
| 33 |
+
)
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def parse_args() -> argparse.Namespace:
|
| 37 |
+
p = argparse.ArgumentParser(description=__doc__)
|
| 38 |
+
p.add_argument("--base-model", required=True)
|
| 39 |
+
p.add_argument("--adapter", default=None,
|
| 40 |
+
help="Optional PEFT adapter dir. If set, it is merged in memory.")
|
| 41 |
+
p.add_argument("--mask", action="append", default=[], metavar="NAME:PATH")
|
| 42 |
+
p.add_argument("--out", required=True)
|
| 43 |
+
p.add_argument("--device", default="cuda")
|
| 44 |
+
p.add_argument("--dtype", default="bfloat16",
|
| 45 |
+
choices=["float32", "float16", "bfloat16"])
|
| 46 |
+
p.add_argument("--target-language", default=DEFAULT_TARGET_LANGUAGE)
|
| 47 |
+
p.add_argument("--prompt-style", default=DEFAULT_PROMPT_STYLE,
|
| 48 |
+
choices=["hy_mt", "sarvam"])
|
| 49 |
+
p.add_argument("--src-lang", default="eng_Latn")
|
| 50 |
+
p.add_argument("--tgt-lang", default="por_Latn")
|
| 51 |
+
p.add_argument("--input-jsonl", default=None)
|
| 52 |
+
p.add_argument("--n-calib", type=int, default=64)
|
| 53 |
+
p.add_argument("--max-examples", type=int, default=None)
|
| 54 |
+
p.add_argument("--batch-size", type=int, default=8)
|
| 55 |
+
p.add_argument("--max-new-tokens", type=int, default=384)
|
| 56 |
+
p.add_argument("--include-no-mask", action="store_true")
|
| 57 |
+
p.add_argument("--dump-hyps-dir", default=None)
|
| 58 |
+
p.add_argument("--dump-category", default="flores_devtest")
|
| 59 |
+
p.add_argument("--dump-tag", default="heldout")
|
| 60 |
+
return p.parse_args()
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def text_config(model):
|
| 64 |
+
return getattr(model.config, "text_config", model.config)
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
def load_mask_npz(path: Path, n_layers: int, d_ffn: int) -> Dict[int, torch.Tensor]:
|
| 68 |
+
arr = np.load(path)
|
| 69 |
+
out: Dict[int, torch.Tensor] = {}
|
| 70 |
+
for layer in range(n_layers):
|
| 71 |
+
key = f"layer_{layer}"
|
| 72 |
+
if key in arr:
|
| 73 |
+
out[layer] = torch.from_numpy(arr[key]).bool()
|
| 74 |
+
else:
|
| 75 |
+
out[layer] = torch.zeros(d_ffn, dtype=torch.bool)
|
| 76 |
+
return out
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
def parse_mask_specs(values: List[str]) -> List[Tuple[str, Path]]:
|
| 80 |
+
specs = []
|
| 81 |
+
for value in values:
|
| 82 |
+
if ":" not in value:
|
| 83 |
+
raise ValueError(f"--mask must be NAME:PATH, got {value!r}")
|
| 84 |
+
name, raw = value.split(":", 1)
|
| 85 |
+
specs.append((name, Path(raw)))
|
| 86 |
+
return specs
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def decoder_root(model):
|
| 90 |
+
cur = model
|
| 91 |
+
for _ in range(8):
|
| 92 |
+
if hasattr(cur, "layers"):
|
| 93 |
+
return cur
|
| 94 |
+
for attr in ("model", "language_model", "base_model"):
|
| 95 |
+
nxt = getattr(cur, attr, None)
|
| 96 |
+
if nxt is not None and nxt is not cur:
|
| 97 |
+
cur = nxt
|
| 98 |
+
break
|
| 99 |
+
else:
|
| 100 |
+
break
|
| 101 |
+
raise AttributeError("could not locate decoder .layers")
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
def install_mask_hooks(model, keep_per_layer, base_per_layer):
|
| 105 |
+
hooks = []
|
| 106 |
+
root = decoder_root(model)
|
| 107 |
+
for layer_idx, layer in enumerate(root.layers):
|
| 108 |
+
keep = keep_per_layer[layer_idx]
|
| 109 |
+
base = base_per_layer[layer_idx]
|
| 110 |
+
|
| 111 |
+
def make(keep, base):
|
| 112 |
+
def hook_fn(module, args):
|
| 113 |
+
act = args[0]
|
| 114 |
+
modified = act * keep + base * (1.0 - keep)
|
| 115 |
+
return (modified,) + args[1:]
|
| 116 |
+
return hook_fn
|
| 117 |
+
|
| 118 |
+
hooks.append(layer.mlp.down_proj.register_forward_pre_hook(make(keep, base)))
|
| 119 |
+
return hooks
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
def evaluate_with_mask(model, tokenizer, sources, refs, *,
|
| 123 |
+
n_layers, d_ffn, mask, mean_cache,
|
| 124 |
+
device, dtype, batch_size, max_new_tokens,
|
| 125 |
+
target_language, prompt_style=DEFAULT_PROMPT_STYLE):
|
| 126 |
+
keep_per_layer = {}
|
| 127 |
+
for layer_idx in range(n_layers):
|
| 128 |
+
keep = torch.zeros(d_ffn, device=device, dtype=dtype)
|
| 129 |
+
if mask is not None:
|
| 130 |
+
mask_layer = mask[layer_idx].to(device)
|
| 131 |
+
keep[mask_layer] = 1.0
|
| 132 |
+
keep_per_layer[layer_idx] = keep.view(1, 1, -1)
|
| 133 |
+
|
| 134 |
+
base_per_layer = {}
|
| 135 |
+
for layer_idx in range(n_layers):
|
| 136 |
+
mu = mean_cache.means.get(layer_idx)
|
| 137 |
+
if mu is None:
|
| 138 |
+
base_per_layer[layer_idx] = torch.zeros(1, 1, d_ffn, device=device, dtype=dtype)
|
| 139 |
+
else:
|
| 140 |
+
base_per_layer[layer_idx] = mu.to(device=device, dtype=dtype).view(1, 1, -1)
|
| 141 |
+
|
| 142 |
+
hooks = install_mask_hooks(model, keep_per_layer, base_per_layer) if mask is not None else []
|
| 143 |
+
try:
|
| 144 |
+
hyps = generate_translations(
|
| 145 |
+
model, tokenizer, sources,
|
| 146 |
+
target_language=target_language,
|
| 147 |
+
prompt_style=prompt_style,
|
| 148 |
+
batch_size=batch_size,
|
| 149 |
+
max_new_tokens=max_new_tokens,
|
| 150 |
+
do_sample=False,
|
| 151 |
+
device=device,
|
| 152 |
+
)
|
| 153 |
+
finally:
|
| 154 |
+
for hook in hooks:
|
| 155 |
+
hook.remove()
|
| 156 |
+
|
| 157 |
+
chrfpp = sacrebleu.corpus_chrf(hyps, [refs], word_order=2).score
|
| 158 |
+
chrf = sacrebleu.corpus_chrf(hyps, [refs], word_order=0).score
|
| 159 |
+
bleu = sacrebleu.corpus_bleu(hyps, [refs]).score
|
| 160 |
+
return {"chrFpp": chrfpp, "chrF": chrf, "BLEU": bleu, "n": len(hyps)}, hyps
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
def load_pairs(args: argparse.Namespace) -> list[Pair]:
|
| 164 |
+
if args.input_jsonl:
|
| 165 |
+
pairs = []
|
| 166 |
+
with open(args.input_jsonl) as fh:
|
| 167 |
+
for line in fh:
|
| 168 |
+
if not line.strip():
|
| 169 |
+
continue
|
| 170 |
+
row = json.loads(line)
|
| 171 |
+
pairs.append(Pair(src=row["en"], tgt=row.get("pt", "")))
|
| 172 |
+
if args.max_examples and len(pairs) >= args.max_examples:
|
| 173 |
+
break
|
| 174 |
+
return pairs
|
| 175 |
+
return load_flores_devtest_any(
|
| 176 |
+
src_lang=args.src_lang,
|
| 177 |
+
tgt_lang=args.tgt_lang,
|
| 178 |
+
max_examples=args.max_examples,
|
| 179 |
+
)
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
def main() -> None:
|
| 183 |
+
args = parse_args()
|
| 184 |
+
out_path = Path(args.out)
|
| 185 |
+
out_path.parent.mkdir(parents=True, exist_ok=True)
|
| 186 |
+
dtype = {"float32": torch.float32, "float16": torch.float16,
|
| 187 |
+
"bfloat16": torch.bfloat16}[args.dtype]
|
| 188 |
+
|
| 189 |
+
print(f"[load] tokenizer from {args.base_model}", flush=True)
|
| 190 |
+
tokenizer = AutoTokenizer.from_pretrained(args.base_model)
|
| 191 |
+
print(f"[load] base model {args.base_model}", flush=True)
|
| 192 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 193 |
+
args.base_model, dtype=dtype, attn_implementation="eager",
|
| 194 |
+
).to(args.device).eval()
|
| 195 |
+
if args.adapter:
|
| 196 |
+
print(f"[load] adapter {args.adapter}", flush=True)
|
| 197 |
+
model = PeftModel.from_pretrained(model, args.adapter)
|
| 198 |
+
print("[merge] merging adapter in memory", flush=True)
|
| 199 |
+
model = model.merge_and_unload().to(args.device).eval()
|
| 200 |
+
|
| 201 |
+
cfg = text_config(model)
|
| 202 |
+
n_layers = int(cfg.num_hidden_layers)
|
| 203 |
+
d_ffn = int(cfg.intermediate_size)
|
| 204 |
+
pairs = load_pairs(args)
|
| 205 |
+
sources = [p.src for p in pairs]
|
| 206 |
+
refs = [p.tgt for p in pairs]
|
| 207 |
+
print(f"[data] eval_rows={len(pairs)}", flush=True)
|
| 208 |
+
|
| 209 |
+
print(f"[mean] building mean cache from {args.n_calib} prompts", flush=True)
|
| 210 |
+
calib_ids = []
|
| 211 |
+
for src in sources[: args.n_calib]:
|
| 212 |
+
prompt = apply_chat(
|
| 213 |
+
tokenizer, src,
|
| 214 |
+
target_language=args.target_language,
|
| 215 |
+
add_generation_prompt=True,
|
| 216 |
+
prompt_style=args.prompt_style,
|
| 217 |
+
)
|
| 218 |
+
ids = tokenizer(prompt, return_tensors="pt", add_special_tokens=False).input_ids
|
| 219 |
+
calib_ids.append(ids)
|
| 220 |
+
mean_cache = MeanCache.build(model, calib_ids, device=args.device)
|
| 221 |
+
mean_cache = MeanCache(means={k: v.to(dtype=dtype) for k, v in mean_cache.means.items()})
|
| 222 |
+
|
| 223 |
+
dump_dir = Path(args.dump_hyps_dir) if args.dump_hyps_dir else None
|
| 224 |
+
if dump_dir is not None:
|
| 225 |
+
dump_dir.mkdir(parents=True, exist_ok=True)
|
| 226 |
+
|
| 227 |
+
def dump_block(block_name: str, hyps: List[str]) -> None:
|
| 228 |
+
if dump_dir is None:
|
| 229 |
+
return
|
| 230 |
+
path = dump_dir / f"{block_name}.jsonl"
|
| 231 |
+
with path.open("w") as fh:
|
| 232 |
+
for idx, (src, ref, hyp) in enumerate(zip(sources, refs, hyps)):
|
| 233 |
+
fh.write(json.dumps({
|
| 234 |
+
"id": idx,
|
| 235 |
+
"en": src,
|
| 236 |
+
"pt": ref,
|
| 237 |
+
"model_hyp": hyp,
|
| 238 |
+
"category": args.dump_category,
|
| 239 |
+
"tag": args.dump_tag,
|
| 240 |
+
"mask_name": block_name,
|
| 241 |
+
"adapter": args.adapter,
|
| 242 |
+
}, ensure_ascii=False) + "\n")
|
| 243 |
+
print(f" dumped {len(hyps)} hyps -> {path}", flush=True)
|
| 244 |
+
|
| 245 |
+
results = {}
|
| 246 |
+
if args.include_no_mask:
|
| 247 |
+
print("[eval] no-mask", flush=True)
|
| 248 |
+
scores, hyps = evaluate_with_mask(
|
| 249 |
+
model, tokenizer, sources, refs,
|
| 250 |
+
n_layers=n_layers, d_ffn=d_ffn,
|
| 251 |
+
mask=None, mean_cache=mean_cache,
|
| 252 |
+
device=args.device, dtype=dtype,
|
| 253 |
+
batch_size=args.batch_size,
|
| 254 |
+
max_new_tokens=args.max_new_tokens,
|
| 255 |
+
target_language=args.target_language,
|
| 256 |
+
prompt_style=args.prompt_style,
|
| 257 |
+
)
|
| 258 |
+
print(f" no_mask: {scores}", flush=True)
|
| 259 |
+
results["no_mask"] = {"scores": scores, "kept": -1}
|
| 260 |
+
dump_block("no_mask", hyps)
|
| 261 |
+
|
| 262 |
+
for name, mask_path in parse_mask_specs(args.mask):
|
| 263 |
+
print(f"[eval] mask={name} from {mask_path}", flush=True)
|
| 264 |
+
mask = load_mask_npz(mask_path, n_layers, d_ffn)
|
| 265 |
+
kept = sum(int(m.sum().item()) for m in mask.values())
|
| 266 |
+
t0 = time.time()
|
| 267 |
+
scores, hyps = evaluate_with_mask(
|
| 268 |
+
model, tokenizer, sources, refs,
|
| 269 |
+
n_layers=n_layers, d_ffn=d_ffn,
|
| 270 |
+
mask=mask, mean_cache=mean_cache,
|
| 271 |
+
device=args.device, dtype=dtype,
|
| 272 |
+
batch_size=args.batch_size,
|
| 273 |
+
max_new_tokens=args.max_new_tokens,
|
| 274 |
+
target_language=args.target_language,
|
| 275 |
+
prompt_style=args.prompt_style,
|
| 276 |
+
)
|
| 277 |
+
elapsed = time.time() - t0
|
| 278 |
+
print(f" {name}: kept={kept} {scores} ({elapsed:.1f}s)", flush=True)
|
| 279 |
+
results[name] = {
|
| 280 |
+
"scores": scores,
|
| 281 |
+
"kept": kept,
|
| 282 |
+
"mask_path": str(mask_path),
|
| 283 |
+
"elapsed_s": elapsed,
|
| 284 |
+
}
|
| 285 |
+
dump_block(name, hyps)
|
| 286 |
+
|
| 287 |
+
with out_path.open("w") as f:
|
| 288 |
+
json.dump({
|
| 289 |
+
"base_model": args.base_model,
|
| 290 |
+
"adapter": args.adapter,
|
| 291 |
+
"n_layers": n_layers,
|
| 292 |
+
"d_ffn": d_ffn,
|
| 293 |
+
"n_examples": len(pairs),
|
| 294 |
+
"n_calib": args.n_calib,
|
| 295 |
+
"results": results,
|
| 296 |
+
}, f, indent=2, ensure_ascii=False)
|
| 297 |
+
print(f"[done] wrote {out_path}", flush=True)
|
| 298 |
+
|
| 299 |
+
|
| 300 |
+
if __name__ == "__main__":
|
| 301 |
+
main()
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/scripts/issue32_hy_lora_conditions_repro_runner.sh
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Replay preserved issue #28 EN->PT LoRA-lens artifacts from HF.
|
| 3 |
+
set -euo pipefail
|
| 4 |
+
|
| 5 |
+
REPO_DIR="${REPO_DIR:-/root/work/circuit-shotting}"
|
| 6 |
+
cd "$REPO_DIR"
|
| 7 |
+
source .venv/bin/activate
|
| 8 |
+
|
| 9 |
+
MODEL="${MODEL:-tencent/HY-MT1.5-1.8B}"
|
| 10 |
+
ARTIFACT_REPO="${ARTIFACT_REPO:-Occupying-Mars/hy-lora-conditions}"
|
| 11 |
+
RUN_ROOT="${RUN_ROOT:-/root/runs/issue32_hy_lora_conditions_repro}"
|
| 12 |
+
ARTIFACT_DIR="${ARTIFACT_DIR:-$RUN_ROOT/hy_lora_conditions}"
|
| 13 |
+
NTREX_JSONL="${NTREX_JSONL:-/root/runs/ntrex_eval/ntrex_en2pt.jsonl}"
|
| 14 |
+
K="${K:-160000}"
|
| 15 |
+
SHORT_K="${SHORT_K:-$((K / 1000))}"
|
| 16 |
+
RANKS="${RANKS:-2 8}"
|
| 17 |
+
GPU_LIST="${GPU_LIST:-0}"
|
| 18 |
+
SCORE_AFTER="${SCORE_AFTER:-1}"
|
| 19 |
+
UPLOAD_AFTER="${UPLOAD_AFTER:-0}"
|
| 20 |
+
|
| 21 |
+
mkdir -p "$RUN_ROOT"/{logs,eval,dumps,xcomet,summaries} "$ARTIFACT_DIR"
|
| 22 |
+
|
| 23 |
+
pick_gpu() {
|
| 24 |
+
local idx="$1"
|
| 25 |
+
python - "$GPU_LIST" "$idx" <<'PY'
|
| 26 |
+
import sys
|
| 27 |
+
gpus=[g for g in sys.argv[1].replace(",", " ").split() if g]
|
| 28 |
+
if not gpus:
|
| 29 |
+
gpus=["0"]
|
| 30 |
+
print(gpus[int(sys.argv[2]) % len(gpus)])
|
| 31 |
+
PY
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
gpu_count() {
|
| 35 |
+
python - "$GPU_LIST" <<'PY'
|
| 36 |
+
import sys
|
| 37 |
+
gpus=[g for g in sys.argv[1].replace(",", " ").split() if g]
|
| 38 |
+
print(max(len(gpus), 1))
|
| 39 |
+
PY
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
wait_one() {
|
| 43 |
+
local -n _pids="$1"
|
| 44 |
+
if ((${#_pids[@]} == 0)); then
|
| 45 |
+
return 0
|
| 46 |
+
fi
|
| 47 |
+
wait "${_pids[0]}"
|
| 48 |
+
_pids=("${_pids[@]:1}")
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
if [[ ! -f "$ARTIFACT_DIR/manifest.json" ]]; then
|
| 52 |
+
uv run python - "$ARTIFACT_REPO" "$ARTIFACT_DIR" "$K" "$SHORT_K" <<'PY' \
|
| 53 |
+
2>&1 | tee "$RUN_ROOT/logs/download_hy_lora_conditions.log"
|
| 54 |
+
import sys
|
| 55 |
+
|
| 56 |
+
from huggingface_hub import snapshot_download
|
| 57 |
+
|
| 58 |
+
repo, local_dir, k, short_k = sys.argv[1:5]
|
| 59 |
+
patterns = [
|
| 60 |
+
"README.md",
|
| 61 |
+
"manifest.json",
|
| 62 |
+
f"low_rank_lens/k{short_k}_r*/adapter/*",
|
| 63 |
+
f"low_rank_lens/k{short_k}_r*/config.json",
|
| 64 |
+
f"low_rank_lens/k{short_k}_r*/train_summary.json",
|
| 65 |
+
f"masked_kl/k{short_k}_r32/adapter/*",
|
| 66 |
+
f"masked_kl/k{short_k}_r32/config.json",
|
| 67 |
+
f"masked_kl/k{short_k}_r32/train_summary.json",
|
| 68 |
+
f"masks/base_attr/relp_k{k}.full.npz",
|
| 69 |
+
]
|
| 70 |
+
print(snapshot_download(
|
| 71 |
+
repo_id=repo,
|
| 72 |
+
repo_type="model",
|
| 73 |
+
local_dir=local_dir,
|
| 74 |
+
allow_patterns=patterns,
|
| 75 |
+
))
|
| 76 |
+
PY
|
| 77 |
+
fi
|
| 78 |
+
|
| 79 |
+
MASK="$ARTIFACT_DIR/masks/base_attr/relp_k${K}.full.npz"
|
| 80 |
+
if [[ ! -f "$MASK" ]]; then
|
| 81 |
+
echo "missing preserved mask: $MASK" >&2
|
| 82 |
+
exit 2
|
| 83 |
+
fi
|
| 84 |
+
|
| 85 |
+
if [[ ! -f "$NTREX_JSONL" ]]; then
|
| 86 |
+
uv run python build_ntrex_en2pt_jsonl.py 2>&1 | tee "$RUN_ROOT/logs/build_ntrex.log"
|
| 87 |
+
fi
|
| 88 |
+
|
| 89 |
+
if [[ ! -f "$RUN_ROOT/eval/base_k${K}_masks.json" ]]; then
|
| 90 |
+
CUDA_VISIBLE_DEVICES="$(pick_gpu 0)" uv run python evaluate_translation_adapter_masks.py \
|
| 91 |
+
--base-model "$MODEL" \
|
| 92 |
+
--input-jsonl "$NTREX_JSONL" \
|
| 93 |
+
--mask "fixed_k${K}:$MASK" \
|
| 94 |
+
--out "$RUN_ROOT/eval/base_k${K}_masks.json" \
|
| 95 |
+
--target-language Portuguese \
|
| 96 |
+
--include-no-mask \
|
| 97 |
+
--dump-hyps-dir "$RUN_ROOT/dumps/base_k${K}" \
|
| 98 |
+
--dump-category ntrex_test \
|
| 99 |
+
--dump-tag heldout \
|
| 100 |
+
--batch-size "${EVAL_BATCH_SIZE:-16}" \
|
| 101 |
+
--max-new-tokens "${MAX_NEW_TOKENS:-384}" \
|
| 102 |
+
2>&1 | tee "$RUN_ROOT/logs/eval_base_k${K}.log"
|
| 103 |
+
fi
|
| 104 |
+
|
| 105 |
+
run_rank_eval() {
|
| 106 |
+
local r="$1"
|
| 107 |
+
local gpu="$2"
|
| 108 |
+
local adapter="$ARTIFACT_DIR/low_rank_lens/k${SHORT_K}_r${r}/adapter"
|
| 109 |
+
if [[ ! -f "$adapter/adapter_model.safetensors" ]]; then
|
| 110 |
+
echo "missing preserved rank $r adapter: $adapter" >&2
|
| 111 |
+
return 3
|
| 112 |
+
fi
|
| 113 |
+
if [[ ! -f "$RUN_ROOT/eval/r${r}_k${K}_masks.json" ]]; then
|
| 114 |
+
CUDA_VISIBLE_DEVICES="$gpu" uv run python evaluate_translation_adapter_masks.py \
|
| 115 |
+
--base-model "$MODEL" \
|
| 116 |
+
--adapter "$adapter" \
|
| 117 |
+
--input-jsonl "$NTREX_JSONL" \
|
| 118 |
+
--mask "fixed_k${K}:$MASK" \
|
| 119 |
+
--out "$RUN_ROOT/eval/r${r}_k${K}_masks.json" \
|
| 120 |
+
--target-language Portuguese \
|
| 121 |
+
--include-no-mask \
|
| 122 |
+
--dump-hyps-dir "$RUN_ROOT/dumps/r${r}_k${K}" \
|
| 123 |
+
--dump-category ntrex_test \
|
| 124 |
+
--dump-tag heldout \
|
| 125 |
+
--batch-size "${EVAL_BATCH_SIZE:-16}" \
|
| 126 |
+
--max-new-tokens "${MAX_NEW_TOKENS:-384}" \
|
| 127 |
+
2>&1 | tee "$RUN_ROOT/logs/eval_r${r}_k${K}.log"
|
| 128 |
+
fi
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
rank_idx=0
|
| 132 |
+
rank_pids=()
|
| 133 |
+
parallel_jobs="$(gpu_count)"
|
| 134 |
+
for r in $RANKS; do
|
| 135 |
+
gpu="$(pick_gpu "$rank_idx")"
|
| 136 |
+
rank_idx=$((rank_idx + 1))
|
| 137 |
+
run_rank_eval "$r" "$gpu" &
|
| 138 |
+
rank_pids+=("$!")
|
| 139 |
+
if ((${#rank_pids[@]} >= parallel_jobs)); then
|
| 140 |
+
wait_one rank_pids
|
| 141 |
+
fi
|
| 142 |
+
done
|
| 143 |
+
while ((${#rank_pids[@]})); do
|
| 144 |
+
wait_one rank_pids
|
| 145 |
+
done
|
| 146 |
+
|
| 147 |
+
if [[ "$SCORE_AFTER" == "1" || "$SCORE_AFTER" == "true" ]]; then
|
| 148 |
+
score_specs=("base_k${K}/fixed_k${K}:base_fixed_k${K}")
|
| 149 |
+
for r in $RANKS; do
|
| 150 |
+
score_specs+=("r${r}_k${K}/fixed_k${K}:r${r}_fixed_k${K}")
|
| 151 |
+
done
|
| 152 |
+
|
| 153 |
+
run_score() {
|
| 154 |
+
local spec="$1"
|
| 155 |
+
local gpu="$2"
|
| 156 |
+
local rel="${spec%%:*}"
|
| 157 |
+
local name="${spec##*:}"
|
| 158 |
+
local in_jsonl="$RUN_ROOT/dumps/$rel.jsonl"
|
| 159 |
+
local out_json="$RUN_ROOT/xcomet/$name.json"
|
| 160 |
+
local out_pool="$RUN_ROOT/xcomet/$name.scored_pool.jsonl"
|
| 161 |
+
if [[ -f "$out_json" ]]; then
|
| 162 |
+
return 0
|
| 163 |
+
fi
|
| 164 |
+
CUDA_VISIBLE_DEVICES="$gpu" uv run python score_xcomet_pool.py \
|
| 165 |
+
--hyps-jsonl "$in_jsonl" \
|
| 166 |
+
--out-jsonl "$out_pool" \
|
| 167 |
+
--summary-json "$out_json" \
|
| 168 |
+
--comet-model "${XCOMET_MODEL:-Unbabel/XCOMET-XXL}" \
|
| 169 |
+
--system-name "$name" \
|
| 170 |
+
--batch-size "${XCOMET_BATCH_SIZE:-8}" \
|
| 171 |
+
--chunk-size "${XCOMET_CHUNK_SIZE:-128}" \
|
| 172 |
+
2>&1 | tee "$RUN_ROOT/logs/xcomet_${name}.log"
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
score_idx=0
|
| 176 |
+
score_pids=()
|
| 177 |
+
parallel_jobs="$(gpu_count)"
|
| 178 |
+
for spec in "${score_specs[@]}"; do
|
| 179 |
+
gpu="$(pick_gpu "$score_idx")"
|
| 180 |
+
score_idx=$((score_idx + 1))
|
| 181 |
+
run_score "$spec" "$gpu" &
|
| 182 |
+
score_pids+=("$!")
|
| 183 |
+
if ((${#score_pids[@]} >= parallel_jobs)); then
|
| 184 |
+
wait_one score_pids
|
| 185 |
+
fi
|
| 186 |
+
done
|
| 187 |
+
while ((${#score_pids[@]})); do
|
| 188 |
+
wait_one score_pids
|
| 189 |
+
done
|
| 190 |
+
fi
|
| 191 |
+
|
| 192 |
+
uv run python summarize_issue32_true28_repro.py \
|
| 193 |
+
--run-root "$RUN_ROOT" \
|
| 194 |
+
--k "$K" \
|
| 195 |
+
--out-json "$RUN_ROOT/summaries/issue32_true28_repro_summary.json" \
|
| 196 |
+
--out-md "$RUN_ROOT/summaries/issue32_true28_repro_summary.md"
|
| 197 |
+
|
| 198 |
+
if [[ "$UPLOAD_AFTER" == "1" || "$UPLOAD_AFTER" == "true" ]]; then
|
| 199 |
+
scripts/package_issue32_true28_repro_hf_upload.sh
|
| 200 |
+
fi
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/scripts/issue32_true28_repro_runner.sh
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Reconstruct and rerun the strongest issue #28 EN->PT k=160k rank ladder.
|
| 3 |
+
set -euo pipefail
|
| 4 |
+
|
| 5 |
+
REPO_DIR="${REPO_DIR:-/root/work/circuit-shotting}"
|
| 6 |
+
cd "$REPO_DIR"
|
| 7 |
+
source .venv/bin/activate
|
| 8 |
+
|
| 9 |
+
MODEL="${MODEL:-tencent/HY-MT1.5-1.8B}"
|
| 10 |
+
RUN_ROOT="${RUN_ROOT:-/root/runs/issue32_true28_repro}"
|
| 11 |
+
FLORES_JSONL="${FLORES_JSONL:-/root/runs/flores_eval/flores_en2pt_devtest.jsonl}"
|
| 12 |
+
NTREX_JSONL="${NTREX_JSONL:-/root/runs/ntrex_eval/ntrex_en2pt.jsonl}"
|
| 13 |
+
TRAIN_JSONL="${TRAIN_JSONL:-$RUN_ROOT/teacher_train_hyps.jsonl}"
|
| 14 |
+
MASK_ROOT="${MASK_ROOT:-$RUN_ROOT/base_attr}"
|
| 15 |
+
K="${K:-160000}"
|
| 16 |
+
RANKS="${RANKS:-2 4 8}"
|
| 17 |
+
GPU_LIST="${GPU_LIST:-0}"
|
| 18 |
+
SCORE_AFTER="${SCORE_AFTER:-1}"
|
| 19 |
+
UPLOAD_AFTER="${UPLOAD_AFTER:-0}"
|
| 20 |
+
|
| 21 |
+
mkdir -p "$RUN_ROOT"/{logs,eval,dumps,xcomet,summaries} "$MASK_ROOT"
|
| 22 |
+
|
| 23 |
+
pick_gpu() {
|
| 24 |
+
local idx="$1"
|
| 25 |
+
python - "$GPU_LIST" "$idx" <<'PY'
|
| 26 |
+
import sys
|
| 27 |
+
gpus=[g for g in sys.argv[1].replace(",", " ").split() if g]
|
| 28 |
+
if not gpus:
|
| 29 |
+
gpus=["0"]
|
| 30 |
+
print(gpus[int(sys.argv[2]) % len(gpus)])
|
| 31 |
+
PY
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
gpu_count() {
|
| 35 |
+
python - "$GPU_LIST" <<'PY'
|
| 36 |
+
import sys
|
| 37 |
+
gpus=[g for g in sys.argv[1].replace(",", " ").split() if g]
|
| 38 |
+
print(max(len(gpus), 1))
|
| 39 |
+
PY
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
wait_one() {
|
| 43 |
+
local -n _pids="$1"
|
| 44 |
+
if ((${#_pids[@]} == 0)); then
|
| 45 |
+
return 0
|
| 46 |
+
fi
|
| 47 |
+
wait "${_pids[0]}"
|
| 48 |
+
_pids=("${_pids[@]:1}")
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
if [[ ! -f "$FLORES_JSONL" ]]; then
|
| 52 |
+
uv run python build_flores_en2pt_jsonl.py 2>&1 | tee "$RUN_ROOT/logs/build_flores.log"
|
| 53 |
+
fi
|
| 54 |
+
|
| 55 |
+
if [[ ! -f "$NTREX_JSONL" ]]; then
|
| 56 |
+
uv run python build_ntrex_en2pt_jsonl.py 2>&1 | tee "$RUN_ROOT/logs/build_ntrex.log"
|
| 57 |
+
fi
|
| 58 |
+
|
| 59 |
+
if [[ ! -f "$TRAIN_JSONL" ]]; then
|
| 60 |
+
CUDA_VISIBLE_DEVICES="$(pick_gpu 0)" uv run python gen_translations_only.py \
|
| 61 |
+
--jsonl "$FLORES_JSONL" \
|
| 62 |
+
--model "$MODEL" \
|
| 63 |
+
--out "$TRAIN_JSONL" \
|
| 64 |
+
--target-language Portuguese \
|
| 65 |
+
--batch-size "${TEACHER_BATCH_SIZE:-16}" \
|
| 66 |
+
--max-new-tokens "${TEACHER_MAX_NEW_TOKENS:-384}" \
|
| 67 |
+
2>&1 | tee "$RUN_ROOT/logs/generate_teacher_hyps.log"
|
| 68 |
+
fi
|
| 69 |
+
|
| 70 |
+
if [[ ! -f "$MASK_ROOT/relp_k${K}.full.npz" ]]; then
|
| 71 |
+
CUDA_VISIBLE_DEVICES="$(pick_gpu 0)" uv run python attribute_translation.py \
|
| 72 |
+
--model "$MODEL" \
|
| 73 |
+
--out-dir "$MASK_ROOT" \
|
| 74 |
+
--target-language Portuguese \
|
| 75 |
+
--src-lang eng_Latn \
|
| 76 |
+
--tgt-lang por_Latn \
|
| 77 |
+
--n-attr "${N_ATTR:-200}" \
|
| 78 |
+
--ks "$K" \
|
| 79 |
+
--metric first_token_logit \
|
| 80 |
+
2>&1 | tee "$RUN_ROOT/logs/attribute_base_k${K}.log"
|
| 81 |
+
fi
|
| 82 |
+
|
| 83 |
+
MASK="$MASK_ROOT/relp_k${K}.full.npz"
|
| 84 |
+
|
| 85 |
+
if [[ ! -f "$RUN_ROOT/eval/base_k${K}_masks.json" ]]; then
|
| 86 |
+
CUDA_VISIBLE_DEVICES="$(pick_gpu 0)" uv run python evaluate_translation_adapter_masks.py \
|
| 87 |
+
--base-model "$MODEL" \
|
| 88 |
+
--input-jsonl "$NTREX_JSONL" \
|
| 89 |
+
--mask "fixed_k${K}:$MASK" \
|
| 90 |
+
--out "$RUN_ROOT/eval/base_k${K}_masks.json" \
|
| 91 |
+
--target-language Portuguese \
|
| 92 |
+
--include-no-mask \
|
| 93 |
+
--dump-hyps-dir "$RUN_ROOT/dumps/base_k${K}" \
|
| 94 |
+
--dump-category ntrex_test \
|
| 95 |
+
--dump-tag heldout \
|
| 96 |
+
--batch-size "${EVAL_BATCH_SIZE:-16}" \
|
| 97 |
+
--max-new-tokens "${MAX_NEW_TOKENS:-384}" \
|
| 98 |
+
2>&1 | tee "$RUN_ROOT/logs/eval_base_k${K}.log"
|
| 99 |
+
fi
|
| 100 |
+
|
| 101 |
+
run_rank() {
|
| 102 |
+
local r="$1"
|
| 103 |
+
local gpu="$2"
|
| 104 |
+
alpha=$((2 * r))
|
| 105 |
+
out="$RUN_ROOT/k${K}/r${r}"
|
| 106 |
+
|
| 107 |
+
if [[ ! -f "$out/train_summary.json" ]]; then
|
| 108 |
+
mkdir -p "$out"
|
| 109 |
+
CUDA_VISIBLE_DEVICES="$gpu" uv run python train_masked_kl_conditioning.py \
|
| 110 |
+
--model "$MODEL" \
|
| 111 |
+
--jsonl "$TRAIN_JSONL" \
|
| 112 |
+
--fixed-mask "$MASK" \
|
| 113 |
+
--out-dir "$out" \
|
| 114 |
+
--target-language Portuguese \
|
| 115 |
+
--target-field model_hyp \
|
| 116 |
+
--lora-r "$r" \
|
| 117 |
+
--lora-alpha "$alpha" \
|
| 118 |
+
--batch-size "${BATCH_SIZE:-2}" \
|
| 119 |
+
--grad-accum "${GRAD_ACCUM:-8}" \
|
| 120 |
+
--epochs "${EPOCHS:-1.0}" \
|
| 121 |
+
--lr "${LR:-2e-4}" \
|
| 122 |
+
--masked-kl-beta "${MASKED_KL_BETA:-1.0}" \
|
| 123 |
+
--ce-beta "${CE_BETA:-0.2}" \
|
| 124 |
+
--unmasked-kl-beta "${UNMASKED_KL_BETA:-0.05}" \
|
| 125 |
+
--n-calib "${N_CALIB:-128}" \
|
| 126 |
+
--eval-every "${EVAL_EVERY:-10}" \
|
| 127 |
+
--no-save-merged \
|
| 128 |
+
2>&1 | tee "$RUN_ROOT/logs/train_r${r}_k${K}.log"
|
| 129 |
+
fi
|
| 130 |
+
|
| 131 |
+
if [[ ! -f "$RUN_ROOT/eval/r${r}_k${K}_masks.json" ]]; then
|
| 132 |
+
CUDA_VISIBLE_DEVICES="$gpu" uv run python evaluate_translation_adapter_masks.py \
|
| 133 |
+
--base-model "$MODEL" \
|
| 134 |
+
--adapter "$out/adapter" \
|
| 135 |
+
--input-jsonl "$NTREX_JSONL" \
|
| 136 |
+
--mask "fixed_k${K}:$MASK" \
|
| 137 |
+
--out "$RUN_ROOT/eval/r${r}_k${K}_masks.json" \
|
| 138 |
+
--target-language Portuguese \
|
| 139 |
+
--include-no-mask \
|
| 140 |
+
--dump-hyps-dir "$RUN_ROOT/dumps/r${r}_k${K}" \
|
| 141 |
+
--dump-category ntrex_test \
|
| 142 |
+
--dump-tag heldout \
|
| 143 |
+
--batch-size "${EVAL_BATCH_SIZE:-16}" \
|
| 144 |
+
--max-new-tokens "${MAX_NEW_TOKENS:-384}" \
|
| 145 |
+
2>&1 | tee "$RUN_ROOT/logs/eval_r${r}_k${K}.log"
|
| 146 |
+
fi
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
rank_index=0
|
| 150 |
+
rank_pids=()
|
| 151 |
+
parallel_jobs="$(gpu_count)"
|
| 152 |
+
for r in $RANKS; do
|
| 153 |
+
gpu="$(pick_gpu "$rank_index")"
|
| 154 |
+
rank_index=$((rank_index + 1))
|
| 155 |
+
run_rank "$r" "$gpu" &
|
| 156 |
+
rank_pids+=("$!")
|
| 157 |
+
if ((${#rank_pids[@]} >= parallel_jobs)); then
|
| 158 |
+
wait_one rank_pids
|
| 159 |
+
fi
|
| 160 |
+
done
|
| 161 |
+
while ((${#rank_pids[@]})); do
|
| 162 |
+
wait_one rank_pids
|
| 163 |
+
done
|
| 164 |
+
|
| 165 |
+
if [[ "$SCORE_AFTER" == "1" || "$SCORE_AFTER" == "true" ]]; then
|
| 166 |
+
score_specs=("base_k${K}/fixed_k${K}:base_fixed_k${K}")
|
| 167 |
+
for r in $RANKS; do
|
| 168 |
+
score_specs+=("r${r}_k${K}/fixed_k${K}:r${r}_fixed_k${K}")
|
| 169 |
+
done
|
| 170 |
+
|
| 171 |
+
run_score() {
|
| 172 |
+
local spec="$1"
|
| 173 |
+
local gpu="$2"
|
| 174 |
+
rel="${spec%%:*}"
|
| 175 |
+
name="${spec##*:}"
|
| 176 |
+
in_jsonl="$RUN_ROOT/dumps/$rel.jsonl"
|
| 177 |
+
out_json="$RUN_ROOT/xcomet/$name.json"
|
| 178 |
+
out_pool="$RUN_ROOT/xcomet/$name.scored_pool.jsonl"
|
| 179 |
+
if [[ -f "$out_json" ]]; then
|
| 180 |
+
continue
|
| 181 |
+
fi
|
| 182 |
+
gpu="$(pick_gpu "$score_idx")"
|
| 183 |
+
score_idx=$((score_idx + 1))
|
| 184 |
+
CUDA_VISIBLE_DEVICES="$gpu" uv run python score_xcomet_pool.py \
|
| 185 |
+
--hyps-jsonl "$in_jsonl" \
|
| 186 |
+
--out-jsonl "$out_pool" \
|
| 187 |
+
--summary-json "$out_json" \
|
| 188 |
+
--comet-model "${XCOMET_MODEL:-Unbabel/XCOMET-XXL}" \
|
| 189 |
+
--system-name "$name" \
|
| 190 |
+
--batch-size "${XCOMET_BATCH_SIZE:-8}" \
|
| 191 |
+
--chunk-size "${XCOMET_CHUNK_SIZE:-128}" \
|
| 192 |
+
2>&1 | tee "$RUN_ROOT/logs/xcomet_${name}.log"
|
| 193 |
+
}
|
| 194 |
+
|
| 195 |
+
score_idx=0
|
| 196 |
+
score_pids=()
|
| 197 |
+
parallel_jobs="$(gpu_count)"
|
| 198 |
+
for spec in "${score_specs[@]}"; do
|
| 199 |
+
gpu="$(pick_gpu "$score_idx")"
|
| 200 |
+
score_idx=$((score_idx + 1))
|
| 201 |
+
run_score "$spec" "$gpu" &
|
| 202 |
+
score_pids+=("$!")
|
| 203 |
+
if ((${#score_pids[@]} >= parallel_jobs)); then
|
| 204 |
+
wait_one score_pids
|
| 205 |
+
fi
|
| 206 |
+
done
|
| 207 |
+
while ((${#score_pids[@]})); do
|
| 208 |
+
wait_one score_pids
|
| 209 |
+
done
|
| 210 |
+
fi
|
| 211 |
+
|
| 212 |
+
uv run python summarize_issue32_true28_repro.py \
|
| 213 |
+
--run-root "$RUN_ROOT" \
|
| 214 |
+
--k "$K" \
|
| 215 |
+
--out-json "$RUN_ROOT/summaries/issue32_true28_repro_summary.json" \
|
| 216 |
+
--out-md "$RUN_ROOT/summaries/issue32_true28_repro_summary.md"
|
| 217 |
+
|
| 218 |
+
if [[ "$UPLOAD_AFTER" == "1" || "$UPLOAD_AFTER" == "true" ]]; then
|
| 219 |
+
scripts/package_issue32_true28_repro_hf_upload.sh
|
| 220 |
+
fi
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/scripts/package_issue32_true28_repro_hf_upload.sh
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Package and upload issue #32 true issue #28 reproduction artifacts.
|
| 3 |
+
set -euo pipefail
|
| 4 |
+
|
| 5 |
+
RUN_ROOT="${RUN_ROOT:-/root/runs/issue32_true28_repro}"
|
| 6 |
+
REPO_DIR="${REPO_DIR:-/root/work/circuit-shotting}"
|
| 7 |
+
HF_REPO="${HF_REPO:-TokenBender/synth-data-en-pt-circuit}"
|
| 8 |
+
UPLOAD_ROOT="${UPLOAD_ROOT:-$RUN_ROOT/hf_upload}"
|
| 9 |
+
STAMP="${STAMP:-$(date -u +%Y%m%dT%H%M%SZ)}"
|
| 10 |
+
UPLOAD_PREFIX="${UPLOAD_PREFIX:-issue32_true28_repro_$STAMP}"
|
| 11 |
+
UPLOAD_DIR="$UPLOAD_ROOT/$UPLOAD_PREFIX"
|
| 12 |
+
|
| 13 |
+
mkdir -p "$UPLOAD_DIR"/{spec,notes,scripts,base_attr,data,eval,dumps,xcomet,summaries,logs,adapters,manifests,source_artifacts}
|
| 14 |
+
|
| 15 |
+
cp "$REPO_DIR/configs/issue32_true28_repro_enpt.json" "$UPLOAD_DIR/spec/"
|
| 16 |
+
cp "$REPO_DIR/configs/issue32_hy_lora_conditions_repro.json" "$UPLOAD_DIR/spec/" 2>/dev/null || true
|
| 17 |
+
cp "$REPO_DIR/notes/issue32_true28_repro.md" "$UPLOAD_DIR/notes/"
|
| 18 |
+
cp "$REPO_DIR/evaluate_translation_adapter_masks.py" "$UPLOAD_DIR/scripts/"
|
| 19 |
+
cp "$REPO_DIR/issue32_true28_repro_runner.sh" "$UPLOAD_DIR/scripts/"
|
| 20 |
+
cp "$REPO_DIR/issue32_hy_lora_conditions_repro_runner.sh" "$UPLOAD_DIR/scripts/" 2>/dev/null || true
|
| 21 |
+
cp "$REPO_DIR/summarize_issue32_true28_repro.py" "$UPLOAD_DIR/scripts/"
|
| 22 |
+
cp "$REPO_DIR/scripts/package_issue32_true28_repro_hf_upload.sh" "$UPLOAD_DIR/scripts/"
|
| 23 |
+
|
| 24 |
+
cp "$RUN_ROOT"/teacher_train_hyps.jsonl "$UPLOAD_DIR/data/" 2>/dev/null || true
|
| 25 |
+
cp "$RUN_ROOT"/base_attr/*.npz "$UPLOAD_DIR/base_attr/" 2>/dev/null || true
|
| 26 |
+
cp "$RUN_ROOT"/base_attr/*.json "$UPLOAD_DIR/base_attr/" 2>/dev/null || true
|
| 27 |
+
cp "$RUN_ROOT"/eval/*.json "$UPLOAD_DIR/eval/" 2>/dev/null || true
|
| 28 |
+
if [[ -d "$RUN_ROOT/dumps" ]]; then
|
| 29 |
+
(cd "$RUN_ROOT/dumps" && find . -type f -name '*.jsonl' \
|
| 30 |
+
| while read -r path; do
|
| 31 |
+
mkdir -p "$UPLOAD_DIR/dumps/$(dirname "$path")"
|
| 32 |
+
cp "$path" "$UPLOAD_DIR/dumps/$path"
|
| 33 |
+
done)
|
| 34 |
+
fi
|
| 35 |
+
cp "$RUN_ROOT"/xcomet/*.json "$UPLOAD_DIR/xcomet/" 2>/dev/null || true
|
| 36 |
+
cp "$RUN_ROOT"/xcomet/*.jsonl "$UPLOAD_DIR/xcomet/" 2>/dev/null || true
|
| 37 |
+
cp "$RUN_ROOT"/summaries/* "$UPLOAD_DIR/summaries/" 2>/dev/null || true
|
| 38 |
+
cp "$RUN_ROOT"/logs/*.log "$UPLOAD_DIR/logs/" 2>/dev/null || true
|
| 39 |
+
|
| 40 |
+
if [[ -d "$RUN_ROOT/k160000" ]]; then
|
| 41 |
+
find "$RUN_ROOT/k160000" -type f \( -path '*/adapter/*' -o -name 'train_summary.json' -o -name 'config.json' \) \
|
| 42 |
+
| while read -r path; do
|
| 43 |
+
rel="${path#$RUN_ROOT/}"
|
| 44 |
+
if [[ "$rel" == */merged/* ]]; then
|
| 45 |
+
continue
|
| 46 |
+
fi
|
| 47 |
+
mkdir -p "$UPLOAD_DIR/$(dirname "$rel")"
|
| 48 |
+
cp "$path" "$UPLOAD_DIR/$rel"
|
| 49 |
+
done
|
| 50 |
+
fi
|
| 51 |
+
|
| 52 |
+
if [[ -d "$RUN_ROOT/hy_lora_conditions" ]]; then
|
| 53 |
+
(cd "$RUN_ROOT/hy_lora_conditions" && find . -type f \
|
| 54 |
+
| while read -r path; do
|
| 55 |
+
case "$path" in
|
| 56 |
+
*/.cache/*) continue ;;
|
| 57 |
+
esac
|
| 58 |
+
mkdir -p "$UPLOAD_DIR/source_artifacts/$(dirname "$path")"
|
| 59 |
+
cp "$path" "$UPLOAD_DIR/source_artifacts/$path"
|
| 60 |
+
done)
|
| 61 |
+
fi
|
| 62 |
+
|
| 63 |
+
python - "$UPLOAD_DIR" "$RUN_ROOT" "$UPLOAD_PREFIX" <<'PY'
|
| 64 |
+
import json
|
| 65 |
+
import os
|
| 66 |
+
import sys
|
| 67 |
+
from pathlib import Path
|
| 68 |
+
|
| 69 |
+
upload = Path(sys.argv[1])
|
| 70 |
+
run_root = Path(sys.argv[2])
|
| 71 |
+
prefix = sys.argv[3]
|
| 72 |
+
|
| 73 |
+
def maybe_json(path: Path):
|
| 74 |
+
if path.exists():
|
| 75 |
+
return json.loads(path.read_text())
|
| 76 |
+
return None
|
| 77 |
+
|
| 78 |
+
manifest = {
|
| 79 |
+
"issue": 32,
|
| 80 |
+
"task": "True issue #28 EN->PT low-rank LoRA k=160k reproduction",
|
| 81 |
+
"run_root": str(run_root),
|
| 82 |
+
"upload_prefix": prefix,
|
| 83 |
+
"source_artifact_repo": os.environ.get("SOURCE_ARTIFACT_REPO") or os.environ.get("ARTIFACT_REPO"),
|
| 84 |
+
"source_commit": os.environ.get("SOURCE_COMMIT"),
|
| 85 |
+
"summary": maybe_json(run_root / "summaries" / "issue32_true28_repro_summary.json"),
|
| 86 |
+
"file_count": sum(len(files) for _, _, files in os.walk(upload)),
|
| 87 |
+
"weights_policy": "Includes PEFT adapters, but excludes upstream HY-MT/XCOMET weights, HF caches, merged full model checkpoints, API keys, and service tokens.",
|
| 88 |
+
}
|
| 89 |
+
(upload / "manifest.json").write_text(json.dumps(manifest, indent=2, ensure_ascii=False) + "\n")
|
| 90 |
+
(upload / "README.md").write_text(
|
| 91 |
+
"# Issue 32 True Issue 28 Reproduction Artifacts\n\n"
|
| 92 |
+
"This folder contains the rebuilt issue #28 EN->PT k=160k LoRA rank-ladder "
|
| 93 |
+
"artifacts: ReLP mask, PEFT adapters, generation dumps, XCOMET summaries, "
|
| 94 |
+
"logs, summaries, specs, and reusable scripts.\n\n"
|
| 95 |
+
"Upstream HY-MT/XCOMET weights, Hugging Face caches, merged full checkpoints, "
|
| 96 |
+
"API keys, and service tokens are intentionally excluded.\n"
|
| 97 |
+
)
|
| 98 |
+
print(json.dumps({"upload_dir": str(upload), "prefix": prefix, "files": manifest["file_count"]}, indent=2))
|
| 99 |
+
PY
|
| 100 |
+
|
| 101 |
+
(cd "$UPLOAD_DIR" && find . -type f -print0 | sort -z | xargs -0 sha256sum > SHA256SUMS)
|
| 102 |
+
uv run hf upload "$HF_REPO" "$UPLOAD_DIR" "$UPLOAD_PREFIX" --repo-type dataset
|
| 103 |
+
echo "$UPLOAD_PREFIX"
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/scripts/summarize_issue32_true28_repro.py
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Summarize the true issue #28 reproduction attempt for issue #32."""
|
| 3 |
+
|
| 4 |
+
from __future__ import annotations
|
| 5 |
+
|
| 6 |
+
import argparse
|
| 7 |
+
import json
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
from typing import Any
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
RECORDED = {
|
| 13 |
+
"base_fixed_k160000": 0.6300551002,
|
| 14 |
+
"r2_fixed_k160000": 0.7655800197,
|
| 15 |
+
"r4_fixed_k160000": 0.7979727848,
|
| 16 |
+
"r8_fixed_k160000": 0.8121489377,
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def parse_args() -> argparse.Namespace:
|
| 21 |
+
p = argparse.ArgumentParser(description=__doc__)
|
| 22 |
+
p.add_argument("--run-root", type=Path, required=True)
|
| 23 |
+
p.add_argument("--k", type=int, default=160000)
|
| 24 |
+
p.add_argument("--out-json", type=Path, required=True)
|
| 25 |
+
p.add_argument("--out-md", type=Path, required=True)
|
| 26 |
+
return p.parse_args()
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def load_json(path: Path) -> dict[str, Any] | None:
|
| 30 |
+
if not path.exists():
|
| 31 |
+
return None
|
| 32 |
+
return json.loads(path.read_text())
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def metric(payload: dict[str, Any] | None, block: str, key: str) -> float | None:
|
| 36 |
+
if not payload:
|
| 37 |
+
return None
|
| 38 |
+
row = (payload.get("results") or {}).get(block) or {}
|
| 39 |
+
scores = row.get("scores") or {}
|
| 40 |
+
val = scores.get(key)
|
| 41 |
+
return float(val) if isinstance(val, (int, float)) else None
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def xcomet(path: Path) -> float | None:
|
| 45 |
+
payload = load_json(path)
|
| 46 |
+
if not payload:
|
| 47 |
+
return None
|
| 48 |
+
value = payload.get("system_score") or payload.get("system_xcomet_xxl")
|
| 49 |
+
if isinstance(value, (int, float)):
|
| 50 |
+
return float(value)
|
| 51 |
+
summary = payload.get("summary")
|
| 52 |
+
if isinstance(summary, dict):
|
| 53 |
+
value = summary.get("system_score")
|
| 54 |
+
if isinstance(value, (int, float)):
|
| 55 |
+
return float(value)
|
| 56 |
+
return None
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def main() -> None:
|
| 60 |
+
args = parse_args()
|
| 61 |
+
root = args.run_root
|
| 62 |
+
rows = []
|
| 63 |
+
labels = ["base", "r2", "r4", "r8"]
|
| 64 |
+
for label in labels:
|
| 65 |
+
if label == "base":
|
| 66 |
+
eval_path = root / "eval" / f"base_k{args.k}_masks.json"
|
| 67 |
+
xname = f"base_fixed_k{args.k}"
|
| 68 |
+
else:
|
| 69 |
+
rank = label.removeprefix("r")
|
| 70 |
+
eval_path = root / "eval" / f"r{rank}_k{args.k}_masks.json"
|
| 71 |
+
xname = f"{label}_fixed_k{args.k}"
|
| 72 |
+
payload = load_json(eval_path)
|
| 73 |
+
score = xcomet(root / "xcomet" / f"{xname}.json")
|
| 74 |
+
recorded = RECORDED.get(xname)
|
| 75 |
+
rows.append({
|
| 76 |
+
"condition": label,
|
| 77 |
+
"xcomet": score,
|
| 78 |
+
"recorded_issue28_xcomet": recorded,
|
| 79 |
+
"delta_vs_recorded": None if score is None or recorded is None else score - recorded,
|
| 80 |
+
"masked_chrFpp": metric(payload, f"fixed_k{args.k}", "chrFpp"),
|
| 81 |
+
"masked_chrF": metric(payload, f"fixed_k{args.k}", "chrF"),
|
| 82 |
+
"masked_BLEU": metric(payload, f"fixed_k{args.k}", "BLEU"),
|
| 83 |
+
"no_mask_chrFpp": metric(payload, "no_mask", "chrFpp"),
|
| 84 |
+
})
|
| 85 |
+
|
| 86 |
+
observed = [r for r in rows if r["xcomet"] is not None]
|
| 87 |
+
ranking = sorted(observed, key=lambda r: r["xcomet"], reverse=True)
|
| 88 |
+
summary = {
|
| 89 |
+
"issue": 32,
|
| 90 |
+
"run_root": str(root),
|
| 91 |
+
"k": args.k,
|
| 92 |
+
"recorded_issue28": RECORDED,
|
| 93 |
+
"rows": rows,
|
| 94 |
+
"observed_ranking": [r["condition"] for r in ranking],
|
| 95 |
+
"target_ranking": ["r8", "r4", "r2", "base"],
|
| 96 |
+
"strongest_observed": ranking[0] if ranking else None,
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
args.out_json.parent.mkdir(parents=True, exist_ok=True)
|
| 100 |
+
args.out_json.write_text(json.dumps(summary, indent=2, ensure_ascii=False) + "\n")
|
| 101 |
+
|
| 102 |
+
lines = [
|
| 103 |
+
"# Issue 32 True Issue 28 Reproduction Summary",
|
| 104 |
+
"",
|
| 105 |
+
f"- Run root: `{root}`",
|
| 106 |
+
f"- Budget: `k={args.k}`",
|
| 107 |
+
"- Target ranking: `r8 > r4 > r2 > base`",
|
| 108 |
+
"",
|
| 109 |
+
"| condition | XCOMET | issue #28 recorded | delta | masked chrF++ | no-mask chrF++ |",
|
| 110 |
+
"|---|---:|---:|---:|---:|---:|",
|
| 111 |
+
]
|
| 112 |
+
for row in rows:
|
| 113 |
+
def fmt(value: float | None) -> str:
|
| 114 |
+
return "" if value is None else f"{value:.6f}"
|
| 115 |
+
lines.append(
|
| 116 |
+
"| `{}` | {} | {} | {} | {} | {} |".format(
|
| 117 |
+
row["condition"],
|
| 118 |
+
fmt(row["xcomet"]),
|
| 119 |
+
fmt(row["recorded_issue28_xcomet"]),
|
| 120 |
+
fmt(row["delta_vs_recorded"]),
|
| 121 |
+
fmt(row["masked_chrFpp"]),
|
| 122 |
+
fmt(row["no_mask_chrFpp"]),
|
| 123 |
+
)
|
| 124 |
+
)
|
| 125 |
+
if ranking:
|
| 126 |
+
lines.extend([
|
| 127 |
+
"",
|
| 128 |
+
f"Observed ranking: `{' > '.join(r['condition'] for r in ranking)}`.",
|
| 129 |
+
f"Strongest observed condition: `{ranking[0]['condition']}`.",
|
| 130 |
+
])
|
| 131 |
+
args.out_md.parent.mkdir(parents=True, exist_ok=True)
|
| 132 |
+
args.out_md.write_text("\n".join(lines) + "\n")
|
| 133 |
+
print(json.dumps({"out_json": str(args.out_json), "out_md": str(args.out_md), "rows": len(rows)}, indent=2))
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
if __name__ == "__main__":
|
| 137 |
+
main()
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# hy-lora-conditions
|
| 2 |
+
|
| 3 |
+
private en->pt adapter and mask bundle.
|
| 4 |
+
|
| 5 |
+
code lives in github: https://github.com/Occupying-Mars/circuit-shotting
|
| 6 |
+
|
| 7 |
+
base model: `tencent/HY-MT1.5-1.8B`
|
| 8 |
+
|
| 9 |
+
task: english -> portuguese
|
| 10 |
+
|
| 11 |
+
contents:
|
| 12 |
+
- adapters
|
| 13 |
+
- base masks
|
| 14 |
+
- lens attribution masks
|
| 15 |
+
- config and train summary json files
|
| 16 |
+
- manifest with adapter -> mask mapping
|
| 17 |
+
|
| 18 |
+
no eval dumps, no eval tables, no logs, no code snapshots, no merged full models.
|
| 19 |
+
|
| 20 |
+
## artifact map
|
| 21 |
+
|
| 22 |
+
| folder | rank | mask |
|
| 23 |
+
|---|---:|---|
|
| 24 |
+
| `low_rank_lens/k160_r2` | 2 | `masks/base_attr/relp_k160000.full.npz` |
|
| 25 |
+
| `low_rank_lens/k160_r8` | 8 | `masks/base_attr/relp_k160000.full.npz` |
|
| 26 |
+
| `masked_kl/k160_r32` | 32 | `masks/base_attr/relp_k160000.full.npz` |
|
| 27 |
+
| `masked_kl/k120_r32` | 32 | `masks/base_attr/relp_k120000.full.npz` |
|
| 28 |
+
|
| 29 |
+
see `manifest.json` for exact adapter/config/mask paths.
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/adapter/README.md
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: tencent/HY-MT1.5-1.8B
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:tencent/HY-MT1.5-1.8B
|
| 7 |
+
- lora
|
| 8 |
+
- transformers
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Model Card for Model ID
|
| 12 |
+
|
| 13 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
## Model Details
|
| 18 |
+
|
| 19 |
+
### Model Description
|
| 20 |
+
|
| 21 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
- **Developed by:** [More Information Needed]
|
| 26 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 27 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 28 |
+
- **Model type:** [More Information Needed]
|
| 29 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 30 |
+
- **License:** [More Information Needed]
|
| 31 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 32 |
+
|
| 33 |
+
### Model Sources [optional]
|
| 34 |
+
|
| 35 |
+
<!-- Provide the basic links for the model. -->
|
| 36 |
+
|
| 37 |
+
- **Repository:** [More Information Needed]
|
| 38 |
+
- **Paper [optional]:** [More Information Needed]
|
| 39 |
+
- **Demo [optional]:** [More Information Needed]
|
| 40 |
+
|
| 41 |
+
## Uses
|
| 42 |
+
|
| 43 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 44 |
+
|
| 45 |
+
### Direct Use
|
| 46 |
+
|
| 47 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 48 |
+
|
| 49 |
+
[More Information Needed]
|
| 50 |
+
|
| 51 |
+
### Downstream Use [optional]
|
| 52 |
+
|
| 53 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 54 |
+
|
| 55 |
+
[More Information Needed]
|
| 56 |
+
|
| 57 |
+
### Out-of-Scope Use
|
| 58 |
+
|
| 59 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 60 |
+
|
| 61 |
+
[More Information Needed]
|
| 62 |
+
|
| 63 |
+
## Bias, Risks, and Limitations
|
| 64 |
+
|
| 65 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 66 |
+
|
| 67 |
+
[More Information Needed]
|
| 68 |
+
|
| 69 |
+
### Recommendations
|
| 70 |
+
|
| 71 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 72 |
+
|
| 73 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 74 |
+
|
| 75 |
+
## How to Get Started with the Model
|
| 76 |
+
|
| 77 |
+
Use the code below to get started with the model.
|
| 78 |
+
|
| 79 |
+
[More Information Needed]
|
| 80 |
+
|
| 81 |
+
## Training Details
|
| 82 |
+
|
| 83 |
+
### Training Data
|
| 84 |
+
|
| 85 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 86 |
+
|
| 87 |
+
[More Information Needed]
|
| 88 |
+
|
| 89 |
+
### Training Procedure
|
| 90 |
+
|
| 91 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 92 |
+
|
| 93 |
+
#### Preprocessing [optional]
|
| 94 |
+
|
| 95 |
+
[More Information Needed]
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
#### Training Hyperparameters
|
| 99 |
+
|
| 100 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 101 |
+
|
| 102 |
+
#### Speeds, Sizes, Times [optional]
|
| 103 |
+
|
| 104 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 105 |
+
|
| 106 |
+
[More Information Needed]
|
| 107 |
+
|
| 108 |
+
## Evaluation
|
| 109 |
+
|
| 110 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 111 |
+
|
| 112 |
+
### Testing Data, Factors & Metrics
|
| 113 |
+
|
| 114 |
+
#### Testing Data
|
| 115 |
+
|
| 116 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 117 |
+
|
| 118 |
+
[More Information Needed]
|
| 119 |
+
|
| 120 |
+
#### Factors
|
| 121 |
+
|
| 122 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 123 |
+
|
| 124 |
+
[More Information Needed]
|
| 125 |
+
|
| 126 |
+
#### Metrics
|
| 127 |
+
|
| 128 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 129 |
+
|
| 130 |
+
[More Information Needed]
|
| 131 |
+
|
| 132 |
+
### Results
|
| 133 |
+
|
| 134 |
+
[More Information Needed]
|
| 135 |
+
|
| 136 |
+
#### Summary
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
## Model Examination [optional]
|
| 141 |
+
|
| 142 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 143 |
+
|
| 144 |
+
[More Information Needed]
|
| 145 |
+
|
| 146 |
+
## Environmental Impact
|
| 147 |
+
|
| 148 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 149 |
+
|
| 150 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 151 |
+
|
| 152 |
+
- **Hardware Type:** [More Information Needed]
|
| 153 |
+
- **Hours used:** [More Information Needed]
|
| 154 |
+
- **Cloud Provider:** [More Information Needed]
|
| 155 |
+
- **Compute Region:** [More Information Needed]
|
| 156 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 157 |
+
|
| 158 |
+
## Technical Specifications [optional]
|
| 159 |
+
|
| 160 |
+
### Model Architecture and Objective
|
| 161 |
+
|
| 162 |
+
[More Information Needed]
|
| 163 |
+
|
| 164 |
+
### Compute Infrastructure
|
| 165 |
+
|
| 166 |
+
[More Information Needed]
|
| 167 |
+
|
| 168 |
+
#### Hardware
|
| 169 |
+
|
| 170 |
+
[More Information Needed]
|
| 171 |
+
|
| 172 |
+
#### Software
|
| 173 |
+
|
| 174 |
+
[More Information Needed]
|
| 175 |
+
|
| 176 |
+
## Citation [optional]
|
| 177 |
+
|
| 178 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 179 |
+
|
| 180 |
+
**BibTeX:**
|
| 181 |
+
|
| 182 |
+
[More Information Needed]
|
| 183 |
+
|
| 184 |
+
**APA:**
|
| 185 |
+
|
| 186 |
+
[More Information Needed]
|
| 187 |
+
|
| 188 |
+
## Glossary [optional]
|
| 189 |
+
|
| 190 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 191 |
+
|
| 192 |
+
[More Information Needed]
|
| 193 |
+
|
| 194 |
+
## More Information [optional]
|
| 195 |
+
|
| 196 |
+
[More Information Needed]
|
| 197 |
+
|
| 198 |
+
## Model Card Authors [optional]
|
| 199 |
+
|
| 200 |
+
[More Information Needed]
|
| 201 |
+
|
| 202 |
+
## Model Card Contact
|
| 203 |
+
|
| 204 |
+
[More Information Needed]
|
| 205 |
+
### Framework versions
|
| 206 |
+
|
| 207 |
+
- PEFT 0.19.1
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/adapter/adapter_config.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "tencent/HY-MT1.5-1.8B",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 64,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.0,
|
| 22 |
+
"lora_ga_config": null,
|
| 23 |
+
"megatron_config": null,
|
| 24 |
+
"megatron_core": "megatron.core",
|
| 25 |
+
"modules_to_save": null,
|
| 26 |
+
"peft_type": "LORA",
|
| 27 |
+
"peft_version": "0.19.1",
|
| 28 |
+
"qalora_group_size": 16,
|
| 29 |
+
"r": 2,
|
| 30 |
+
"rank_pattern": {},
|
| 31 |
+
"revision": null,
|
| 32 |
+
"target_modules": [
|
| 33 |
+
"down_proj",
|
| 34 |
+
"o_proj",
|
| 35 |
+
"up_proj",
|
| 36 |
+
"k_proj",
|
| 37 |
+
"v_proj",
|
| 38 |
+
"q_proj",
|
| 39 |
+
"gate_proj"
|
| 40 |
+
],
|
| 41 |
+
"target_parameters": null,
|
| 42 |
+
"task_type": "CAUSAL_LM",
|
| 43 |
+
"trainable_token_indices": null,
|
| 44 |
+
"use_bdlora": null,
|
| 45 |
+
"use_dora": false,
|
| 46 |
+
"use_qalora": false,
|
| 47 |
+
"use_rslora": true
|
| 48 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/adapter/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:571d954ae125763dd73dae82fbc6c45335d15e965e8286e87cd7d6d5e089508c
|
| 3 |
+
size 9757496
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/adapter/chat_template.jinja
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}<|hy_begin▁of▁sentence|>{{ system_message }}<|hy_place▁holder▁no▁3|>{% else %}{% set loop_messages = messages %}<|hy_begin▁of▁sentence|>{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}<|hy_User|>{{ message['content'] }}{% elif message['role'] == 'assistant' %}<|hy_Assistant|>{{ message['content'] }}<|hy_place▁holder▁no▁2|>{% endif %}{% endfor %}{% if add_generation_prompt %}<|hy_Assistant|>{% else %}<|hy_place▁holder▁no▁8|>{% endif %}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/adapter/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/adapter/tokenizer_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<|hy_begin▁of▁sentence|>",
|
| 4 |
+
"clean_up_tokenization_spaces": true,
|
| 5 |
+
"eos_token": "<|hy_place▁holder▁no▁2|>",
|
| 6 |
+
"is_local": false,
|
| 7 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 8 |
+
"pad_token": "<|hy_▁pad▁|>",
|
| 9 |
+
"tokenizer_class": "TokenizersBackend"
|
| 10 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/config.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"args": {
|
| 3 |
+
"model": "tencent/HY-MT1.5-1.8B",
|
| 4 |
+
"jsonl": "/root/runs/repro_issues23_28/teacher_train_hyps.jsonl",
|
| 5 |
+
"fixed_mask": "/root/runs/repro_issues23_28/base_attr/relp_k160000.full.npz",
|
| 6 |
+
"out_dir": "/root/runs/repro_issues23_28/issue28_k160_r2",
|
| 7 |
+
"target_field": "model_hyp",
|
| 8 |
+
"target_language": "Portuguese",
|
| 9 |
+
"prompt_style": "hy_mt",
|
| 10 |
+
"device": "cuda",
|
| 11 |
+
"dtype": "bfloat16",
|
| 12 |
+
"seed": 42,
|
| 13 |
+
"max_rows": null,
|
| 14 |
+
"max_seq_length": 1024,
|
| 15 |
+
"n_calib": 128,
|
| 16 |
+
"mean_on": "full",
|
| 17 |
+
"epochs": 1.0,
|
| 18 |
+
"max_steps": null,
|
| 19 |
+
"batch_size": 2,
|
| 20 |
+
"grad_accum": 8,
|
| 21 |
+
"lr": 0.0002,
|
| 22 |
+
"weight_decay": 0.0,
|
| 23 |
+
"warmup_ratio": 0.05,
|
| 24 |
+
"max_grad_norm": 1.0,
|
| 25 |
+
"lora_r": 2,
|
| 26 |
+
"lora_alpha": 64,
|
| 27 |
+
"lora_dropout": 0.0,
|
| 28 |
+
"target_modules": "all-linear",
|
| 29 |
+
"use_rslora": true,
|
| 30 |
+
"init_adapter": null,
|
| 31 |
+
"masked_kl_beta": 1.0,
|
| 32 |
+
"ce_beta": 0.2,
|
| 33 |
+
"unmasked_kl_beta": 0.0,
|
| 34 |
+
"kl_temperature": 1.0,
|
| 35 |
+
"kl_on": "answer",
|
| 36 |
+
"eval_every": 50,
|
| 37 |
+
"num_workers": 0,
|
| 38 |
+
"save_merged": true
|
| 39 |
+
},
|
| 40 |
+
"n_rows": 1012,
|
| 41 |
+
"n_layers": 32,
|
| 42 |
+
"d_ffn": 6144,
|
| 43 |
+
"mask_kept": 160000,
|
| 44 |
+
"total_steps": 64,
|
| 45 |
+
"warmup_steps": 3,
|
| 46 |
+
"logs": []
|
| 47 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r2/train_summary.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"args": {
|
| 3 |
+
"model": "tencent/HY-MT1.5-1.8B",
|
| 4 |
+
"jsonl": "/root/runs/repro_issues23_28/teacher_train_hyps.jsonl",
|
| 5 |
+
"fixed_mask": "/root/runs/repro_issues23_28/base_attr/relp_k160000.full.npz",
|
| 6 |
+
"out_dir": "/root/runs/repro_issues23_28/issue28_k160_r2",
|
| 7 |
+
"target_field": "model_hyp",
|
| 8 |
+
"target_language": "Portuguese",
|
| 9 |
+
"prompt_style": "hy_mt",
|
| 10 |
+
"device": "cuda",
|
| 11 |
+
"dtype": "bfloat16",
|
| 12 |
+
"seed": 42,
|
| 13 |
+
"max_rows": null,
|
| 14 |
+
"max_seq_length": 1024,
|
| 15 |
+
"n_calib": 128,
|
| 16 |
+
"mean_on": "full",
|
| 17 |
+
"epochs": 1.0,
|
| 18 |
+
"max_steps": null,
|
| 19 |
+
"batch_size": 2,
|
| 20 |
+
"grad_accum": 8,
|
| 21 |
+
"lr": 0.0002,
|
| 22 |
+
"weight_decay": 0.0,
|
| 23 |
+
"warmup_ratio": 0.05,
|
| 24 |
+
"max_grad_norm": 1.0,
|
| 25 |
+
"lora_r": 2,
|
| 26 |
+
"lora_alpha": 64,
|
| 27 |
+
"lora_dropout": 0.0,
|
| 28 |
+
"target_modules": "all-linear",
|
| 29 |
+
"use_rslora": true,
|
| 30 |
+
"init_adapter": null,
|
| 31 |
+
"masked_kl_beta": 1.0,
|
| 32 |
+
"ce_beta": 0.2,
|
| 33 |
+
"unmasked_kl_beta": 0.0,
|
| 34 |
+
"kl_temperature": 1.0,
|
| 35 |
+
"kl_on": "answer",
|
| 36 |
+
"eval_every": 50,
|
| 37 |
+
"num_workers": 0,
|
| 38 |
+
"save_merged": true
|
| 39 |
+
},
|
| 40 |
+
"n_rows": 1012,
|
| 41 |
+
"n_layers": 32,
|
| 42 |
+
"d_ffn": 6144,
|
| 43 |
+
"mask_kept": 160000,
|
| 44 |
+
"total_steps": 64,
|
| 45 |
+
"warmup_steps": 3,
|
| 46 |
+
"logs": [
|
| 47 |
+
{
|
| 48 |
+
"step": 1,
|
| 49 |
+
"loss": 0.8935546875,
|
| 50 |
+
"masked_kl": 0.729736328125,
|
| 51 |
+
"ce": 0.81787109375,
|
| 52 |
+
"unmasked_kl": 0.0,
|
| 53 |
+
"lr": 6.666666666666667e-05,
|
| 54 |
+
"elapsed_s": 2.5306222438812256
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"step": 50,
|
| 58 |
+
"loss": 0.45174984056122447,
|
| 59 |
+
"masked_kl": 0.35723876953125,
|
| 60 |
+
"ce": 0.4722800741390306,
|
| 61 |
+
"unmasked_kl": 0.0,
|
| 62 |
+
"lr": 2.4886806912948035e-05,
|
| 63 |
+
"elapsed_s": 85.60768342018127
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"step": 64,
|
| 67 |
+
"loss": 0.35251290457589285,
|
| 68 |
+
"masked_kl": 0.27527073451450895,
|
| 69 |
+
"ce": 0.38635689871651785,
|
| 70 |
+
"unmasked_kl": 0.0,
|
| 71 |
+
"lr": 0.0,
|
| 72 |
+
"elapsed_s": 108.8494644165039
|
| 73 |
+
}
|
| 74 |
+
],
|
| 75 |
+
"elapsed_s": 108.85567808151245,
|
| 76 |
+
"merged_dir": "/root/runs/repro_issues23_28/issue28_k160_r2/merged"
|
| 77 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/adapter/README.md
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: tencent/HY-MT1.5-1.8B
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:tencent/HY-MT1.5-1.8B
|
| 7 |
+
- lora
|
| 8 |
+
- transformers
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Model Card for Model ID
|
| 12 |
+
|
| 13 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
## Model Details
|
| 18 |
+
|
| 19 |
+
### Model Description
|
| 20 |
+
|
| 21 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
- **Developed by:** [More Information Needed]
|
| 26 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 27 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 28 |
+
- **Model type:** [More Information Needed]
|
| 29 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 30 |
+
- **License:** [More Information Needed]
|
| 31 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 32 |
+
|
| 33 |
+
### Model Sources [optional]
|
| 34 |
+
|
| 35 |
+
<!-- Provide the basic links for the model. -->
|
| 36 |
+
|
| 37 |
+
- **Repository:** [More Information Needed]
|
| 38 |
+
- **Paper [optional]:** [More Information Needed]
|
| 39 |
+
- **Demo [optional]:** [More Information Needed]
|
| 40 |
+
|
| 41 |
+
## Uses
|
| 42 |
+
|
| 43 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 44 |
+
|
| 45 |
+
### Direct Use
|
| 46 |
+
|
| 47 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 48 |
+
|
| 49 |
+
[More Information Needed]
|
| 50 |
+
|
| 51 |
+
### Downstream Use [optional]
|
| 52 |
+
|
| 53 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 54 |
+
|
| 55 |
+
[More Information Needed]
|
| 56 |
+
|
| 57 |
+
### Out-of-Scope Use
|
| 58 |
+
|
| 59 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 60 |
+
|
| 61 |
+
[More Information Needed]
|
| 62 |
+
|
| 63 |
+
## Bias, Risks, and Limitations
|
| 64 |
+
|
| 65 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 66 |
+
|
| 67 |
+
[More Information Needed]
|
| 68 |
+
|
| 69 |
+
### Recommendations
|
| 70 |
+
|
| 71 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 72 |
+
|
| 73 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 74 |
+
|
| 75 |
+
## How to Get Started with the Model
|
| 76 |
+
|
| 77 |
+
Use the code below to get started with the model.
|
| 78 |
+
|
| 79 |
+
[More Information Needed]
|
| 80 |
+
|
| 81 |
+
## Training Details
|
| 82 |
+
|
| 83 |
+
### Training Data
|
| 84 |
+
|
| 85 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 86 |
+
|
| 87 |
+
[More Information Needed]
|
| 88 |
+
|
| 89 |
+
### Training Procedure
|
| 90 |
+
|
| 91 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 92 |
+
|
| 93 |
+
#### Preprocessing [optional]
|
| 94 |
+
|
| 95 |
+
[More Information Needed]
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
#### Training Hyperparameters
|
| 99 |
+
|
| 100 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 101 |
+
|
| 102 |
+
#### Speeds, Sizes, Times [optional]
|
| 103 |
+
|
| 104 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 105 |
+
|
| 106 |
+
[More Information Needed]
|
| 107 |
+
|
| 108 |
+
## Evaluation
|
| 109 |
+
|
| 110 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 111 |
+
|
| 112 |
+
### Testing Data, Factors & Metrics
|
| 113 |
+
|
| 114 |
+
#### Testing Data
|
| 115 |
+
|
| 116 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 117 |
+
|
| 118 |
+
[More Information Needed]
|
| 119 |
+
|
| 120 |
+
#### Factors
|
| 121 |
+
|
| 122 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 123 |
+
|
| 124 |
+
[More Information Needed]
|
| 125 |
+
|
| 126 |
+
#### Metrics
|
| 127 |
+
|
| 128 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 129 |
+
|
| 130 |
+
[More Information Needed]
|
| 131 |
+
|
| 132 |
+
### Results
|
| 133 |
+
|
| 134 |
+
[More Information Needed]
|
| 135 |
+
|
| 136 |
+
#### Summary
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
## Model Examination [optional]
|
| 141 |
+
|
| 142 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 143 |
+
|
| 144 |
+
[More Information Needed]
|
| 145 |
+
|
| 146 |
+
## Environmental Impact
|
| 147 |
+
|
| 148 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 149 |
+
|
| 150 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 151 |
+
|
| 152 |
+
- **Hardware Type:** [More Information Needed]
|
| 153 |
+
- **Hours used:** [More Information Needed]
|
| 154 |
+
- **Cloud Provider:** [More Information Needed]
|
| 155 |
+
- **Compute Region:** [More Information Needed]
|
| 156 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 157 |
+
|
| 158 |
+
## Technical Specifications [optional]
|
| 159 |
+
|
| 160 |
+
### Model Architecture and Objective
|
| 161 |
+
|
| 162 |
+
[More Information Needed]
|
| 163 |
+
|
| 164 |
+
### Compute Infrastructure
|
| 165 |
+
|
| 166 |
+
[More Information Needed]
|
| 167 |
+
|
| 168 |
+
#### Hardware
|
| 169 |
+
|
| 170 |
+
[More Information Needed]
|
| 171 |
+
|
| 172 |
+
#### Software
|
| 173 |
+
|
| 174 |
+
[More Information Needed]
|
| 175 |
+
|
| 176 |
+
## Citation [optional]
|
| 177 |
+
|
| 178 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 179 |
+
|
| 180 |
+
**BibTeX:**
|
| 181 |
+
|
| 182 |
+
[More Information Needed]
|
| 183 |
+
|
| 184 |
+
**APA:**
|
| 185 |
+
|
| 186 |
+
[More Information Needed]
|
| 187 |
+
|
| 188 |
+
## Glossary [optional]
|
| 189 |
+
|
| 190 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 191 |
+
|
| 192 |
+
[More Information Needed]
|
| 193 |
+
|
| 194 |
+
## More Information [optional]
|
| 195 |
+
|
| 196 |
+
[More Information Needed]
|
| 197 |
+
|
| 198 |
+
## Model Card Authors [optional]
|
| 199 |
+
|
| 200 |
+
[More Information Needed]
|
| 201 |
+
|
| 202 |
+
## Model Card Contact
|
| 203 |
+
|
| 204 |
+
[More Information Needed]
|
| 205 |
+
### Framework versions
|
| 206 |
+
|
| 207 |
+
- PEFT 0.19.1
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/adapter/adapter_config.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "tencent/HY-MT1.5-1.8B",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 64,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.0,
|
| 22 |
+
"lora_ga_config": null,
|
| 23 |
+
"megatron_config": null,
|
| 24 |
+
"megatron_core": "megatron.core",
|
| 25 |
+
"modules_to_save": null,
|
| 26 |
+
"peft_type": "LORA",
|
| 27 |
+
"peft_version": "0.19.1",
|
| 28 |
+
"qalora_group_size": 16,
|
| 29 |
+
"r": 8,
|
| 30 |
+
"rank_pattern": {},
|
| 31 |
+
"revision": null,
|
| 32 |
+
"target_modules": [
|
| 33 |
+
"v_proj",
|
| 34 |
+
"q_proj",
|
| 35 |
+
"down_proj",
|
| 36 |
+
"gate_proj",
|
| 37 |
+
"k_proj",
|
| 38 |
+
"up_proj",
|
| 39 |
+
"o_proj"
|
| 40 |
+
],
|
| 41 |
+
"target_parameters": null,
|
| 42 |
+
"task_type": "CAUSAL_LM",
|
| 43 |
+
"trainable_token_indices": null,
|
| 44 |
+
"use_bdlora": null,
|
| 45 |
+
"use_dora": false,
|
| 46 |
+
"use_qalora": false,
|
| 47 |
+
"use_rslora": true
|
| 48 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/adapter/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:409d0932242a888ed6f8703f15e5c3ed2a7e0fae3b20eb64bc88b33c27e18e7f
|
| 3 |
+
size 38856224
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/adapter/chat_template.jinja
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}<|hy_begin▁of▁sentence|>{{ system_message }}<|hy_place▁holder▁no▁3|>{% else %}{% set loop_messages = messages %}<|hy_begin▁of▁sentence|>{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}<|hy_User|>{{ message['content'] }}{% elif message['role'] == 'assistant' %}<|hy_Assistant|>{{ message['content'] }}<|hy_place▁holder▁no▁2|>{% endif %}{% endfor %}{% if add_generation_prompt %}<|hy_Assistant|>{% else %}<|hy_place▁holder▁no▁8|>{% endif %}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/adapter/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/adapter/tokenizer_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<|hy_begin▁of▁sentence|>",
|
| 4 |
+
"clean_up_tokenization_spaces": true,
|
| 5 |
+
"eos_token": "<|hy_place▁holder▁no▁2|>",
|
| 6 |
+
"is_local": false,
|
| 7 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 8 |
+
"pad_token": "<|hy_▁pad▁|>",
|
| 9 |
+
"tokenizer_class": "TokenizersBackend"
|
| 10 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/config.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"args": {
|
| 3 |
+
"model": "tencent/HY-MT1.5-1.8B",
|
| 4 |
+
"jsonl": "/root/runs/repro_issues23_28/teacher_train_hyps.jsonl",
|
| 5 |
+
"fixed_mask": "/root/runs/repro_issues23_28/base_attr/relp_k160000.full.npz",
|
| 6 |
+
"out_dir": "/root/runs/repro_issues23_28/issue28_k160_r8",
|
| 7 |
+
"target_field": "model_hyp",
|
| 8 |
+
"target_language": "Portuguese",
|
| 9 |
+
"prompt_style": "hy_mt",
|
| 10 |
+
"device": "cuda",
|
| 11 |
+
"dtype": "bfloat16",
|
| 12 |
+
"seed": 42,
|
| 13 |
+
"max_rows": null,
|
| 14 |
+
"max_seq_length": 1024,
|
| 15 |
+
"n_calib": 128,
|
| 16 |
+
"mean_on": "full",
|
| 17 |
+
"epochs": 1.0,
|
| 18 |
+
"max_steps": null,
|
| 19 |
+
"batch_size": 2,
|
| 20 |
+
"grad_accum": 8,
|
| 21 |
+
"lr": 0.0002,
|
| 22 |
+
"weight_decay": 0.0,
|
| 23 |
+
"warmup_ratio": 0.05,
|
| 24 |
+
"max_grad_norm": 1.0,
|
| 25 |
+
"lora_r": 8,
|
| 26 |
+
"lora_alpha": 64,
|
| 27 |
+
"lora_dropout": 0.0,
|
| 28 |
+
"target_modules": "all-linear",
|
| 29 |
+
"use_rslora": true,
|
| 30 |
+
"init_adapter": null,
|
| 31 |
+
"masked_kl_beta": 1.0,
|
| 32 |
+
"ce_beta": 0.2,
|
| 33 |
+
"unmasked_kl_beta": 0.0,
|
| 34 |
+
"kl_temperature": 1.0,
|
| 35 |
+
"kl_on": "answer",
|
| 36 |
+
"eval_every": 50,
|
| 37 |
+
"num_workers": 0,
|
| 38 |
+
"save_merged": true
|
| 39 |
+
},
|
| 40 |
+
"n_rows": 1012,
|
| 41 |
+
"n_layers": 32,
|
| 42 |
+
"d_ffn": 6144,
|
| 43 |
+
"mask_kept": 160000,
|
| 44 |
+
"total_steps": 64,
|
| 45 |
+
"warmup_steps": 3,
|
| 46 |
+
"logs": []
|
| 47 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/low_rank_lens/k160_r8/train_summary.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"args": {
|
| 3 |
+
"model": "tencent/HY-MT1.5-1.8B",
|
| 4 |
+
"jsonl": "/root/runs/repro_issues23_28/teacher_train_hyps.jsonl",
|
| 5 |
+
"fixed_mask": "/root/runs/repro_issues23_28/base_attr/relp_k160000.full.npz",
|
| 6 |
+
"out_dir": "/root/runs/repro_issues23_28/issue28_k160_r8",
|
| 7 |
+
"target_field": "model_hyp",
|
| 8 |
+
"target_language": "Portuguese",
|
| 9 |
+
"prompt_style": "hy_mt",
|
| 10 |
+
"device": "cuda",
|
| 11 |
+
"dtype": "bfloat16",
|
| 12 |
+
"seed": 42,
|
| 13 |
+
"max_rows": null,
|
| 14 |
+
"max_seq_length": 1024,
|
| 15 |
+
"n_calib": 128,
|
| 16 |
+
"mean_on": "full",
|
| 17 |
+
"epochs": 1.0,
|
| 18 |
+
"max_steps": null,
|
| 19 |
+
"batch_size": 2,
|
| 20 |
+
"grad_accum": 8,
|
| 21 |
+
"lr": 0.0002,
|
| 22 |
+
"weight_decay": 0.0,
|
| 23 |
+
"warmup_ratio": 0.05,
|
| 24 |
+
"max_grad_norm": 1.0,
|
| 25 |
+
"lora_r": 8,
|
| 26 |
+
"lora_alpha": 64,
|
| 27 |
+
"lora_dropout": 0.0,
|
| 28 |
+
"target_modules": "all-linear",
|
| 29 |
+
"use_rslora": true,
|
| 30 |
+
"init_adapter": null,
|
| 31 |
+
"masked_kl_beta": 1.0,
|
| 32 |
+
"ce_beta": 0.2,
|
| 33 |
+
"unmasked_kl_beta": 0.0,
|
| 34 |
+
"kl_temperature": 1.0,
|
| 35 |
+
"kl_on": "answer",
|
| 36 |
+
"eval_every": 50,
|
| 37 |
+
"num_workers": 0,
|
| 38 |
+
"save_merged": true
|
| 39 |
+
},
|
| 40 |
+
"n_rows": 1012,
|
| 41 |
+
"n_layers": 32,
|
| 42 |
+
"d_ffn": 6144,
|
| 43 |
+
"mask_kept": 160000,
|
| 44 |
+
"total_steps": 64,
|
| 45 |
+
"warmup_steps": 3,
|
| 46 |
+
"logs": [
|
| 47 |
+
{
|
| 48 |
+
"step": 1,
|
| 49 |
+
"loss": 0.89892578125,
|
| 50 |
+
"masked_kl": 0.729736328125,
|
| 51 |
+
"ce": 0.85009765625,
|
| 52 |
+
"unmasked_kl": 0.0,
|
| 53 |
+
"lr": 6.666666666666667e-05,
|
| 54 |
+
"elapsed_s": 2.4842658042907715
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"step": 50,
|
| 58 |
+
"loss": 0.4577499701052296,
|
| 59 |
+
"masked_kl": 0.36263477558992346,
|
| 60 |
+
"ce": 0.4758761658960459,
|
| 61 |
+
"unmasked_kl": 0.0,
|
| 62 |
+
"lr": 2.4886806912948035e-05,
|
| 63 |
+
"elapsed_s": 83.07147860527039
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"step": 64,
|
| 67 |
+
"loss": 0.35915701729910715,
|
| 68 |
+
"masked_kl": 0.2801361083984375,
|
| 69 |
+
"ce": 0.39583042689732145,
|
| 70 |
+
"unmasked_kl": 0.0,
|
| 71 |
+
"lr": 0.0,
|
| 72 |
+
"elapsed_s": 105.1619131565094
|
| 73 |
+
}
|
| 74 |
+
],
|
| 75 |
+
"elapsed_s": 105.1679368019104,
|
| 76 |
+
"merged_dir": "/root/runs/repro_issues23_28/issue28_k160_r8/merged"
|
| 77 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/manifest.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"created_utc": "2026-05-13T13:17:56.780574+00:00",
|
| 3 |
+
"base_model": "tencent/HY-MT1.5-1.8B",
|
| 4 |
+
"task": "en_to_pt",
|
| 5 |
+
"repo_code": "https://github.com/Occupying-Mars/circuit-shotting",
|
| 6 |
+
"artifacts": [
|
| 7 |
+
{
|
| 8 |
+
"folder": "low_rank_lens/k160_r2",
|
| 9 |
+
"adapter": "low_rank_lens/k160_r2/adapter",
|
| 10 |
+
"config": "low_rank_lens/k160_r2/config.json",
|
| 11 |
+
"train_summary": "low_rank_lens/k160_r2/train_summary.json",
|
| 12 |
+
"mask": "masks/base_attr/relp_k160000.full.npz",
|
| 13 |
+
"mask_k": 160000,
|
| 14 |
+
"lora_rank": 2
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"folder": "low_rank_lens/k160_r8",
|
| 18 |
+
"adapter": "low_rank_lens/k160_r8/adapter",
|
| 19 |
+
"config": "low_rank_lens/k160_r8/config.json",
|
| 20 |
+
"train_summary": "low_rank_lens/k160_r8/train_summary.json",
|
| 21 |
+
"mask": "masks/base_attr/relp_k160000.full.npz",
|
| 22 |
+
"mask_k": 160000,
|
| 23 |
+
"lora_rank": 8
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"folder": "masked_kl/k160_r32",
|
| 27 |
+
"adapter": "masked_kl/k160_r32/adapter",
|
| 28 |
+
"config": "masked_kl/k160_r32/config.json",
|
| 29 |
+
"train_summary": "masked_kl/k160_r32/train_summary.json",
|
| 30 |
+
"mask": "masks/base_attr/relp_k160000.full.npz",
|
| 31 |
+
"mask_k": 160000,
|
| 32 |
+
"lora_rank": 32
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"folder": "masked_kl/k120_r32",
|
| 36 |
+
"adapter": "masked_kl/k120_r32/adapter",
|
| 37 |
+
"config": "masked_kl/k120_r32/config.json",
|
| 38 |
+
"train_summary": "masked_kl/k120_r32/train_summary.json",
|
| 39 |
+
"mask": "masks/base_attr/relp_k120000.full.npz",
|
| 40 |
+
"mask_k": 120000,
|
| 41 |
+
"lora_rank": 32
|
| 42 |
+
}
|
| 43 |
+
]
|
| 44 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/masked_kl/k160_r32/adapter/README.md
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: tencent/HY-MT1.5-1.8B
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:tencent/HY-MT1.5-1.8B
|
| 7 |
+
- lora
|
| 8 |
+
- transformers
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Model Card for Model ID
|
| 12 |
+
|
| 13 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
## Model Details
|
| 18 |
+
|
| 19 |
+
### Model Description
|
| 20 |
+
|
| 21 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
- **Developed by:** [More Information Needed]
|
| 26 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 27 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 28 |
+
- **Model type:** [More Information Needed]
|
| 29 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 30 |
+
- **License:** [More Information Needed]
|
| 31 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 32 |
+
|
| 33 |
+
### Model Sources [optional]
|
| 34 |
+
|
| 35 |
+
<!-- Provide the basic links for the model. -->
|
| 36 |
+
|
| 37 |
+
- **Repository:** [More Information Needed]
|
| 38 |
+
- **Paper [optional]:** [More Information Needed]
|
| 39 |
+
- **Demo [optional]:** [More Information Needed]
|
| 40 |
+
|
| 41 |
+
## Uses
|
| 42 |
+
|
| 43 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 44 |
+
|
| 45 |
+
### Direct Use
|
| 46 |
+
|
| 47 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 48 |
+
|
| 49 |
+
[More Information Needed]
|
| 50 |
+
|
| 51 |
+
### Downstream Use [optional]
|
| 52 |
+
|
| 53 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 54 |
+
|
| 55 |
+
[More Information Needed]
|
| 56 |
+
|
| 57 |
+
### Out-of-Scope Use
|
| 58 |
+
|
| 59 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 60 |
+
|
| 61 |
+
[More Information Needed]
|
| 62 |
+
|
| 63 |
+
## Bias, Risks, and Limitations
|
| 64 |
+
|
| 65 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 66 |
+
|
| 67 |
+
[More Information Needed]
|
| 68 |
+
|
| 69 |
+
### Recommendations
|
| 70 |
+
|
| 71 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 72 |
+
|
| 73 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 74 |
+
|
| 75 |
+
## How to Get Started with the Model
|
| 76 |
+
|
| 77 |
+
Use the code below to get started with the model.
|
| 78 |
+
|
| 79 |
+
[More Information Needed]
|
| 80 |
+
|
| 81 |
+
## Training Details
|
| 82 |
+
|
| 83 |
+
### Training Data
|
| 84 |
+
|
| 85 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 86 |
+
|
| 87 |
+
[More Information Needed]
|
| 88 |
+
|
| 89 |
+
### Training Procedure
|
| 90 |
+
|
| 91 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 92 |
+
|
| 93 |
+
#### Preprocessing [optional]
|
| 94 |
+
|
| 95 |
+
[More Information Needed]
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
#### Training Hyperparameters
|
| 99 |
+
|
| 100 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 101 |
+
|
| 102 |
+
#### Speeds, Sizes, Times [optional]
|
| 103 |
+
|
| 104 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 105 |
+
|
| 106 |
+
[More Information Needed]
|
| 107 |
+
|
| 108 |
+
## Evaluation
|
| 109 |
+
|
| 110 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 111 |
+
|
| 112 |
+
### Testing Data, Factors & Metrics
|
| 113 |
+
|
| 114 |
+
#### Testing Data
|
| 115 |
+
|
| 116 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 117 |
+
|
| 118 |
+
[More Information Needed]
|
| 119 |
+
|
| 120 |
+
#### Factors
|
| 121 |
+
|
| 122 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 123 |
+
|
| 124 |
+
[More Information Needed]
|
| 125 |
+
|
| 126 |
+
#### Metrics
|
| 127 |
+
|
| 128 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 129 |
+
|
| 130 |
+
[More Information Needed]
|
| 131 |
+
|
| 132 |
+
### Results
|
| 133 |
+
|
| 134 |
+
[More Information Needed]
|
| 135 |
+
|
| 136 |
+
#### Summary
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
## Model Examination [optional]
|
| 141 |
+
|
| 142 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 143 |
+
|
| 144 |
+
[More Information Needed]
|
| 145 |
+
|
| 146 |
+
## Environmental Impact
|
| 147 |
+
|
| 148 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 149 |
+
|
| 150 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 151 |
+
|
| 152 |
+
- **Hardware Type:** [More Information Needed]
|
| 153 |
+
- **Hours used:** [More Information Needed]
|
| 154 |
+
- **Cloud Provider:** [More Information Needed]
|
| 155 |
+
- **Compute Region:** [More Information Needed]
|
| 156 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 157 |
+
|
| 158 |
+
## Technical Specifications [optional]
|
| 159 |
+
|
| 160 |
+
### Model Architecture and Objective
|
| 161 |
+
|
| 162 |
+
[More Information Needed]
|
| 163 |
+
|
| 164 |
+
### Compute Infrastructure
|
| 165 |
+
|
| 166 |
+
[More Information Needed]
|
| 167 |
+
|
| 168 |
+
#### Hardware
|
| 169 |
+
|
| 170 |
+
[More Information Needed]
|
| 171 |
+
|
| 172 |
+
#### Software
|
| 173 |
+
|
| 174 |
+
[More Information Needed]
|
| 175 |
+
|
| 176 |
+
## Citation [optional]
|
| 177 |
+
|
| 178 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 179 |
+
|
| 180 |
+
**BibTeX:**
|
| 181 |
+
|
| 182 |
+
[More Information Needed]
|
| 183 |
+
|
| 184 |
+
**APA:**
|
| 185 |
+
|
| 186 |
+
[More Information Needed]
|
| 187 |
+
|
| 188 |
+
## Glossary [optional]
|
| 189 |
+
|
| 190 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 191 |
+
|
| 192 |
+
[More Information Needed]
|
| 193 |
+
|
| 194 |
+
## More Information [optional]
|
| 195 |
+
|
| 196 |
+
[More Information Needed]
|
| 197 |
+
|
| 198 |
+
## Model Card Authors [optional]
|
| 199 |
+
|
| 200 |
+
[More Information Needed]
|
| 201 |
+
|
| 202 |
+
## Model Card Contact
|
| 203 |
+
|
| 204 |
+
[More Information Needed]
|
| 205 |
+
### Framework versions
|
| 206 |
+
|
| 207 |
+
- PEFT 0.19.1
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/masked_kl/k160_r32/adapter/adapter_config.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "tencent/HY-MT1.5-1.8B",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 64,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.0,
|
| 22 |
+
"lora_ga_config": null,
|
| 23 |
+
"megatron_config": null,
|
| 24 |
+
"megatron_core": "megatron.core",
|
| 25 |
+
"modules_to_save": null,
|
| 26 |
+
"peft_type": "LORA",
|
| 27 |
+
"peft_version": "0.19.1",
|
| 28 |
+
"qalora_group_size": 16,
|
| 29 |
+
"r": 32,
|
| 30 |
+
"rank_pattern": {},
|
| 31 |
+
"revision": null,
|
| 32 |
+
"target_modules": [
|
| 33 |
+
"k_proj",
|
| 34 |
+
"up_proj",
|
| 35 |
+
"down_proj",
|
| 36 |
+
"gate_proj",
|
| 37 |
+
"q_proj",
|
| 38 |
+
"o_proj",
|
| 39 |
+
"v_proj"
|
| 40 |
+
],
|
| 41 |
+
"target_parameters": null,
|
| 42 |
+
"task_type": "CAUSAL_LM",
|
| 43 |
+
"trainable_token_indices": null,
|
| 44 |
+
"use_bdlora": null,
|
| 45 |
+
"use_dora": false,
|
| 46 |
+
"use_qalora": false,
|
| 47 |
+
"use_rslora": true
|
| 48 |
+
}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/masked_kl/k160_r32/adapter/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:447196e8e6fb3fd89bbba8550122853a1d01adb1eeb3e145845b64cd3a7310aa
|
| 3 |
+
size 155249120
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/masked_kl/k160_r32/adapter/chat_template.jinja
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}<|hy_begin▁of▁sentence|>{{ system_message }}<|hy_place▁holder▁no▁3|>{% else %}{% set loop_messages = messages %}<|hy_begin▁of▁sentence|>{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}<|hy_User|>{{ message['content'] }}{% elif message['role'] == 'assistant' %}<|hy_Assistant|>{{ message['content'] }}<|hy_place▁holder▁no▁2|>{% endif %}{% endfor %}{% if add_generation_prompt %}<|hy_Assistant|>{% else %}<|hy_place▁holder▁no▁8|>{% endif %}
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/masked_kl/k160_r32/adapter/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
circuit-shotting/artifacts/issue32/issue32_hy_lora_conditions_repro_20260513T141918Z/source_artifacts/masked_kl/k160_r32/adapter/tokenizer_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<|hy_begin▁of▁sentence|>",
|
| 4 |
+
"clean_up_tokenization_spaces": true,
|
| 5 |
+
"eos_token": "<|hy_place▁holder▁no▁2|>",
|
| 6 |
+
"is_local": false,
|
| 7 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 8 |
+
"pad_token": "<|hy_▁pad▁|>",
|
| 9 |
+
"tokenizer_class": "TokenizersBackend"
|
| 10 |
+
}
|