| + deepspeed |
| [rank4]:[W529 10:34:42.377279637 ProcessGroupNCCL.cpp:4561] [PG ID 0 PG GUID 0 Rank 4] using GPU 4 to perform barrier as devices used by this process are currently unknown. This can potentially cause a hang if this rank to GPU mapping is incorrect. Specify device_ids in barrier() to force use of a particular device, or call init_process_group() with a device_id. |
| [rank5]:[W529 10:34:42.530288998 ProcessGroupNCCL.cpp:4561] [PG ID 0 PG GUID 0 Rank 5] using GPU 5 to perform barrier as devices used by this process are currently unknown. This can potentially cause a hang if this rank to GPU mapping is incorrect. Specify device_ids in barrier() to force use of a particular device, or call init_process_group() with a device_id. |
| [rank6]:[W529 10:34:42.715589226 ProcessGroupNCCL.cpp:4561] [PG ID 0 PG GUID 0 Rank 6] using GPU 6 to perform barrier as devices used by this process are currently unknown. This can potentially cause a hang if this rank to GPU mapping is incorrect. Specify device_ids in barrier() to force use of a particular device, or call init_process_group() with a device_id. |
| [rank2]:[W529 10:34:42.783712087 ProcessGroupNCCL.cpp:4561] [PG ID 0 PG GUID 0 Rank 2] using GPU 2 to perform barrier as devices used by this process are currently unknown. This can potentially cause a hang if this rank to GPU mapping is incorrect. Specify device_ids in barrier() to force use of a particular device, or call init_process_group() with a device_id. |
| [rank1]:[W529 10:34:42.800551559 ProcessGroupNCCL.cpp:4561] [PG ID 0 PG GUID 0 Rank 1] using GPU 1 to perform barrier as devices used by this process are currently unknown. This can potentially cause a hang if this rank to GPU mapping is incorrect. Specify device_ids in barrier() to force use of a particular device, or call init_process_group() with a device_id. |
| [rank3]:[W529 10:34:42.821429564 ProcessGroupNCCL.cpp:4561] [PG ID 0 PG GUID 0 Rank 3] using GPU 3 to perform barrier as devices used by this process are currently unknown. This can potentially cause a hang if this rank to GPU mapping is incorrect. Specify device_ids in barrier() to force use of a particular device, or call init_process_group() with a device_id. |
| [rank0]:[W529 10:34:42.860640177 ProcessGroupNCCL.cpp:4561] [PG ID 0 PG GUID 0 Rank 0] using GPU 0 to perform barrier as devices used by this process are currently unknown. This can potentially cause a hang if this rank to GPU mapping is incorrect. Specify device_ids in barrier() to force use of a particular device, or call init_process_group() with a device_id. |
| [rank7]:[W529 10:34:42.879087326 ProcessGroupNCCL.cpp:4561] [PG ID 0 PG GUID 0 Rank 7] using GPU 7 to perform barrier as devices used by this process are currently unknown. This can potentially cause a hang if this rank to GPU mapping is incorrect. Specify device_ids in barrier() to force use of a particular device, or call init_process_group() with a device_id. |
| loading configuration file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/config.json |
| loading configuration file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/config.json |
| loading configuration file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/config.json |
| loading configuration file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/config.json |
| loading configuration file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/config.json |
| loading configuration file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/config.json |
| loading configuration file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/config.json |
| loading configuration file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/config.json |
| Model config LlamaConfig { |
| "_attn_implementation_autoset": true, |
| "_name_or_path": "/aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k", |
| "architectures": [ |
| "LlamaForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "head_dim": 64, |
| "hidden_act": "silu", |
| "hidden_size": 2048, |
| "initializer_range": 0.02, |
| "intermediate_size": 5632, |
| "max_position_embeddings": 2048, |
| "mlp_bias": false, |
| "model_type": "llama", |
| "num_attention_heads": 32, |
| "num_hidden_layers": 22, |
| "num_key_value_heads": 4, |
| "pad_token_id": 32000, |
| "pretraining_tp": 1, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 10000.0, |
| "tie_word_embeddings": false, |
| "torch_dtype": "float32", |
| "transformers_version": "4.49.0", |
| "use_cache": true, |
| "vocab_size": 32001 |
| } |
|
|
| Model config LlamaConfig { |
| "_attn_implementation_autoset": true, |
| "_name_or_path": "/aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k", |
| "architectures": [ |
| "LlamaForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "head_dim": 64, |
| "hidden_act": "silu", |
| "hidden_size": 2048, |
| "initializer_range": 0.02, |
| "intermediate_size": 5632, |
| "max_position_embeddings": 2048, |
| "mlp_bias": false, |
| "model_type": "llama", |
| "num_attention_heads": 32, |
| "num_hidden_layers": 22, |
| "num_key_value_heads": 4, |
| "pad_token_id": 32000, |
| "pretraining_tp": 1, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 10000.0, |
| "tie_word_embeddings": false, |
| "torch_dtype": "float32", |
| "transformers_version": "4.49.0", |
| "use_cache": true, |
| "vocab_size": 32001 |
| } |
|
|
| Model config LlamaConfig { |
| "_attn_implementation_autoset": true, |
| "_name_or_path": "/aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k", |
| "architectures": [ |
| "LlamaForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "head_dim": 64, |
| "hidden_act": "silu", |
| "hidden_size": 2048, |
| "initializer_range": 0.02, |
| "intermediate_size": 5632, |
| "max_position_embeddings": 2048, |
| "mlp_bias": false, |
| "model_type": "llama", |
| "num_attention_heads": 32, |
| "num_hidden_layers": 22, |
| "num_key_value_heads": 4, |
| "pad_token_id": 32000, |
| "pretraining_tp": 1, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 10000.0, |
| "tie_word_embeddings": false, |
| "torch_dtype": "float32", |
| "transformers_version": "4.49.0", |
| "use_cache": true, |
| "vocab_size": 32001 |
| } |
|
|
| Model config LlamaConfig { |
| "_attn_implementation_autoset": true, |
| "_name_or_path": "/aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k", |
| "architectures": [ |
| "LlamaForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "head_dim": 64, |
| "hidden_act": "silu", |
| "hidden_size": 2048, |
| "initializer_range": 0.02, |
| "intermediate_size": 5632, |
| "max_position_embeddings": 2048, |
| "mlp_bias": false, |
| "model_type": "llama", |
| "num_attention_heads": 32, |
| "num_hidden_layers": 22, |
| "num_key_value_heads": 4, |
| "pad_token_id": 32000, |
| "pretraining_tp": 1, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 10000.0, |
| "tie_word_embeddings": false, |
| "torch_dtype": "float32", |
| "transformers_version": "4.49.0", |
| "use_cache": true, |
| "vocab_size": 32001 |
| } |
|
|
| Model config LlamaConfig { |
| "_attn_implementation_autoset": true, |
| "_name_or_path": "/aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k", |
| "architectures": [ |
| "LlamaForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "head_dim": 64, |
| "hidden_act": "silu", |
| "hidden_size": 2048, |
| "initializer_range": 0.02, |
| "intermediate_size": 5632, |
| "max_position_embeddings": 2048, |
| "mlp_bias": false, |
| "model_type": "llama", |
| "num_attention_heads": 32, |
| "num_hidden_layers": 22, |
| "num_key_value_heads": 4, |
| "pad_token_id": 32000, |
| "pretraining_tp": 1, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 10000.0, |
| "tie_word_embeddings": false, |
| "torch_dtype": "float32", |
| "transformers_version": "4.49.0", |
| "use_cache": true, |
| "vocab_size": 32001 |
| } |
|
|
| Model config LlamaConfig { |
| "_attn_implementation_autoset": true, |
| "_name_or_path": "/aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k", |
| "architectures": [ |
| "LlamaForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "head_dim": 64, |
| "hidden_act": "silu", |
| "hidden_size": 2048, |
| "initializer_range": 0.02, |
| "intermediate_size": 5632, |
| "max_position_embeddings": 2048, |
| "mlp_bias": false, |
| "model_type": "llama", |
| "num_attention_heads": 32, |
| "num_hidden_layers": 22, |
| "num_key_value_heads": 4, |
| "pad_token_id": 32000, |
| "pretraining_tp": 1, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 10000.0, |
| "tie_word_embeddings": false, |
| "torch_dtype": "float32", |
| "transformers_version": "4.49.0", |
| "use_cache": true, |
| "vocab_size": 32001 |
| } |
|
|
| Model config LlamaConfig { |
| "_attn_implementation_autoset": true, |
| "_name_or_path": "/aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k", |
| "architectures": [ |
| "LlamaForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "head_dim": 64, |
| "hidden_act": "silu", |
| "hidden_size": 2048, |
| "initializer_range": 0.02, |
| "intermediate_size": 5632, |
| "max_position_embeddings": 2048, |
| "mlp_bias": false, |
| "model_type": "llama", |
| "num_attention_heads": 32, |
| "num_hidden_layers": 22, |
| "num_key_value_heads": 4, |
| "pad_token_id": 32000, |
| "pretraining_tp": 1, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 10000.0, |
| "tie_word_embeddings": false, |
| "torch_dtype": "float32", |
| "transformers_version": "4.49.0", |
| "use_cache": true, |
| "vocab_size": 32001 |
| } |
|
|
| Model config LlamaConfig { |
| "_attn_implementation_autoset": true, |
| "_name_or_path": "/aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k", |
| "architectures": [ |
| "LlamaForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "head_dim": 64, |
| "hidden_act": "silu", |
| "hidden_size": 2048, |
| "initializer_range": 0.02, |
| "intermediate_size": 5632, |
| "max_position_embeddings": 2048, |
| "mlp_bias": false, |
| "model_type": "llama", |
| "num_attention_heads": 32, |
| "num_hidden_layers": 22, |
| "num_key_value_heads": 4, |
| "pad_token_id": 32000, |
| "pretraining_tp": 1, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 10000.0, |
| "tie_word_embeddings": false, |
| "torch_dtype": "float32", |
| "transformers_version": "4.49.0", |
| "use_cache": true, |
| "vocab_size": 32001 |
| } |
|
|
| loading weights file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/pytorch_model.bin |
| loading weights file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/pytorch_model.bin |
| loading weights file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/pytorch_model.bin |
| loading weights file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/pytorch_model.bin |
| loading weights file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/pytorch_model.bin |
| loading weights file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/pytorch_model.bin |
| loading weights file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/pytorch_model.bin |
| loading weights file /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k/pytorch_model.bin |
| Will use torch_dtype=torch.float32 as defined in model's config object |
| Instantiating LlamaForCausalLM model under default dtype torch.float32. |
| Detected DeepSpeed ZeRO-3: activating zero.init() for this model |
| Generate config GenerationConfig { |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "pad_token_id": 32000 |
| } |
| |
| Will use torch_dtype=torch.float32 as defined in model's config object |
| Instantiating LlamaForCausalLM model under default dtype torch.float32. |
| Detected DeepSpeed ZeRO-3: activating zero.init() for this model |
| Will use torch_dtype=torch.float32 as defined in model's config object |
| Instantiating LlamaForCausalLM model under default dtype torch.float32. |
| Detected DeepSpeed ZeRO-3: activating zero.init() for this model |
| Will use torch_dtype=torch.float32 as defined in model's config object |
| Instantiating LlamaForCausalLM model under default dtype torch.float32. |
| Detected DeepSpeed ZeRO-3: activating zero.init() for this model |
| Generate config GenerationConfig { |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "pad_token_id": 32000 |
| } |
|
|
| Generate config GenerationConfig { |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "pad_token_id": 32000 |
| } |
|
|
| Generate config GenerationConfig { |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "pad_token_id": 32000 |
| } |
|
|
| Will use torch_dtype=torch.float32 as defined in model's config object |
| Instantiating LlamaForCausalLM model under default dtype torch.float32. |
| Detected DeepSpeed ZeRO-3: activating zero.init() for this model |
| Will use torch_dtype=torch.float32 as defined in model's config object |
| Instantiating LlamaForCausalLM model under default dtype torch.float32. |
| Detected DeepSpeed ZeRO-3: activating zero.init() for this model |
| Will use torch_dtype=torch.float32 as defined in model's config object |
| Instantiating LlamaForCausalLM model under default dtype torch.float32. |
| Detected DeepSpeed ZeRO-3: activating zero.init() for this model |
| Will use torch_dtype=torch.float32 as defined in model's config object |
| Instantiating LlamaForCausalLM model under default dtype torch.float32. |
| Detected DeepSpeed ZeRO-3: activating zero.init() for this model |
| Generate config GenerationConfig { |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "pad_token_id": 32000 |
| } |
|
|
| Generate config GenerationConfig { |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "pad_token_id": 32000 |
| } |
|
|
| Generate config GenerationConfig { |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "pad_token_id": 32000 |
| } |
|
|
| Generate config GenerationConfig { |
| "bos_token_id": 1, |
| "eos_token_id": 2, |
| "pad_token_id": 32000 |
| } |
|
|
| All model checkpoint weights were used when initializing LlamaForCausalLM. |
|
|
| All model checkpoint weights were used when initializing LlamaForCausalLM. |
|
|
| All the weights of LlamaForCausalLM were initialized from the model checkpoint at /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k. |
| If your task is similar to the task the model of the checkpoint was trained on, you can already use LlamaForCausalLM for predictions without further training. |
| All the weights of LlamaForCausalLM were initialized from the model checkpoint at /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k. |
| If your task is similar to the task the model of the checkpoint was trained on, you can already use LlamaForCausalLM for predictions without further training. |
| Generation config file not found, using a generation config created from the model config. |
| Generation config file not found, using a generation config created from the model config. |
| All model checkpoint weights were used when initializing LlamaForCausalLM. |
|
|
| All the weights of LlamaForCausalLM were initialized from the model checkpoint at /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k. |
| If your task is similar to the task the model of the checkpoint was trained on, you can already use LlamaForCausalLM for predictions without further training. |
| All model checkpoint weights were used when initializing LlamaForCausalLM. |
|
|
| All model checkpoint weights were used when initializing LlamaForCausalLM. |
|
|
| All model checkpoint weights were used when initializing LlamaForCausalLM. |
|
|
| All the weights of LlamaForCausalLM were initialized from the model checkpoint at /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k. |
| If your task is similar to the task the model of the checkpoint was trained on, you can already use LlamaForCausalLM for predictions without further training. |
| All model checkpoint weights were used when initializing LlamaForCausalLM. |
|
|
| All the weights of LlamaForCausalLM were initialized from the model checkpoint at /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k. |
| If your task is similar to the task the model of the checkpoint was trained on, you can already use LlamaForCausalLM for predictions without further training. |
| All the weights of LlamaForCausalLM were initialized from the model checkpoint at /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k. |
| If your task is similar to the task the model of the checkpoint was trained on, you can already use LlamaForCausalLM for predictions without further training. |
| All the weights of LlamaForCausalLM were initialized from the model checkpoint at /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k. |
| If your task is similar to the task the model of the checkpoint was trained on, you can already use LlamaForCausalLM for predictions without further training. |
| Generation config file not found, using a generation config created from the model config. |
| Generation config file not found, using a generation config created from the model config. |
| Generation config file not found, using a generation config created from the model config. |
| Generation config file not found, using a generation config created from the model config. |
| Generation config file not found, using a generation config created from the model config. |
| loading file tokenizer.model |
| loading file tokenizer.json |
| loading file added_tokens.json |
| loading file special_tokens_map.json |
| loading file tokenizer_config.json |
| loading file chat_template.jinja |
| loading file tokenizer.model |
| loading file tokenizer.json |
| loading file added_tokens.json |
| loading file special_tokens_map.json |
| loading file tokenizer_config.json |
| loading file chat_template.jinja |
| loading file tokenizer.model |
| loading file tokenizer.json |
| loading file added_tokens.json |
| loading file special_tokens_map.json |
| loading file tokenizer_config.json |
| loading file chat_template.jinja |
| loading file tokenizer.model |
| loading file tokenizer.json |
| loading file added_tokens.json |
| loading file special_tokens_map.json |
| loading file tokenizer_config.json |
| loading file chat_template.jinja |
| loading file tokenizer.model |
| loading file tokenizer.json |
| loading file added_tokens.json |
| loading file special_tokens_map.json |
| loading file tokenizer_config.json |
| loading file chat_template.jinja |
| loading file tokenizer.model |
| loading file tokenizer.json |
| loading file added_tokens.json |
| loading file special_tokens_map.json |
| loading file tokenizer_config.json |
| loading file chat_template.jinja |
| loading file tokenizer.model |
| loading file tokenizer.json |
| loading file added_tokens.json |
| loading file special_tokens_map.json |
| loading file tokenizer_config.json |
| loading file chat_template.jinja |
| All model checkpoint weights were used when initializing LlamaForCausalLM. |
|
|
| All the weights of LlamaForCausalLM were initialized from the model checkpoint at /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k. |
| If your task is similar to the task the model of the checkpoint was trained on, you can already use LlamaForCausalLM for predictions without further training. |
| Generation config file not found, using a generation config created from the model config. |
| loading file tokenizer.model |
| loading file tokenizer.json |
| loading file added_tokens.json |
| loading file special_tokens_map.json |
| loading file tokenizer_config.json |
| loading file chat_template.jinja |
| Using /home/hansirui_1st/.cache/torch_extensions/py311_cu124 as PyTorch extensions root...Using /home/hansirui_1st/.cache/torch_extensions/py311_cu124 as PyTorch extensions root...Using /home/hansirui_1st/.cache/torch_extensions/py311_cu124 as PyTorch extensions root... |
|
|
|
|
| Using /home/hansirui_1st/.cache/torch_extensions/py311_cu124 as PyTorch extensions root... |
| Using /home/hansirui_1st/.cache/torch_extensions/py311_cu124 as PyTorch extensions root... |
| Using /home/hansirui_1st/.cache/torch_extensions/py311_cu124 as PyTorch extensions root... |
| Using /home/hansirui_1st/.cache/torch_extensions/py311_cu124 as PyTorch extensions root... |
| Using /home/hansirui_1st/.cache/torch_extensions/py311_cu124 as PyTorch extensions root... |
| Detected CUDA files, patching ldflags |
| Emitting ninja build file /home/hansirui_1st/.cache/torch_extensions/py311_cu124/fused_adam/build.ninja... |
| /aifs4su/hansirui_1st/miniconda3/envs/by-align/lib/python3.11/site-packages/torch/utils/cpp_extension.py:2059: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation. |
| If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST']. |
| warnings.warn( |
| Building extension module fused_adam... |
| Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) |
| Loading extension module fused_adam... |
| Loading extension module fused_adam...Loading extension module fused_adam... |
|
|
| Loading extension module fused_adam... |
| Loading extension module fused_adam... |
| Loading extension module fused_adam... |
| Loading extension module fused_adam... |
| Loading extension module fused_adam... |
| wandb: Using wandb-core as the SDK backend. Please refer to https://wandb.me/wandb-core for more information. |
| `use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`. |
| `use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`. |
| `use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`. |
| `use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`. |
| `use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`. |
| `use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`. |
| `use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`. |
| wandb: Currently logged in as: xtom to https://api.wandb.ai. Use `wandb login |
| wandb: Tracking run with wandb version 0.19.8 |
| wandb: Run data is saved locally in /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k-Q2-2k/wandb/run-20250529_103500-fs3xphxi |
| wandb: Run `wandb offline` to turn off syncing. |
| wandb: Syncing run tinyllama-2T-s3-Q1-1k-Q2-2k |
| wandb: βοΈ View project at https://wandb.ai/xtom/Inverse_Alignment |
| wandb: π View run at https://wandb.ai/xtom/Inverse_Alignment/runs/fs3xphxi |
|
Training 1/1 epoch: 0%| | 0/63 [00:00<?, ?it/s]`use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`. |
|
Training 1/1 epoch (loss 1.9937): 0%| | 0/63 [00:11<?, ?it/s]
Training 1/1 epoch (loss 1.9937): 2%|β | 1/63 [00:11<11:41, 11.31s/it]
Training 1/1 epoch (loss 1.9778): 2%|β | 1/63 [00:13<11:41, 11.31s/it]
Training 1/1 epoch (loss 1.9778): 3%|β | 2/63 [00:13<06:02, 5.94s/it]
Training 1/1 epoch (loss 2.0346): 3%|β | 2/63 [00:15<06:02, 5.94s/it]
Training 1/1 epoch (loss 2.0346): 5%|β | 3/63 [00:15<03:55, 3.92s/it]
Training 1/1 epoch (loss 1.9499): 5%|β | 3/63 [00:16<03:55, 3.92s/it]
Training 1/1 epoch (loss 1.9499): 6%|β | 4/63 [00:16<02:50, 2.88s/it]
Training 1/1 epoch (loss 1.9601): 6%|β | 4/63 [00:18<02:50, 2.88s/it]
Training 1/1 epoch (loss 1.9601): 8%|β | 5/63 [00:18<02:23, 2.48s/it]
Training 1/1 epoch (loss 2.0401): 8%|β | 5/63 [00:19<02:23, 2.48s/it]
Training 1/1 epoch (loss 2.0401): 10%|β | 6/63 [00:19<02:04, 2.19s/it]
Training 1/1 epoch (loss 1.9839): 10%|β | 6/63 [00:22<02:04, 2.19s/it]
Training 1/1 epoch (loss 1.9839): 11%|β | 7/63 [00:22<02:06, 2.26s/it]
Training 1/1 epoch (loss 2.0927): 11%|β | 7/63 [00:23<02:06, 2.26s/it]
Training 1/1 epoch (loss 2.0927): 13%|ββ | 8/63 [00:23<01:55, 2.11s/it]
Training 1/1 epoch (loss 1.9873): 13%|ββ | 8/63 [00:25<01:55, 2.11s/it]
Training 1/1 epoch (loss 1.9873): 14%|ββ | 9/63 [00:25<01:40, 1.86s/it]
Training 1/1 epoch (loss 1.9208): 14%|ββ | 9/63 [00:26<01:40, 1.86s/it]
Training 1/1 epoch (loss 1.9208): 16%|ββ | 10/63 [00:26<01:31, 1.73s/it]
Training 1/1 epoch (loss 1.9994): 16%|ββ | 10/63 [00:28<01:31, 1.73s/it]
Training 1/1 epoch (loss 1.9994): 17%|ββ | 11/63 [00:28<01:30, 1.75s/it]
Training 1/1 epoch (loss 2.1293): 17%|ββ | 11/63 [00:29<01:30, 1.75s/it]
Training 1/1 epoch (loss 2.1293): 19%|ββ | 12/63 [00:29<01:17, 1.51s/it]
Training 1/1 epoch (loss 2.0410): 19%|ββ | 12/63 [00:30<01:17, 1.51s/it]
Training 1/1 epoch (loss 2.0410): 21%|ββ | 13/63 [00:30<01:16, 1.54s/it]
Training 1/1 epoch (loss 1.9367): 21%|ββ | 13/63 [00:33<01:16, 1.54s/it]
Training 1/1 epoch (loss 1.9367): 22%|βββ | 14/63 [00:33<01:22, 1.69s/it]
Training 1/1 epoch (loss 1.9088): 22%|βββ | 14/63 [00:35<01:22, 1.69s/it]
Training 1/1 epoch (loss 1.9088): 24%|βββ | 15/63 [00:35<01:29, 1.87s/it]
Training 1/1 epoch (loss 1.9548): 24%|βββ | 15/63 [00:37<01:29, 1.87s/it]
Training 1/1 epoch (loss 1.9548): 25%|βββ | 16/63 [00:37<01:32, 1.96s/it]
Training 1/1 epoch (loss 2.0719): 25%|βββ | 16/63 [00:38<01:32, 1.96s/it]
Training 1/1 epoch (loss 2.0719): 27%|βββ | 17/63 [00:38<01:23, 1.81s/it]
Training 1/1 epoch (loss 2.0544): 27%|βββ | 17/63 [00:40<01:23, 1.81s/it]
Training 1/1 epoch (loss 2.0544): 29%|βββ | 18/63 [00:40<01:15, 1.68s/it]
Training 1/1 epoch (loss 2.0860): 29%|βββ | 18/63 [00:42<01:15, 1.68s/it]
Training 1/1 epoch (loss 2.0860): 30%|βββ | 19/63 [00:42<01:14, 1.70s/it]
Training 1/1 epoch (loss 2.0716): 30%|βββ | 19/63 [00:43<01:14, 1.70s/it]
Training 1/1 epoch (loss 2.0716): 32%|ββββ | 20/63 [00:43<01:07, 1.58s/it]
Training 1/1 epoch (loss 1.9852): 32%|ββββ | 20/63 [00:44<01:07, 1.58s/it]
Training 1/1 epoch (loss 1.9852): 33%|ββββ | 21/63 [00:44<01:05, 1.57s/it]
Training 1/1 epoch (loss 2.0575): 33%|ββββ | 21/63 [00:46<01:05, 1.57s/it]
Training 1/1 epoch (loss 2.0575): 35%|ββββ | 22/63 [00:46<01:03, 1.55s/it]
Training 1/1 epoch (loss 1.9938): 35%|ββββ | 22/63 [00:47<01:03, 1.55s/it]
Training 1/1 epoch (loss 1.9938): 37%|ββββ | 23/63 [00:47<00:59, 1.49s/it]
Training 1/1 epoch (loss 1.9765): 37%|ββββ | 23/63 [00:49<00:59, 1.49s/it]
Training 1/1 epoch (loss 1.9765): 38%|ββββ | 24/63 [00:49<01:03, 1.62s/it]
Training 1/1 epoch (loss 1.9730): 38%|ββββ | 24/63 [00:50<01:03, 1.62s/it]
Training 1/1 epoch (loss 1.9730): 40%|ββββ | 25/63 [00:50<00:58, 1.53s/it]
Training 1/1 epoch (loss 1.9320): 40%|ββββ | 25/63 [00:52<00:58, 1.53s/it]
Training 1/1 epoch (loss 1.9320): 41%|βββββ | 26/63 [00:52<00:58, 1.58s/it]
Training 1/1 epoch (loss 1.9622): 41%|βββββ | 26/63 [00:54<00:58, 1.58s/it]
Training 1/1 epoch (loss 1.9622): 43%|βββββ | 27/63 [00:54<00:59, 1.66s/it]
Training 1/1 epoch (loss 2.0450): 43%|βββββ | 27/63 [00:55<00:59, 1.66s/it]
Training 1/1 epoch (loss 2.0450): 44%|βββββ | 28/63 [00:55<00:52, 1.51s/it]
Training 1/1 epoch (loss 2.0044): 44%|βββββ | 28/63 [00:58<00:52, 1.51s/it]
Training 1/1 epoch (loss 2.0044): 46%|βββββ | 29/63 [00:58<01:00, 1.79s/it]
Training 1/1 epoch (loss 1.9143): 46%|βββββ | 29/63 [00:59<01:00, 1.79s/it]
Training 1/1 epoch (loss 1.9143): 48%|βββββ | 30/63 [00:59<00:58, 1.77s/it]
Training 1/1 epoch (loss 2.1148): 48%|βββββ | 30/63 [01:02<00:58, 1.77s/it]
Training 1/1 epoch (loss 2.1148): 49%|βββββ | 31/63 [01:02<01:01, 1.93s/it]
Training 1/1 epoch (loss 2.0079): 49%|βββββ | 31/63 [01:04<01:01, 1.93s/it]
Training 1/1 epoch (loss 2.0079): 51%|βββββ | 32/63 [01:04<00:59, 1.91s/it]
Training 1/1 epoch (loss 1.9058): 51%|βββββ | 32/63 [01:05<00:59, 1.91s/it]
Training 1/1 epoch (loss 1.9058): 52%|ββββββ | 33/63 [01:05<00:52, 1.74s/it]
Training 1/1 epoch (loss 1.9663): 52%|ββββββ | 33/63 [01:06<00:52, 1.74s/it]
Training 1/1 epoch (loss 1.9663): 54%|ββββββ | 34/63 [01:06<00:41, 1.42s/it]
Training 1/1 epoch (loss 1.9197): 54%|ββββββ | 34/63 [01:07<00:41, 1.42s/it]
Training 1/1 epoch (loss 1.9197): 56%|ββββββ | 35/63 [01:07<00:35, 1.28s/it]
Training 1/1 epoch (loss 1.9051): 56%|ββββββ | 35/63 [01:08<00:35, 1.28s/it]
Training 1/1 epoch (loss 1.9051): 57%|ββββββ | 36/63 [01:08<00:33, 1.24s/it]
Training 1/1 epoch (loss 1.8745): 57%|ββββββ | 36/63 [01:10<00:33, 1.24s/it]
Training 1/1 epoch (loss 1.8745): 59%|ββββββ | 37/63 [01:10<00:38, 1.47s/it]
Training 1/1 epoch (loss 1.8396): 59%|ββββββ | 37/63 [01:12<00:38, 1.47s/it]
Training 1/1 epoch (loss 1.8396): 60%|ββββββ | 38/63 [01:12<00:41, 1.64s/it]
Training 1/1 epoch (loss 1.9335): 60%|ββββββ | 38/63 [01:13<00:41, 1.64s/it]
Training 1/1 epoch (loss 1.9335): 62%|βββββββ | 39/63 [01:13<00:36, 1.53s/it]
Training 1/1 epoch (loss 1.9164): 62%|βββββββ | 39/63 [01:15<00:36, 1.53s/it]
Training 1/1 epoch (loss 1.9164): 63%|βββββββ | 40/63 [01:15<00:35, 1.53s/it]
Training 1/1 epoch (loss 1.9416): 63%|βββββββ | 40/63 [01:16<00:35, 1.53s/it]
Training 1/1 epoch (loss 1.9416): 65%|βββββββ | 41/63 [01:16<00:36, 1.66s/it]
Training 1/1 epoch (loss 1.7999): 65%|βββββββ | 41/63 [01:18<00:36, 1.66s/it]
Training 1/1 epoch (loss 1.7999): 67%|βββββββ | 42/63 [01:18<00:33, 1.60s/it]
Training 1/1 epoch (loss 1.9642): 67%|βββββββ | 42/63 [01:20<00:33, 1.60s/it]
Training 1/1 epoch (loss 1.9642): 68%|βββββββ | 43/63 [01:20<00:32, 1.64s/it]
Training 1/1 epoch (loss 1.8913): 68%|βββββββ | 43/63 [01:21<00:32, 1.64s/it]
Training 1/1 epoch (loss 1.8913): 70%|βββββββ | 44/63 [01:21<00:30, 1.62s/it]
Training 1/1 epoch (loss 1.9821): 70%|βββββββ | 44/63 [01:23<00:30, 1.62s/it]
Training 1/1 epoch (loss 1.9821): 71%|ββββββββ | 45/63 [01:23<00:30, 1.67s/it]
Training 1/1 epoch (loss 1.8635): 71%|ββββββββ | 45/63 [01:24<00:30, 1.67s/it]
Training 1/1 epoch (loss 1.8635): 73%|ββββββββ | 46/63 [01:24<00:27, 1.59s/it]
Training 1/1 epoch (loss 1.8707): 73%|ββββββββ | 46/63 [01:26<00:27, 1.59s/it]
Training 1/1 epoch (loss 1.8707): 75%|ββββββββ | 47/63 [01:26<00:25, 1.58s/it]
Training 1/1 epoch (loss 1.8960): 75%|ββββββββ | 47/63 [01:28<00:25, 1.58s/it]
Training 1/1 epoch (loss 1.8960): 76%|ββββββββ | 48/63 [01:28<00:26, 1.75s/it]
Training 1/1 epoch (loss 1.9560): 76%|ββββββββ | 48/63 [01:30<00:26, 1.75s/it]
Training 1/1 epoch (loss 1.9560): 78%|ββββββββ | 49/63 [01:30<00:24, 1.73s/it]
Training 1/1 epoch (loss 1.7810): 78%|ββββββββ | 49/63 [01:32<00:24, 1.73s/it]
Training 1/1 epoch (loss 1.7810): 79%|ββββββββ | 50/63 [01:32<00:23, 1.78s/it]
Training 1/1 epoch (loss 1.8825): 79%|ββββββββ | 50/63 [01:33<00:23, 1.78s/it]
Training 1/1 epoch (loss 1.8825): 81%|ββββββββ | 51/63 [01:33<00:21, 1.77s/it]
Training 1/1 epoch (loss 1.7493): 81%|ββββββββ | 51/63 [01:35<00:21, 1.77s/it]
Training 1/1 epoch (loss 1.7493): 83%|βββββββββ | 52/63 [01:35<00:18, 1.70s/it]
Training 1/1 epoch (loss 1.7821): 83%|βββββββββ | 52/63 [01:37<00:18, 1.70s/it]
Training 1/1 epoch (loss 1.7821): 84%|βββββββββ | 53/63 [01:37<00:16, 1.70s/it]
Training 1/1 epoch (loss 1.8994): 84%|βββββββββ | 53/63 [01:39<00:16, 1.70s/it]
Training 1/1 epoch (loss 1.8994): 86%|βββββββββ | 54/63 [01:39<00:15, 1.75s/it]
Training 1/1 epoch (loss 1.9273): 86%|βββββββββ | 54/63 [01:41<00:15, 1.75s/it]
Training 1/1 epoch (loss 1.9273): 87%|βββββββββ | 55/63 [01:41<00:14, 1.84s/it]
Training 1/1 epoch (loss 1.8451): 87%|βββββββββ | 55/63 [01:43<00:14, 1.84s/it]
Training 1/1 epoch (loss 1.8451): 89%|βββββββββ | 56/63 [01:43<00:13, 1.92s/it]
Training 1/1 epoch (loss 1.7265): 89%|βββββββββ | 56/63 [01:44<00:13, 1.92s/it]
Training 1/1 epoch (loss 1.7265): 90%|βββββββββ | 57/63 [01:44<00:10, 1.78s/it]
Training 1/1 epoch (loss 1.8925): 90%|βββββββββ | 57/63 [01:46<00:10, 1.78s/it]
Training 1/1 epoch (loss 1.8925): 92%|ββββββββββ| 58/63 [01:46<00:09, 1.88s/it]
Training 1/1 epoch (loss 1.9038): 92%|ββββββββββ| 58/63 [01:48<00:09, 1.88s/it]
Training 1/1 epoch (loss 1.9038): 94%|ββββββββββ| 59/63 [01:48<00:07, 1.79s/it]
Training 1/1 epoch (loss 1.9364): 94%|ββββββββββ| 59/63 [01:50<00:07, 1.79s/it]
Training 1/1 epoch (loss 1.9364): 95%|ββββββββββ| 60/63 [01:50<00:05, 1.78s/it]
Training 1/1 epoch (loss 1.7879): 95%|ββββββββββ| 60/63 [01:52<00:05, 1.78s/it]
Training 1/1 epoch (loss 1.7879): 97%|ββββββββββ| 61/63 [01:52<00:03, 1.97s/it]
Training 1/1 epoch (loss 1.7917): 97%|ββββββββββ| 61/63 [01:54<00:03, 1.97s/it]
Training 1/1 epoch (loss 1.7917): 98%|ββββββββββ| 62/63 [01:54<00:01, 1.94s/it]
Training 1/1 epoch (loss 1.9122): 98%|ββββββββββ| 62/63 [01:56<00:01, 1.94s/it]
Training 1/1 epoch (loss 1.9122): 100%|ββββββββββ| 63/63 [01:56<00:00, 1.92s/it]
Training 1/1 epoch (loss 1.9122): 100%|ββββββββββ| 63/63 [01:56<00:00, 1.85s/it] |
| tokenizer config file saved in /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k-Q2-2k/tokenizer_config.json |
| Special tokens file saved in /aifs4su/hansirui_1st/boyuan/resist/setting3-safety/tinyllama-2T/tinyllama-2T-s3-Q1-1k-Q2-2k/special_tokens_map.json |
| wandb: ERROR Problem finishing run |
| Exception ignored in atexit callback: <bound method rank_zero_only.<locals>.wrapper of <safe_rlhf.logger.Logger object at 0x155117738750>> |
| Traceback (most recent call last): |
| File "/home/hansirui_1st/jiayi/resist/setting3/safe_rlhf/utils.py", line 212, in wrapper |
| return func(*args, **kwargs) |
| ^^^^^^^^^^^^^^^^^^^^^ |
| File "/home/hansirui_1st/jiayi/resist/setting3/safe_rlhf/logger.py", line 183, in close |
| self.wandb.finish() |
| File "/aifs4su/hansirui_1st/miniconda3/envs/by-align/lib/python3.11/site-packages/wandb/sdk/wandb_run.py", line 449, in wrapper |
| return func(self, *args, **kwargs) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/aifs4su/hansirui_1st/miniconda3/envs/by-align/lib/python3.11/site-packages/wandb/sdk/wandb_run.py", line 391, in wrapper |
| return func(self, *args, **kwargs) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/aifs4su/hansirui_1st/miniconda3/envs/by-align/lib/python3.11/site-packages/wandb/sdk/wandb_run.py", line 2106, in finish |
| return self._finish(exit_code) |
| ^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/aifs4su/hansirui_1st/miniconda3/envs/by-align/lib/python3.11/site-packages/wandb/sdk/wandb_run.py", line 2127, in _finish |
| self._atexit_cleanup(exit_code=exit_code) |
| File "/aifs4su/hansirui_1st/miniconda3/envs/by-align/lib/python3.11/site-packages/wandb/sdk/wandb_run.py", line 2352, in _atexit_cleanup |
| self._on_finish() |
| File "/aifs4su/hansirui_1st/miniconda3/envs/by-align/lib/python3.11/site-packages/wandb/sdk/wandb_run.py", line 2609, in _on_finish |
| wait_with_progress( |
| File "/aifs4su/hansirui_1st/miniconda3/envs/by-align/lib/python3.11/site-packages/wandb/sdk/mailbox/wait_with_progress.py", line 24, in wait_with_progress |
| return wait_all_with_progress( |
| ^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/aifs4su/hansirui_1st/miniconda3/envs/by-align/lib/python3.11/site-packages/wandb/sdk/mailbox/wait_with_progress.py", line 87, in wait_all_with_progress |
| return asyncio_compat.run(progress_loop_with_timeout) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/aifs4su/hansirui_1st/miniconda3/envs/by-align/lib/python3.11/site-packages/wandb/sdk/lib/asyncio_compat.py", line 27, in run |
| future = executor.submit(runner.run, fn) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/aifs4su/hansirui_1st/miniconda3/envs/by-align/lib/python3.11/concurrent/futures/thread.py", line 169, in submit |
| raise RuntimeError('cannot schedule new futures after ' |
| RuntimeError: cannot schedule new futures after interpreter shutdown |
|
|