| [2025-07-04 17:56:41,680][__main__][INFO] - cache_dir: /tmp/ |
| dataset: |
| name: kamel-usp/aes_enem_dataset |
| split: JBCS2025 |
| training_params: |
| seed: 42 |
| num_train_epochs: 20 |
| logging_steps: 100 |
| metric_for_best_model: QWK |
| bf16: true |
| bootstrap: |
| enabled: true |
| n_bootstrap: 10000 |
| bootstrap_seed: 42 |
| metrics: |
| - QWK |
| - Macro_F1 |
| - Weighted_F1 |
| post_training_results: |
| model_path: /workspace/jbcs2025/outputs/2025-03-24/20-42-59 |
| experiments: |
| model: |
| name: microsoft/phi-4 |
| type: phi4_classification_lora |
| num_labels: 6 |
| output_dir: ./results/ |
| logging_dir: ./logs/ |
| best_model_dir: ./results/best_model |
| lora_r: 8 |
| lora_dropout: 0.05 |
| lora_alpha: 16 |
| lora_target_modules: all-linear |
| tokenizer: |
| name: microsoft/phi-4 |
| dataset: |
| grade_index: 0 |
| use_full_context: true |
| training_params: |
| weight_decay: 0.01 |
| warmup_ratio: 0.1 |
| learning_rate: 5.0e-05 |
| train_batch_size: 8 |
| eval_batch_size: 4 |
| gradient_accumulation_steps: 2 |
| gradient_checkpointing: true |
|
|
| [2025-07-04 17:56:45,555][__main__][INFO] - GPU 0: NVIDIA H200 | TDP ≈ 700 W |
| [2025-07-04 17:56:45,555][__main__][INFO] - Starting the Fine Tuning training process. |
| [2025-07-04 17:56:48,995][transformers.tokenization_utils_base][INFO] - loading file vocab.json from cache at /tmp/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/vocab.json |
| [2025-07-04 17:56:48,995][transformers.tokenization_utils_base][INFO] - loading file merges.txt from cache at /tmp/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/merges.txt |
| [2025-07-04 17:56:48,995][transformers.tokenization_utils_base][INFO] - loading file tokenizer.json from cache at /tmp/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/tokenizer.json |
| [2025-07-04 17:56:48,995][transformers.tokenization_utils_base][INFO] - loading file added_tokens.json from cache at /tmp/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/added_tokens.json |
| [2025-07-04 17:56:48,995][transformers.tokenization_utils_base][INFO] - loading file special_tokens_map.json from cache at /tmp/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/special_tokens_map.json |
| [2025-07-04 17:56:48,995][transformers.tokenization_utils_base][INFO] - loading file tokenizer_config.json from cache at /tmp/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/tokenizer_config.json |
| [2025-07-04 17:56:48,995][transformers.tokenization_utils_base][INFO] - loading file chat_template.jinja from cache at None |
| [2025-07-04 17:56:49,138][__main__][INFO] - Tokenizer function parameters- Padding:longest; Truncation: False; Use Full Context: True |
| [2025-07-04 17:56:50,607][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /tmp/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 17:56:50,608][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "id2label": { |
| "0": "LABEL_0", |
| "1": "LABEL_1", |
| "2": "LABEL_2", |
| "3": "LABEL_3", |
| "4": "LABEL_4", |
| "5": "LABEL_5" |
| }, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "label2id": { |
| "LABEL_0": 0, |
| "LABEL_1": 1, |
| "LABEL_2": 2, |
| "LABEL_3": 3, |
| "LABEL_4": 4, |
| "LABEL_5": 5 |
| }, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
|
|
| [2025-07-04 17:56:50,737][transformers.modeling_utils][INFO] - loading weights file model.safetensors from cache at /tmp/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/model.safetensors.index.json |
| [2025-07-04 17:56:50,738][transformers.modeling_utils][INFO] - Will use torch_dtype=torch.bfloat16 as defined in model's config object |
| [2025-07-04 17:56:50,738][transformers.modeling_utils][INFO] - Instantiating Phi3ForSequenceClassification model under default dtype torch.bfloat16. |
| [2025-07-04 17:57:08,479][transformers.modeling_utils][INFO] - Some weights of the model checkpoint at microsoft/phi-4 were not used when initializing Phi3ForSequenceClassification: ['lm_head.weight'] |
| - This IS expected if you are initializing Phi3ForSequenceClassification from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model). |
| - This IS NOT expected if you are initializing Phi3ForSequenceClassification from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model). |
| [2025-07-04 17:57:08,479][transformers.modeling_utils][WARNING] - Some weights of Phi3ForSequenceClassification were not initialized from the model checkpoint at microsoft/phi-4 and are newly initialized: ['score.weight'] |
| You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference. |
| [2025-07-04 17:57:10,182][__main__][INFO] - Initialized new PEFT model for ce loss |
| [2025-07-04 17:57:10,185][__main__][INFO] - None |
| [2025-07-04 17:57:10,187][transformers.training_args][INFO] - PyTorch: setting up devices |
| [2025-07-04 17:57:10,261][__main__][INFO] - Total steps: 620. Number of warmup steps: 62 |
| [2025-07-04 17:57:10,273][transformers.trainer][INFO] - You have loaded a model on multiple GPUs. `is_model_parallel` attribute will be force-set to `True` to avoid any unexpected behavior such as device placement mismatching. |
| [2025-07-04 17:57:10,326][transformers.trainer][INFO] - Using auto half precision backend |
| [2025-07-04 17:57:10,327][transformers.trainer][WARNING] - No label_names provided for model class `PeftModelForSequenceClassification`. Since `PeftModel` hides base models input arguments, if label_names is not given, label_names can't be set automatically within `Trainer`. Note that empty label_names list will be used instead. |
| [2025-07-04 17:57:10,329][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 17:57:10,349][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 17:57:10,349][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 17:57:10,349][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 17:57:47,216][transformers.trainer][INFO] - The following columns in the Training set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 17:57:47,256][transformers.trainer][INFO] - ***** Running training ***** |
| [2025-07-04 17:57:47,256][transformers.trainer][INFO] - Num examples = 500 |
| [2025-07-04 17:57:47,256][transformers.trainer][INFO] - Num Epochs = 20 |
| [2025-07-04 17:57:47,256][transformers.trainer][INFO] - Instantaneous batch size per device = 8 |
| [2025-07-04 17:57:47,256][transformers.trainer][INFO] - Total train batch size (w. parallel, distributed & accumulation) = 16 |
| [2025-07-04 17:57:47,256][transformers.trainer][INFO] - Gradient Accumulation steps = 2 |
| [2025-07-04 17:57:47,256][transformers.trainer][INFO] - Total optimization steps = 640 |
| [2025-07-04 17:57:47,258][transformers.trainer][INFO] - Number of trainable parameters = 27,883,520 |
| [2025-07-04 17:57:47,334][transformers.models.phi3.modeling_phi3][WARNING] - `use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`. |
| [2025-07-04 18:05:16,669][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 18:05:16,672][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 18:05:16,672][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 18:05:16,672][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 18:05:53,116][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-32 |
| [2025-07-04 18:05:53,460][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 18:05:53,461][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
| |
| [2025-07-04 18:13:23,012][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 18:13:23,016][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 18:13:23,016][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 18:13:23,016][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 18:13:59,402][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-64 |
| [2025-07-04 18:13:59,753][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 18:13:59,754][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
|
|
| [2025-07-04 18:14:00,436][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-32] due to args.save_total_limit |
| [2025-07-04 18:21:29,195][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 18:21:29,198][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 18:21:29,198][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 18:21:29,199][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 18:22:05,640][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-96 |
| [2025-07-04 18:22:06,166][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 18:22:06,167][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
| |
| [2025-07-04 18:22:06,802][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-64] due to args.save_total_limit |
| [2025-07-04 18:29:35,860][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 18:29:35,864][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 18:29:35,864][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 18:29:35,864][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 18:30:12,335][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-128 |
| [2025-07-04 18:30:12,671][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 18:30:12,672][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
|
|
| [2025-07-04 18:30:13,300][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-96] due to args.save_total_limit |
| [2025-07-04 18:37:42,420][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 18:37:42,424][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 18:37:42,424][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 18:37:42,424][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 18:38:18,857][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-160 |
| [2025-07-04 18:38:19,204][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 18:38:19,204][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
| |
| [2025-07-04 18:38:19,715][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-128] due to args.save_total_limit |
| [2025-07-04 18:45:48,541][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 18:45:48,545][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 18:45:48,545][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 18:45:48,545][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 18:46:24,948][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-192 |
| [2025-07-04 18:46:25,293][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 18:46:25,294][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
|
|
| [2025-07-04 18:53:54,649][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 18:53:54,652][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 18:53:54,652][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 18:53:54,652][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 18:54:31,072][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-224 |
| [2025-07-04 18:54:31,568][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 18:54:31,568][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
| |
| [2025-07-04 18:54:32,219][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-192] due to args.save_total_limit |
| [2025-07-04 19:02:01,216][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 19:02:01,220][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 19:02:01,220][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 19:02:01,220][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 19:02:37,626][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-256 |
| [2025-07-04 19:02:37,964][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 19:02:37,964][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
|
|
| [2025-07-04 19:02:38,576][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-224] due to args.save_total_limit |
| [2025-07-04 19:10:07,476][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 19:10:07,480][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 19:10:07,480][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 19:10:07,480][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 19:10:43,871][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-288 |
| [2025-07-04 19:10:44,220][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 19:10:44,220][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
| |
| [2025-07-04 19:10:44,920][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-160] due to args.save_total_limit |
| [2025-07-04 19:10:44,940][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-256] due to args.save_total_limit |
| [2025-07-04 19:18:13,127][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 19:18:13,131][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 19:18:13,131][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 19:18:13,131][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 19:18:49,345][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-320 |
| [2025-07-04 19:18:49,671][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 19:18:49,671][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
|
|
| [2025-07-04 19:26:18,248][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 19:26:18,251][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 19:26:18,251][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 19:26:18,251][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 19:26:54,668][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-352 |
| [2025-07-04 19:26:55,015][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 19:26:55,016][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
| |
| [2025-07-04 19:26:55,566][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-320] due to args.save_total_limit |
| [2025-07-04 19:34:24,550][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 19:34:24,554][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 19:34:24,554][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 19:34:24,554][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 19:35:00,971][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-384 |
| [2025-07-04 19:35:01,312][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 19:35:01,313][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
|
|
| [2025-07-04 19:35:01,919][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-352] due to args.save_total_limit |
| [2025-07-04 19:42:31,121][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 19:42:31,124][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 19:42:31,125][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 19:42:31,125][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 19:43:07,547][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-416 |
| [2025-07-04 19:43:07,898][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 19:43:07,899][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
| |
| [2025-07-04 19:43:08,430][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-384] due to args.save_total_limit |
| [2025-07-04 19:50:37,569][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 19:50:37,572][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 19:50:37,572][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 19:50:37,572][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 19:51:13,999][transformers.trainer][INFO] - Saving model checkpoint to /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-448 |
| [2025-07-04 19:51:14,334][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 19:51:14,334][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
|
|
| [2025-07-04 19:51:14,944][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-416] due to args.save_total_limit |
| [2025-07-04 19:51:14,965][transformers.trainer][INFO] - |
|
|
| Training completed. Do not forget to share your model on huggingface.co/models =) |
|
|
|
|
| [2025-07-04 19:51:14,965][transformers.trainer][INFO] - Loading best model from /workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-288 (score: 0.7229965156794425). |
| [2025-07-04 19:51:15,160][transformers.trainer][INFO] - Deleting older checkpoint [/workspace/jbcs2025/outputs/2025-07-04/17-56-41/results/checkpoint-448] due to args.save_total_limit |
| [2025-07-04 19:51:15,182][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 19:51:15,189][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 19:51:15,189][transformers.trainer][INFO] - Num examples = 132 |
| [2025-07-04 19:51:15,189][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 19:51:51,586][__main__][INFO] - Training completed successfully. |
| [2025-07-04 19:51:51,586][__main__][INFO] - Running on Test |
| [2025-07-04 19:51:51,587][transformers.trainer][INFO] - The following columns in the Evaluation set don't have a corresponding argument in `PeftModelForSequenceClassification.forward` and have been ignored: reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades. If reference, essay_year, essay_text, prompt, id_prompt, supporting_text, id, grades are not expected by `PeftModelForSequenceClassification.forward`, you can safely ignore this message. |
| [2025-07-04 19:51:51,589][transformers.trainer][INFO] - |
| ***** Running Evaluation ***** |
| [2025-07-04 19:51:51,590][transformers.trainer][INFO] - Num examples = 138 |
| [2025-07-04 19:51:51,590][transformers.trainer][INFO] - Batch size = 4 |
| [2025-07-04 19:52:31,559][__main__][INFO] - Test metrics: {'eval_loss': 1.0780822038650513, 'eval_model_preparation_time': 0.0149, 'eval_accuracy': 0.6159420289855072, 'eval_RMSE': 27.240208984279956, 'eval_QWK': 0.6593643937056464, 'eval_HDIV': 0.007246376811594235, 'eval_Macro_F1': 0.4280707196029777, 'eval_Micro_F1': 0.6159420289855072, 'eval_Weighted_F1': 0.6257619484302513, 'eval_TP_0': 0, 'eval_TN_0': 137, 'eval_FP_0': 0, 'eval_FN_0': 1, 'eval_TP_1': 0, 'eval_TN_1': 138, 'eval_FP_1': 0, 'eval_FN_1': 0, 'eval_TP_2': 4, 'eval_TN_2': 116, 'eval_FP_2': 12, 'eval_FN_2': 6, 'eval_TP_3': 44, 'eval_TN_3': 54, 'eval_FP_3': 18, 'eval_FN_3': 22, 'eval_TP_4': 30, 'eval_TN_4': 75, 'eval_FP_4': 12, 'eval_FN_4': 21, 'eval_TP_5': 7, 'eval_TN_5': 117, 'eval_FP_5': 11, 'eval_FN_5': 3, 'eval_runtime': 39.9539, 'eval_samples_per_second': 3.454, 'eval_steps_per_second': 0.876, 'epoch': 14.0} |
| [2025-07-04 19:52:31,560][transformers.trainer][INFO] - Saving model checkpoint to ./results/best_model |
| [2025-07-04 19:52:31,899][transformers.configuration_utils][INFO] - loading configuration file config.json from cache at /workspace/.hf_home/hub/models--microsoft--phi-4/snapshots/187ef0342fff0eb3333be9f00389385e95ef0b61/config.json |
| [2025-07-04 19:52:31,899][transformers.configuration_utils][INFO] - Model config Phi3Config { |
| "architectures": [ |
| "Phi3ForCausalLM" |
| ], |
| "attention_bias": false, |
| "attention_dropout": 0.0, |
| "bos_token_id": 100257, |
| "embd_pdrop": 0.0, |
| "eos_token_id": 100265, |
| "hidden_act": "silu", |
| "hidden_size": 5120, |
| "initializer_range": 0.02, |
| "intermediate_size": 17920, |
| "max_position_embeddings": 16384, |
| "model_type": "phi3", |
| "num_attention_heads": 40, |
| "num_hidden_layers": 40, |
| "num_key_value_heads": 10, |
| "original_max_position_embeddings": 16384, |
| "pad_token_id": 100349, |
| "partial_rotary_factor": 1.0, |
| "resid_pdrop": 0.0, |
| "rms_norm_eps": 1e-05, |
| "rope_scaling": null, |
| "rope_theta": 250000, |
| "sliding_window": null, |
| "tie_word_embeddings": false, |
| "torch_dtype": "bfloat16", |
| "transformers_version": "4.53.0", |
| "use_cache": true, |
| "vocab_size": 100352 |
| } |
|
|
| [2025-07-04 19:52:32,183][transformers.tokenization_utils_base][INFO] - chat template saved in ./results/best_model/chat_template.jinja |
| [2025-07-04 19:52:32,184][transformers.tokenization_utils_base][INFO] - tokenizer config file saved in ./results/best_model/tokenizer_config.json |
| [2025-07-04 19:52:32,184][transformers.tokenization_utils_base][INFO] - Special tokens file saved in ./results/best_model/special_tokens_map.json |
| [2025-07-04 19:52:32,254][__main__][INFO] - Model and tokenizer saved to ./results/best_model |
| [2025-07-04 19:52:32,279][__main__][INFO] - Fine Tuning Finished. |
| [2025-07-04 19:52:32,790][__main__][INFO] - Total emissions: 0.0890 kg CO2eq |
|
|