Trained L2R token ranking model on MIMIC-IV
Browse files- config.json +2 -3
- training_l2r_log_2025-06-10_19-08-26.log +457 -0
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 |
-
"
|
6 |
],
|
7 |
"attention_dropout": 0.0,
|
8 |
"bos_token_id": 1,
|
@@ -15925,7 +15924,7 @@
|
|
15925 |
"rope_theta": 1000000.0,
|
15926 |
"sliding_window": null,
|
15927 |
"tie_word_embeddings": false,
|
15928 |
-
"torch_dtype": "
|
15929 |
"transformers_version": "4.49.0",
|
15930 |
"use_cache": true,
|
15931 |
"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,
|
|
|
15924 |
"rope_theta": 1000000.0,
|
15925 |
"sliding_window": null,
|
15926 |
"tie_word_embeddings": false,
|
15927 |
+
"torch_dtype": "float32",
|
15928 |
"transformers_version": "4.49.0",
|
15929 |
"use_cache": true,
|
15930 |
"vocab_size": 32768
|
training_l2r_log_2025-06-10_19-08-26.log
ADDED
@@ -0,0 +1,457 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
2025-06-10 19:08:26,551 - INFO - 📝 Logging initialized. Log file created at: ../tmp/logs/training_l2r_log_2025-06-10_19-08-26.log - [learning2rank.py:288:setup_logging]
|
2 |
+
2025-06-10 19:08:26,551 - INFO - ================================================================================ - [learning2rank.py:110:log_section]
|
3 |
+
2025-06-10 19:08:26,551 - INFO - = 📌 INITIALIZING TRAINING ENVIRONMENT = - [learning2rank.py:111:log_section]
|
4 |
+
2025-06-10 19:08:26,551 - INFO - ================================================================================ - [learning2rank.py:114:log_section]
|
5 |
+
2025-06-10 19:08:26,551 - INFO - 🚀 Setting up data paths and environment variables... - [learning2rank.py:3928:main]
|
6 |
+
2025-06-10 19:08:26,552 - INFO - 🛠️ Command-line Arguments: - [learning2rank.py:304:print_args]
|
7 |
+
2025-06-10 19:08:26,552 - 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-10_19-08-26.log
|
27 |
+
🔹 source: /home/ubuntu/.xcube/data/mimic4_demo - [learning2rank.py:305:print_args]
|
28 |
+
2025-06-10 19:08:26,552 - INFO - ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ - [learning2rank.py:306:print_args]
|
29 |
+
2025-06-10 19:08:26,552 - INFO - 📁 Using L2R boot directory: ../tmp/MIMIC4_DEMO/mimic4_l2rboot_mistral7b - [learning2rank.py:3942:main]
|
30 |
+
2025-06-10 19:08:26,552 - INFO - 📂 Using output directory: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3944:main]
|
31 |
+
2025-06-10 19:08:26,552 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
|
32 |
+
2025-06-10 19:08:26,552 - INFO - + ✨ LOADING DATASETS + - [learning2rank.py:111:log_section]
|
33 |
+
2025-06-10 19:08:26,552 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
|
34 |
+
2025-06-10 19:08:26,552 - INFO - 📊 Loading main dataset and L2R dataset... - [learning2rank.py:3947:main]
|
35 |
+
2025-06-10 19:08:26,552 - INFO - 📂 Loading main data from: /home/ubuntu/.xcube/data/mimic4_demo/mimic4_icd10_full.csv - [learning2rank.py:334:get_data]
|
36 |
+
2025-06-10 19:08:37,515 - INFO - ✅ Successfully loaded main data: 122279 rows - [learning2rank.py:347:get_data]
|
37 |
+
2025-06-10 19:08:37,516 - 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 19:08:37,516 - INFO - 📂 Loading L2R tokens from: ../tmp/MIMIC4_DEMO/mimic4_l2rboot_mistral7b/mimic4_icd10_tok.ft - [learning2rank.py:356:get_data]
|
39 |
+
2025-06-10 19:08:37,516 - INFO - 📂 Loading L2R labels from: ../tmp/MIMIC4_DEMO/mimic4_l2rboot_mistral7b/mimic4_icd10_lbl.ft - [learning2rank.py:359:get_data]
|
40 |
+
2025-06-10 19:08:43,562 - INFO - ✅ Successfully loaded L2R data: 260243456 rows - [learning2rank.py:366:get_data]
|
41 |
+
2025-06-10 19:08:43,562 - INFO - ✅ Successfully loaded L2R tokens: 32768 tokens - [learning2rank.py:367:get_data]
|
42 |
+
2025-06-10 19:08:43,562 - INFO - ✅ Successfully loaded L2R labels: 7942 rows - [learning2rank.py:368:get_data]
|
43 |
+
2025-06-10 19:08:43,562 - INFO - 🔄 Total data loaded: 122279 main rows, 260243456 L2R rows - [learning2rank.py:375:get_data]
|
44 |
+
2025-06-10 19:08:43,562 - INFO - ✨ Successfully loaded both datasets: - [learning2rank.py:399:load_datasets]
|
45 |
+
2025-06-10 19:08:43,562 - INFO - - 📄 Main dataset: 122279 records - [learning2rank.py:400:load_datasets]
|
46 |
+
2025-06-10 19:08:43,562 - INFO - - 📄 L2R dataset: 260243456 records - [learning2rank.py:401:load_datasets]
|
47 |
+
2025-06-10 19:08:43,562 - INFO - - 🔤 Tokens: 32768 items - [learning2rank.py:402:load_datasets]
|
48 |
+
2025-06-10 19:08:43,563 - INFO - - 🏷️ Labels: 7942 items - [learning2rank.py:403:load_datasets]
|
49 |
+
2025-06-10 19:08:43,573 - INFO - ✅ Data loading completed successfully - [learning2rank.py:411:load_datasets]
|
50 |
+
2025-06-10 19:08:45,176 - 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 19:08:45,177 - INFO - 🔄 Quantizing those 32768 unique token ranks into 101 quantization levels for each label - [learning2rank.py:555:quantize_l2r_data]
|
52 |
+
2025-06-10 19:10:02,479 - 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 19:10:03,106 - WARNING - Label 5871: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:725:test_scored_tokens]
|
54 |
+
2025-06-10 19:10:03,116 - WARNING - Label 1419: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:725:test_scored_tokens]
|
55 |
+
2025-06-10 19:10:03,122 - WARNING - Label 568: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:725:test_scored_tokens]
|
56 |
+
2025-06-10 19:10:03,128 - WARNING - Label 1733: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:725:test_scored_tokens]
|
57 |
+
2025-06-10 19:10:03,133 - WARNING - Label 2885: Only 1 tokens with top relevance score (need 50) - [learning2rank.py:725:test_scored_tokens]
|
58 |
+
2025-06-10 19:10:03,320 - INFO - ******************************************************************************** - [learning2rank.py:110:log_section]
|
59 |
+
2025-06-10 19:10:03,320 - INFO - * 🌟 STARTING LEARNING TO RANK MODEL TRAINING * - [learning2rank.py:111:log_section]
|
60 |
+
2025-06-10 19:10:03,320 - INFO - ******************************************************************************** - [learning2rank.py:114:log_section]
|
61 |
+
2025-06-10 19:10:03,320 - INFO - 🔐 Loaded authentication token from environment - [learning2rank.py:3976:main]
|
62 |
+
2025-06-10 19:10:03,320 - INFO - 🏷️ Hub Model ID for this Learning to Rank task: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3980:main]
|
63 |
+
2025-06-10 19:10:03,320 - INFO - -------------------------------------------------------------------------------- - [learning2rank.py:110:log_section]
|
64 |
+
2025-06-10 19:10:03,320 - INFO - - 📋 MODEL EXISTENCE CHECK - - [learning2rank.py:111:log_section]
|
65 |
+
2025-06-10 19:10:03,320 - INFO - -------------------------------------------------------------------------------- - [learning2rank.py:114:log_section]
|
66 |
+
2025-06-10 19:10:03,320 - INFO - 🔍 Checking model existence locally and on Hugging Face Hub... - [learning2rank.py:431:check_model_existence]
|
67 |
+
2025-06-10 19:10:03,320 - INFO - ❌ Model not found locally at: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:438:check_model_existence]
|
68 |
+
2025-06-10 19:10:03,457 - 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 19:10:03,457 - INFO - 📁 Model exists either locally or on Hub - [learning2rank.py:476:check_model_existence]
|
70 |
+
2025-06-10 19:10:03,457 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
|
71 |
+
2025-06-10 19:10:03,457 - INFO - + ✨ STARTING FRESH TRAINING + - [learning2rank.py:111:log_section]
|
72 |
+
2025-06-10 19:10:03,457 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
|
73 |
+
2025-06-10 19:10:03,458 - INFO - 🔄 Starting fresh training (either forced or model not found)... - [learning2rank.py:3993:main]
|
74 |
+
2025-06-10 19:10:03,484 - 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 19:10:03,484 - INFO - 🔑 Successfully authenticated with Hugging Face Hub - [learning2rank.py:312:authenticate_hf]
|
76 |
+
2025-06-10 19:10:03,485 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
|
77 |
+
2025-06-10 19:10:03,485 - INFO - + ✨ DATA PREPROCESSING + - [learning2rank.py:111:log_section]
|
78 |
+
2025-06-10 19:10:03,485 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
|
79 |
+
2025-06-10 19:10:03,485 - INFO - 🔄 Loading and preprocessing training data... - [learning2rank.py:4000:main]
|
80 |
+
2025-06-10 19:10:03,485 - INFO - 🔤 Loading tokenizer for model: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r... - [learning2rank.py:3872:load_tokenizer]
|
81 |
+
2025-06-10 19:10:03,526 - INFO - 📅 Repository last modified: 2025-06-10 17:44:12+00:00 - [learning2rank.py:3880:load_tokenizer]
|
82 |
+
2025-06-10 19:10:04,675 - INFO - ✅ Tokenizer loaded successfully for model: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3891:load_tokenizer]
|
83 |
+
2025-06-10 19:10:06,977 - INFO - 🔍 Verifying uniqueness of token IDs per label in scored_tokens... - [learning2rank.py:1303:preprocess_data]
|
84 |
+
2025-06-10 19:10:08,069 - INFO - ✅ All labels have unique token IDs in scored_tokens. - [learning2rank.py:1315:preprocess_data]
|
85 |
+
2025-06-10 19:10:08,069 - INFO - 🚀 Building a 2D lookup table for efficient token-to-relevance mapping across all labels! 🚀 - [learning2rank.py:1318:preprocess_data]
|
86 |
+
2025-06-10 19:10:08,069 - INFO - 🔢 Total labels = 7942 - [learning2rank.py:1321:preprocess_data]
|
87 |
+
2025-06-10 19:10:08,069 - INFO - 🔍 Precomputing token indices and corresponding relevance_values for each label... - [learning2rank.py:1322:preprocess_data]
|
88 |
+
2025-06-10 19:10:08,085 - INFO - 📊 Lookup table dimensions: 32768 vocabulary size × 7942 labels - [learning2rank.py:1329:preprocess_data]
|
89 |
+
2025-06-10 19:10:08,085 - 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 19:10:08,085 - INFO - 🧮 Processing relevance calculations vectorized for maximum speed 🔥 - [learning2rank.py:1335:preprocess_data]
|
91 |
+
2025-06-10 19:10:08,268 - INFO - 🔍 Verifying token mappings with 10 samples... - [learning2rank.py:1368:verify_token_mappings]
|
92 |
+
2025-06-10 19:10:08,476 - INFO - ✅ Token mappings verification completed successfully! 🎉 - [learning2rank.py:1459:verify_token_mappings]
|
93 |
+
2025-06-10 19:10:08,484 - INFO - 🔄 Processing dataset with map... - [learning2rank.py:1523:preprocess_data]
|
94 |
+
2025-06-10 19:10:08,914 - INFO - ✅ Dataset built in 0h 0m 0.43s - [learning2rank.py:1546:preprocess_data]
|
95 |
+
2025-06-10 19:10:08,929 - INFO - The size of Training set: 173 🏋️ (Training Data) - [learning2rank.py:1577:preprocess_data]
|
96 |
+
2025-06-10 19:10:08,930 - INFO - The size of Evaluation set: 35 🔍 (Test Data) - [learning2rank.py:1578:preprocess_data]
|
97 |
+
2025-06-10 19:10:08,930 - INFO - 🚀 Created HuggingFace Dataset with 208 samples, 7942 labels - [learning2rank.py:1586:preprocess_data]
|
98 |
+
2025-06-10 19:10:08,930 - INFO - 🏷️ Number of unique ICD-10 codes: 7942 - [learning2rank.py:4014:main]
|
99 |
+
2025-06-10 19:10:08,931 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
|
100 |
+
2025-06-10 19:10:08,931 - INFO - + ✨ LOADING FROM CHECKPOINT + - [learning2rank.py:111:log_section]
|
101 |
+
2025-06-10 19:10:08,931 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
|
102 |
+
2025-06-10 19:10:08,931 - INFO - 📥 Loading existing model from checkpoint... - [learning2rank.py:4017:main]
|
103 |
+
2025-06-10 19:10:08,931 - INFO - 🔍 Model exists locally: False - [learning2rank.py:3673:load_custom_task_model_and_tokenizer]
|
104 |
+
2025-06-10 19:10:08,931 - INFO - 🌐 Loading model from Hub: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3681:load_custom_task_model_and_tokenizer]
|
105 |
+
2025-06-10 19:10:08,982 - INFO - 🌐 Loaded config from Hub: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3699:load_custom_task_model_and_tokenizer]
|
106 |
+
2025-06-10 19:10:08,982 - INFO - 🔢 Num labels: 7942, Base model path: mistralai/Mistral-7B-Instruct-v0.3 - [learning2rank.py:3713:load_custom_task_model_and_tokenizer]
|
107 |
+
2025-06-10 19:10:08,982 - INFO - 🚀 Starting model and tokenizer loading process... - [learning2rank.py:940:load_base_model_and_tokenizer]
|
108 |
+
2025-06-10 19:10:08,983 - 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 19:10:08,983 - INFO - 🔤 Loading tokenizer for model: mistralai/Mistral-7B-Instruct-v0.3... - [learning2rank.py:953:load_base_model_and_tokenizer]
|
125 |
+
2025-06-10 19:10:09,318 - INFO - 📝 Setting pad token to eos token... - [learning2rank.py:957:load_base_model_and_tokenizer]
|
126 |
+
2025-06-10 19:10:09,318 - INFO - 🧠 Loading base model with quantization... - [learning2rank.py:965:load_base_model_and_tokenizer]
|
127 |
+
2025-06-10 19:10:09,902 - 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 19:10:26,074 - INFO - 🔧 Setting up default LoRA configuration... - [learning2rank.py:988:load_base_model_and_tokenizer]
|
129 |
+
2025-06-10 19:10:26,074 - INFO - 🔍 LoRA config: r=16, alpha=32, targets={'o_proj', 'k_proj', 'q_proj', 'v_proj'}, dropout=0.05 - [learning2rank.py:1011:load_base_model_and_tokenizer]
|
130 |
+
2025-06-10 19:10:26,074 - INFO - 🧩 Applying LoRA adapters to model... - [learning2rank.py:1018:load_base_model_and_tokenizer]
|
131 |
+
2025-06-10 19:10:26,319 - 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 19:10:26,319 - INFO - ✅ Model and tokenizer successfully loaded! - [learning2rank.py:1025:load_base_model_and_tokenizer]
|
133 |
+
2025-06-10 19:10:26,320 - INFO - 🤖 Loaded base model from: mistralai/Mistral-7B-Instruct-v0.3 - [learning2rank.py:3717:load_custom_task_model_and_tokenizer]
|
134 |
+
2025-06-10 19:10:26,320 - INFO - Before preparing the model the % of trainable params are: - [learning2rank.py:3725:load_custom_task_model_and_tokenizer]
|
135 |
+
2025-06-10 19:10:26,325 - 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 19:10:26,772 - INFO - 🔧 Registering LTRModel with transformers AutoModel 🚀 - [learning2rank.py:1902:define_model]
|
137 |
+
2025-06-10 19:10:26,772 - INFO - 🏗️ Initialized L2R model with 7942 labels - [learning2rank.py:3728:load_custom_task_model_and_tokenizer]
|
138 |
+
2025-06-10 19:10:26,772 - INFO - After preparing the model the % of trainable params are: - [learning2rank.py:3729:load_custom_task_model_and_tokenizer]
|
139 |
+
2025-06-10 19:10:26,779 - 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 19:10:26,810 - INFO - 🖥️ Model moved to device: cuda - [learning2rank.py:3734:load_custom_task_model_and_tokenizer]
|
141 |
+
2025-06-10 19:11:52,643 - INFO - 💾 Loaded custom weights from Hub: /home/ubuntu/.cache/huggingface/hub/models--deb101--mistral-7b-instruct-v0.3-mimic4-adapt-l2r/snapshots/71eb7e7504fb1fbee0e68bea92be5532bf30d31c/model.safetensors - [learning2rank.py:3757:load_custom_task_model_and_tokenizer]
|
142 |
+
2025-06-10 19:11:53,675 - INFO - ✅ Custom weights loaded into model - [learning2rank.py:3776:load_custom_task_model_and_tokenizer]
|
143 |
+
2025-06-10 19:11:53,697 - INFO - ✔️ Loaded weights match model's state_dict - [learning2rank.py:3787:load_custom_task_model_and_tokenizer]
|
144 |
+
2025-06-10 19:11:53,698 - INFO - 📋 Loaded files from Hub (directory: /home/ubuntu/.cache/huggingface/hub/models--deb101--mistral-7b-instruct-v0.3-mimic4-adapt-l2r/snapshots/71eb7e7504fb1fbee0e68bea92be5532bf30d31c):
|
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:3827:load_custom_task_model_and_tokenizer]
|
152 |
+
2025-06-10 19:11:54,316 - INFO - 🖌️ Loaded tokenizer from: deb101/mistral-7b-instruct-v0.3-mimic4-adapt-l2r - [learning2rank.py:3842:load_custom_task_model_and_tokenizer]
|
153 |
+
2025-06-10 19:11:54,331 - INFO - 🖥️ Model moved to device: cuda - [learning2rank.py:3849:load_custom_task_model_and_tokenizer]
|
154 |
+
2025-06-10 19:11:54,346 - INFO - ✅ Successfully loaded from checkpoint, will now continue training for 2 epochs. - [learning2rank.py:4028:main]
|
155 |
+
2025-06-10 19:11:54,351 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
|
156 |
+
2025-06-10 19:11:54,351 - INFO - + ✨ TRAINING PREPARATION + - [learning2rank.py:111:log_section]
|
157 |
+
2025-06-10 19:11:54,351 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
|
158 |
+
2025-06-10 19:11:54,351 - INFO - ⚙️ Preparing training components and optimizers... - [learning2rank.py:4066:main]
|
159 |
+
2025-06-10 19:11:54,399 - INFO - 🖥️ Device: NVIDIA A100 80GB PCIe - [learning2rank.py:2064:log_training_configuration]
|
160 |
+
2025-06-10 19:11:54,400 - INFO - 🔋 CUDA Available: True - [learning2rank.py:2067:log_training_configuration]
|
161 |
+
2025-06-10 19:11:54,400 - INFO - 💾 CUDA Device Count: 1 - [learning2rank.py:2068:log_training_configuration]
|
162 |
+
2025-06-10 19:11:54,401 - 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:2056:log_training_args]
|
187 |
+
2025-06-10 19:11:54,401 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
|
188 |
+
2025-06-10 19:11:54,401 - INFO - + ✨ MODEL TRAINING + - [learning2rank.py:111:log_section]
|
189 |
+
2025-06-10 19:11:54,401 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
|
190 |
+
2025-06-10 19:11:54,401 - INFO - 🏋️ Starting model training process... - [learning2rank.py:4086:main]
|
191 |
+
2025-06-10 19:11:54,402 - INFO - 🏁 Preparing Custom Trainer 🛠️ - [learning2rank.py:3257:train_model]
|
192 |
+
2025-06-10 19:11:54,498 - 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 19:11:54,498 - INFO - 🏋️ Commencing Model Training 💪 - [learning2rank.py:3298:train_model]
|
194 |
+
2025-06-10 19:11:54,943 - INFO - 🚀 Starting Training... - [learning2rank.py:2446:on_train_begin]
|
195 |
+
2025-06-10 19:12:17,188 - INFO -
|
196 |
+
[36m🚂 Training Metrics (Step 10) 🚂
|
197 |
+
+---------------+--------------+
|
198 |
+
| Metric | Value |
|
199 |
+
+===============+==============+
|
200 |
+
| loss | -1.83502e+17 |
|
201 |
+
+---------------+--------------+
|
202 |
+
| grad_norm | nan |
|
203 |
+
+---------------+--------------+
|
204 |
+
| learning_rate | 0.0001 |
|
205 |
+
+---------------+--------------+
|
206 |
+
| epoch | 0.231214 |
|
207 |
+
+---------------+--------------+[0m - [learning2rank.py:2364:on_log]
|
208 |
+
2025-06-10 19:12:39,119 - INFO -
|
209 |
+
[36m🚂 Training Metrics (Step 20) 🚂
|
210 |
+
+---------------+--------------+
|
211 |
+
| Metric | Value |
|
212 |
+
+===============+==============+
|
213 |
+
| loss | -1.26375e+18 |
|
214 |
+
+---------------+--------------+
|
215 |
+
| grad_norm | nan |
|
216 |
+
+---------------+--------------+
|
217 |
+
| learning_rate | 0.0001 |
|
218 |
+
+---------------+--------------+
|
219 |
+
| epoch | 0.462428 |
|
220 |
+
+---------------+--------------+[0m - [learning2rank.py:2364:on_log]
|
221 |
+
2025-06-10 19:13:01,056 - INFO -
|
222 |
+
[36m🚂 Training Metrics (Step 30) 🚂
|
223 |
+
+---------------+--------------+
|
224 |
+
| Metric | Value |
|
225 |
+
+===============+==============+
|
226 |
+
| loss | -2.54444e+17 |
|
227 |
+
+---------------+--------------+
|
228 |
+
| grad_norm | nan |
|
229 |
+
+---------------+--------------+
|
230 |
+
| learning_rate | 0.0001 |
|
231 |
+
+---------------+--------------+
|
232 |
+
| epoch | 0.693642 |
|
233 |
+
+---------------+--------------+[0m - [learning2rank.py:2364:on_log]
|
234 |
+
2025-06-10 19:13:23,060 - INFO -
|
235 |
+
[36m🚂 Training Metrics (Step 40) 🚂
|
236 |
+
+---------------+--------------+
|
237 |
+
| Metric | Value |
|
238 |
+
+===============+==============+
|
239 |
+
| loss | -6.94281e+18 |
|
240 |
+
+---------------+--------------+
|
241 |
+
| grad_norm | nan |
|
242 |
+
+---------------+--------------+
|
243 |
+
| learning_rate | 0.0001 |
|
244 |
+
+---------------+--------------+
|
245 |
+
| epoch | 0.924855 |
|
246 |
+
+---------------+--------------+[0m - [learning2rank.py:2364:on_log]
|
247 |
+
2025-06-10 19:13:30,202 - INFO - Removing 'token_type_ids' from eval_dataset as they are not needed. - [learning2rank.py:2812:evaluate]
|
248 |
+
2025-06-10 19:15:16,825 - INFO -
|
249 |
+
[33m🔍 Evaluation Metrics 🔍
|
250 |
+
+-------------------+--------------+
|
251 |
+
| Metric | Value |
|
252 |
+
+===================+==============+
|
253 |
+
| eval_loss | -3.80036e+17 |
|
254 |
+
+-------------------+--------------+
|
255 |
+
| eval_ndcg | 0.956906 |
|
256 |
+
+-------------------+--------------+
|
257 |
+
| eval_ndcg@25 | 0.774103 |
|
258 |
+
+-------------------+--------------+
|
259 |
+
| eval_precision@25 | 0.487059 |
|
260 |
+
+-------------------+--------------+[0m - [learning2rank.py:2383:on_evaluate]
|
261 |
+
2025-06-10 19:15:25,439 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-44 - [learning2rank.py:2936:_save]
|
262 |
+
2025-06-10 19:15:25,479 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-44 - [learning2rank.py:2941:_save]
|
263 |
+
2025-06-10 19:15:25,482 - 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 19:15:38,527 - INFO -
|
274 |
+
[36m🚂 Training Metrics (Step 50) 🚂
|
275 |
+
+---------------+--------------+
|
276 |
+
| Metric | Value |
|
277 |
+
+===============+==============+
|
278 |
+
| loss | -5.48127e+18 |
|
279 |
+
+---------------+--------------+
|
280 |
+
| grad_norm | nan |
|
281 |
+
+---------------+--------------+
|
282 |
+
| learning_rate | 0.0001 |
|
283 |
+
+---------------+--------------+
|
284 |
+
| epoch | 1.13873 |
|
285 |
+
+---------------+--------------+[0m - [learning2rank.py:2364:on_log]
|
286 |
+
2025-06-10 19:16:00,465 - INFO -
|
287 |
+
[36m🚂 Training Metrics (Step 60) 🚂
|
288 |
+
+---------------+--------------+
|
289 |
+
| Metric | Value |
|
290 |
+
+===============+==============+
|
291 |
+
| loss | -3.71777e+17 |
|
292 |
+
+---------------+--------------+
|
293 |
+
| grad_norm | nan |
|
294 |
+
+---------------+--------------+
|
295 |
+
| learning_rate | 9.7e-05 |
|
296 |
+
+---------------+--------------+
|
297 |
+
| epoch | 1.36994 |
|
298 |
+
+---------------+--------------+[0m - [learning2rank.py:2364:on_log]
|
299 |
+
2025-06-10 19:16:22,489 - INFO -
|
300 |
+
[36m🚂 Training Metrics (Step 70) 🚂
|
301 |
+
+---------------+-------------+
|
302 |
+
| Metric | Value |
|
303 |
+
+===============+=============+
|
304 |
+
| loss | -7.1762e+18 |
|
305 |
+
+---------------+-------------+
|
306 |
+
| grad_norm | 1.04845e+18 |
|
307 |
+
+---------------+-------------+
|
308 |
+
| learning_rate | 8.8e-05 |
|
309 |
+
+---------------+-------------+
|
310 |
+
| epoch | 1.60116 |
|
311 |
+
+---------------+-------------+[0m - [learning2rank.py:2364:on_log]
|
312 |
+
2025-06-10 19:16:44,589 - INFO -
|
313 |
+
[36m🚂 Training Metrics (Step 80) 🚂
|
314 |
+
+---------------+--------------+
|
315 |
+
| Metric | Value |
|
316 |
+
+===============+==============+
|
317 |
+
| loss | -1.94661e+17 |
|
318 |
+
+---------------+--------------+
|
319 |
+
| grad_norm | 1.36439e+18 |
|
320 |
+
+---------------+--------------+
|
321 |
+
| learning_rate | 7.7e-05 |
|
322 |
+
+---------------+--------------+
|
323 |
+
| epoch | 1.83237 |
|
324 |
+
+---------------+--------------+[0m - [learning2rank.py:2364:on_log]
|
325 |
+
2025-06-10 19:17:06,484 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-86 - [learning2rank.py:2936:_save]
|
326 |
+
2025-06-10 19:17:06,522 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-86 - [learning2rank.py:2941:_save]
|
327 |
+
2025-06-10 19:17:06,524 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-86:
|
328 |
+
+---------+-------------------+------------+
|
329 |
+
| Index | Saved File | Size |
|
330 |
+
+=========+===================+============+
|
331 |
+
| 1 | training_args.bin | 0.01 MB |
|
332 |
+
+---------+-------------------+------------+
|
333 |
+
| 2 | config.json | 0.38 MB |
|
334 |
+
+---------+-------------------+------------+
|
335 |
+
| 3 | model.safetensors | 4122.74 MB |
|
336 |
+
+---------+-------------------+------------+ - [learning2rank.py:2958:_save]
|
337 |
+
2025-06-10 19:17:07,177 - INFO - Removing 'token_type_ids' from eval_dataset as they are not needed. - [learning2rank.py:2812:evaluate]
|
338 |
+
2025-06-10 19:18:55,236 - INFO -
|
339 |
+
[33m🔍 Evaluation Metrics 🔍
|
340 |
+
+-------------------+--------------+
|
341 |
+
| Metric | Value |
|
342 |
+
+===================+==============+
|
343 |
+
| eval_loss | -3.98032e+17 |
|
344 |
+
+-------------------+--------------+
|
345 |
+
| eval_ndcg | 0.957049 |
|
346 |
+
+-------------------+--------------+
|
347 |
+
| eval_ndcg@25 | 0.686475 |
|
348 |
+
+-------------------+--------------+
|
349 |
+
| eval_precision@25 | 0.594286 |
|
350 |
+
+-------------------+--------------+[0m - [learning2rank.py:2383:on_evaluate]
|
351 |
+
2025-06-10 19:19:05,866 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-86 - [learning2rank.py:2936:_save]
|
352 |
+
2025-06-10 19:19:05,904 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-86 - [learning2rank.py:2941:_save]
|
353 |
+
2025-06-10 19:19:05,906 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-86:
|
354 |
+
+---------+--------------------+------------+
|
355 |
+
| Index | Saved File | Size |
|
356 |
+
+=========+====================+============+
|
357 |
+
| 1 | trainer_state.json | 0.00 MB |
|
358 |
+
+---------+--------------------+------------+
|
359 |
+
| 2 | training_args.bin | 0.01 MB |
|
360 |
+
+---------+--------------------+------------+
|
361 |
+
| 3 | config.json | 0.38 MB |
|
362 |
+
+---------+--------------------+------------+
|
363 |
+
| 4 | model.safetensors | 4122.74 MB |
|
364 |
+
+---------+--------------------+------------+
|
365 |
+
| 5 | scheduler.pt | 0.00 MB |
|
366 |
+
+---------+--------------------+------------+
|
367 |
+
| 6 | scaler.pt | 0.00 MB |
|
368 |
+
+---------+--------------------+------------+
|
369 |
+
| 7 | rng_state.pth | 0.01 MB |
|
370 |
+
+---------+--------------------+------------+
|
371 |
+
| 8 | optimizer.pt | 352.39 MB |
|
372 |
+
+---------+--------------------+------------+ - [learning2rank.py:2958:_save]
|
373 |
+
2025-06-10 19:19:06,738 - INFO - 📂 Loading best model from ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-44 - [learning2rank.py:3014:_load_best_model]
|
374 |
+
2025-06-10 19:19:06,738 - INFO - 🖥️ Model is on device: cuda:0 - [learning2rank.py:3024:_load_best_model]
|
375 |
+
2025-06-10 19:19:06,809 - INFO - 🔑 Key order comparison:
|
376 |
+
+---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
|
377 |
+
| Index | Saved state_dict Keys | Model state_dict Keys |
|
378 |
+
+=========+==========================================================================+===========================================================================================+
|
379 |
+
| 1 | ground_model.base_model.model.lm_head.weight | label_embeddings.weight |
|
380 |
+
+---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
|
381 |
+
| 2 | ground_model.base_model.model.model.embed_tokens.weight | ground_model.base_model.model.model.embed_tokens.weight |
|
382 |
+
+---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
|
383 |
+
| 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 |
|
384 |
+
+---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
|
385 |
+
| 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 |
|
386 |
+
+---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+
|
387 |
+
| 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 |
|
388 |
+
+---------+--------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+ - [learning2rank.py:3048:_load_best_model]
|
389 |
+
2025-06-10 19:19:07,437 - INFO - ✅ Loaded best model weights from ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/checkpoint-44/model.safetensors - [learning2rank.py:3065:_load_best_model]
|
390 |
+
2025-06-10 19:19:07,474 - INFO - ✔️ Weight for label_embeddings.weight matches between saved and loaded state_dict - [learning2rank.py:3077:_load_best_model]
|
391 |
+
2025-06-10 19:19:07,520 - 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]
|
392 |
+
2025-06-10 19:19:07,683 - INFO -
|
393 |
+
[36m🚂 Training Metrics (Step 86) 🚂
|
394 |
+
+--------------------------+--------------+
|
395 |
+
| Metric | Value |
|
396 |
+
+==========================+==============+
|
397 |
+
| train_runtime | 432.742 |
|
398 |
+
+--------------------------+--------------+
|
399 |
+
| train_samples_per_second | 0.8 |
|
400 |
+
+--------------------------+--------------+
|
401 |
+
| train_steps_per_second | 0.199 |
|
402 |
+
+--------------------------+--------------+
|
403 |
+
| total_flos | 3.81076e+15 |
|
404 |
+
+--------------------------+--------------+
|
405 |
+
| train_loss | -2.69916e+18 |
|
406 |
+
+--------------------------+--------------+
|
407 |
+
| epoch | 1.9711 |
|
408 |
+
+--------------------------+--------------+[0m - [learning2rank.py:2364:on_log]
|
409 |
+
2025-06-10 19:19:07,685 - INFO - ✨ Training Completed! ✨ - [learning2rank.py:2513:on_train_end]
|
410 |
+
2025-06-10 19:19:07,820 - INFO - 📊 Training loss plot saved as '../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/train_loss_plot.png' - [learning2rank.py:2616:on_train_end]
|
411 |
+
2025-06-10 19:19:07,928 - INFO - 📊 Evaluation loss plot saved as '../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/eval_loss_plot.png' - [learning2rank.py:2630:on_train_end]
|
412 |
+
2025-06-10 19:19:08,015 - INFO - 📊 Evaluation metric plot saved as '../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/eval_ndcg@25_plot.png' - [learning2rank.py:2651:on_train_end]
|
413 |
+
2025-06-10 19:19:08,015 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:110:log_section]
|
414 |
+
2025-06-10 19:19:08,015 - INFO - + ✨ MODEL SAVING + - [learning2rank.py:111:log_section]
|
415 |
+
2025-06-10 19:19:08,016 - INFO - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - [learning2rank.py:114:log_section]
|
416 |
+
2025-06-10 19:19:08,016 - INFO - 💾 Saving trained model and pushing to Hugging Face Hub... - [learning2rank.py:4101:main]
|
417 |
+
2025-06-10 19:19:08,016 - INFO - 📁 Creating/using output directory: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3332:save_and_push]
|
418 |
+
2025-06-10 19:19:17,010 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:2936:_save]
|
419 |
+
2025-06-10 19:19:17,048 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:2941:_save]
|
420 |
+
2025-06-10 19:19:17,050 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b:
|
421 |
+
+---------+-----------------------+------------+
|
422 |
+
| Index | Saved File | Size |
|
423 |
+
+=========+=======================+============+
|
424 |
+
| 1 | training_args.bin | 0.01 MB |
|
425 |
+
+---------+-----------------------+------------+
|
426 |
+
| 2 | eval_ndcg@25_plot.png | 0.03 MB |
|
427 |
+
+---------+-----------------------+------------+
|
428 |
+
| 3 | eval_loss_plot.png | 0.04 MB |
|
429 |
+
+---------+-----------------------+------------+
|
430 |
+
| 4 | config.json | 0.38 MB |
|
431 |
+
+---------+-----------------------+------------+
|
432 |
+
| 5 | model.safetensors | 4122.74 MB |
|
433 |
+
+---------+-----------------------+------------+
|
434 |
+
| 6 | train_loss_plot.png | 0.04 MB |
|
435 |
+
+---------+-----------------------+------------+ - [learning2rank.py:2958:_save]
|
436 |
+
2025-06-10 19:19:28,397 - INFO - 💾 Model weights saved in safetensors format: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:2936:_save]
|
437 |
+
2025-06-10 19:19:28,435 - INFO - ⚙️ Config saved in checkpoint: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:2941:_save]
|
438 |
+
2025-06-10 19:19:28,437 - INFO - 📋 Saved files in ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b:
|
439 |
+
+---------+-----------------------+------------+
|
440 |
+
| Index | Saved File | Size |
|
441 |
+
+=========+=======================+============+
|
442 |
+
| 1 | training_args.bin | 0.01 MB |
|
443 |
+
+---------+-----------------------+------------+
|
444 |
+
| 2 | eval_ndcg@25_plot.png | 0.03 MB |
|
445 |
+
+---------+-----------------------+------------+
|
446 |
+
| 3 | eval_loss_plot.png | 0.04 MB |
|
447 |
+
+---------+-----------------------+------------+
|
448 |
+
| 4 | config.json | 0.38 MB |
|
449 |
+
+---------+-----------------------+------------+
|
450 |
+
| 5 | model.safetensors | 4122.74 MB |
|
451 |
+
+---------+-----------------------+------------+
|
452 |
+
| 6 | train_loss_plot.png | 0.04 MB |
|
453 |
+
+---------+-----------------------+------------+ - [learning2rank.py:2958:_save]
|
454 |
+
2025-06-10 19:19:33,247 - INFO - 💾 Model saved to: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3336:save_and_push]
|
455 |
+
2025-06-10 19:19:43,979 - INFO - 💾 Model and config explicitly saved to: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3340:save_and_push]
|
456 |
+
2025-06-10 19:19:44,014 - INFO - 🖌️ Tokenizer saved to: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b - [learning2rank.py:3344:save_and_push]
|
457 |
+
2025-06-10 19:19:45,236 - INFO - 📊 Lookup table saved to: ../tmp/MIMIC4_DEMO/mimic4_l2rtrain_mistral7b/lookup_table.pt - [learning2rank.py:3349:save_and_push]
|