deb101 commited on
Commit
6a33c11
·
verified ·
1 Parent(s): c0a12f0

Trained L2R token ranking model on MIMIC-IV

Browse files
config.json CHANGED
@@ -1,8 +1,7 @@
1
  {
2
- "_attn_implementation_autoset": true,
3
  "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
4
  "architectures": [
5
- "MistralForCausalLM"
6
  ],
7
  "attention_dropout": 0.0,
8
  "bos_token_id": 1,
@@ -15926,7 +15925,7 @@
15926
  "rope_theta": 1000000.0,
15927
  "sliding_window": null,
15928
  "tie_word_embeddings": false,
15929
- "torch_dtype": "bfloat16",
15930
  "transformers_version": "4.49.0",
15931
  "use_cache": true,
15932
  "vocab_size": 32768
 
1
  {
 
2
  "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
3
  "architectures": [
4
+ "LTRModel"
5
  ],
6
  "attention_dropout": 0.0,
7
  "bos_token_id": 1,
 
15925
  "rope_theta": 1000000.0,
15926
  "sliding_window": null,
15927
  "tie_word_embeddings": false,
15928
+ "torch_dtype": "float32",
15929
  "transformers_version": "4.49.0",
15930
  "use_cache": true,
15931
  "vocab_size": 32768
ground_model/adapter_config.json CHANGED
@@ -24,10 +24,10 @@
24
  "rank_pattern": {},
25
  "revision": null,
26
  "target_modules": [
 
27
  "k_proj",
28
- "o_proj",
29
  "q_proj",
30
- "v_proj"
31
  ],
32
  "task_type": "CAUSAL_LM",
33
  "trainable_token_indices": null,
 
24
  "rank_pattern": {},
25
  "revision": null,
26
  "target_modules": [
27
+ "v_proj",
28
  "k_proj",
 
29
  "q_proj",
30
+ "o_proj"
31
  ],
32
  "task_type": "CAUSAL_LM",
33
  "trainable_token_indices": null,
training_l2r_log_2025-06-11_16-38-33.log ADDED
@@ -0,0 +1,510 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2025-06-11 16:38:33,159 - INFO - 📝 Logging initialized. Log file created at: ../tmp/logs/training_l2r_log_2025-06-11_16-38-33.log - [learning2rank.py:287:setup_logger]
2
+ 2025-06-11 16:38:33,160 - INFO - ================================================================================ - [learning2rank.py:109:log_section]
3
+ 2025-06-11 16:38:33,160 - INFO - = 📌 INITIALIZING TRAINING ENVIRONMENT = - [learning2rank.py:110:log_section]
4
+ 2025-06-11 16:38:33,160 - INFO - ================================================================================ - [learning2rank.py:113:log_section]
5
+ 2025-06-11 16:38:33,160 - INFO - 🚀 Setting up data paths and environment variables... - [learning2rank.py:3781:main]
6
+ 2025-06-11 16:38:33,160 - INFO - 🛠️ Command-line Arguments: - [learning2rank.py:303:print_args]
7
+ 2025-06-11 16:38:33,160 - 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: 2
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-11_16-38-33.log
27
+ 🔹 source: /home/ubuntu/.xcube/data/mimic4_demo - [learning2rank.py:304:print_args]
28
+ 2025-06-11 16:38:33,160 - INFO - ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ - [learning2rank.py:305:print_args]
29
+ 2025-06-11 16:38:33,160 - INFO - 📁 Using L2R boot directory: ../tmp/MIMIC4_DEMO/mimic4_l2rboot_mistral7b - [learning2rank.py:3795:main]
30
+ 2025-06-11 16:38:33,161 - INFO - 📂 Using output directory: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3797:main]
31
+ 2025-06-11 16:38:33,161 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:109:log_section]
32
+ 2025-06-11 16:38:33,161 - INFO - + ✨ LOADING DATASETS + - [learning2rank.py:110:log_section]
33
+ 2025-06-11 16:38:33,161 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:113:log_section]
34
+ 2025-06-11 16:38:33,161 - INFO - 📊 Loading main dataset and L2R dataset... - [learning2rank.py:3800:main]
35
+ 2025-06-11 16:38:33,161 - INFO - 📂 Loading main data from: /home/ubuntu/.xcube/data/mimic4_demo/mimic4_icd10_full.csv - [learning2rank.py:333:get_data]
36
+ 2025-06-11 16:38:41,416 - INFO - ✅ Successfully loaded main data: 122279 rows - [learning2rank.py:346:get_data]
37
+ 2025-06-11 16:38:41,416 - INFO - 📂 Loading L2R data from: ../tmp/MIMIC4_DEMO/mimic4_l2rboot_mistral7b/mimic4_icd10_tok_rank_per_lbl.ft - [learning2rank.py:352:get_data]
38
+ 2025-06-11 16:38:41,417 - INFO - 📂 Loading L2R tokens from: ../tmp/MIMIC4_DEMO/mimic4_l2rboot_mistral7b/mimic4_icd10_tok.ft - [learning2rank.py:355:get_data]
39
+ 2025-06-11 16:38:41,417 - INFO - 📂 Loading L2R labels from: ../tmp/MIMIC4_DEMO/mimic4_l2rboot_mistral7b/mimic4_icd10_lbl.ft - [learning2rank.py:358:get_data]
40
+ 2025-06-11 16:38:43,147 - INFO - ✅ Successfully loaded L2R data: 260243456 rows - [learning2rank.py:365:get_data]
41
+ 2025-06-11 16:38:43,147 - INFO - ✅ Successfully loaded L2R tokens: 32768 tokens - [learning2rank.py:366:get_data]
42
+ 2025-06-11 16:38:43,147 - INFO - ✅ Successfully loaded L2R labels: 7942 rows - [learning2rank.py:367:get_data]
43
+ 2025-06-11 16:38:43,148 - INFO - 🔄 Total data loaded: 122279 main rows, 260243456 L2R rows - [learning2rank.py:374:get_data]
44
+ 2025-06-11 16:38:43,148 - INFO - ✨ Successfully loaded both datasets: - [learning2rank.py:398:load_datasets]
45
+ 2025-06-11 16:38:43,148 - INFO - - 📄 Main dataset: 122279 records - [learning2rank.py:399:load_datasets]
46
+ 2025-06-11 16:38:43,148 - INFO - - 📄 L2R dataset: 260243456 records - [learning2rank.py:400:load_datasets]
47
+ 2025-06-11 16:38:43,148 - INFO - - 🔤 Tokens: 32768 items - [learning2rank.py:401:load_datasets]
48
+ 2025-06-11 16:38:43,148 - INFO - - 🏷️ Labels: 7942 items - [learning2rank.py:402:load_datasets]
49
+ 2025-06-11 16:38:43,155 - INFO - ✅ Data loading completed successfully - [learning2rank.py:410:load_datasets]
50
+ 2025-06-11 16:38:44,454 - INFO - ⏳ Starting quantization of ranks for DataFrame with 260243456 rows. Containing 32768 unique tokens & 7942 unique labels - [learning2rank.py:529:quantize_l2r_data]
51
+ 2025-06-11 16:38:44,454 - INFO - 🔄 Quantizing those 32768 unique token ranks into 101 quantization levels for each label - [learning2rank.py:554:quantize_l2r_data]
52
+ 2025-06-11 16:39:30,834 - INFO - ✅ Completed quantization: Produced tensor of shape torch.Size([7942, 32768, 4]) with 101 quantization levels per label - [learning2rank.py:608:quantize_l2r_data]
53
+ 2025-06-11 16:39:30,862 - WARNING - Label 7085: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:724:test_scored_tokens]
54
+ 2025-06-11 16:39:30,867 - WARNING - Label 7809: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:724:test_scored_tokens]
55
+ 2025-06-11 16:39:30,871 - WARNING - Label 2263: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:724:test_scored_tokens]
56
+ 2025-06-11 16:39:30,875 - WARNING - Label 2632: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:724:test_scored_tokens]
57
+ 2025-06-11 16:39:30,878 - WARNING - Label 6292: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:724:test_scored_tokens]
58
+ 2025-06-11 16:39:30,909 - INFO - ******************************************************************************** - [learning2rank.py:109:log_section]
59
+ 2025-06-11 16:39:30,909 - INFO - * 🌟 STARTING LEARNING TO RANK MODEL TRAINING * - [learning2rank.py:110:log_section]
60
+ 2025-06-11 16:39:30,909 - INFO - ******************************************************************************** - [learning2rank.py:113:log_section]
61
+ 2025-06-11 16:39:30,909 - INFO - 🔐 Loaded authentication token from environment - [learning2rank.py:3829:main]
62
+ 2025-06-11 16:39:30,909 - INFO - 🏷️ Hub Model ID for this Learning to Rank task: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3833:main]
63
+ 2025-06-11 16:39:30,909 - INFO - -------------------------------------------------------------------------------- - [learning2rank.py:109:log_section]
64
+ 2025-06-11 16:39:30,909 - INFO - - 📋 MODEL EXISTENCE CHECK - - [learning2rank.py:110:log_section]
65
+ 2025-06-11 16:39:30,909 - INFO - -------------------------------------------------------------------------------- - [learning2rank.py:113:log_section]
66
+ 2025-06-11 16:39:30,909 - INFO - 🔍 Checking model existence locally and on Hugging Face Hub... - [learning2rank.py:430:check_model_existence]
67
+ 2025-06-11 16:39:30,909 - INFO - ✅ Model exists locally at: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:435:check_model_existence]
68
+ 2025-06-11 16:39:30,973 - INFO - ✅ Model exists on Hugging Face Hub with ID: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:449:check_model_existence]
69
+ 2025-06-11 16:39:30,973 - INFO - 📁 Model exists either locally or on Hub - [learning2rank.py:475:check_model_existence]
70
+ 2025-06-11 16:39:30,973 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:109:log_section]
71
+ 2025-06-11 16:39:30,973 - INFO - + ✨ STARTING FRESH TRAINING + - [learning2rank.py:110:log_section]
72
+ 2025-06-11 16:39:30,973 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:113:log_section]
73
+ 2025-06-11 16:39:30,973 - INFO - 🔄 Starting fresh training (either forced or model not found)... - [learning2rank.py:3846:main]
74
+ 2025-06-11 16:39:30,994 - 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-11 16:39:30,994 - INFO - 🔑 Successfully authenticated with Hugging Face Hub - [learning2rank.py:311:authenticate_hf]
76
+ 2025-06-11 16:39:30,994 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:109:log_section]
77
+ 2025-06-11 16:39:30,995 - INFO - + ✨ DATA PREPROCESSING + - [learning2rank.py:110:log_section]
78
+ 2025-06-11 16:39:30,995 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:113:log_section]
79
+ 2025-06-11 16:39:30,995 - INFO - 🔄 Loading and preprocessing training data... - [learning2rank.py:3853:main]
80
+ 2025-06-11 16:39:30,995 - INFO - 🔤 Loading tokenizer for model: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r... - [learning2rank.py:3725:load_tokenizer]
81
+ 2025-06-11 16:39:31,022 - INFO - 📅 Repository last modified: 2025-06-11 16:13:35+00:00 - [learning2rank.py:3733:load_tokenizer]
82
+ 2025-06-11 16:39:31,637 - INFO - ✅ Tokenizer loaded successfully for model: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3744:load_tokenizer]
83
+ 2025-06-11 16:39:32,908 - INFO - 🔍 Verifying uniqueness of token IDs per label in scored_tokens... - [learning2rank.py:1302:preprocess_data]
84
+ 2025-06-11 16:39:33,755 - INFO - ✅ All labels have unique token IDs in scored_tokens. - [learning2rank.py:1314:preprocess_data]
85
+ 2025-06-11 16:39:33,755 - INFO - 🚀 Building a 2D lookup table for efficient token-to-relevance mapping across all labels! 🚀 - [learning2rank.py:1317:preprocess_data]
86
+ 2025-06-11 16:39:33,755 - INFO - 🔢 Total labels = 7942 - [learning2rank.py:1320:preprocess_data]
87
+ 2025-06-11 16:39:33,755 - INFO - 🔍 Precomputing token indices and corresponding relevance_values for each label... - [learning2rank.py:1321:preprocess_data]
88
+ 2025-06-11 16:39:33,983 - INFO - 📊 Lookup table dimensions: 32768 vocabulary size × 7942 labels - [learning2rank.py:1328:preprocess_data]
89
+ 2025-06-11 16:39:33,984 - INFO - ⚡ This approach eliminates token comparison broadcasting and provides O(1) lookup time for relevance scores! - [learning2rank.py:1331:preprocess_data]
90
+ 2025-06-11 16:39:33,984 - INFO - 🧮 Processing relevance calculations vectorized for maximum speed 🔥 - [learning2rank.py:1334:preprocess_data]
91
+ 2025-06-11 16:39:34,142 - INFO - 🔍 Verifying token mappings with 10 samples... - [learning2rank.py:1367:verify_token_mappings]
92
+ 2025-06-11 16:39:34,314 - INFO - ✅ Token mappings verification completed successfully! 🎉 - [learning2rank.py:1458:verify_token_mappings]
93
+ 2025-06-11 16:39:34,318 - INFO - 🔄 Processing dataset with map... - [learning2rank.py:1522:preprocess_data]
94
+ 2025-06-11 16:39:34,636 - INFO - ✅ Dataset built in 0h 0m 0.32s - [learning2rank.py:1545:preprocess_data]
95
+ 2025-06-11 16:39:34,648 - INFO - The size of Training set: 173 🏋️ (Training Data) - [learning2rank.py:1576:preprocess_data]
96
+ 2025-06-11 16:39:34,648 - INFO - The size of Evaluation set: 35 🔍 (Test Data) - [learning2rank.py:1577:preprocess_data]
97
+ 2025-06-11 16:39:34,648 - INFO - 🚀 Created HuggingFace Dataset with 208 samples, 7942 labels - [learning2rank.py:1585:preprocess_data]
98
+ 2025-06-11 16:39:34,649 - INFO - 🏷️ Number of unique ICD-10 codes: 7942 - [learning2rank.py:3867:main]
99
+ 2025-06-11 16:39:34,649 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:109:log_section]
100
+ 2025-06-11 16:39:34,649 - INFO - + ✨ LOADING FROM CHECKPOINT + - [learning2rank.py:110:log_section]
101
+ 2025-06-11 16:39:34,649 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:113:log_section]
102
+ 2025-06-11 16:39:34,649 - INFO - 📥 Loading existing model from checkpoint... - [learning2rank.py:3870:main]
103
+ 2025-06-11 16:39:34,649 - INFO - 🔍 Model exists locally: True - [learning2rank.py:3526:load_custom_task_model_and_tokenizer]
104
+ 2025-06-11 16:39:34,649 - INFO - 🌐 Loading model from Hub: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3534:load_custom_task_model_and_tokenizer]
105
+ 2025-06-11 16:39:34,718 - INFO - 🌐 Loaded config from Hub: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3552:load_custom_task_model_and_tokenizer]
106
+ 2025-06-11 16:39:34,718 - INFO - 🔢 Num labels: 7942, Base model path: mistralai/Mistral-7B-Instruct-v0.3 - [learning2rank.py:3566:load_custom_task_model_and_tokenizer]
107
+ 2025-06-11 16:39:34,718 - INFO - 🚀 Starting model and tokenizer loading process... - [learning2rank.py:939:load_base_model_and_tokenizer]
108
+ 2025-06-11 16:39:34,719 - 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:948:load_base_model_and_tokenizer]
124
+ 2025-06-11 16:39:34,719 - INFO - 🔤 Loading tokenizer for model: mistralai/Mistral-7B-Instruct-v0.3... - [learning2rank.py:952:load_base_model_and_tokenizer]
125
+ 2025-06-11 16:39:34,995 - INFO - 📝 Setting pad token to eos token... - [learning2rank.py:956:load_base_model_and_tokenizer]
126
+ 2025-06-11 16:39:34,995 - INFO - 🧠 Loading base model with quantization... - [learning2rank.py:964:load_base_model_and_tokenizer]
127
+ 2025-06-11 16:39:35,328 - 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-11 16:39:40,058 - INFO - 🔧 Setting up default LoRA configuration... - [learning2rank.py:987:load_base_model_and_tokenizer]
129
+ 2025-06-11 16:39:40,058 - INFO - 🔍 LoRA config: r=16, alpha=32, targets={'v_proj', 'k_proj', 'q_proj', 'o_proj'}, dropout=0.05 - [learning2rank.py:1010:load_base_model_and_tokenizer]
130
+ 2025-06-11 16:39:40,059 - INFO - 🧩 Applying LoRA adapters to model... - [learning2rank.py:1017:load_base_model_and_tokenizer]
131
+ 2025-06-11 16:39:40,243 - INFO - 📊 trainable params: 13,631,488 || all params: 7,261,655,040 || trainable%: 0.1877 - [learning2rank.py:135:log_print_output]
132
+ 2025-06-11 16:39:40,243 - INFO - ✅ Model and tokenizer successfully loaded! - [learning2rank.py:1024:load_base_model_and_tokenizer]
133
+ 2025-06-11 16:39:40,243 - INFO - 🤖 Loaded base model from: mistralai/Mistral-7B-Instruct-v0.3 - [learning2rank.py:3570:load_custom_task_model_and_tokenizer]
134
+ 2025-06-11 16:39:40,244 - INFO - Before preparing the model the % of trainable params are: - [learning2rank.py:3578:load_custom_task_model_and_tokenizer]
135
+ 2025-06-11 16:39:40,247 - INFO - 📊 trainable params: 13,631,488 || all params: 3,771,994,112 || trainable%: 0.3614 - [learning2rank.py:1699:compute_trainable_params]
136
+ 2025-06-11 16:39:41,800 - INFO - 🔧 Registering LTRModel with transformers AutoModel 🚀 - [learning2rank.py:1725:define_model]
137
+ 2025-06-11 16:39:41,800 - INFO - 🏗️ Initialized L2R model with 7942 labels - [learning2rank.py:3581:load_custom_task_model_and_tokenizer]
138
+ 2025-06-11 16:39:41,801 - INFO - After preparing the model the % of trainable params are: - [learning2rank.py:3582:load_custom_task_model_and_tokenizer]
139
+ 2025-06-11 16:39:41,805 - INFO - 📊 trainable params: 46,161,920 || all params: 3,804,524,544 || trainable%: 1.2133 - [core.py:293:compute_trainable_params]
140
+ 2025-06-11 16:39:41,827 - INFO - 🖥️ Model moved to device: cuda - [learning2rank.py:3587:load_custom_task_model_and_tokenizer]
141
+ 2025-06-11 16:39:41,890 - INFO - 💾 Loaded custom weights from Hub: /home/ubuntu/.cache/huggingface/hub/models--deb101--mistral-7b-instruct-v0.3-mimic4-adapt-l2r/snapshots/4e4441b8270d922ae1fbdcec91d48a57ff235eb4/model.safetensors - [learning2rank.py:3610:load_custom_task_model_and_tokenizer]
142
+ 2025-06-11 16:39:42,975 - INFO - ✅ Custom weights loaded into model - [learning2rank.py:3629:load_custom_task_model_and_tokenizer]
143
+ 2025-06-11 16:39:42,996 - INFO - ✔️ Loaded weights match model's state_dict - [learning2rank.py:3640:load_custom_task_model_and_tokenizer]
144
+ 2025-06-11 16:39:42,997 - INFO - 📋 Loaded files from Hub (directory: /home/ubuntu/.cache/huggingface/hub/models--deb101--mistral-7b-instruct-v0.3-mimic4-adapt-l2r/snapshots/4e4441b8270d922ae1fbdcec91d48a57ff235eb4):
145
+ +---------+-------------------+------------+
146
+ | Index | Loaded File | Size |
147
+ +=========+===================+============+
148
+ | 1 | model.safetensors | 4122.74 MB |
149
+ +---------+-------------------+------------+
150
+ | 2 | config.json | 0.38 MB |
151
+ +---------+-------------------+------------+ - [learning2rank.py:3680:load_custom_task_model_and_tokenizer]
152
+ 2025-06-11 16:39:43,283 - INFO - 🖌️ Loaded tokenizer from: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3695:load_custom_task_model_and_tokenizer]
153
+ 2025-06-11 16:39:43,292 - INFO - 🖥️ Model moved to device: cuda - [learning2rank.py:3702:load_custom_task_model_and_tokenizer]
154
+ 2025-06-11 16:39:43,304 - INFO - ✅ Successfully loaded from checkpoint, will now continue training for 2 epochs. - [learning2rank.py:3881:main]
155
+ 2025-06-11 16:39:43,308 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:109:log_section]
156
+ 2025-06-11 16:39:43,308 - INFO - + ✨ TRAINING PREPARATION + - [learning2rank.py:110:log_section]
157
+ 2025-06-11 16:39:43,308 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:113:log_section]
158
+ 2025-06-11 16:39:43,308 - INFO - ⚙️ Preparing training components and optimizers... - [learning2rank.py:3919:main]
159
+ 2025-06-11 16:39:43,338 - INFO - 🖥️ Device: NVIDIA GH200 480GB - [learning2rank.py:1887:log_training_configuration]
160
+ 2025-06-11 16:39:43,338 - INFO - 🔋 CUDA Available: True - [learning2rank.py:1890:log_training_configuration]
161
+ 2025-06-11 16:39:43,338 - INFO - 💾 CUDA Device Count: 1 - [learning2rank.py:1891:log_training_configuration]
162
+ 2025-06-11 16:39:43,339 - INFO -
163
+ 📋 Training Configuration 📋
164
+ +----------+-----------------------------+--------------------------------------------------+
165
+ | 🌟 Emoji | 🏷️ Parameter | 📊 Value |
166
+ +----------+-----------------------------+--------------------------------------------------+
167
+ | 📁 | Output Directory | ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b |
168
+ | 🔁 | Training Epochs | 2 |
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 | 86 |
183
+ | 🔢 | Evaluation Steps | 35 |
184
+ | 📊 | Training Dataset Size | 173 samples 🏋️ |
185
+ | 📊 | Evaluation Dataset Size | 35 samples 🔍 |
186
+ +----------+-----------------------------+--------------------------------------------------+ - [learning2rank.py:1879:log_training_args]
187
+ 2025-06-11 16:39:43,339 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:109:log_section]
188
+ 2025-06-11 16:39:43,339 - INFO - + ✨ MODEL TRAINING + - [learning2rank.py:110:log_section]
189
+ 2025-06-11 16:39:43,339 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:113:log_section]
190
+ 2025-06-11 16:39:43,339 - INFO - 🏋️ Starting model training process... - [learning2rank.py:3939:main]
191
+ 2025-06-11 16:39:43,339 - INFO - 🏁 Preparing Custom Trainer 🛠️ - [learning2rank.py:3080:train_model]
192
+ 2025-06-11 16:39:43,882 - INFO - We are registering the tokenizer deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r in Custom Trainer - [learning2rank.py:2519:__init__]
193
+ 2025-06-11 16:39:43,882 - INFO - 🏋️ Commencing Model Training 💪 - [learning2rank.py:3121:train_model]
194
+ 2025-06-11 16:39:44,157 - INFO - 🚀 Starting Training... - [learning2rank.py:2269:on_train_begin]
195
+ 2025-06-11 16:40:03,480 - INFO -
196
+ 🚂 Training Metrics (Step 10) 🚂
197
+ +---------------+--------------+
198
+ | Metric | Value |
199
+ +===============+==============+
200
+ | loss | -1.33065e+17 |
201
+ +---------------+--------------+
202
+ | grad_norm | nan |
203
+ +---------------+--------------+
204
+ | learning_rate | 0.0001 |
205
+ +---------------+--------------+
206
+ | epoch | 0.231214 |
207
+ +---------------+--------------+ - [learning2rank.py:2187:on_log]
208
+ 2025-06-11 16:40:17,673 - INFO -
209
+ 🚂 Training Metrics (Step 20) 🚂
210
+ +---------------+--------------+
211
+ | Metric | Value |
212
+ +===============+==============+
213
+ | loss | -9.67589e+17 |
214
+ +---------------+--------------+
215
+ | grad_norm | nan |
216
+ +---------------+--------------+
217
+ | learning_rate | 0.0001 |
218
+ +---------------+--------------+
219
+ | epoch | 0.462428 |
220
+ +---------------+--------------+ - [learning2rank.py:2187:on_log]
221
+ 2025-06-11 16:40:31,819 - INFO -
222
+ 🚂 Training Metrics (Step 30) 🚂
223
+ +---------------+--------------+
224
+ | Metric | Value |
225
+ +===============+==============+
226
+ | loss | -1.80524e+17 |
227
+ +---------------+--------------+
228
+ | grad_norm | nan |
229
+ +---------------+--------------+
230
+ | learning_rate | 0.0001 |
231
+ +---------------+--------------+
232
+ | epoch | 0.693642 |
233
+ +---------------+--------------+ - [learning2rank.py:2187:on_log]
234
+ 2025-06-11 16:40:45,943 - INFO -
235
+ 🚂 Training Metrics (Step 40) 🚂
236
+ +---------------+--------------+
237
+ | Metric | Value |
238
+ +===============+==============+
239
+ | loss | -6.81986e+18 |
240
+ +---------------+--------------+
241
+ | grad_norm | nan |
242
+ +---------------+--------------+
243
+ | learning_rate | 0.0001 |
244
+ +---------------+--------------+
245
+ | epoch | 0.924855 |
246
+ +---------------+--------------+ - [learning2rank.py:2187:on_log]
247
+ 2025-06-11 16:40:50,555 - INFO - Removing 'token_type_ids' from eval_dataset as they are not needed. - [learning2rank.py:2635:evaluate]
248
+ 2025-06-11 16:44:06,640 - INFO -
249
+ 🔍 Evaluation Metrics 🔍
250
+ +-------------------+--------------+
251
+ | Metric | Value |
252
+ +===================+==============+
253
+ | eval_loss | -2.89696e+17 |
254
+ +-------------------+--------------+
255
+ | eval_ndcg | 0.956037 |
256
+ +-------------------+--------------+
257
+ | eval_ndcg@25 | 0.620746 |
258
+ +-------------------+--------------+
259
+ | eval_precision@25 | 0.2464 |
260
+ +-------------------+--------------+ - [learning2rank.py:2206:on_evaluate]
261
+ 2025-06-11 16:44:10,026 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-44 - [learning2rank.py:2759:_save]
262
+ 2025-06-11 16:44:10,055 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-44 - [learning2rank.py:2764:_save]
263
+ 2025-06-11 16:44:10,056 - 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 | optimizer.pt | 0.00 MB |
270
+ +---------+--------------------+------------+
271
+ | 3 | model.safetensors | 4122.74 MB |
272
+ +---------+--------------------+------------+
273
+ | 4 | scaler.pt | 0.00 MB |
274
+ +---------+--------------------+------------+
275
+ | 5 | config.json | 0.38 MB |
276
+ +---------+--------------------+------------+
277
+ | 6 | scheduler.pt | 0.00 MB |
278
+ +---------+--------------------+------------+
279
+ | 7 | trainer_state.json | 0.00 MB |
280
+ +---------+--------------------+------------+
281
+ | 8 | rng_state.pth | 0.01 MB |
282
+ +---------+--------------------+------------+ - [learning2rank.py:2781:_save]
283
+ 2025-06-11 16:44:23,484 - INFO -
284
+ 🚂 Training Metrics (Step 50) 🚂
285
+ +---------------+--------------+
286
+ | Metric | Value |
287
+ +===============+==============+
288
+ | loss | -4.83237e+18 |
289
+ +---------------+--------------+
290
+ | grad_norm | nan |
291
+ +---------------+--------------+
292
+ | learning_rate | 0.0001 |
293
+ +---------------+--------------+
294
+ | epoch | 1.13873 |
295
+ +---------------+--------------+ - [learning2rank.py:2187:on_log]
296
+ 2025-06-11 16:44:37,779 - INFO -
297
+ 🚂 Training Metrics (Step 60) 🚂
298
+ +---------------+--------------+
299
+ | Metric | Value |
300
+ +===============+==============+
301
+ | loss | -2.68646e+17 |
302
+ +---------------+--------------+
303
+ | grad_norm | nan |
304
+ +---------------+--------------+
305
+ | learning_rate | 9.9e-05 |
306
+ +---------------+--------------+
307
+ | epoch | 1.36994 |
308
+ +---------------+--------------+ - [learning2rank.py:2187:on_log]
309
+ 2025-06-11 16:44:51,953 - INFO -
310
+ 🚂 Training Metrics (Step 70) 🚂
311
+ +---------------+-------------+
312
+ | Metric | Value |
313
+ +===============+=============+
314
+ | loss | -6.9769e+18 |
315
+ +---------------+-------------+
316
+ | grad_norm | 1.79827e+18 |
317
+ +---------------+-------------+
318
+ | learning_rate | 9.1e-05 |
319
+ +---------------+-------------+
320
+ | epoch | 1.60116 |
321
+ +---------------+-------------+ - [learning2rank.py:2187:on_log]
322
+ 2025-06-11 16:45:06,131 - INFO -
323
+ 🚂 Training Metrics (Step 80) 🚂
324
+ +---------------+--------------+
325
+ | Metric | Value |
326
+ +===============+==============+
327
+ | loss | -1.64648e+17 |
328
+ +---------------+--------------+
329
+ | grad_norm | 8.95493e+17 |
330
+ +---------------+--------------+
331
+ | learning_rate | 7.9e-05 |
332
+ +---------------+--------------+
333
+ | epoch | 1.83237 |
334
+ +---------------+--------------+ - [learning2rank.py:2187:on_log]
335
+ 2025-06-11 16:45:18,191 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-86 - [learning2rank.py:2759:_save]
336
+ 2025-06-11 16:45:18,218 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-86 - [learning2rank.py:2764:_save]
337
+ 2025-06-11 16:45:18,219 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-86:
338
+ +---------+--------------------+------------+
339
+ | Index | Saved File | Size |
340
+ +=========+====================+============+
341
+ | 1 | training_args.bin | 0.01 MB |
342
+ +---------+--------------------+------------+
343
+ | 2 | optimizer.pt | 352.39 MB |
344
+ +---------+--------------------+------------+
345
+ | 3 | model.safetensors | 4122.74 MB |
346
+ +---------+--------------------+------------+
347
+ | 4 | scaler.pt | 0.00 MB |
348
+ +---------+--------------------+------------+
349
+ | 5 | config.json | 0.38 MB |
350
+ +---------+--------------------+------------+
351
+ | 6 | scheduler.pt | 0.00 MB |
352
+ +---------+--------------------+------------+
353
+ | 7 | trainer_state.json | 0.00 MB |
354
+ +---------+--------------------+------------+
355
+ | 8 | rng_state.pth | 0.01 MB |
356
+ +---------+--------------------+------------+ - [learning2rank.py:2781:_save]
357
+ 2025-06-11 16:45:18,594 - INFO - Removing 'token_type_ids' from eval_dataset as they are not needed. - [learning2rank.py:2635:evaluate]
358
+ 2025-06-11 16:48:32,473 - INFO -
359
+ 🔍 Evaluation Metrics 🔍
360
+ +-------------------+--------------+
361
+ | Metric | Value |
362
+ +===================+==============+
363
+ | eval_loss | -3.92273e+17 |
364
+ +-------------------+--------------+
365
+ | eval_ndcg | 0.956423 |
366
+ +-------------------+--------------+
367
+ | eval_ndcg@25 | 0.595904 |
368
+ +-------------------+--------------+
369
+ | eval_precision@25 | 0.223448 |
370
+ +-------------------+--------------+ - [learning2rank.py:2206:on_evaluate]
371
+ 2025-06-11 16:48:36,124 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-86 - [learning2rank.py:2759:_save]
372
+ 2025-06-11 16:48:36,152 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-86 - [learning2rank.py:2764:_save]
373
+ 2025-06-11 16:48:36,153 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-86:
374
+ +---------+--------------------+------------+
375
+ | Index | Saved File | Size |
376
+ +=========+====================+============+
377
+ | 1 | training_args.bin | 0.01 MB |
378
+ +---------+--------------------+------------+
379
+ | 2 | optimizer.pt | 352.39 MB |
380
+ +---------+--------------------+------------+
381
+ | 3 | model.safetensors | 4122.74 MB |
382
+ +---------+--------------------+------------+
383
+ | 4 | scaler.pt | 0.00 MB |
384
+ +---------+--------------------+------------+
385
+ | 5 | config.json | 0.38 MB |
386
+ +---------+--------------------+------------+
387
+ | 6 | scheduler.pt | 0.00 MB |
388
+ +---------+--------------------+------------+
389
+ | 7 | trainer_state.json | 0.00 MB |
390
+ +---------+--------------------+------------+
391
+ | 8 | rng_state.pth | 0.01 MB |
392
+ +---------+--------------------+------------+ - [learning2rank.py:2781:_save]
393
+ 2025-06-11 16:48:36,611 - INFO - 📂 Loading best model from ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-44 - [learning2rank.py:2837:_load_best_model]
394
+ 2025-06-11 16:48:36,611 - INFO - 🖥️ Model is on device: cuda:0 - [learning2rank.py:2847:_load_best_model]
395
+ 2025-06-11 16:48:36,667 - INFO - 🔑 Key order comparison:
396
+ +---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
397
+ | Index | Saved state_dict Keys | Model state_dict Keys |
398
+ +=========+==========================================================================+===========================================================================================+
399
+ | 1 | ground_model.base_model.model.lm_head.weight | label_embeddings.weight |
400
+ +---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
401
+ | 2 | ground_model.base_model.model.model.embed_tokens.weight | ground_model.base_model.model.model.embed_tokens.weight |
402
+ +---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
403
+ | 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 |
404
+ +---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
405
+ | 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 |
406
+ +---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
407
+ | 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 |
408
+ +---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+ - [learning2rank.py:2871:_load_best_model]
409
+ 2025-06-11 16:48:37,460 - INFO - ✅ Loaded best model weights from ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-44/model.safetensors - [learning2rank.py:2888:_load_best_model]
410
+ 2025-06-11 16:48:37,498 - INFO - ✔️ Weight for label_embeddings.weight matches between saved and loaded state_dict - [learning2rank.py:2900:_load_best_model]
411
+ 2025-06-11 16:48:37,552 - INFO - ✔️ Weight for ground_model.base_model.model.model.embed_tokens.weight matches between saved and loaded state_dict - [learning2rank.py:2900:_load_best_model]
412
+ 2025-06-11 16:48:37,569 - INFO -
413
+ 🚂 Training Metrics (Step 86) 🚂
414
+ +--------------------------+--------------+
415
+ | Metric | Value |
416
+ +==========================+==============+
417
+ | train_runtime | 533.413 |
418
+ +--------------------------+--------------+
419
+ | train_samples_per_second | 0.649 |
420
+ +--------------------------+--------------+
421
+ | train_steps_per_second | 0.161 |
422
+ +--------------------------+--------------+
423
+ | total_flos | 3.81076e+15 |
424
+ +--------------------------+--------------+
425
+ | train_loss | -2.47551e+18 |
426
+ +--------------------------+--------------+
427
+ | epoch | 1.9711 |
428
+ +--------------------------+--------------+ - [learning2rank.py:2187:on_log]
429
+ 2025-06-11 16:48:37,569 - INFO - ✨ Training Completed! ✨ - [learning2rank.py:2336:on_train_end]
430
+ 2025-06-11 16:48:37,646 - INFO - 📊 Training loss plot saved as '../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/train_loss_plot.png' - [learning2rank.py:2439:on_train_end]
431
+ 2025-06-11 16:48:37,700 - INFO - 📊 Evaluation loss plot saved as '../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/eval_loss_plot.png' - [learning2rank.py:2453:on_train_end]
432
+ 2025-06-11 16:48:37,755 - INFO - 📊 Evaluation metric plot saved as '../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/eval_ndcg@25_plot.png' - [learning2rank.py:2474:on_train_end]
433
+ 2025-06-11 16:48:37,756 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:109:log_section]
434
+ 2025-06-11 16:48:37,756 - INFO - + ✨ MODEL SAVING + - [learning2rank.py:110:log_section]
435
+ 2025-06-11 16:48:37,756 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:113:log_section]
436
+ 2025-06-11 16:48:37,756 - INFO - 💾 Saving trained model and pushing to Hugging Face Hub... - [learning2rank.py:3954:main]
437
+ 2025-06-11 16:48:37,756 - INFO - 📁 Creating/using output directory: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3155:save_and_push]
438
+ 2025-06-11 16:48:41,278 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:2759:_save]
439
+ 2025-06-11 16:48:41,305 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:2764:_save]
440
+ 2025-06-11 16:48:41,307 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b:
441
+ +---------+------------------------------------------+------------+
442
+ | Index | Saved File | Size |
443
+ +=========+==========================================+============+
444
+ | 1 | eval_loss_plot.png | 0.03 MB |
445
+ +---------+------------------------------------------+------------+
446
+ | 2 | training_args.bin | 0.01 MB |
447
+ +---------+------------------------------------------+------------+
448
+ | 3 | tokenizer.model | 0.56 MB |
449
+ +---------+------------------------------------------+------------+
450
+ | 4 | tokenizer.json | 3.50 MB |
451
+ +---------+------------------------------------------+------------+
452
+ | 5 | training_l2r_log_2025-06-11_15-29-36.log | 0.03 MB |
453
+ +---------+------------------------------------------+------------+
454
+ | 6 | model.safetensors | 4122.74 MB |
455
+ +---------+------------------------------------------+------------+
456
+ | 7 | training_l2r_log_2025-06-11_16-01-58.log | 0.04 MB |
457
+ +---------+------------------------------------------+------------+
458
+ | 8 | eval_ndcg@25_plot.png | 0.04 MB |
459
+ +---------+------------------------------------------+------------+
460
+ | 9 | config.json | 0.38 MB |
461
+ +---------+------------------------------------------+------------+
462
+ | 10 | special_tokens_map.json | 0.00 MB |
463
+ +---------+------------------------------------------+------------+
464
+ | 11 | lookup_table.pt | 992.75 MB |
465
+ +---------+------------------------------------------+------------+
466
+ | 12 | tokenizer_config.json | 0.13 MB |
467
+ +---------+------------------------------------------+------------+
468
+ | 13 | train_loss_plot.png | 0.04 MB |
469
+ +---------+------------------------------------------+------------+
470
+ | 14 | README.md | 0.00 MB |
471
+ +---------+------------------------------------------+------------+ - [learning2rank.py:2781:_save]
472
+ 2025-06-11 16:48:44,642 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:2759:_save]
473
+ 2025-06-11 16:48:44,669 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:2764:_save]
474
+ 2025-06-11 16:48:44,670 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b:
475
+ +---------+------------------------------------------+------------+
476
+ | Index | Saved File | Size |
477
+ +=========+==========================================+============+
478
+ | 1 | eval_loss_plot.png | 0.03 MB |
479
+ +---------+------------------------------------------+------------+
480
+ | 2 | training_args.bin | 0.01 MB |
481
+ +---------+------------------------------------------+------------+
482
+ | 3 | tokenizer.model | 0.56 MB |
483
+ +---------+------------------------------------------+------------+
484
+ | 4 | tokenizer.json | 3.50 MB |
485
+ +---------+------------------------------------------+------------+
486
+ | 5 | training_l2r_log_2025-06-11_15-29-36.log | 0.03 MB |
487
+ +---------+------------------------------------------+------------+
488
+ | 6 | model.safetensors | 4122.74 MB |
489
+ +---------+------------------------------------------+------------+
490
+ | 7 | training_l2r_log_2025-06-11_16-01-58.log | 0.04 MB |
491
+ +---------+------------------------------------------+------------+
492
+ | 8 | eval_ndcg@25_plot.png | 0.04 MB |
493
+ +---------+------------------------------------------+------------+
494
+ | 9 | config.json | 0.38 MB |
495
+ +---------+------------------------------------------+------------+
496
+ | 10 | special_tokens_map.json | 0.00 MB |
497
+ +---------+------------------------------------------+------------+
498
+ | 11 | lookup_table.pt | 992.75 MB |
499
+ +---------+------------------------------------------+------------+
500
+ | 12 | tokenizer_config.json | 0.13 MB |
501
+ +---------+------------------------------------------+------------+
502
+ | 13 | train_loss_plot.png | 0.04 MB |
503
+ +---------+------------------------------------------+------------+
504
+ | 14 | README.md | 0.00 MB |
505
+ +---------+------------------------------------------+------------+ - [learning2rank.py:2781:_save]
506
+ 2025-06-11 16:48:50,673 - INFO - 💾 Model saved to: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3159:save_and_push]
507
+ 2025-06-11 16:48:55,466 - INFO - ✅ Model, ground_model, and lookup_table saved to ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [core.py:310:save_pretrained]
508
+ 2025-06-11 16:48:55,466 - INFO - 💾 Model and config explicitly saved to: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3165:save_and_push]
509
+ 2025-06-11 16:48:55,499 - INFO - 🖌️ Tokenizer saved to: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3169:save_and_push]
510
+ 2025-06-11 16:48:56,506 - INFO - 📊 Lookup table saved to: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/lookup_table.pt - [learning2rank.py:3174:save_and_push]