deb101 commited on
Commit
71eb7e7
·
verified ·
1 Parent(s): f4efc04

Trained L2R token ranking model on MIMIC-IV

Browse files
special_tokens_map.json CHANGED
@@ -13,7 +13,13 @@
13
  "rstrip": false,
14
  "single_word": false
15
  },
16
- "pad_token": "</s>",
 
 
 
 
 
 
17
  "unk_token": {
18
  "content": "<unk>",
19
  "lstrip": false,
 
13
  "rstrip": false,
14
  "single_word": false
15
  },
16
+ "pad_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
  "unk_token": {
24
  "content": "<unk>",
25
  "lstrip": false,
training_l2r_log_2025-06-10_17-29-48.log ADDED
@@ -0,0 +1,534 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2025-06-10 17:29:48,925 - INFO - 📝 Logging initialized. Log file created at: ../tmp/logs/training_l2r_log_2025-06-10_17-29-48.log - [learning2rank.py:288:setup_logging]
2
+ 2025-06-10 17:29:48,925 - INFO - ================================================================================ - [learning2rank.py:110:log_section]
3
+ 2025-06-10 17:29:48,925 - INFO - = 📌 INITIALIZING TRAINING ENVIRONMENT = - [learning2rank.py:111:log_section]
4
+ 2025-06-10 17:29:48,925 - INFO - ================================================================================ - [learning2rank.py:114:log_section]
5
+ 2025-06-10 17:29:48,926 - INFO - 🚀 Setting up data paths and environment variables... - [learning2rank.py:3924:main]
6
+ 2025-06-10 17:29:48,926 - INFO - 🛠️ Command-line Arguments: - [learning2rank.py:304:print_args]
7
+ 2025-06-10 17:29:48,926 - INFO -
8
+ 🔹 output_dir: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b
9
+ 🔹 source_url: XURLs.MIMIC4_DEMO
10
+ 🔹 data: mimic4_icd10_full
11
+ 🔹 data_l2r_fname_prefix: mimic4_icd10
12
+ 🔹 logfile: training_l2r_log
13
+ 🔹 base_dir: ../tmp/MIMIC4_DEMO
14
+ 🔹 l2r_boot_dir: ../tmp/MIMIC4_DEMO/mimic4_l2rboot_mistral7b
15
+ 🔹 hub_model_id: deb101/mistral-7b-instruct-v0.3-mimic4-adapt
16
+ 🔹 model_name: mistralai/Mistral-7B-Instruct-v0.3
17
+ 🔹 max_length: 512
18
+ 🔹 do_fresh_training: True
19
+ 🔹 load_from_checkpoint: True
20
+ 🔹 task: l2r
21
+ 🔹 num_train_epochs: 3
22
+ 🔹 metric_for_best_model: ndcg@25
23
+ 🔹 learning_rate: 0.0001
24
+ 🔹 warmup_steps: 0
25
+ 🔹 generate_report: False
26
+ 🔹 logfile_path: ../tmp/logs/training_l2r_log_2025-06-10_17-29-48.log
27
+ 🔹 source: /home/ubuntu/.xcube/data/mimic4_demo - [learning2rank.py:305:print_args]
28
+ 2025-06-10 17:29:48,926 - INFO - ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ - [learning2rank.py:306:print_args]
29
+ 2025-06-10 17:29:48,926 - INFO - 📁 Using L2R boot directory: ../tmp/MIMIC4_DEMO/mimic4_l2rboot_mistral7b - [learning2rank.py:3938:main]
30
+ 2025-06-10 17:29:48,926 - INFO - 📂 Using output directory: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3940:main]
31
+ 2025-06-10 17:29:48,926 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
32
+ 2025-06-10 17:29:48,926 - INFO - + ✨ LOADING DATASETS + - [learning2rank.py:111:log_section]
33
+ 2025-06-10 17:29:48,927 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
34
+ 2025-06-10 17:29:48,927 - INFO - 📊 Loading main dataset and L2R dataset... - [learning2rank.py:3943:main]
35
+ 2025-06-10 17:29:48,927 - INFO - 📂 Loading main data from: /home/ubuntu/.xcube/data/mimic4_demo/mimic4_icd10_full.csv - [learning2rank.py:334:get_data]
36
+ 2025-06-10 17:29:58,580 - INFO - ✅ Successfully loaded main data: 122279 rows - [learning2rank.py:347:get_data]
37
+ 2025-06-10 17:29:58,580 - INFO - 📂 Loading L2R data from: ../tmp/MIMIC4_DEMO/mimic4_l2rboot_mistral7b/mimic4_icd10_tok_rank_per_lbl.ft - [learning2rank.py:353:get_data]
38
+ 2025-06-10 17:29:58,580 - INFO - 📂 Loading L2R tokens from: ../tmp/MIMIC4_DEMO/mimic4_l2rboot_mistral7b/mimic4_icd10_tok.ft - [learning2rank.py:356:get_data]
39
+ 2025-06-10 17:29:58,580 - INFO - 📂 Loading L2R labels from: ../tmp/MIMIC4_DEMO/mimic4_l2rboot_mistral7b/mimic4_icd10_lbl.ft - [learning2rank.py:359:get_data]
40
+ 2025-06-10 17:30:04,132 - INFO - ✅ Successfully loaded L2R data: 260243456 rows - [learning2rank.py:366:get_data]
41
+ 2025-06-10 17:30:04,132 - INFO - ✅ Successfully loaded L2R tokens: 32768 tokens - [learning2rank.py:367:get_data]
42
+ 2025-06-10 17:30:04,132 - INFO - ✅ Successfully loaded L2R labels: 7942 rows - [learning2rank.py:368:get_data]
43
+ 2025-06-10 17:30:04,133 - INFO - 🔄 Total data loaded: 122279 main rows, 260243456 L2R rows - [learning2rank.py:375:get_data]
44
+ 2025-06-10 17:30:04,133 - INFO - ✨ Successfully loaded both datasets: - [learning2rank.py:399:load_datasets]
45
+ 2025-06-10 17:30:04,133 - INFO - - 📄 Main dataset: 122279 records - [learning2rank.py:400:load_datasets]
46
+ 2025-06-10 17:30:04,133 - INFO - - 📄 L2R dataset: 260243456 records - [learning2rank.py:401:load_datasets]
47
+ 2025-06-10 17:30:04,133 - INFO - - 🔤 Tokens: 32768 items - [learning2rank.py:402:load_datasets]
48
+ 2025-06-10 17:30:04,133 - INFO - - 🏷️ Labels: 7942 items - [learning2rank.py:403:load_datasets]
49
+ 2025-06-10 17:30:04,143 - INFO - ✅ Data loading completed successfully - [learning2rank.py:411:load_datasets]
50
+ 2025-06-10 17:30:05,571 - INFO - ⏳ Starting quantization of ranks for DataFrame with 260243456 rows. Containing 32768 unique tokens & 7942 unique labels - [learning2rank.py:530:quantize_l2r_data]
51
+ 2025-06-10 17:30:05,572 - INFO - 🔄 Quantizing those 32768 unique token ranks into 101 quantization levels for each label - [learning2rank.py:555:quantize_l2r_data]
52
+ 2025-06-10 17:31:14,594 - INFO - ✅ Completed quantization: Produced tensor of shape torch.Size([7942, 32768, 4]) with 101 quantization levels per label - [learning2rank.py:609:quantize_l2r_data]
53
+ 2025-06-10 17:31:15,150 - WARNING - Label 893: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:725:test_scored_tokens]
54
+ 2025-06-10 17:31:15,160 - WARNING - Label 7230: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:725:test_scored_tokens]
55
+ 2025-06-10 17:31:15,165 - WARNING - Label 1461: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:725:test_scored_tokens]
56
+ 2025-06-10 17:31:15,170 - WARNING - Label 7348: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:725:test_scored_tokens]
57
+ 2025-06-10 17:31:15,175 - WARNING - Label 4714: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:725:test_scored_tokens]
58
+ 2025-06-10 17:31:15,351 - INFO - ******************************************************************************** - [learning2rank.py:110:log_section]
59
+ 2025-06-10 17:31:15,352 - INFO - * 🌟 STARTING LEARNING TO RANK MODEL TRAINING * - [learning2rank.py:111:log_section]
60
+ 2025-06-10 17:31:15,352 - INFO - ******************************************************************************** - [learning2rank.py:114:log_section]
61
+ 2025-06-10 17:31:15,352 - INFO - 🔐 Loaded authentication token from environment - [learning2rank.py:3972:main]
62
+ 2025-06-10 17:31:15,352 - INFO - 🏷️ Hub Model ID for this Learning to Rank task: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3976:main]
63
+ 2025-06-10 17:31:15,352 - INFO - -------------------------------------------------------------------------------- - [learning2rank.py:110:log_section]
64
+ 2025-06-10 17:31:15,352 - INFO - - 📋 MODEL EXISTENCE CHECK - - [learning2rank.py:111:log_section]
65
+ 2025-06-10 17:31:15,352 - INFO - -------------------------------------------------------------------------------- - [learning2rank.py:114:log_section]
66
+ 2025-06-10 17:31:15,352 - INFO - 🔍 Checking model existence locally and on Hugging Face Hub... - [learning2rank.py:431:check_model_existence]
67
+ 2025-06-10 17:31:15,352 - INFO - ❌ Model not found locally at: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:438:check_model_existence]
68
+ 2025-06-10 17:31:15,424 - INFO - ✅ Model exists on Hugging Face Hub with ID: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:450:check_model_existence]
69
+ 2025-06-10 17:31:15,424 - INFO - 📁 Model exists either locally or on Hub - [learning2rank.py:476:check_model_existence]
70
+ 2025-06-10 17:31:15,424 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
71
+ 2025-06-10 17:31:15,424 - INFO - + ✨ STARTING FRESH TRAINING + - [learning2rank.py:111:log_section]
72
+ 2025-06-10 17:31:15,424 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
73
+ 2025-06-10 17:31:15,424 - INFO - 🔄 Starting fresh training (either forced or model not found)... - [learning2rank.py:3989:main]
74
+ 2025-06-10 17:31:15,451 - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured. - [_login.py:415:_login]
75
+ 2025-06-10 17:31:15,451 - INFO - 🔑 Successfully authenticated with Hugging Face Hub - [learning2rank.py:312:authenticate_hf]
76
+ 2025-06-10 17:31:15,451 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
77
+ 2025-06-10 17:31:15,451 - INFO - + ✨ DATA PREPROCESSING + - [learning2rank.py:111:log_section]
78
+ 2025-06-10 17:31:15,451 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
79
+ 2025-06-10 17:31:15,451 - INFO - 🔄 Loading and preprocessing training data... - [learning2rank.py:3996:main]
80
+ 2025-06-10 17:31:15,451 - INFO - 🔤 Loading tokenizer for model: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r... - [learning2rank.py:3868:load_tokenizer]
81
+ 2025-06-10 17:31:15,484 - INFO - 📅 Repository last modified: 2025-06-10 16:57:21+00:00 - [learning2rank.py:3876:load_tokenizer]
82
+ 2025-06-10 17:31:16,184 - INFO - ✅ Tokenizer loaded successfully for model: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3887:load_tokenizer]
83
+ 2025-06-10 17:31:18,371 - INFO - 🔍 Verifying uniqueness of token IDs per label in scored_tokens... - [learning2rank.py:1303:preprocess_data]
84
+ 2025-06-10 17:31:19,434 - INFO - ✅ All labels have unique token IDs in scored_tokens. - [learning2rank.py:1315:preprocess_data]
85
+ 2025-06-10 17:31:19,434 - INFO - 🚀 Building a 2D lookup table for efficient token-to-relevance mapping across all labels! 🚀 - [learning2rank.py:1318:preprocess_data]
86
+ 2025-06-10 17:31:19,434 - INFO - 🔢 Total labels = 7942 - [learning2rank.py:1321:preprocess_data]
87
+ 2025-06-10 17:31:19,434 - INFO - 🔍 Precomputing token indices and corresponding relevance_values for each label... - [learning2rank.py:1322:preprocess_data]
88
+ 2025-06-10 17:31:19,451 - INFO - 📊 Lookup table dimensions: 32768 vocabulary size × 7942 labels - [learning2rank.py:1329:preprocess_data]
89
+ 2025-06-10 17:31:19,451 - INFO - ⚡ This approach eliminates token comparison broadcasting and provides O(1) lookup time for relevance scores! - [learning2rank.py:1332:preprocess_data]
90
+ 2025-06-10 17:31:19,452 - INFO - 🧮 Processing relevance calculations vectorized for maximum speed 🔥 - [learning2rank.py:1335:preprocess_data]
91
+ 2025-06-10 17:31:19,633 - INFO - 🔍 Verifying token mappings with 10 samples... - [learning2rank.py:1368:verify_token_mappings]
92
+ 2025-06-10 17:31:19,819 - INFO - ✅ Token mappings verification completed successfully! 🎉 - [learning2rank.py:1459:verify_token_mappings]
93
+ 2025-06-10 17:31:19,827 - INFO - 🔄 Processing dataset with map... - [learning2rank.py:1523:preprocess_data]
94
+ 2025-06-10 17:31:20,228 - INFO - ✅ Dataset built in 0h 0m 0.40s - [learning2rank.py:1546:preprocess_data]
95
+ 2025-06-10 17:31:20,243 - INFO - The size of Training set: 173 🏋️ (Training Data) - [learning2rank.py:1577:preprocess_data]
96
+ 2025-06-10 17:31:20,243 - INFO - The size of Evaluation set: 35 🔍 (Test Data) - [learning2rank.py:1578:preprocess_data]
97
+ 2025-06-10 17:31:20,243 - INFO - 🚀 Created HuggingFace Dataset with 208 samples, 7942 labels - [learning2rank.py:1586:preprocess_data]
98
+ 2025-06-10 17:31:20,244 - INFO - 🏷️ Number of unique ICD-10 codes: 7942 - [learning2rank.py:4010:main]
99
+ 2025-06-10 17:31:20,244 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
100
+ 2025-06-10 17:31:20,244 - INFO - + ✨ LOADING FROM CHECKPOINT + - [learning2rank.py:111:log_section]
101
+ 2025-06-10 17:31:20,244 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
102
+ 2025-06-10 17:31:20,244 - INFO - 📥 Loading existing model from checkpoint... - [learning2rank.py:4013:main]
103
+ 2025-06-10 17:31:20,244 - INFO - 🔍 Model exists locally: False - [learning2rank.py:3669:load_custom_task_model_and_tokenizer]
104
+ 2025-06-10 17:31:20,244 - INFO - 🌐 Loading model from Hub: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3677:load_custom_task_model_and_tokenizer]
105
+ 2025-06-10 17:31:20,340 - INFO - 🌐 Loaded config from Hub: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3695:load_custom_task_model_and_tokenizer]
106
+ 2025-06-10 17:31:20,340 - INFO - 🔢 Num labels: 7942, Base model path: mistralai/Mistral-7B-Instruct-v0.3 - [learning2rank.py:3709:load_custom_task_model_and_tokenizer]
107
+ 2025-06-10 17:31:20,340 - INFO - 🚀 Starting model and tokenizer loading process... - [learning2rank.py:940:load_base_model_and_tokenizer]
108
+ 2025-06-10 17:31:20,341 - INFO - 📊 Quantization config: BitsAndBytesConfig {
109
+ "_load_in_4bit": true,
110
+ "_load_in_8bit": false,
111
+ "bnb_4bit_compute_dtype": "bfloat16",
112
+ "bnb_4bit_quant_storage": "uint8",
113
+ "bnb_4bit_quant_type": "nf4",
114
+ "bnb_4bit_use_double_quant": true,
115
+ "llm_int8_enable_fp32_cpu_offload": false,
116
+ "llm_int8_has_fp16_weight": false,
117
+ "llm_int8_skip_modules": null,
118
+ "llm_int8_threshold": 6.0,
119
+ "load_in_4bit": true,
120
+ "load_in_8bit": false,
121
+ "quant_method": "bitsandbytes"
122
+ }
123
+ - [learning2rank.py:949:load_base_model_and_tokenizer]
124
+ 2025-06-10 17:31:20,341 - INFO - 🔤 Loading tokenizer for model: mistralai/Mistral-7B-Instruct-v0.3... - [learning2rank.py:953:load_base_model_and_tokenizer]
125
+ 2025-06-10 17:31:20,657 - INFO - 📝 Setting pad token to eos token... - [learning2rank.py:957:load_base_model_and_tokenizer]
126
+ 2025-06-10 17:31:20,657 - INFO - 🧠 Loading base model with quantization... - [learning2rank.py:965:load_base_model_and_tokenizer]
127
+ 2025-06-10 17:31:21,190 - INFO - We will use 90% of the memory on device 0 for storing the model, and 10% for the buffer to avoid OOM. You can set `max_memory` in to a higher value to use more memory (at your own risk). - [modeling.py:991:get_balanced_memory]
128
+ 2025-06-10 17:31:36,578 - INFO - 🔧 Setting up default LoRA configuration... - [learning2rank.py:988:load_base_model_and_tokenizer]
129
+ 2025-06-10 17:31:36,578 - INFO - 🔍 LoRA config: r=16, alpha=32, targets={'o_proj', 'k_proj', 'v_proj', 'q_proj'}, dropout=0.05 - [learning2rank.py:1011:load_base_model_and_tokenizer]
130
+ 2025-06-10 17:31:36,578 - INFO - 🧩 Applying LoRA adapters to model... - [learning2rank.py:1018:load_base_model_and_tokenizer]
131
+ 2025-06-10 17:31:36,802 - INFO - 📊 trainable params: 13,631,488 || all params: 7,261,655,040 || trainable%: 0.1877 - [learning2rank.py:136:log_print_output]
132
+ 2025-06-10 17:31:36,802 - INFO - ✅ Model and tokenizer successfully loaded! - [learning2rank.py:1025:load_base_model_and_tokenizer]
133
+ 2025-06-10 17:31:36,802 - INFO - 🤖 Loaded base model from: mistralai/Mistral-7B-Instruct-v0.3 - [learning2rank.py:3713:load_custom_task_model_and_tokenizer]
134
+ 2025-06-10 17:31:36,802 - INFO - Before preparing the model the % of trainable params are: - [learning2rank.py:3721:load_custom_task_model_and_tokenizer]
135
+ 2025-06-10 17:31:36,807 - INFO - 📊 trainable params: 13,631,488 || all params: 3,771,994,112 || trainable%: 0.3614 - [learning2rank.py:1700:compute_trainable_params]
136
+ 2025-06-10 17:31:37,216 - INFO - 🔧 Registering LTRModel with transformers AutoModel 🚀 - [learning2rank.py:1902:define_model]
137
+ 2025-06-10 17:31:37,216 - INFO - 🏗️ Initialized L2R model with 7942 labels - [learning2rank.py:3724:load_custom_task_model_and_tokenizer]
138
+ 2025-06-10 17:31:37,216 - INFO - After preparing the model the % of trainable params are: - [learning2rank.py:3725:load_custom_task_model_and_tokenizer]
139
+ 2025-06-10 17:31:37,222 - INFO - 📊 trainable params: 46,161,920 || all params: 3,804,524,544 || trainable%: 1.2133 - [learning2rank.py:1883:compute_trainable_params]
140
+ 2025-06-10 17:31:37,256 - INFO - 🖥️ Model moved to device: cuda - [learning2rank.py:3730:load_custom_task_model_and_tokenizer]
141
+ 2025-06-10 17:31:37,510 - INFO - 💾 Loaded custom weights from Hub: /home/ubuntu/.cache/huggingface/hub/models--deb101--mistral-7b-instruct-v0.3-mimic4-adapt-l2r/snapshots/636d86657c46991a40a8430546490b793a0a909e/model.safetensors - [learning2rank.py:3753:load_custom_task_model_and_tokenizer]
142
+ 2025-06-10 17:31:38,462 - INFO - ✅ Custom weights loaded into model - [learning2rank.py:3772:load_custom_task_model_and_tokenizer]
143
+ 2025-06-10 17:31:38,481 - INFO - ✔️ Loaded weights match model's state_dict - [learning2rank.py:3783:load_custom_task_model_and_tokenizer]
144
+ 2025-06-10 17:31:38,482 - INFO - 📋 Loaded files from Hub (directory: /home/ubuntu/.cache/huggingface/hub/models--deb101--mistral-7b-instruct-v0.3-mimic4-adapt-l2r/snapshots/636d86657c46991a40a8430546490b793a0a909e):
145
+ +---------+-------------------+------------+
146
+ | Index | Loaded File | Size |
147
+ +=========+===================+============+
148
+ | 1 | config.json | 0.38 MB |
149
+ +---------+-------------------+------------+
150
+ | 2 | model.safetensors | 4122.74 MB |
151
+ +---------+-------------------+------------+ - [learning2rank.py:3823:load_custom_task_model_and_tokenizer]
152
+ 2025-06-10 17:31:38,827 - INFO - 🖌️ Loaded tokenizer from: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3838:load_custom_task_model_and_tokenizer]
153
+ 2025-06-10 17:31:38,839 - INFO - 🖥️ Model moved to device: cuda - [learning2rank.py:3845:load_custom_task_model_and_tokenizer]
154
+ 2025-06-10 17:31:38,853 - INFO - ✅ Successfully loaded from checkpoint, will now continue training for 3 epochs. - [learning2rank.py:4024:main]
155
+ 2025-06-10 17:31:38,858 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
156
+ 2025-06-10 17:31:38,858 - INFO - + ✨ TRAINING PREPARATION + - [learning2rank.py:111:log_section]
157
+ 2025-06-10 17:31:38,858 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
158
+ 2025-06-10 17:31:38,858 - INFO - ⚙️ Preparing training components and optimizers... - [learning2rank.py:4062:main]
159
+ 2025-06-10 17:31:38,903 - INFO - 🖥️ Device: NVIDIA A100 80GB PCIe - [learning2rank.py:2064:log_training_configuration]
160
+ 2025-06-10 17:31:38,903 - INFO - 🔋 CUDA Available: True - [learning2rank.py:2067:log_training_configuration]
161
+ 2025-06-10 17:31:38,903 - INFO - 💾 CUDA Device Count: 1 - [learning2rank.py:2068:log_training_configuration]
162
+ 2025-06-10 17:31:38,904 - INFO -
163
+ 📋 Training Configuration 📋
164
+ +----------+-----------------------------+--------------------------------------------------+
165
+ | 🌟 Emoji | 🏷️ Parameter | 📊 Value |
166
+ +----------+-----------------------------+--------------------------------------------------+
167
+ | 📁 | Output Directory | ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b |
168
+ | 🔁 | Training Epochs | 3 |
169
+ | 🏋️ | Train Batch Size | 1 |
170
+ | 🔍 | Eval Batch Size | 1 |
171
+ | 📊 | Gradient Accumulation Steps | 4 |
172
+ | 🚀 | Learning Rate | 0.0001 |
173
+ | 🌅 | Warmup Steps | 0 |
174
+ | 💾 | Save Strategy | epoch |
175
+ | 💾 | Save Total Limit | 10 |
176
+ | 📊 | Evaluation Strategy | epoch |
177
+ | 🎯 | Best Model Metric | ndcg@25 |
178
+ | 📝 | Logging Strategy | steps (every 10 steps) |
179
+ | 🌐 | Push to Hub | True |
180
+ | 🌐 | Hub Model ID | deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r |
181
+ | 🔢 | Steps per Epoch | 43 |
182
+ | 🔢 | Total Training Steps | 129 |
183
+ | 🔢 | Evaluation Steps | 35 |
184
+ | 📊 | Training Dataset Size | 173 samples 🏋️ |
185
+ | 📊 | Evaluation Dataset Size | 35 samples 🔍 |
186
+ +----------+-----------------------------+--------------------------------------------------+ - [learning2rank.py:2056:log_training_args]
187
+ 2025-06-10 17:31:38,904 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
188
+ 2025-06-10 17:31:38,904 - INFO - + ✨ MODEL TRAINING + - [learning2rank.py:111:log_section]
189
+ 2025-06-10 17:31:38,904 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
190
+ 2025-06-10 17:31:38,905 - INFO - 🏋️ Starting model training process... - [learning2rank.py:4082:main]
191
+ 2025-06-10 17:31:38,905 - INFO - 🏁 Preparing Custom Trainer 🛠️ - [learning2rank.py:3257:train_model]
192
+ 2025-06-10 17:31:38,992 - INFO - We are registering the tokenizer deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r in Custom Trainer - [learning2rank.py:2696:__init__]
193
+ 2025-06-10 17:31:38,992 - INFO - 🏋️ Commencing Model Training 💪 - [learning2rank.py:3298:train_model]
194
+ 2025-06-10 17:31:39,424 - INFO - 🚀 Starting Training... - [learning2rank.py:2446:on_train_begin]
195
+ 2025-06-10 17:32:01,446 - INFO -
196
+ 🚂 Training Metrics (Step 10) 🚂
197
+ +---------------+--------------+
198
+ | Metric | Value |
199
+ +===============+==============+
200
+ | loss | -1.41465e+17 |
201
+ +---------------+--------------+
202
+ | grad_norm | nan |
203
+ +---------------+--------------+
204
+ | learning_rate | 0.0001 |
205
+ +---------------+--------------+
206
+ | epoch | 0.231214 |
207
+ +---------------+--------------+ - [learning2rank.py:2364:on_log]
208
+ 2025-06-10 17:32:23,074 - INFO -
209
+ 🚂 Training Metrics (Step 20) 🚂
210
+ +---------------+-------------+
211
+ | Metric | Value |
212
+ +===============+=============+
213
+ | loss | -7.7045e+17 |
214
+ +---------------+-------------+
215
+ | grad_norm | nan |
216
+ +---------------+-------------+
217
+ | learning_rate | 0.0001 |
218
+ +---------------+-------------+
219
+ | epoch | 0.462428 |
220
+ +---------------+-------------+ - [learning2rank.py:2364:on_log]
221
+ 2025-06-10 17:32:44,788 - INFO -
222
+ 🚂 Training Metrics (Step 30) 🚂
223
+ +---------------+--------------+
224
+ | Metric | Value |
225
+ +===============+==============+
226
+ | loss | -1.96148e+17 |
227
+ +---------------+--------------+
228
+ | grad_norm | nan |
229
+ +---------------+--------------+
230
+ | learning_rate | 0.0001 |
231
+ +---------------+--------------+
232
+ | epoch | 0.693642 |
233
+ +---------------+--------------+ - [learning2rank.py:2364:on_log]
234
+ 2025-06-10 17:33:06,592 - INFO -
235
+ 🚂 Training Metrics (Step 40) 🚂
236
+ +---------------+--------------+
237
+ | Metric | Value |
238
+ +===============+==============+
239
+ | loss | -6.86576e+18 |
240
+ +---------------+--------------+
241
+ | grad_norm | nan |
242
+ +---------------+--------------+
243
+ | learning_rate | 0.0001 |
244
+ +---------------+--------------+
245
+ | epoch | 0.924855 |
246
+ +---------------+--------------+ - [learning2rank.py:2364:on_log]
247
+ 2025-06-10 17:33:13,692 - INFO - Removing 'token_type_ids' from eval_dataset as they are not needed. - [learning2rank.py:2812:evaluate]
248
+ 2025-06-10 17:34:55,537 - INFO -
249
+ 🔍 Evaluation Metrics 🔍
250
+ +-------------------+--------------+
251
+ | Metric | Value |
252
+ +===================+==============+
253
+ | eval_loss | -2.40602e+17 |
254
+ +-------------------+--------------+
255
+ | eval_ndcg | 0.956305 |
256
+ +-------------------+--------------+
257
+ | eval_ndcg@25 | 0.442205 |
258
+ +-------------------+--------------+
259
+ | eval_precision@25 | 0.221429 |
260
+ +-------------------+--------------+ - [learning2rank.py:2383:on_evaluate]
261
+ 2025-06-10 17:35:03,463 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-44 - [learning2rank.py:2936:_save]
262
+ 2025-06-10 17:35:03,497 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-44 - [learning2rank.py:2941:_save]
263
+ 2025-06-10 17:35:03,500 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-44:
264
+ +---------+-------------------+------------+
265
+ | Index | Saved File | Size |
266
+ +=========+===================+============+
267
+ | 1 | training_args.bin | 0.01 MB |
268
+ +---------+-------------------+------------+
269
+ | 2 | config.json | 0.38 MB |
270
+ +---------+-------------------+------------+
271
+ | 3 | model.safetensors | 4122.74 MB |
272
+ +---------+-------------------+------------+ - [learning2rank.py:2958:_save]
273
+ 2025-06-10 17:35:16,538 - INFO -
274
+ 🚂 Training Metrics (Step 50) 🚂
275
+ +---------------+--------------+
276
+ | Metric | Value |
277
+ +===============+==============+
278
+ | loss | -5.27798e+18 |
279
+ +---------------+--------------+
280
+ | grad_norm | nan |
281
+ +---------------+--------------+
282
+ | learning_rate | 0.0001 |
283
+ +---------------+--------------+
284
+ | epoch | 1.13873 |
285
+ +---------------+--------------+ - [learning2rank.py:2364:on_log]
286
+ 2025-06-10 17:35:38,444 - INFO -
287
+ 🚂 Training Metrics (Step 60) 🚂
288
+ +---------------+--------------+
289
+ | Metric | Value |
290
+ +===============+==============+
291
+ | loss | -2.68631e+17 |
292
+ +---------------+--------------+
293
+ | grad_norm | nan |
294
+ +---------------+--------------+
295
+ | learning_rate | 9.8e-05 |
296
+ +---------------+--------------+
297
+ | epoch | 1.36994 |
298
+ +---------------+--------------+ - [learning2rank.py:2364:on_log]
299
+ 2025-06-10 17:36:00,457 - INFO -
300
+ 🚂 Training Metrics (Step 70) 🚂
301
+ +---------------+--------------+
302
+ | Metric | Value |
303
+ +===============+==============+
304
+ | loss | -7.06192e+18 |
305
+ +---------------+--------------+
306
+ | grad_norm | 3.77714e+18 |
307
+ +---------------+--------------+
308
+ | learning_rate | 9.1e-05 |
309
+ +---------------+--------------+
310
+ | epoch | 1.60116 |
311
+ +---------------+--------------+ - [learning2rank.py:2364:on_log]
312
+ 2025-06-10 17:36:22,478 - INFO -
313
+ 🚂 Training Metrics (Step 80) 🚂
314
+ +---------------+--------------+
315
+ | Metric | Value |
316
+ +===============+==============+
317
+ | loss | -1.70365e+17 |
318
+ +---------------+--------------+
319
+ | grad_norm | 8.56735e+17 |
320
+ +---------------+--------------+
321
+ | learning_rate | 8.4e-05 |
322
+ +---------------+--------------+
323
+ | epoch | 1.83237 |
324
+ +---------------+--------------+ - [learning2rank.py:2364:on_log]
325
+ 2025-06-10 17:36:38,436 - INFO - Removing 'token_type_ids' from eval_dataset as they are not needed. - [learning2rank.py:2812:evaluate]
326
+ 2025-06-10 17:38:20,321 - INFO -
327
+ 🔍 Evaluation Metrics 🔍
328
+ +-------------------+--------------+
329
+ | Metric | Value |
330
+ +===================+==============+
331
+ | eval_loss | -3.80036e+17 |
332
+ +-------------------+--------------+
333
+ | eval_ndcg | 0.956906 |
334
+ +-------------------+--------------+
335
+ | eval_ndcg@25 | 0.774103 |
336
+ +-------------------+--------------+
337
+ | eval_precision@25 | 0.487059 |
338
+ +-------------------+--------------+ - [learning2rank.py:2383:on_evaluate]
339
+ 2025-06-10 17:38:28,214 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-88 - [learning2rank.py:2936:_save]
340
+ 2025-06-10 17:38:28,248 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-88 - [learning2rank.py:2941:_save]
341
+ 2025-06-10 17:38:28,250 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-88:
342
+ +---------+-------------------+------------+
343
+ | Index | Saved File | Size |
344
+ +=========+===================+============+
345
+ | 1 | training_args.bin | 0.01 MB |
346
+ +---------+-------------------+------------+
347
+ | 2 | config.json | 0.38 MB |
348
+ +---------+-------------------+------------+
349
+ | 3 | model.safetensors | 4122.74 MB |
350
+ +---------+-------------------+------------+ - [learning2rank.py:2958:_save]
351
+ 2025-06-10 17:38:33,235 - INFO -
352
+ 🚂 Training Metrics (Step 90) 🚂
353
+ +---------------+--------------+
354
+ | Metric | Value |
355
+ +===============+==============+
356
+ | loss | -1.06889e+18 |
357
+ +---------------+--------------+
358
+ | grad_norm | 2.01674e+17 |
359
+ +---------------+--------------+
360
+ | learning_rate | 7.7e-05 |
361
+ +---------------+--------------+
362
+ | epoch | 2.04624 |
363
+ +---------------+--------------+ - [learning2rank.py:2364:on_log]
364
+ 2025-06-10 17:38:55,022 - INFO -
365
+ 🚂 Training Metrics (Step 100) 🚂
366
+ +---------------+--------------+
367
+ | Metric | Value |
368
+ +===============+==============+
369
+ | loss | -2.48904e+17 |
370
+ +---------------+--------------+
371
+ | grad_norm | 7.86568e+17 |
372
+ +---------------+--------------+
373
+ | learning_rate | 6.9e-05 |
374
+ +---------------+--------------+
375
+ | epoch | 2.27746 |
376
+ +---------------+--------------+ - [learning2rank.py:2364:on_log]
377
+ 2025-06-10 17:39:16,930 - INFO -
378
+ 🚂 Training Metrics (Step 110) 🚂
379
+ +---------------+-------------+
380
+ | Metric | Value |
381
+ +===============+=============+
382
+ | loss | -3.0905e+18 |
383
+ +---------------+-------------+
384
+ | grad_norm | nan |
385
+ +---------------+-------------+
386
+ | learning_rate | 6.3e-05 |
387
+ +---------------+-------------+
388
+ | epoch | 2.50867 |
389
+ +---------------+-------------+ - [learning2rank.py:2364:on_log]
390
+ 2025-06-10 17:39:38,940 - INFO -
391
+ 🚂 Training Metrics (Step 120) 🚂
392
+ +---------------+--------------+
393
+ | Metric | Value |
394
+ +===============+==============+
395
+ | loss | -4.58167e+17 |
396
+ +---------------+--------------+
397
+ | grad_norm | 4.35304e+17 |
398
+ +---------------+--------------+
399
+ | learning_rate | 5.5e-05 |
400
+ +---------------+--------------+
401
+ | epoch | 2.73988 |
402
+ +---------------+--------------+ - [learning2rank.py:2364:on_log]
403
+ 2025-06-10 17:40:07,539 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-129 - [learning2rank.py:2936:_save]
404
+ 2025-06-10 17:40:07,573 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-129 - [learning2rank.py:2941:_save]
405
+ 2025-06-10 17:40:07,574 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-129:
406
+ +---------+-------------------+------------+
407
+ | Index | Saved File | Size |
408
+ +=========+===================+============+
409
+ | 1 | training_args.bin | 0.01 MB |
410
+ +---------+-------------------+------------+
411
+ | 2 | config.json | 0.38 MB |
412
+ +---------+-------------------+------------+
413
+ | 3 | model.safetensors | 4122.74 MB |
414
+ +---------+-------------------+------------+ - [learning2rank.py:2958:_save]
415
+ 2025-06-10 17:40:08,217 - INFO - Removing 'token_type_ids' from eval_dataset as they are not needed. - [learning2rank.py:2812:evaluate]
416
+ 2025-06-10 17:41:51,891 - INFO -
417
+ 🔍 Evaluation Metrics 🔍
418
+ +-------------------+--------------+
419
+ | Metric | Value |
420
+ +===================+==============+
421
+ | eval_loss | -4.11511e+17 |
422
+ +-------------------+--------------+
423
+ | eval_ndcg | 0.956901 |
424
+ +-------------------+--------------+
425
+ | eval_ndcg@25 | 0.716316 |
426
+ +-------------------+--------------+
427
+ | eval_precision@25 | 0.612571 |
428
+ +-------------------+--------------+ - [learning2rank.py:2383:on_evaluate]
429
+ 2025-06-10 17:42:02,577 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-129 - [learning2rank.py:2936:_save]
430
+ 2025-06-10 17:42:02,611 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-129 - [learning2rank.py:2941:_save]
431
+ 2025-06-10 17:42:02,613 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-129:
432
+ +---------+--------------------+------------+
433
+ | Index | Saved File | Size |
434
+ +=========+====================+============+
435
+ | 1 | trainer_state.json | 0.00 MB |
436
+ +---------+--------------------+------------+
437
+ | 2 | training_args.bin | 0.01 MB |
438
+ +---------+--------------------+------------+
439
+ | 3 | config.json | 0.38 MB |
440
+ +---------+--------------------+------------+
441
+ | 4 | model.safetensors | 4122.74 MB |
442
+ +---------+--------------------+------------+
443
+ | 5 | scheduler.pt | 0.00 MB |
444
+ +---------+--------------------+------------+
445
+ | 6 | scaler.pt | 0.00 MB |
446
+ +---------+--------------------+------------+
447
+ | 7 | rng_state.pth | 0.01 MB |
448
+ +---------+--------------------+------------+
449
+ | 8 | optimizer.pt | 352.39 MB |
450
+ +---------+--------------------+------------+ - [learning2rank.py:2958:_save]
451
+ 2025-06-10 17:42:03,446 - INFO - 📂 Loading best model from ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-88 - [learning2rank.py:3014:_load_best_model]
452
+ 2025-06-10 17:42:03,446 - INFO - 🖥️ Model is on device: cuda:0 - [learning2rank.py:3024:_load_best_model]
453
+ 2025-06-10 17:42:03,509 - INFO - 🔑 Key order comparison:
454
+ +---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
455
+ | Index | Saved state_dict Keys | Model state_dict Keys |
456
+ +=========+==========================================================================+===========================================================================================+
457
+ | 1 | ground_model.base_model.model.lm_head.weight | label_embeddings.weight |
458
+ +---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
459
+ | 2 | ground_model.base_model.model.model.embed_tokens.weight | ground_model.base_model.model.model.embed_tokens.weight |
460
+ +---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
461
+ | 3 | ground_model.base_model.model.model.layers.0.input_layernorm.weight | ground_model.base_model.model.model.layers.0.self_attn.q_proj.base_layer.weight |
462
+ +---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
463
+ | 4 | ground_model.base_model.model.model.layers.0.mlp.down_proj.weight | ground_model.base_model.model.model.layers.0.self_attn.q_proj.base_layer.weight.absmax |
464
+ +---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
465
+ | 5 | ground_model.base_model.model.model.layers.0.mlp.down_proj.weight.absmax | ground_model.base_model.model.model.layers.0.self_attn.q_proj.base_layer.weight.quant_map |
466
+ +---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+ - [learning2rank.py:3048:_load_best_model]
467
+ 2025-06-10 17:42:04,126 - INFO - ✅ Loaded best model weights from ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-88/model.safetensors - [learning2rank.py:3065:_load_best_model]
468
+ 2025-06-10 17:42:04,167 - INFO - ✔️ Weight for label_embeddings.weight matches between saved and loaded state_dict - [learning2rank.py:3077:_load_best_model]
469
+ 2025-06-10 17:42:04,210 - INFO - ✔️ Weight for ground_model.base_model.model.model.embed_tokens.weight matches between saved and loaded state_dict - [learning2rank.py:3077:_load_best_model]
470
+ 2025-06-10 17:42:04,359 - INFO -
471
+ 🚂 Training Metrics (Step 129) 🚂
472
+ +--------------------------+--------------+
473
+ | Metric | Value |
474
+ +==========================+==============+
475
+ | train_runtime | 624.937 |
476
+ +--------------------------+--------------+
477
+ | train_samples_per_second | 0.83 |
478
+ +--------------------------+--------------+
479
+ | train_steps_per_second | 0.206 |
480
+ +--------------------------+--------------+
481
+ | total_flos | 5.69938e+15 |
482
+ +--------------------------+--------------+
483
+ | train_loss | -2.09116e+18 |
484
+ +--------------------------+--------------+
485
+ | epoch | 2.94798 |
486
+ +--------------------------+--------------+ - [learning2rank.py:2364:on_log]
487
+ 2025-06-10 17:42:04,361 - INFO - ✨ Training Completed! ✨ - [learning2rank.py:2513:on_train_end]
488
+ 2025-06-10 17:42:04,476 - INFO - 📊 Training loss plot saved as '../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/train_loss_plot.png' - [learning2rank.py:2616:on_train_end]
489
+ 2025-06-10 17:42:04,566 - INFO - 📊 Evaluation loss plot saved as '../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/eval_loss_plot.png' - [learning2rank.py:2630:on_train_end]
490
+ 2025-06-10 17:42:04,665 - INFO - 📊 Evaluation metric plot saved as '../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/eval_ndcg@25_plot.png' - [learning2rank.py:2651:on_train_end]
491
+ 2025-06-10 17:42:04,665 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
492
+ 2025-06-10 17:42:04,665 - INFO - + ✨ MODEL SAVING + - [learning2rank.py:111:log_section]
493
+ 2025-06-10 17:42:04,665 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
494
+ 2025-06-10 17:42:04,665 - INFO - 💾 Saving trained model and pushing to Hugging Face Hub... - [learning2rank.py:4097:main]
495
+ 2025-06-10 17:42:04,665 - INFO - 📁 Creating/using output directory: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3332:save_and_push]
496
+ 2025-06-10 17:42:13,216 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:2936:_save]
497
+ 2025-06-10 17:42:13,250 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:2941:_save]
498
+ 2025-06-10 17:42:13,252 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b:
499
+ +---------+-----------------------+------------+
500
+ | Index | Saved File | Size |
501
+ +=========+=======================+============+
502
+ | 1 | training_args.bin | 0.01 MB |
503
+ +---------+-----------------------+------------+
504
+ | 2 | eval_ndcg@25_plot.png | 0.04 MB |
505
+ +---------+-----------------------+------------+
506
+ | 3 | eval_loss_plot.png | 0.03 MB |
507
+ +---------+-----------------------+------------+
508
+ | 4 | config.json | 0.38 MB |
509
+ +---------+-----------------------+------------+
510
+ | 5 | model.safetensors | 4122.74 MB |
511
+ +---------+-----------------------+------------+
512
+ | 6 | train_loss_plot.png | 0.04 MB |
513
+ +---------+-----------------------+------------+ - [learning2rank.py:2958:_save]
514
+ 2025-06-10 17:42:25,004 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:2936:_save]
515
+ 2025-06-10 17:42:25,038 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:2941:_save]
516
+ 2025-06-10 17:42:25,040 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b:
517
+ +---------+-----------------------+------------+
518
+ | Index | Saved File | Size |
519
+ +=========+=======================+============+
520
+ | 1 | training_args.bin | 0.01 MB |
521
+ +---------+-----------------------+------------+
522
+ | 2 | eval_ndcg@25_plot.png | 0.04 MB |
523
+ +---------+-----------------------+------------+
524
+ | 3 | eval_loss_plot.png | 0.03 MB |
525
+ +---------+-----------------------+------------+
526
+ | 4 | config.json | 0.38 MB |
527
+ +---------+-----------------------+------------+
528
+ | 5 | model.safetensors | 4122.74 MB |
529
+ +---------+-----------------------+------------+
530
+ | 6 | train_loss_plot.png | 0.04 MB |
531
+ +---------+-----------------------+------------+ - [learning2rank.py:2958:_save]
532
+ 2025-06-10 17:43:51,180 - INFO - 💾 Model saved to: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3336:save_and_push]
533
+ 2025-06-10 17:43:51,220 - INFO - 🖌️ Tokenizer saved to: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3340:save_and_push]
534
+ 2025-06-10 17:43:53,074 - INFO - 📊 Lookup table saved to: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/lookup_table.pt - [learning2rank.py:3345:save_and_push]