sync reports
Browse filesFiles changed (6)
9 unmodified lines10111213131415151617189 unmodified lines "f1_score": 1.0 }, "failed_count": 0, "summary": "run 5faae8925ea6bec0 (fingerprint 5faae8925ea6bec0)\n exact_match: 1.0000 \u00b1 0.0000 (n=2)\n f1_score: 1.0000 \u00b1 0.0000 (n=2)\n perf: latency=17477ms (n=1 calls) | throughput=0.11 req/s\n model: CohereLabs/tiny-aya-global -- 3,349,227,520 params (0.0% sparse), 6388.1 MB" "summary": "run 5faae8925ea6bec0 (fingerprint 5faae8925ea6bec0)\n exact_match: 1.0000 \u00b1 0.0000 (n=2)\n f1_score: 1.0000 \u00b1 0.0000 (n=2)\n perf: latency=17353ms (n=1 calls) | throughput=0.12 req/s\n model: CohereLabs/tiny-aya-global -- 3,349,227,520 params (0.0% sparse), 6388.1 MB" }, "seconds": 18.0, "seconds": 17.9, "device": "Tesla T4", "torch": "2.11.0+cu130"}4 unmodified lines56788910114 unmodified lines "ok": false, "error": "CircuitKitError: CUDA out of memory. Tried to allocate 1024.00 MiB. GPU 0 has a total capacity of 14.56 GiB of which 746.81 MiB is free. Including non-PyTorch memory, this process has 13.83 GiB memory in use. Of the allocated memory 13.66 GiB is allocated by PyTorch, and 35.04 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://docs.pytorch.org/docs/stable/notes/cuda.html#optimizing-memory-usage-with-pytorch-cuda-alloc-conf) (Context: operation=discover_circuit, function=discover_circuit, args=({'model': {'name': 'CohereLabs/tiny-aya-global', 'precision': 'bfloat16'}, 'discovery': {'algorithm': 'eap', 'task': 'greater_than', 'level': 'node', 'batch_size': 1, 'data_params': {'num_examples': , kwargs={'_model': HookedTransformer(\n (embed): Embed()\n (hook_embed): HookPoint(name='hook_embed')\n (blocks): TypedModuleList(\n (0): TransformerBlock(\n (ln1): LayerNorm(\n (hook_scale): Hook)", "traceback": "embed.py\", line 39, in forward\n result = F.linear(residual, self.W_U.T.contiguous(), self.b_U)\n ~~~~~~~~~~~~~~~~~~~~~^^\ntorch.OutOfMemoryError: CUDA out of memory. Tried to allocate 1024.00 MiB. GPU 0 has a total capacity of 14.56 GiB of which 746.81 MiB is free. Including non-PyTorch memory, this process has 13.83 GiB memory in use. Of the allocated memory 13.66 GiB is allocated by PyTorch, and 35.04 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://docs.pytorch.org/docs/stable/notes/cuda.html#optimizing-memory-usage-with-pytorch-cuda-alloc-conf)\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/kaggle/working/intentlock/scripts/phase0_smoke.py\", line 126, in <module>\n rec.update(ok=True, result=CHECKS[name]())\n ~~~~~~~~~~~~^^\n File \"/kaggle/working/intentlock/scripts/phase0_smoke.py\", line 111, in check_circuitkit\n circuit = ck.discover(model, \"greater_than\", algorithm=\"eap\", n_examples=4, batch_size=1,\n output_path=\"runs/phase0_circuit.pt\")\n File \"/usr/local/lib/python3.13/dist-packages/circuitkit/quick.py\", line 541, in discover\n nodes = discover_circuit(config, _model=model)\n File \"/usr/local/lib/python3.13/dist-packages/circuitkit/utils/debug.py\", line 189, in wrapper\n result = debugger.profile_function(func, *args, **kwargs)\n File \"/usr/local/lib/python3.13/dist-packages/circuitkit/utils/debug.py\", line 127, in profile_function\n result = func(*args, **kwargs)\n File \"/usr/local/lib/python3.13/dist-packages/circuitkit/utils/exceptions.py\", line 358, in wrapper\n raise handle_exception(e, error_context) from e\ncircuitkit.utils.exceptions.CircuitKitError: CUDA out of memory. Tried to allocate 1024.00 MiB. GPU 0 has a total capacity of 14.56 GiB of which 746.81 MiB is free. Including non-PyTorch memory, this process has 13.83 GiB memory in use. Of the allocated memory 13.66 GiB is allocated by PyTorch, and 35.04 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://docs.pytorch.org/docs/stable/notes/cuda.html#optimizing-memory-usage-with-pytorch-cuda-alloc-conf) (Context: operation=discover_circuit, function=discover_circuit, args=({'model': {'name': 'CohereLabs/tiny-aya-global', 'precision': 'bfloat16'}, 'discovery': {'algorithm': 'eap', 'task': 'greater_than', 'level': 'node', 'batch_size': 1, 'data_params': {'num_examples': , kwargs={'_model': HookedTransformer(\n (embed): Embed()\n (hook_embed): HookPoint(name='hook_embed')\n (blocks): TypedModuleList(\n (0): TransformerBlock(\n (ln1): LayerNorm(\n (hook_scale): Hook)\n", "seconds": 54.0, "seconds": 58.3, "device": "Tesla T4", "torch": "2.11.0+cu130"}9 unmodified lines10111213131415169 unmodified lines "final": 1099, "note": "Tiny Aya is not used by CuratorKIT here: generation is template-based." }, "seconds": 15.4, "seconds": 15.3, "device": "Tesla T4", "torch": "2.11.0+cu130"}2 unmodified lines345678678910112 unmodified lines "model": "CohereLabs/tiny-aya-global", "python": "3.13.16", "ok": false, "error": "RuntimeError: exit code 1\nTraceback (most recent call last):\n File \"<frozen runpy>\", line 203, in _run_module_as_main\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/kaggle/working/intentlock/training/harden_safetune.py\", line 199, in <module>\n main()\n ~~~~^^\n File \"/kaggle/working/intentlock/training/harden_safetune.py\", line 148, in main\n trainer = SafeGradHFTrainer(model=model, args=SafeGradConfig(**args_kw), train_dataset=train_ds,\n ~~~~~~~~~~~~~~^^^^^^^^^^^\nTypeError: TrainingArguments.__init__() got an unexpected keyword argument 'warmup_ratio'\n", "traceback": "Traceback (most recent call last):\n File \"/kaggle/working/intentlock/scripts/phase0_smoke.py\", line 126, in <module>\n rec.update(ok=True, result=CHECKS[name]())\n ~~~~~~~~~~~~^^\n File \"/kaggle/working/intentlock/scripts/phase0_smoke.py\", line 99, in check_safetune\n raise RuntimeError(f\"exit code {r.returncode}{hint}\\n{tb[-2500:] or r.stderr[-600:]}\")\nRuntimeError: exit code 1\nTraceback (most recent call last):\n File \"<frozen runpy>\", line 203, in _run_module_as_main\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/kaggle/working/intentlock/training/harden_safetune.py\", line 199, in <module>\n main()\n ~~~~^^\n File \"/kaggle/working/intentlock/training/harden_safetune.py\", line 148, in main\n trainer = SafeGradHFTrainer(model=model, args=SafeGradConfig(**args_kw), train_dataset=train_ds,\n ~~~~~~~~~~~~~~^^^^^^^^^^^\nTypeError: TrainingArguments.__init__() got an unexpected keyword argument 'warmup_ratio'\n\n", "seconds": 53.5, "error": "RuntimeError: exit code 1\n.<5 lines>...\n **kwargs,\n )\n File \"/usr/local/lib/python3.13/dist-packages/transformers/modeling_layers.py\", line 111, in __call__\n return super().__call__(*args, **kwargs)\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py\", line 1779, in _wrapped_call_impl\n return self._call_impl(*args, **kwargs)\n ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py\", line 1790, in _call_impl\n return forward_call(*args, **kwargs)\n File \"/usr/local/lib/python3.13/dist-packages/transformers/models/cohere2/modeling_cohere2.py\", line 300, in forward\n hidden_states_attention, _ = self.self_attn(\n ~~~~~~~~~~~~~~^\n hidden_states=hidden_states,\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ...<4 lines>...\n **kwargs,\n ^^^^^^^^^\n )\n ^\n File \"/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py\", line 1779, in _wrapped_call_impl\n return self._call_impl(*args, **kwargs)\n ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py\", line 1790, in _call_impl\n return forward_call(*args, **kwargs)\n File \"/usr/local/lib/python3.13/dist-packages/transformers/models/cohere2/modeling_cohere2.py\", line 231, in forward\n attn_output, attn_weights = attention_interface(\n ~~~~~~~~~~~~~~~~~~~^\n self,\n ^^^^^\n ...<7 lines>...\n **kwargs,\n ^^^^^^^^^\n )\n ^\n File \"/usr/local/lib/python3.13/dist-packages/transformers/integrations/sdpa_attention.py\", line 170, in sdpa_attention_forward\n attn_output = torch.nn.functional.scaled_dot_product_attention(\n query,\n ...<6 lines>...\n **sdpa_kwargs,\n )\ntorch.OutOfMemoryError: CUDA out of memory. Tried to allocate 80.00 MiB. GPU 0 has a total capacity of 14.56 GiB of which 24.81 MiB is free. Including non-PyTorch memory, this process has 14.54 GiB memory in use. Of the allocated memory 14.32 GiB is allocated by PyTorch, and 96.19 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://docs.pytorch.org/docs/stable/notes/cuda.html#optimizing-memory-usage-with-pytorch-cuda-alloc-conf)\n\n 0%| | 0/2 [00:03<?, ?it/s]\n", "traceback": "Traceback (most recent call last):\n File \"/kaggle/working/intentlock/scripts/phase0_smoke.py\", line 126, in <module>\n rec.update(ok=True, result=CHECKS[name]())\n ~~~~~~~~~~~~^^\n File \"/kaggle/working/intentlock/scripts/phase0_smoke.py\", line 99, in check_safetune\n raise RuntimeError(f\"exit code {r.returncode}{hint}\\n{tb[-2500:] or r.stderr[-600:]}\")\nRuntimeError: exit code 1\n.<5 lines>...\n **kwargs,\n )\n File \"/usr/local/lib/python3.13/dist-packages/transformers/modeling_layers.py\", line 111, in __call__\n return super().__call__(*args, **kwargs)\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py\", line 1779, in _wrapped_call_impl\n return self._call_impl(*args, **kwargs)\n ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py\", line 1790, in _call_impl\n return forward_call(*args, **kwargs)\n File \"/usr/local/lib/python3.13/dist-packages/transformers/models/cohere2/modeling_cohere2.py\", line 300, in forward\n hidden_states_attention, _ = self.self_attn(\n ~~~~~~~~~~~~~~^\n hidden_states=hidden_states,\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ...<4 lines>...\n **kwargs,\n ^^^^^^^^^\n )\n ^\n File \"/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py\", line 1779, in _wrapped_call_impl\n return self._call_impl(*args, **kwargs)\n ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py\", line 1790, in _call_impl\n return forward_call(*args, **kwargs)\n File \"/usr/local/lib/python3.13/dist-packages/transformers/models/cohere2/modeling_cohere2.py\", line 231, in forward\n attn_output, attn_weights = attention_interface(\n ~~~~~~~~~~~~~~~~~~~^\n self,\n ^^^^^\n ...<7 lines>...\n **kwargs,\n ^^^^^^^^^\n )\n ^\n File \"/usr/local/lib/python3.13/dist-packages/transformers/integrations/sdpa_attention.py\", line 170, in sdpa_attention_forward\n attn_output = torch.nn.functional.scaled_dot_product_attention(\n query,\n ...<6 lines>...\n **sdpa_kwargs,\n )\ntorch.OutOfMemoryError: CUDA out of memory. Tried to allocate 80.00 MiB. GPU 0 has a total capacity of 14.56 GiB of which 24.81 MiB is free. Including non-PyTorch memory, this process has 14.54 GiB memory in use. Of the allocated memory 14.32 GiB is allocated by PyTorch, and 96.19 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://docs.pytorch.org/docs/stable/notes/cuda.html#optimizing-memory-usage-with-pytorch-cuda-alloc-conf)\n\n 0%| | 0/2 [00:03<?, ?it/s]\n\n", "seconds": 65.6, "device": "Tesla T4", "torch": "2.11.0+cu130"}122345678910111213141516171819202122232425262728293031323356789101112131415161718192021222324252627282930313233343536373839363738394041424342434445464647484949505152535253545556565758595960616260616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189WARNING: All log messages before absl::InitializeLog() is called are written to STDERRI0000 00:00:1794294428.075889 491 cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.I0000 00:00:1794294965.399782 520 cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.
Generating 330k_train split: 0%| | 0/300567 [00:00<?, ? examples/s]Generating 330k_train split: 4%|▎ | 10683/300567 [00:00<00:04, 66911.49 examples/s]Generating 330k_train split: 7%|▋ | 21333/300567 [00:00<00:03, 75144.76 examples/s]Generating 330k_train split: 11%|█ | 31947/300567 [00:00<00:03, 71432.21 examples/s]Generating 330k_train split: 14%|█▍ | 42574/300567 [00:00<00:03, 76018.72 examples/s]Generating 330k_train split: 18%|█▊ | 53199/300567 [00:00<00:03, 78146.08 examples/s]Generating 330k_train split: 21%|██ | 63839/300567 [00:00<00:02, 79659.95 examples/s]Generating 330k_train split: 25%|██▍ | 74471/300567 [00:00<00:02, 79073.83 examples/s]Generating 330k_train split: 28%|██▊ | 85134/300567 [00:01<00:02, 80970.73 examples/s]Generating 330k_train split: 32%|███▏ | 95777/300567 [00:01<00:02, 79036.26 examples/s]Generating 330k_train split: 35%|███▌ | 106416/300567 [00:01<00:02, 79489.81 examples/s]Generating 330k_train split: 39%|███▉ | 117058/300567 [00:01<00:02, 79714.80 examples/s]Generating 330k_train split: 42%|████▏ | 127724/300567 [00:01<00:02, 80140.91 examples/s]Generating 330k_train split: 46%|████▌ | 138387/300567 [00:01<00:01, 81710.60 examples/s]Generating 330k_train split: 50%|████▉ | 149012/300567 [00:01<00:01, 82330.74 examples/s]Generating 330k_train split: 53%|█████▎ | 159668/300567 [00:02<00:01, 81904.04 examples/s]Generating 330k_train split: 57%|█████▋ | 170271/300567 [00:02<00:01, 82973.69 examples/s]Generating 330k_train split: 60%|██████ | 180935/300567 [00:02<00:01, 83474.95 examples/s]Generating 330k_train split: 64%|██████▎ | 191535/300567 [00:02<00:01, 84179.06 examples/s]Generating 330k_train split: 67%|██████▋ | 202152/300567 [00:02<00:01, 84383.67 examples/s]Generating 330k_train split: 71%|███████ | 212812/300567 [00:02<00:01, 84650.81 examples/s]Generating 330k_train split: 74%|███████▍ | 223456/300567 [00:02<00:00, 84795.82 examples/s]Generating 330k_train split: 78%|███████▊ | 234106/300567 [00:02<00:00, 84587.96 examples/s]Generating 330k_train split: 81%|████████▏ | 244741/300567 [00:03<00:00, 82345.49 examples/s]Generating 330k_train split: 85%|████████▍ | 255377/300567 [00:03<00:00, 80494.28 examples/s]Generating 330k_train split: 89%|████████▊ | 266066/300567 [00:03<00:00, 78589.50 examples/s]Generating 330k_train split: 92%|█████████▏| 276729/300567 [00:03<00:00, 79925.05 examples/s]Generating 330k_train split: 96%|█████████▌| 287372/300567 [00:03<00:00, 79445.21 examples/s]Generating 330k_train split: 99%|█████████▉| 297990/300567 [00:03<00:00, 79419.53 examples/s]Generating 330k_train split: 100%|██████████| 300567/300567 [00:03<00:00, 80435.00 examples/s]Generating 330k_train split: 4%|▎ | 10683/300567 [00:00<00:04, 68217.77 examples/s]Generating 330k_train split: 7%|▋ | 21333/300567 [00:00<00:03, 76054.55 examples/s]Generating 330k_train split: 11%|█ | 31947/300567 [00:00<00:03, 74536.44 examples/s]Generating 330k_train split: 14%|█▍ | 42574/300567 [00:00<00:03, 75253.36 examples/s]Generating 330k_train split: 18%|█▊ | 53199/300567 [00:00<00:03, 77621.80 examples/s]Generating 330k_train split: 21%|██ | 63839/300567 [00:00<00:03, 75380.41 examples/s]Generating 330k_train split: 25%|██▍ | 74471/300567 [00:00<00:02, 77636.09 examples/s]Generating 330k_train split: 28%|██▊ | 85134/300567 [00:01<00:02, 77819.27 examples/s]Generating 330k_train split: 32%|███▏ | 95777/300567 [00:01<00:02, 73278.30 examples/s]Generating 330k_train split: 35%|███▌ | 106416/300567 [00:01<00:02, 74705.46 examples/s]Generating 330k_train split: 39%|███▉ | 117058/300567 [00:01<00:02, 76731.58 examples/s]Generating 330k_train split: 42%|████▏ | 127724/300567 [00:01<00:02, 78879.71 examples/s]Generating 330k_train split: 46%|████▌ | 138387/300567 [00:01<00:02, 80170.54 examples/s]Generating 330k_train split: 50%|████▉ | 149012/300567 [00:01<00:01, 81018.17 examples/s]Generating 330k_train split: 53%|█████▎ | 159668/300567 [00:02<00:01, 80610.46 examples/s]Generating 330k_train split: 57%|█████��� | 170271/300567 [00:02<00:01, 80438.79 examples/s]Generating 330k_train split: 60%|██████ | 180935/300567 [00:02<00:01, 79965.09 examples/s]Generating 330k_train split: 64%|██████▎ | 191535/300567 [00:02<00:01, 78394.68 examples/s]Generating 330k_train split: 67%|██████▋ | 202152/300567 [00:02<00:01, 79753.47 examples/s]Generating 330k_train split: 71%|███████ | 212812/300567 [00:02<00:01, 80782.66 examples/s]Generating 330k_train split: 74%|███████▍ | 223456/300567 [00:02<00:00, 81692.88 examples/s]Generating 330k_train split: 78%|███████▊ | 234106/300567 [00:02<00:00, 82117.36 examples/s]Generating 330k_train split: 81%|████████▏ | 244741/300567 [00:03<00:00, 81883.57 examples/s]Generating 330k_train split: 85%|████████▍ | 255377/300567 [00:03<00:00, 81890.22 examples/s]Generating 330k_train split: 89%|████████▊ | 266066/300567 [00:03<00:00, 82293.25 examples/s]Generating 330k_train split: 92%|█████████▏| 276729/300567 [00:03<00:00, 80855.44 examples/s]Generating 330k_train split: 96%|█████████▌| 287372/300567 [00:03<00:00, 80627.12 examples/s]Generating 330k_train split: 99%|█████████▉| 297990/300567 [00:03<00:00, 81480.87 examples/s]Generating 330k_train split: 100%|██████████| 300567/300567 [00:03<00:00, 79006.38 examples/s]
Generating 330k_test split: 0%| | 0/33396 [00:00<?, ? examples/s]Generating 330k_test split: 32%|███▏ | 10673/33396 [00:00<00:00, 85345.75 examples/s]Generating 330k_test split: 64%|██████▍ | 21331/33396 [00:00<00:00, 93714.08 examples/s]Generating 330k_test split: 96%|█████████▌| 32005/33396 [00:00<00:00, 81183.71 examples/s]Generating 330k_test split: 100%|██████████| 33396/33396 [00:00<00:00, 83567.24 examples/s]Generating 330k_test split: 32%|███▏ | 10673/33396 [00:00<00:00, 82152.06 examples/s]Generating 330k_test split: 64%|██████▍ | 21331/33396 [00:00<00:00, 85669.13 examples/s]Generating 330k_test split: 96%|█████████▌| 32005/33396 [00:00<00:00, 90690.84 examples/s]Generating 330k_test split: 100%|██████████| 33396/33396 [00:00<00:00, 88860.64 examples/s]
Generating 30k_train split: 0%| | 0/27186 [00:00<?, ? examples/s]Generating 30k_train split: 78%|███████▊ | 21132/27186 [00:00<00:00, 113906.75 examples/s]Generating 30k_train split: 100%|██████████| 27186/27186 [00:00<00:00, 113837.04 examples/s]Generating 30k_train split: 78%|███████▊ | 21132/27186 [00:00<00:00, 117261.10 examples/s]Generating 30k_train split: 100%|██████████| 27186/27186 [00:00<00:00, 118731.44 examples/s]
Generating 30k_test split: 0%| | 0/3021 [00:00<?, ? examples/s]Generating 30k_test split: 100%|██████████| 3021/3021 [00:00<00:00, 86551.09 examples/s]Generating 30k_test split: 100%|██████████| 3021/3021 [00:00<00:00, 113739.12 examples/s]
Generating train split: 0%| | 0/7473 [00:00<?, ? examples/s]Generating train split: 100%|██████████| 7473/7473 [00:00<00:00, 165134.60 examples/s]Generating train split: 100%|██████████| 7473/7473 [00:00<00:00, 169473.93 examples/s]
Generating test split: 0%| | 0/1319 [00:00<?, ? examples/s]Generating test split: 100%|██████████| 1319/1319 [00:00<00:00, 294521.24 examples/s]Traceback (most recent call last):Generating test split: 100%|██████████| 1319/1319 [00:00<00:00, 253635.02 examples/s]
0%| | 0/2 [00:00<?, ?it/s]Traceback (most recent call last): File "<frozen runpy>", line 203, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/kaggle/working/intentlock/training/harden_safetune.py", line 199, in <module> File "/kaggle/working/intentlock/training/harden_safetune.py", line 200, in <module> main() ~~~~^^ File "/kaggle/working/intentlock/training/harden_safetune.py", line 148, in main trainer = SafeGradHFTrainer(model=model, args=SafeGradConfig(**args_kw), train_dataset=train_ds, ~~~~~~~~~~~~~~^^^^^^^^^^^TypeError: TrainingArguments.__init__() got an unexpected keyword argument 'warmup_ratio' File "/kaggle/working/intentlock/training/harden_safetune.py", line 157, in main result = trainer.train() File "/usr/local/lib/python3.13/dist-packages/transformers/trainer.py", line 1559, in train return inner_training_loop( args=args, ...<2 lines>... ignore_keys_for_eval=ignore_keys_for_eval, ) File "/usr/local/lib/python3.13/dist-packages/transformers/trainer.py", line 1643, in _inner_training_loop self._run_epoch( ~~~~~~~~~~~~~~~^ model=model, ^^^^^^^^^^^^ ...<9 lines>... steps_trained_in_current_epoch=steps_trained_in_current_epoch, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/dist-packages/transformers/trainer.py", line 1889, in _run_epoch tr_loss_step = self.training_step(model, inputs, num_items_in_batch) File "/usr/local/lib/python3.13/dist-packages/safetune/interventions/harden/safegrad.py", line 336, in training_step loss = super().training_step(model, inputs, num_items_in_batch) File "/usr/local/lib/python3.13/dist-packages/transformers/trainer.py", line 2062, in training_step loss = self.compute_loss(model, inputs, num_items_in_batch=num_items_in_batch) File "/usr/local/lib/python3.13/dist-packages/transformers/trainer.py", line 2144, in compute_loss outputs = model(**inputs) File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1790, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/accelerate/utils/operations.py", line 943, in forward return model_forward(*args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/accelerate/utils/operations.py", line 931, in __call__ return convert_to_fp32(self.model_forward(*args, **kwargs)) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/torch/amp/autocast_mode.py", line 44, in decorate_autocast return func(*args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/peft/peft_model.py", line 2120, in forward return self.base_model( ~~~~~~~~~~~~~~~^ input_ids=input_ids, ^^^^^^^^^^^^^^^^^^^^ ...<6 lines>... **kwargs, ^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1790, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/peft/tuners/tuners_utils.py", line 359, in forward return self.model(*args, **kwargs) ~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1790, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/transformers/utils/generic.py", line 943, in wrapper output = func(self, *args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/transformers/models/cohere2/modeling_cohere2.py", line 460, in forward outputs: BaseModelOutputWithPast = self.model( ~~~~~~~~~~^ input_ids=input_ids, ^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... **kwargs, ^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1790, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/transformers/utils/generic.py", line 1081, in wrapper output = func(self, *args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/transformers/utils/output_capturing.py", line 287, in wrapper outputs = func(self, *args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/transformers/models/cohere2/modeling_cohere2.py", line 394, in forward hidden_states = decoder_layer( hidden_states, ...<5 lines>... **kwargs, ) File "/usr/local/lib/python3.13/dist-packages/transformers/modeling_layers.py", line 111, in __call__ return super().__call__(*args, **kwargs) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1790, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/transformers/models/cohere2/modeling_cohere2.py", line 300, in forward hidden_states_attention, _ = self.self_attn( ~~~~~~~~~~~~~~^ hidden_states=hidden_states, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... **kwargs, ^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1790, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/transformers/models/cohere2/modeling_cohere2.py", line 231, in forward attn_output, attn_weights = attention_interface( ~~~~~~~~~~~~~~~~~~~^ self, ^^^^^ ...<7 lines>... **kwargs, ^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/dist-packages/transformers/integrations/sdpa_attention.py", line 170, in sdpa_attention_forward attn_output = torch.nn.functional.scaled_dot_product_attention( query, ...<6 lines>... **sdpa_kwargs, )torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 80.00 MiB. GPU 0 has a total capacity of 14.56 GiB of which 24.81 MiB is free. Including non-PyTorch memory, this process has 14.54 GiB memory in use. Of the allocated memory 14.32 GiB is allocated by PyTorch, and 96.19 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://docs.pytorch.org/docs/stable/notes/cuda.html#optimizing-memory-usage-with-pytorch-cuda-alloc-conf)
0%| | 0/2 [00:03<?, ?it/s]10 unmodified lines111213141415161718181920215 unmodified lines272829303031323310 unmodified lines "templated_prompt_tokens": 410, "templated_prompt_head": "<BOS_TOKEN><|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|># System Preamble\nYou are in contextual safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will accept to provide information and creative content related to violence, hate, misinformation or sex, but you will not provide any content that could directly or indirectly ", "native_tools_render": false, "load_seconds": 39.0, "load_seconds": 40.3, "n_layers": 36, "model_type": "cohere2", "generation": "ready", "tokens_per_second": 1.27, "tokens_per_second": 0.95, "lora_candidate_modules": [ "down_proj", "gate_proj",5 unmodified lines "v_proj" ] }, "seconds": 70.4, "seconds": 75.2, "device": "Tesla T4", "torch": "2.11.0+cu130"}reports/phase0/auditkit.json+2-2
reports/phase0/circuitkit.json+1-1
reports/phase0/curatorkit.json+1-1
reports/phase0/safetune.json+3-3
reports/phase0/safetune.stderr.log+172-45
reports/phase0/transformers.json+3-3