a12354 commited on
Commit
c8aad8f
·
verified ·
1 Parent(s): e36596a

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .github/copilot-instructions.md +333 -0
  2. EXP/__init__.py +0 -0
  3. EXP/exp_instruct.py +492 -0
  4. EXP/exp_pretraining.py +58 -0
  5. LLM/Qwen2.5-0.5B-Instruct/.gitattributes +35 -0
  6. LLM/Qwen2.5-0.5B-Instruct/LICENSE +202 -0
  7. LLM/Qwen2.5-0.5B-Instruct/README.md +110 -0
  8. LLM/Qwen2.5-0.5B-Instruct/config.json +27 -0
  9. LLM/Qwen2.5-0.5B-Instruct/generation_config.json +14 -0
  10. LLM/Qwen2.5-0.5B-Instruct/merges.txt +0 -0
  11. LLM/Qwen2.5-0.5B-Instruct/model.safetensors +3 -0
  12. LLM/Qwen2.5-0.5B-Instruct/tokenizer.json +0 -0
  13. LLM/Qwen2.5-0.5B-Instruct/tokenizer_config.json +207 -0
  14. LLM/Qwen2.5-0.5B-Instruct/vocab.json +0 -0
  15. dataset/.gitattributes +61 -0
  16. dataset/README.md +136 -0
  17. dataset/__init__.py +0 -0
  18. dataset/dataset.py +416 -0
  19. dataset/rats40k_dataset.py +368 -0
  20. dataset/tsqa_dataset.py +440 -0
  21. inference_results/infer_metrics.json +10 -0
  22. inference_results/inference_results_infer_20260413_183049.json +0 -0
  23. inference_results_rats40k_ckpt2838_20260609_184233/metrics_20260610_011207.json +16 -0
  24. inference_results_rats40k_ckpt2838_20260609_184233/predictions_20260610_011207.json +0 -0
  25. logs/compare_adapters_4gpu_20260605_152848.log +0 -0
  26. logs/compare_itformer_20260605_152848.log +0 -0
  27. logs/compare_qformer_20260605_152848.log +0 -0
  28. logs/full_train_itformer_flash_attn_4gpu_20260608_112358.log +828 -0
  29. logs/full_train_qformer_2gpu_20260608_130215.log +379 -0
  30. logs/full_train_qformer_4gpu_20260605_152011.log +248 -0
  31. logs/rats40k_2gpu_20260608_161856.log +183 -0
  32. logs/rats40k_2gpu_20260608_164521.log +14 -0
  33. logs/rats40k_2gpu_20260608_164558.log +472 -0
  34. logs/rats40k_2gpu_20260608_165938.log +226 -0
  35. logs/rats40k_2gpu_20260608_184010.log +131 -0
  36. logs/rats40k_2gpu_20260608_184144.log +0 -0
  37. logs/rats40k_ckpt2838_eval_2gpu_20260609_184233.log +0 -0
  38. models/ITFormer.py +555 -0
  39. models/QFormerAdapter.py +165 -0
  40. models/TimeLanguageModel.py +543 -0
  41. models/TimeSeriesEncoder.py +610 -0
  42. models/__init__.py +0 -0
  43. models/layers/attention.py +110 -0
  44. runs/itformer_tsqa_full_20260615_162441/logs/train.log +139 -0
  45. runs/itformer_tsqa_full_20260615_164812/checkpoint_final/checkpoint-400/added_tokens.json +24 -0
  46. runs/itformer_tsqa_full_20260615_164812/checkpoint_final/checkpoint-400/chat_template.jinja +54 -0
  47. runs/itformer_tsqa_full_20260615_164812/checkpoint_final/checkpoint-400/config.json +27 -0
  48. runs/itformer_tsqa_full_20260615_164812/checkpoint_final/checkpoint-400/generation_config.json +4 -0
  49. runs/itformer_tsqa_full_20260615_164812/checkpoint_final/checkpoint-400/merges.txt +0 -0
  50. runs/itformer_tsqa_full_20260615_164812/checkpoint_final/checkpoint-400/special_tokens_map.json +31 -0
.github/copilot-instructions.md ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ITFormer - Temporal-Textual Multimodal Question Answering Framework
2
+
3
+ **ALWAYS follow these instructions first and only fallback to additional search and context gathering if the information here is incomplete or found to be in error.**
4
+
5
+ ## Overview
6
+
7
+ ITFormer is a Python-based deep learning framework for temporal-textual multimodal question answering. It combines time series data with natural language processing using transformer architectures and large language models (Qwen2.5). The project requires GPU resources for optimal performance but can run on CPU for testing.
8
+
9
+ ## Working Effectively
10
+
11
+ ### Environment Setup and Dependencies
12
+
13
+ **NEVER CANCEL builds or installs - they may take 10+ minutes. Set timeout to 15+ minutes minimum.**
14
+
15
+ ```bash
16
+ # Core Python dependencies - takes ~3-5 minutes. NEVER CANCEL.
17
+ pip install -r requirements.txt
18
+
19
+ # Additional required dependencies not in requirements.txt
20
+ pip install h5py nltk rouge-score scikit-learn
21
+ ```
22
+
23
+ **Expected timing:**
24
+ - Main dependency installation: 3-5 minutes
25
+ - Additional dependencies: 1-2 minutes
26
+ - **CRITICAL**: Set timeout to 15+ minutes for pip installs to avoid premature cancellation
27
+
28
+ ### Project Structure Requirements
29
+
30
+ The project requires a specific directory structure to function correctly:
31
+
32
+ ```
33
+ ITFormer-ICML25/
34
+ ├── dataset/
35
+ │ └── datasets/ # EngineMT-QA dataset files
36
+ │ ├── time_series_data.h5 # Time series data (required for inference)
37
+ │ ├── train_qa.jsonl # Training QA pairs
38
+ │ └── test_qa.jsonl # Test QA pairs (required for inference)
39
+ ├── LLM/ # Base LLM models directory
40
+ │ ├── Qwen2.5-0.5B-Instruct/ # For ITFormer-0.5B
41
+ │ ├── Qwen2.5-3B-Instruct/ # For ITFormer-3B
42
+ │ └── Qwen2.5-7B-Instruct/ # For ITFormer-7B
43
+ ├── checkpoints/ # ITFormer model checkpoints
44
+ │ ├── ITFormer-0.5B/ # Lightweight model (beats ChatGPT-4o)
45
+ │ ├── ITFormer-3B/ # Medium model
46
+ │ └── ITFormer-7B/ # Best performance model
47
+ └── inference_results/ # Generated output directory
48
+ ```
49
+
50
+ ### Model and Dataset Downloads
51
+
52
+ **CRITICAL NETWORK REQUIREMENT**: Model downloads require internet access and may fail in restricted environments.
53
+
54
+ **Model download timing - NEVER CANCEL:**
55
+ - ITFormer-0.5B: ~15-30 minutes (smallest model)
56
+ - ITFormer-7B: ~60-120 minutes (largest model)
57
+ - Qwen2.5 models: ~30-90 minutes each depending on size
58
+ - EngineMT-QA dataset: ~10-20 minutes
59
+
60
+ ```bash
61
+ # Create required directories
62
+ mkdir -p LLM checkpoints dataset/datasets
63
+
64
+ # Install Git LFS for large model downloads
65
+ git lfs install
66
+
67
+ # Download models (choose based on your needs - 0.5B recommended for testing)
68
+ # Set timeout to 120+ minutes for large model downloads
69
+ python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='pandalin98/ITFormer-0.5B', local_dir='./checkpoints/ITFormer-0.5B')"
70
+ python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='Qwen/Qwen2.5-0.5B-Instruct', local_dir='./LLM/Qwen2.5-0.5B-Instruct')"
71
+
72
+ # Download dataset
73
+ python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='pandalin98/EngineMT-QA', repo_type='dataset', local_dir='./dataset/datasets')"
74
+ ```
75
+
76
+ ### Running Inference
77
+
78
+ **Primary inference methods:**
79
+
80
+ ```bash
81
+ # Method 1: Direct Python execution (single GPU/CPU)
82
+ python inference.py --config yaml/infer.yaml
83
+
84
+ # Method 2: Multi-GPU with Accelerate (recommended for production)
85
+ # Takes ~5-30 minutes depending on dataset size and model. NEVER CANCEL.
86
+ accelerate launch --config_file accelerate_config.yaml inference.py --config yaml/infer.yaml
87
+
88
+ # Method 3: Using provided script
89
+ bash infra.bash
90
+ ```
91
+
92
+ **Model size options:**
93
+ ```bash
94
+ # ITFormer-0.5B (default) - fastest, good performance
95
+ python inference.py --config yaml/infer.yaml --model_checkpoint checkpoints/ITFormer-0.5B
96
+
97
+ # ITFormer-3B - medium performance
98
+ python inference.py --config yaml/infer.yaml --model_checkpoint checkpoints/ITFormer-3B
99
+
100
+ # ITFormer-7B - best performance, slowest
101
+ python inference.py --config yaml/infer.yaml --model_checkpoint checkpoints/ITFormer-7B
102
+ ```
103
+
104
+ **Expected inference timing - NEVER CANCEL:**
105
+ - Small dataset (100 samples): 2-5 minutes
106
+ - Medium dataset (1000 samples): 10-20 minutes
107
+ - Full dataset (10k+ samples): 30-60 minutes
108
+ - **Set timeout to 90+ minutes for full inference runs**
109
+
110
+ ### Validation and Testing
111
+
112
+ **Always run these validation steps after making changes:**
113
+
114
+ ```bash
115
+ # 1. Test core imports (quick validation)
116
+ python -c "from models.TimeLanguageModel import TLM, TLMConfig; from dataset.dataset import TsQaDataset; from utils.metrics import open_question_metrics; print('✅ All modules import successfully')"
117
+
118
+ # 2. Test inference script help (validates argument parsing)
119
+ python inference.py --help
120
+
121
+ # 3. Syntax validation for all Python files
122
+ find . -name "*.py" -exec python -m py_compile {} \;
123
+
124
+ # 4. Test basic model initialization (requires models to be downloaded)
125
+ python -c "
126
+ import yaml
127
+ with open('yaml/infer.yaml', 'r') as f:
128
+ config = yaml.safe_load(f)
129
+ print('✅ Configuration file loads correctly')
130
+ "
131
+ ```
132
+
133
+ ## Configuration
134
+
135
+ **Main configuration file**: `yaml/infer.yaml`
136
+
137
+ Key parameters you might need to modify:
138
+ - `ts_path_test`: Path to time series data file
139
+ - `qa_path_test`: Path to QA pairs file
140
+ - `batch_size`: Inference batch size (default: 12)
141
+ - GPU-related settings handled by `accelerate_config.yaml`
142
+
143
+ ## Common Issues and Solutions
144
+
145
+ **Import errors**: Missing dependencies
146
+ ```bash
147
+ # Error: ModuleNotFoundError: No module named 'h5py'
148
+ # Solution: Install additional dependencies
149
+ pip install h5py nltk rouge-score scikit-learn
150
+ ```
151
+
152
+ **"Checkpoint path does not exist"**: Missing model files
153
+ ```bash
154
+ # Error: ValueError: Checkpoint path does not exist: checkpoints/ITFormer-0.5B
155
+ # Solution: Download required models or create directory structure
156
+ mkdir -p checkpoints/ITFormer-0.5B LLM/Qwen2.5-0.5B-Instruct dataset/datasets
157
+ ```
158
+
159
+ **Network/download failures**: Restricted internet access
160
+ ```bash
161
+ # Error: requests.exceptions.ConnectionError or LocalEntryNotFoundError
162
+ # Solution: Download models on a machine with internet access, then transfer
163
+ # Alternative: Use offline model loading if models are already available locally
164
+ ```
165
+
166
+ **CUDA out of memory**: GPU memory insufficient
167
+ ```bash
168
+ # Error: RuntimeError: CUDA out of memory
169
+ # Solution: Reduce batch size in yaml/infer.yaml
170
+ # Or run on CPU (slower but works): add --cpu flag to accelerate launch
171
+ ```
172
+
173
+ **Accelerate multi-process errors**: Configuration mismatch
174
+ ```bash
175
+ # Error: Process rank errors or device count mismatches
176
+ # Solution: Run with single process first, then debug multi-GPU setup
177
+ python inference.py --config yaml/infer.yaml # Instead of accelerate launch
178
+ ```
179
+
180
+ **Missing dataset files**: Data files not found
181
+ ```bash
182
+ # Error: FileNotFoundError for time_series_data.h5 or test_qa.jsonl
183
+ # Solution: Ensure dataset is downloaded to correct location
184
+ ls -la dataset/datasets/ # Should show time_series_data.h5 and test_qa.jsonl
185
+ ```
186
+
187
+ **Permission/filesystem errors**: Directory access issues
188
+ ```bash
189
+ # Error: PermissionError or filesystem access denied
190
+ # Solution: Ensure you have write permissions to the working directory
191
+ chmod -R 755 . && mkdir -p checkpoints LLM dataset/datasets inference_results
192
+ ```
193
+
194
+ ## Key Components
195
+
196
+ **Core modules locations:**
197
+ - `inference.py`: Main inference script and entry point
198
+ - `models/TimeLanguageModel.py`: Core ITFormer model implementation
199
+ - `models/TimeSeriesEncoder.py`: Time series encoding components
200
+ - `dataset/dataset.py`: Data loading and preprocessing
201
+ - `utils/metrics.py`: Evaluation metrics for QA performance
202
+ - `yaml/infer.yaml`: Main configuration file
203
+ - `accelerate_config.yaml`: Multi-GPU acceleration settings
204
+
205
+ **Model architecture**: ITFormer combines:
206
+ - Time series encoder (processes temporal data)
207
+ - Large language model (Qwen2.5 variants)
208
+ - Cross-modal attention mechanisms
209
+ - Question-answering head for generation
210
+
211
+ ## Performance Expectations
212
+
213
+ **ITFormer model performance:**
214
+ - 0.5B model: Beats ChatGPT-4o on temporal QA, fastest inference
215
+ - 3B model: Balanced performance and speed
216
+ - 7B model: Best accuracy, slowest inference
217
+
218
+ **Resource requirements:**
219
+ - Minimum RAM: 8GB (for 0.5B model)
220
+ - Recommended RAM: 16GB+ (for 3B+)
221
+ - GPU memory: 4GB+ (0.5B), 12GB+ (7B)
222
+ - Storage: 50GB+ for all models and dataset
223
+
224
+ ## Development Workflow
225
+
226
+ 1. **Always validate imports first** - run the import validation command
227
+ 2. **Test with smallest model (0.5B)** before trying larger models
228
+ 3. **Use CPU mode for testing** when GPU resources are limited
229
+ 4. **Monitor memory usage** during inference runs
230
+ 5. **Check output directory** `inference_results/` for generated results and metrics
231
+ 6. **Verify configuration paths** in `yaml/infer.yaml` match your directory structure
232
+
233
+ ## Troubleshooting Build/Runtime Issues
234
+
235
+ **For any "module not found" errors**: Re-run the dependency installation commands above
236
+ **For "file not found" errors**: Verify directory structure matches the required layout
237
+ **For memory errors**: Reduce batch_size in configuration or use smaller model
238
+ **For slow performance**: Ensure GPU is available and properly configured with accelerate
239
+
240
+ ## Complete Setup Workflow for New Clones
241
+
242
+ When working with a fresh clone, follow this exact sequence:
243
+
244
+ ```bash
245
+ # 1. Install core dependencies (3-5 minutes, NEVER CANCEL)
246
+ pip install -r requirements.txt
247
+
248
+ # 2. Install additional dependencies (1-2 minutes)
249
+ pip install h5py nltk rouge-score scikit-learn
250
+
251
+ # 3. Verify imports work
252
+ python -c "from models.TimeLanguageModel import TLM, TLMConfig; from dataset.dataset import TsQaDataset; from utils.metrics import open_question_metrics; print('✅ All modules import successfully')"
253
+
254
+ # 4. Create directory structure
255
+ mkdir -p LLM checkpoints dataset/datasets
256
+
257
+ # 5. Download models and dataset (30-120+ minutes total, NEVER CANCEL)
258
+ # Only if you have internet access - skip if in restricted environment
259
+ python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='pandalin98/ITFormer-0.5B', local_dir='./checkpoints/ITFormer-0.5B')"
260
+ python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='Qwen/Qwen2.5-0.5B-Instruct', local_dir='./LLM/Qwen2.5-0.5B-Instruct')"
261
+ python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='pandalin98/EngineMT-QA', repo_type='dataset', local_dir='./dataset/datasets')"
262
+
263
+ # 6. Test inference pipeline (only works if models/dataset are downloaded)
264
+ python inference.py --help # Should show help without errors
265
+ ```
266
+
267
+ ## Repository Structure Reference
268
+
269
+ **Current repository contents (useful for navigation):**
270
+ ```
271
+ ITFormer-ICML25/
272
+ ├── .github/
273
+ │ └── copilot-instructions.md # This file
274
+ ├── models/ # Core model implementations
275
+ │ ├── TimeLanguageModel.py # Main ITFormer model
276
+ │ ├── TimeSeriesEncoder.py # Time series processing
277
+ │ ├── TT_Former.py # Transformer components
278
+ │ └── layers/ # Neural network layers
279
+ ├── dataset/ # Data handling
280
+ │ └── dataset.py # Dataset loading logic
281
+ ├── utils/ # Utility functions
282
+ │ ├── metrics.py # Evaluation metrics
283
+ │ ├── position_coding.py # Positional encodings
284
+ │ └── gradio_vlm.py # UI components
285
+ ├── yaml/
286
+ │ └── infer.yaml # Main configuration file
287
+ ├── inference.py # Main entry point script
288
+ ├── requirements.txt # Core dependencies
289
+ ├── accelerate_config.yaml # Multi-GPU settings
290
+ ├── infra.bash # Shortcut script
291
+ └── README.md # Project documentation
292
+ ```
293
+
294
+ **Key files you'll modify most often:**
295
+ - `inference.py`: Main inference logic and entry point
296
+ - `yaml/infer.yaml`: Configuration parameters
297
+ - `models/TimeLanguageModel.py`: Core model architecture
298
+ - `dataset/dataset.py`: Data loading and preprocessing
299
+
300
+ ## Common Development Tasks
301
+
302
+ **Testing changes without full model downloads:**
303
+ ```bash
304
+ # Basic validation that doesn't require models
305
+ python -c "from models.TimeLanguageModel import TLM, TLMConfig; print('Core models loadable')"
306
+ python inference.py --help
307
+ find . -name "*.py" -exec python -m py_compile {} \;
308
+ ```
309
+
310
+ **Monitoring inference progress:**
311
+ ```bash
312
+ # Watch output directory for results
313
+ watch ls -la inference_results/
314
+
315
+ # Monitor GPU usage (if available)
316
+ nvidia-smi -l 5
317
+ ```
318
+
319
+ **Quick syntax and import checks:**
320
+ ```bash
321
+ # Check all Python files compile
322
+ find . -name "*.py" -exec python -m py_compile {} \; && echo "✅ All Python files compile successfully"
323
+
324
+ # Test core framework imports
325
+ python -c "
326
+ import torch
327
+ from transformers import AutoTokenizer
328
+ from accelerate import Accelerator
329
+ print('✅ Core ML libraries work')
330
+ "
331
+ ```
332
+
333
+ Remember: This is a research framework optimized for temporal-textual QA tasks. Always start with the 0.5B model for testing and validation before moving to larger models.
EXP/__init__.py ADDED
File without changes
EXP/exp_instruct.py ADDED
@@ -0,0 +1,492 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ # -*- coding:utf-8 _*-
3
+ import importlib
4
+ import json
5
+ from transformers import Trainer, TrainingArguments
6
+ from transformers.trainer_utils import EvalPrediction
7
+ from transformers.trainer_callback import TrainerCallback
8
+ import os
9
+ import torch
10
+ from models.TimeLanguageModel import TLM, TLMConfig
11
+ from dataset.dataset import DataCollator
12
+ from typing import Dict, List, Any, NamedTuple, Optional, Tuple, Union
13
+ from datasets import load_metric
14
+ import numpy as np
15
+ from utils.metrics import open_question_metrics,closed_question_metrics,compute_rul
16
+ import warnings
17
+ from tqdm import tqdm
18
+ import pickle
19
+ from torch import nn
20
+ import pandas as pd
21
+ import matplotlib.pyplot as plt
22
+ warnings.filterwarnings("ignore")
23
+ from accelerate import Accelerator
24
+ accelerator = Accelerator()
25
+ import torch.distributed as dist
26
+ from datetime import datetime
27
+ from contextlib import nullcontext
28
+
29
+ def distributed_tqdm(iterable, desc=None):
30
+ if not dist.is_initialized() or dist.get_rank() == 0:
31
+ return tqdm(iterable, desc=desc)
32
+ else:
33
+ return iterable
34
+
35
+ class OutputWrapper:
36
+ def __init__(self, original_output):
37
+ self.original_output = original_output
38
+
39
+ def __getattr__(self, name):
40
+ # 如果属性不存在于自身,则尝试从原始对象中获取
41
+ return getattr(self.original_output, name)
42
+
43
+ class EvalLoopOutput(NamedTuple):
44
+ predictions: Union[np.ndarray, Tuple[np.ndarray]]
45
+ label_ids: Optional[Union[np.ndarray, Tuple[np.ndarray]]]
46
+ metrics: Optional[Dict[str, float]]
47
+ num_samples: Optional[int]
48
+ pred_extra: Optional[Dict[str, Any]] = None
49
+
50
+
51
+
52
+ class Exp_Instruct(Trainer):
53
+ def __init__(self, args, train_dataset, tlm_config=None, eval_dataset=None):
54
+ # Build the model
55
+ self.tlmconfig = tlm_config
56
+ model = self._build_model(args)
57
+ use_bf16 = bool(getattr(args, "bf16", False)) and torch.cuda.is_available() and torch.cuda.is_bf16_supported()
58
+ use_fp16 = bool(args.fp16) and not use_bf16
59
+ # Define training arguments
60
+ training_args = TrainingArguments(
61
+ output_dir=args.output_dir,
62
+ per_device_train_batch_size=args.per_device_train_batch_size,
63
+ gradient_accumulation_steps=args.gradient_accumulation_steps,
64
+ dataloader_num_workers = args.dataloader_num_workers,
65
+ lr_scheduler_type="cosine",
66
+ warmup_ratio=0.1,
67
+ per_device_eval_batch_size=args.per_device_eval_batch_size,
68
+ learning_rate=args.learning_rate,
69
+ weight_decay=args.weight_decay,
70
+ logging_dir=args.output_dir,
71
+ logging_steps=args.logging_steps,
72
+ save_steps=args.save_steps,
73
+ eval_strategy='no',
74
+ eval_steps=args.eval_steps,
75
+ save_total_limit=args.save_total_limit,
76
+ ddp_find_unused_parameters=False,
77
+ fp16=use_fp16,
78
+ bf16=use_bf16,
79
+ num_train_epochs=args.num_train_epochs,
80
+ report_to=args.report_to, # Example: Integrate TensorBoard
81
+ prediction_loss_only=False,
82
+ max_grad_norm=float(getattr(args, "max_grad_norm", 0.1)),
83
+ remove_unused_columns=False,
84
+ disable_tqdm=False,
85
+ dataloader_drop_last=True)
86
+
87
+ super().__init__(
88
+ model=model,
89
+ args=training_args,
90
+ train_dataset=train_dataset,
91
+ data_collator=DataCollator(tokenizer=train_dataset.tokenizer),
92
+ eval_dataset=eval_dataset,
93
+ # compute_metrics=self._compute_metrics if eval_dataset else None,
94
+ )
95
+ self.compute_metrics = self.custom_compute_metrics if eval_dataset else None
96
+ self.special_id = train_dataset.processor.all_special_ids
97
+ self.processor = train_dataset.processor
98
+ self.padding_idx = self.processor.pad_token_id
99
+ # 常用标点符号列表
100
+ common_punctuations = [".", ",", ":", ";", "!", "?", "(", ")", "[", "]", "{", "}", "-", "_", "\"", "'"]
101
+ punctuation_ids = self.processor.convert_tokens_to_ids(common_punctuations)
102
+ # 将标点符号 ID 合并到特殊标记 ID 列表中
103
+ self.special_id.extend(punctuation_ids)
104
+ self.tlmargs = args
105
+
106
+ # 定义stage权重
107
+ self.stage_weights = {
108
+ 1: 1.0, # 开放式问题 - 基础权重
109
+ 2: 1.0, # 封闭式问题 - 稍高权重
110
+ 3: 1.0, # 封闭式问题 - 中等权重
111
+ 4: 1.0 # 开放式问题 - 稍低权重
112
+ }
113
+ # 初始化损失函数,不使用ignore_index(我们将手动处理)
114
+ self.base_loss_fn = nn.CrossEntropyLoss(reduction='none', ignore_index=self.padding_idx)
115
+ # self.args.remove_unused_columns = True # 添加这一行
116
+ def load_model(self, checkpoint_path):
117
+ self.model = TLM.from_pretrained(checkpoint_path, config=self.tlmconfig, ts_config=self.tlmargs).cuda()
118
+
119
+ def _build_model(self, args):
120
+ """Load the model dynamically based on the configuration."""
121
+ # self.tlmconfig = TLMConfig(llm_model_path = args.llm_model_path)
122
+ model = TLM(self.tlmconfig, ts_config=args).cuda()
123
+ # monitor = GradientAndActivationMonitor(model,track_outputs=False,verbose=True)
124
+ return model
125
+
126
+ def concat_np_array(self, array_list,num_samples):
127
+ """
128
+ 对传入的列表进行 Concat 操作。
129
+
130
+ Args:
131
+ array_list (List[List[int]]): 每个子列表为需要 Padding 的序列。
132
+ num_samples (int): 样本数量。
133
+ Returns:
134
+ np.ndarray: Padding 后的二维数组。
135
+ """
136
+ # 获取最大长度
137
+ max_length = max(arr.shape[-1] for arr in array_list)
138
+
139
+ # 初始化 Padding 后的数组,填充为 padding_idx
140
+ padded_array = np.full((num_samples, max_length), self.padding_idx, dtype=np.int32)
141
+
142
+ # 填充每个序列
143
+ for i, arr in enumerate(array_list):
144
+ padded_array[:arr.shape[0], :arr.shape[1]] = arr
145
+ concat_array = np.stack(padded_array, axis=0)
146
+ return concat_array
147
+
148
+ def debug_generate(self, input_ids, query_ids,ts_values, stage, attention_mask):
149
+ # 生成阶段
150
+ import time
151
+ start_time = time.time()
152
+ with torch.no_grad():
153
+ output = self.model.generate(
154
+ input_ids=input_ids,
155
+ query_ids=query_ids,
156
+ ts_values=ts_values,
157
+ stage=stage,
158
+ past_key_values=None,
159
+ max_new_tokens=128,
160
+ do_sample=False,
161
+ eos_token_id=self.processor.eos_token_id,
162
+ pad_token_id=self.processor.pad_token_id,
163
+ attention_mask=attention_mask,
164
+ use_cache=True,
165
+ # 新增优化参数
166
+ num_beams=1, # 贪婪搜索,最快
167
+ temperature=1.0, # 避免额外计算
168
+ top_p=None, # 关闭nucleus sampling
169
+ top_k=None, # 关闭top-k sampling
170
+ repetition_penalty=1.0, # 关闭重复惩罚
171
+ length_penalty=1.0, # 关闭长度惩罚
172
+ no_repeat_ngram_size=0, # 关闭n-gram重复检查
173
+ output_scores=False, # 不输出分数
174
+ output_attentions=False, # 不输出attention
175
+ output_hidden_states=False, # 不输出隐藏状态
176
+ return_dict_in_generate=False, # 简化返回格式
177
+ )
178
+ return output
179
+ def generate(
180
+ self,
181
+ dataloader,
182
+ description,
183
+ prediction_loss_only=None,
184
+ ignore_keys=None,
185
+ metric_key_prefix="eval",
186
+ ):
187
+ all_predictions = []
188
+ all_labels = []
189
+ all_losses = []
190
+ all_index = []
191
+
192
+ model = self._wrap_model(self.model, training=False)
193
+ model.eval()
194
+ sample_num = len(dataloader.dataset)
195
+ # forms = []
196
+ stages = []
197
+ with torch.no_grad():
198
+ for step, inputs in enumerate(distributed_tqdm(dataloader, desc=description)):
199
+ # if step==50:
200
+ # break
201
+
202
+ input_ids = inputs['input_ids']
203
+ ts_values = inputs['ts_values']
204
+ stage = inputs['stage']
205
+ index = inputs['index']
206
+ query_ids = inputs['query_ids']
207
+ attention_mask =inputs['attention_mask']
208
+ generated_ids = self.debug_generate(input_ids,
209
+ query_ids,ts_values, stage, attention_mask)
210
+
211
+ prediction = generated_ids.cpu().numpy()
212
+ all_predictions.extend(prediction)
213
+ all_labels.extend(inputs["labels"].cpu().numpy())
214
+
215
+ # forms.extend(inputs['form'])
216
+ stages.extend(inputs['stage'].tolist())
217
+
218
+ all_index.extend(inputs['index'].tolist())
219
+
220
+ filtered_preds, filtered_labels = [], []
221
+ str_predictions = self.processor.batch_decode(all_predictions,skip_special_tokens=True)
222
+ str_labels = self.processor.batch_decode(all_labels,skip_special_tokens=True)
223
+ #取出assistant\n后的内容
224
+ str_predictions = [pred.split('assistant\n')[-1] for pred in str_predictions]
225
+ output_data = {
226
+ "predictions": str_predictions,
227
+ "labels": str_labels,
228
+ "stages": stages,
229
+ "index": all_index,
230
+ "num_samples": sample_num
231
+ }
232
+
233
+ if accelerator.is_main_process:
234
+ with open('output_result_all.json', 'w', encoding='utf-8') as f:
235
+ json.dump(output_data, f, indent=4, ensure_ascii=False)
236
+
237
+ pred_extra = {'stages': stages}
238
+ avg_loss = np.mean(all_losses) if all_losses else None
239
+ return EvalLoopOutput(predictions=str_predictions, label_ids=str_labels,
240
+ metrics=avg_loss, num_samples=sample_num,pred_extra=pred_extra)
241
+
242
+
243
+ #写一个过滤str_predictions和str_labels的函数
244
+
245
+ def evaluate(
246
+ self,
247
+ eval_dataset=None,
248
+ ignore_keys=None,
249
+ metric_key_prefix="eval",
250
+ ):
251
+ eval_dataset = eval_dataset or self.eval_dataset
252
+ eval_dataloader = self.get_eval_dataloader(eval_dataset)
253
+ output = self.generate(
254
+ eval_dataloader, 'eval'
255
+ )
256
+
257
+ metrics = self.custom_compute_metrics(output)
258
+
259
+ if accelerator.is_main_process:
260
+ # 打印到控制台
261
+ print(metrics)
262
+ # 生成时间戳
263
+ timestamp = datetime.now().strftime('%Y%m%d_%H%M%S')
264
+ filename = f'metrics_eval_{timestamp}.txt'
265
+ # 同时写入文件
266
+
267
+ with open(filename, 'w', encoding='utf-8') as f:
268
+ print(metrics, file=f)
269
+
270
+
271
+ def custom_compute_metrics(self,eval_pred: EvalLoopOutput) -> Dict[str, Any]:
272
+ """
273
+ 针对 stages 为 1 或 2 的样本,计算 BLEU 和 ROUGE 指标。
274
+ Args:
275
+ eval_pred (EvalPrediction): 包含 predictions 和 labels,以及附加信息 pred_extra。
276
+
277
+ Returns:
278
+ Dict[str, Any]: BLEU 和 ROUGE 指标结果字典。
279
+ """
280
+ # 解析预测和标签
281
+ labels = eval_pred.label_ids
282
+ stages = eval_pred.pred_extra['stages']
283
+ # 解析附加信息
284
+ # 筛选 stages 为 1
285
+ stage1_indices = [i for i, stage in enumerate(stages) if stage in [1]]
286
+ if len(stage1_indices) >=1:
287
+ # 提取对应的预测和标签
288
+ stage1_labels = [labels[i] for i in stage1_indices]
289
+ stage1_metrics = open_question_metrics([eval_pred.predictions[i] for i in stage1_indices],
290
+ stage1_labels,self.special_id)
291
+
292
+ #筛选出stage为2的样本
293
+ stage2_indices = [i for i, stage in enumerate(stages) if stage in [2]]
294
+ if len(stage2_indices) >=1:
295
+ # 提取对应的预测和标签
296
+ stage2_labels = [labels[i] for i in stage2_indices]
297
+ stage2_predictions = [eval_pred.predictions[i] for i in stage2_indices]
298
+ stage2_metrics = closed_question_metrics( stage2_predictions,
299
+ stage2_labels,self.special_id)
300
+
301
+ #筛选出stage为3的样本
302
+ stage3_indices = [i for i, stage in enumerate(stages) if stage in [3]]
303
+ if len(stage3_indices)>=1 :
304
+ # 提取对应的预测和标签
305
+ stage3_labels = [labels[i] for i in stage3_indices]
306
+ stage3_predictions = [eval_pred.predictions[i] for i in stage3_indices]
307
+ stage3_metrics = closed_question_metrics( stage3_predictions,
308
+ stage3_labels,self.special_id)
309
+
310
+ #筛选出stage为4的样本
311
+ stage4_indices = [i for i, stage in enumerate(stages) if stage in [4]]
312
+ if len(stage4_indices) >=1:
313
+ # 提取对应的预测和标签
314
+ stage4_labels = [labels[i] for i in stage4_indices]
315
+ stage4_metrics = open_question_metrics([eval_pred.predictions[i] for i in stage4_indices],
316
+ stage4_labels,self.special_id)
317
+
318
+ #合并存在的指标
319
+ metrics = {}
320
+ if stage1_indices:
321
+ metrics.update({f"stage1_{k}": v for k, v in stage1_metrics.items()})
322
+ if stage2_indices:
323
+ metrics.update({f"stage2_{k}": v for k, v in stage2_metrics.items()})
324
+ if stage3_indices:
325
+ metrics.update({f"stage3_{k}": v for k, v in stage3_metrics.items()})
326
+ if stage4_indices:
327
+ metrics.update({f"stage4_{k}": v for k, v in stage4_metrics.items()})
328
+
329
+
330
+ return metrics
331
+
332
+ def compute_stage_weighted_loss(self, logits, labels, stages, attention_mask=None):
333
+ """
334
+ 修正版本 - 不需要shift,因为Dataset已经处理了
335
+ """
336
+ batch_size, seq_len, vocab_size = logits.shape
337
+
338
+ # 🔧 不需要shift,直接使用
339
+ flat_logits = logits.view(-1, vocab_size) # [batch_size * seq_len, vocab_size]
340
+ flat_labels = labels.view(-1) # [batch_size * seq_len]
341
+
342
+ # 计算基础损失(padding会被自动ignore)
343
+ token_losses = self.base_loss_fn(flat_logits, flat_labels) # [batch_size * seq_len]
344
+ token_losses = token_losses.view(batch_size, seq_len) # [batch_size, seq_len]
345
+
346
+ # 创建有效token掩码
347
+ valid_mask = (labels != self.padding_idx).float() # [batch_size, seq_len]
348
+
349
+ # 应用stage权重
350
+ stage_weights = torch.tensor([self.stage_weights.get(stage.item(), 1.0)
351
+ for stage in stages],
352
+ device=logits.device, dtype=torch.float32)
353
+
354
+ # 计算每个样本的加权损失
355
+ sample_losses = []
356
+ for i in range(batch_size):
357
+ valid_tokens = valid_mask[i].sum() # 有效token数量
358
+ if valid_tokens > 0:
359
+ # 🔧 只对有效token计算平均损失
360
+ sample_loss = (token_losses[i] * valid_mask[i]).sum() / valid_tokens * stage_weights[i]
361
+ else:
362
+ sample_loss = torch.tensor(0.0, device=logits.device)
363
+ sample_losses.append(sample_loss)
364
+
365
+ return torch.stack(sample_losses).mean()
366
+
367
+ def compute_loss(self, model, inputs, return_outputs=False, **kwargs):
368
+ """
369
+ 内存优化版本的损失计算
370
+ """
371
+ if self.args.bf16:
372
+ autocast_context = torch.autocast(device_type="cuda", dtype=torch.bfloat16)
373
+ elif self.args.fp16:
374
+ autocast_context = torch.autocast(device_type="cuda", dtype=torch.float16)
375
+ else:
376
+ autocast_context = nullcontext()
377
+
378
+ with autocast_context:
379
+ # 前向传播
380
+ outputs = model(
381
+ input_ids=inputs.get('input_ids'),
382
+ query_ids=inputs.get('query_ids'),
383
+ ts_values=inputs.get('ts_values'),
384
+ stage=inputs.get('stage'),
385
+ attention_mask=inputs.get('attention_mask'),
386
+ labels=inputs.get('labels')
387
+ )
388
+
389
+ # 获取logits
390
+ logits = outputs.logits if hasattr(outputs, 'logits') else outputs[0]
391
+
392
+ # 计算损失
393
+ loss = self.compute_stage_weighted_loss(
394
+ logits=logits,
395
+ labels=inputs.get('labels'),
396
+ stages=inputs.get('stage'),
397
+ attention_mask=inputs.get('attention_mask')
398
+ )
399
+
400
+ if not torch.isfinite(loss):
401
+ labels = inputs.get('labels')
402
+ valid_tokens = int((labels != self.padding_idx).sum().item()) if labels is not None else -1
403
+ stage_values = inputs.get('stage').detach().cpu().tolist() if inputs.get('stage') is not None else []
404
+ raise RuntimeError(
405
+ f"Non-finite SFT loss detected: loss={loss.detach().item()}, "
406
+ f"valid_label_tokens={valid_tokens}, stages={stage_values}"
407
+ )
408
+
409
+ if return_outputs:
410
+ # 清理不必要的输出以节省内存
411
+ if hasattr(outputs, 'past_key_values'):
412
+ outputs.past_key_values = None
413
+ if hasattr(outputs, 'hidden_states'):
414
+ outputs.hidden_states = None
415
+ if hasattr(outputs, 'attentions'):
416
+ outputs.attentions = None
417
+
418
+ wrapped_outputs = OutputWrapper(outputs)
419
+ wrapped_outputs.loss = loss
420
+ return loss, wrapped_outputs
421
+
422
+ return loss
423
+
424
+ def get_stage_loss_statistics(self, dataloader, num_samples=100):
425
+ """
426
+ 分析不同stage的损失分布,用于调整权重
427
+
428
+ Args:
429
+ dataloader: 数据加载器
430
+ num_samples: 分析的样本数量
431
+
432
+ Returns:
433
+ Dict: 包含各stage损失统计信息的字典
434
+ """
435
+ self.model.eval()
436
+ stage_losses = {1: [], 2: [], 3: [], 4: []}
437
+
438
+ with torch.no_grad():
439
+ for i, inputs in enumerate(dataloader):
440
+ if i >= num_samples:
441
+ break
442
+
443
+ # 移动到正确的设备
444
+ for key in inputs:
445
+ if isinstance(inputs[key], torch.Tensor):
446
+ inputs[key] = inputs[key].to(self.model.device)
447
+
448
+ # 前向传播
449
+ outputs = self.model(**inputs)
450
+ logits = outputs.logits if hasattr(outputs, 'logits') else outputs[0]
451
+
452
+ # 计算每个样本的损失
453
+ labels = inputs['labels']
454
+ stages = inputs['stage']
455
+ attention_mask = inputs.get('attention_mask')
456
+
457
+ batch_size, seq_len, vocab_size = logits.shape
458
+ flat_logits = logits.view(-1, vocab_size)
459
+ flat_labels = labels.view(-1)
460
+
461
+ token_losses = self.base_loss_fn(flat_logits, flat_labels)
462
+ token_losses = token_losses.view(batch_size, seq_len)
463
+
464
+ if attention_mask is not None:
465
+ valid_mask = attention_mask.bool()
466
+ else:
467
+ valid_mask = (labels != self.padding_idx)
468
+
469
+ masked_losses = token_losses * valid_mask.float()
470
+ valid_token_counts = valid_mask.sum(dim=1).float()
471
+ valid_token_counts = torch.clamp(valid_token_counts, min=1.0)
472
+ sample_losses = masked_losses.sum(dim=1) / valid_token_counts
473
+
474
+ # 按stage收集损失
475
+ for j, stage in enumerate(stages):
476
+ stage_val = stage.item()
477
+ if stage_val in stage_losses:
478
+ stage_losses[stage_val].append(sample_losses[j].item())
479
+
480
+ # 计算统计信息
481
+ statistics = {}
482
+ for stage, losses in stage_losses.items():
483
+ if losses:
484
+ statistics[f'stage_{stage}'] = {
485
+ 'mean': np.mean(losses),
486
+ 'std': np.std(losses),
487
+ 'count': len(losses),
488
+ 'min': np.min(losses),
489
+ 'max': np.max(losses)
490
+ }
491
+
492
+ return statistics
EXP/exp_pretraining.py ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ # -*- coding:utf-8 _*-
3
+ import importlib
4
+ from transformers import Trainer, TrainingArguments
5
+ import torch
6
+
7
+
8
+ class Exp_Pretrain(Trainer):
9
+ def __init__(self, args, train_dataset,data_collator=None, eval_dataset=None):
10
+ # Build the model
11
+ model = self._build_model(args)
12
+
13
+ # Define training arguments
14
+ training_args = TrainingArguments(
15
+ output_dir=args.output_dir,
16
+ per_device_train_batch_size=args.per_device_train_batch_size,
17
+ per_device_eval_batch_size=args.per_device_eval_batch_size,
18
+ learning_rate=args.learning_rate,
19
+ weight_decay=args.weight_decay,
20
+ logging_dir=args.output_dir,
21
+ logging_steps=args.logging_steps,
22
+ save_steps=args.save_steps,
23
+ eval_strategy="steps" if eval_dataset else "no",
24
+ save_total_limit=2,
25
+ gradient_accumulation_steps=args.gradient_accumulation_steps,
26
+ fp16=args.fp16,
27
+ dataloader_num_workers=args.dataloader_num_workers,
28
+ dataloader_pin_memory=args.dataloader_pin_memory,
29
+ num_train_epochs=args.num_train_epochs,
30
+ report_to=args.report_to, # Example: Integrate TensorBoard
31
+ remove_unused_columns=False,
32
+ disable_tqdm=False,
33
+ )
34
+
35
+ super().__init__(
36
+ model=model,
37
+ args=training_args,
38
+ train_dataset=train_dataset,
39
+ eval_dataset=eval_dataset,
40
+ compute_metrics=self._compute_metrics if eval_dataset else None,
41
+ )
42
+
43
+ def _build_model(self, args):
44
+ """Load the model dynamically based on the configuration."""
45
+ module = importlib.import_module("models." + args.model)
46
+ model = module.Model(
47
+ args
48
+ ).cuda()
49
+ return model
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
LLM/Qwen2.5-0.5B-Instruct/.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
LLM/Qwen2.5-0.5B-Instruct/LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2024 Alibaba Cloud
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
LLM/Qwen2.5-0.5B-Instruct/README.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ license_link: https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct/blob/main/LICENSE
4
+ language:
5
+ - en
6
+ pipeline_tag: text-generation
7
+ base_model: Qwen/Qwen2.5-0.5B
8
+ tags:
9
+ - chat
10
+ library_name: transformers
11
+ ---
12
+
13
+ # Qwen2.5-0.5B-Instruct
14
+
15
+ ## Introduction
16
+
17
+ Qwen2.5 is the latest series of Qwen large language models. For Qwen2.5, we release a number of base language models and instruction-tuned language models ranging from 0.5 to 72 billion parameters. Qwen2.5 brings the following improvements upon Qwen2:
18
+
19
+ - Significantly **more knowledge** and has greatly improved capabilities in **coding** and **mathematics**, thanks to our specialized expert models in these domains.
20
+ - Significant improvements in **instruction following**, **generating long texts** (over 8K tokens), **understanding structured data** (e.g, tables), and **generating structured outputs** especially JSON. **More resilient to the diversity of system prompts**, enhancing role-play implementation and condition-setting for chatbots.
21
+ - **Long-context Support** up to 128K tokens and can generate up to 8K tokens.
22
+ - **Multilingual support** for over 29 languages, including Chinese, English, French, Spanish, Portuguese, German, Italian, Russian, Japanese, Korean, Vietnamese, Thai, Arabic, and more.
23
+
24
+ **This repo contains the instruction-tuned 0.5B Qwen2.5 model**, which has the following features:
25
+ - Type: Causal Language Models
26
+ - Training Stage: Pretraining & Post-training
27
+ - Architecture: transformers with RoPE, SwiGLU, RMSNorm, Attention QKV bias and tied word embeddings
28
+ - Number of Parameters: 0.49B
29
+ - Number of Paramaters (Non-Embedding): 0.36B
30
+ - Number of Layers: 24
31
+ - Number of Attention Heads (GQA): 14 for Q and 2 for KV
32
+ - Context Length: Full 32,768 tokens and generation 8192 tokens
33
+
34
+ For more details, please refer to our [blog](https://qwenlm.github.io/blog/qwen2.5/), [GitHub](https://github.com/QwenLM/Qwen2.5), and [Documentation](https://qwen.readthedocs.io/en/latest/).
35
+
36
+ ## Requirements
37
+
38
+ The code of Qwen2.5 has been in the latest Hugging face `transformers` and we advise you to use the latest version of `transformers`.
39
+
40
+ With `transformers<4.37.0`, you will encounter the following error:
41
+ ```
42
+ KeyError: 'qwen2'
43
+ ```
44
+
45
+ ## Quickstart
46
+
47
+ Here provides a code snippet with `apply_chat_template` to show you how to load the tokenizer and model and how to generate contents.
48
+
49
+ ```python
50
+ from transformers import AutoModelForCausalLM, AutoTokenizer
51
+
52
+ model_name = "Qwen/Qwen2.5-0.5B-Instruct"
53
+
54
+ model = AutoModelForCausalLM.from_pretrained(
55
+ model_name,
56
+ torch_dtype="auto",
57
+ device_map="auto"
58
+ )
59
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
60
+
61
+ prompt = "Give me a short introduction to large language model."
62
+ messages = [
63
+ {"role": "system", "content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."},
64
+ {"role": "user", "content": prompt}
65
+ ]
66
+ text = tokenizer.apply_chat_template(
67
+ messages,
68
+ tokenize=False,
69
+ add_generation_prompt=True
70
+ )
71
+ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
72
+
73
+ generated_ids = model.generate(
74
+ **model_inputs,
75
+ max_new_tokens=512
76
+ )
77
+ generated_ids = [
78
+ output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
79
+ ]
80
+
81
+ response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
82
+ ```
83
+
84
+
85
+ ## Evaluation & Performance
86
+
87
+ Detailed evaluation results are reported in this [📑 blog](https://qwenlm.github.io/blog/qwen2.5/).
88
+
89
+ For requirements on GPU memory and the respective throughput, see results [here](https://qwen.readthedocs.io/en/latest/benchmark/speed_benchmark.html).
90
+
91
+ ## Citation
92
+
93
+ If you find our work helpful, feel free to give us a cite.
94
+
95
+ ```
96
+ @misc{qwen2.5,
97
+ title = {Qwen2.5: A Party of Foundation Models},
98
+ url = {https://qwenlm.github.io/blog/qwen2.5/},
99
+ author = {Qwen Team},
100
+ month = {September},
101
+ year = {2024}
102
+ }
103
+
104
+ @article{qwen2,
105
+ title={Qwen2 Technical Report},
106
+ author={An Yang and Baosong Yang and Binyuan Hui and Bo Zheng and Bowen Yu and Chang Zhou and Chengpeng Li and Chengyuan Li and Dayiheng Liu and Fei Huang and Guanting Dong and Haoran Wei and Huan Lin and Jialong Tang and Jialin Wang and Jian Yang and Jianhong Tu and Jianwei Zhang and Jianxin Ma and Jin Xu and Jingren Zhou and Jinze Bai and Jinzheng He and Junyang Lin and Kai Dang and Keming Lu and Keqin Chen and Kexin Yang and Mei Li and Mingfeng Xue and Na Ni and Pei Zhang and Peng Wang and Ru Peng and Rui Men and Ruize Gao and Runji Lin and Shijie Wang and Shuai Bai and Sinan Tan and Tianhang Zhu and Tianhao Li and Tianyu Liu and Wenbin Ge and Xiaodong Deng and Xiaohuan Zhou and Xingzhang Ren and Xinyu Zhang and Xipin Wei and Xuancheng Ren and Yang Fan and Yang Yao and Yichang Zhang and Yu Wan and Yunfei Chu and Yuqiong Liu and Zeyu Cui and Zhenru Zhang and Zhihao Fan},
107
+ journal={arXiv preprint arXiv:2407.10671},
108
+ year={2024}
109
+ }
110
+ ```
LLM/Qwen2.5-0.5B-Instruct/config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2ForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 151643,
7
+ "eos_token_id": 151645,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 896,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 4864,
12
+ "max_position_embeddings": 32768,
13
+ "max_window_layers": 21,
14
+ "model_type": "qwen2",
15
+ "num_attention_heads": 14,
16
+ "num_hidden_layers": 24,
17
+ "num_key_value_heads": 2,
18
+ "rms_norm_eps": 1e-06,
19
+ "rope_theta": 1000000.0,
20
+ "sliding_window": 32768,
21
+ "tie_word_embeddings": true,
22
+ "torch_dtype": "bfloat16",
23
+ "transformers_version": "4.43.1",
24
+ "use_cache": true,
25
+ "use_sliding_window": false,
26
+ "vocab_size": 151936
27
+ }
LLM/Qwen2.5-0.5B-Instruct/generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "pad_token_id": 151643,
4
+ "do_sample": true,
5
+ "eos_token_id": [
6
+ 151645,
7
+ 151643
8
+ ],
9
+ "repetition_penalty": 1.1,
10
+ "temperature": 0.7,
11
+ "top_p": 0.8,
12
+ "top_k": 20,
13
+ "transformers_version": "4.37.0"
14
+ }
LLM/Qwen2.5-0.5B-Instruct/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
LLM/Qwen2.5-0.5B-Instruct/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdf756fa7fcbe7404d5c60e26bff1a0c8b8aa1f72ced49e7dd0210fe288fb7fe
3
+ size 988097824
LLM/Qwen2.5-0.5B-Instruct/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
LLM/Qwen2.5-0.5B-Instruct/tokenizer_config.json ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ }
181
+ },
182
+ "additional_special_tokens": [
183
+ "<|im_start|>",
184
+ "<|im_end|>",
185
+ "<|object_ref_start|>",
186
+ "<|object_ref_end|>",
187
+ "<|box_start|>",
188
+ "<|box_end|>",
189
+ "<|quad_start|>",
190
+ "<|quad_end|>",
191
+ "<|vision_start|>",
192
+ "<|vision_end|>",
193
+ "<|vision_pad|>",
194
+ "<|image_pad|>",
195
+ "<|video_pad|>"
196
+ ],
197
+ "bos_token": null,
198
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
199
+ "clean_up_tokenization_spaces": false,
200
+ "eos_token": "<|im_end|>",
201
+ "errors": "replace",
202
+ "model_max_length": 131072,
203
+ "pad_token": "<|endoftext|>",
204
+ "split_special_tokens": false,
205
+ "tokenizer_class": "Qwen2Tokenizer",
206
+ "unk_token": null
207
+ }
LLM/Qwen2.5-0.5B-Instruct/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
dataset/.gitattributes ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mds filter=lfs diff=lfs merge=lfs -text
13
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
+ *.model filter=lfs diff=lfs merge=lfs -text
15
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
16
+ *.npy filter=lfs diff=lfs merge=lfs -text
17
+ *.npz filter=lfs diff=lfs merge=lfs -text
18
+ *.onnx filter=lfs diff=lfs merge=lfs -text
19
+ *.ot filter=lfs diff=lfs merge=lfs -text
20
+ *.parquet filter=lfs diff=lfs merge=lfs -text
21
+ *.pb filter=lfs diff=lfs merge=lfs -text
22
+ *.pickle filter=lfs diff=lfs merge=lfs -text
23
+ *.pkl filter=lfs diff=lfs merge=lfs -text
24
+ *.pt filter=lfs diff=lfs merge=lfs -text
25
+ *.pth filter=lfs diff=lfs merge=lfs -text
26
+ *.rar filter=lfs diff=lfs merge=lfs -text
27
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
28
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar filter=lfs diff=lfs merge=lfs -text
31
+ *.tflite filter=lfs diff=lfs merge=lfs -text
32
+ *.tgz filter=lfs diff=lfs merge=lfs -text
33
+ *.wasm filter=lfs diff=lfs merge=lfs -text
34
+ *.xz filter=lfs diff=lfs merge=lfs -text
35
+ *.zip filter=lfs diff=lfs merge=lfs -text
36
+ *.zst filter=lfs diff=lfs merge=lfs -text
37
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
38
+ # Audio files - uncompressed
39
+ *.pcm filter=lfs diff=lfs merge=lfs -text
40
+ *.sam filter=lfs diff=lfs merge=lfs -text
41
+ *.raw filter=lfs diff=lfs merge=lfs -text
42
+ # Audio files - compressed
43
+ *.aac filter=lfs diff=lfs merge=lfs -text
44
+ *.flac filter=lfs diff=lfs merge=lfs -text
45
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
46
+ *.ogg filter=lfs diff=lfs merge=lfs -text
47
+ *.wav filter=lfs diff=lfs merge=lfs -text
48
+ # Image files - uncompressed
49
+ *.bmp filter=lfs diff=lfs merge=lfs -text
50
+ *.gif filter=lfs diff=lfs merge=lfs -text
51
+ *.png filter=lfs diff=lfs merge=lfs -text
52
+ *.tiff filter=lfs diff=lfs merge=lfs -text
53
+ # Image files - compressed
54
+ *.jpg filter=lfs diff=lfs merge=lfs -text
55
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
56
+ *.webp filter=lfs diff=lfs merge=lfs -text
57
+ # Video files - compressed
58
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
59
+ *.webm filter=lfs diff=lfs merge=lfs -text
60
+ test_qa.jsonl filter=lfs diff=lfs merge=lfs -text
61
+ train_qa.jsonl filter=lfs diff=lfs merge=lfs -text
dataset/README.md ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - question-answering
5
+ pretty_name: EngineMT-QA
6
+ size_categories:
7
+ - 100K<n<1M
8
+ ---
9
+
10
+
11
+ # EngineMT-QA Dataset
12
+
13
+ ## Overview
14
+
15
+ **EngineMT-QA** is a large-scale, multi-task, multimodal dataset for **Time-Series Question Answering (Time-Series QA)**. It enables research on aligning multivariate time-series signals with natural language through four key cognitive tasks:
16
+
17
+ * **Understanding**
18
+ * **Perception**
19
+ * **Reasoning**
20
+ * **Decision-Making**
21
+
22
+ The dataset is built on **N-CMAPSS**, simulating real-world aero-engine operational and maintenance scenarios. It supports the development and evaluation of temporal-textual models that integrate sensor signals and natural language queries.
23
+
24
+ ## Dataset Contents
25
+
26
+ * `time_series_data.h5` (18GB): Multivariate time-series data with 600 time steps × 33 sensor channels
27
+ * `train_qa.jsonl` (39MB): 87k training QA pairs
28
+ * `test_qa.jsonl` (16MB): 25k test QA pairs
29
+
30
+ Total: \~113k QA instances across four tasks.
31
+
32
+ ## Tasks and Annotations
33
+
34
+ Each QA sample is aligned to specific time series segments (IDs match `data_ID` in `.h5`), and annotated for:
35
+
36
+ | Task | Input Scope | Format | Evaluation Metrics |
37
+ | --------------- | ------------ | --------------- | ------------------ |
38
+ | Understanding | Single-cycle | Open-ended | BLEU, ROUGE-L |
39
+ | Perception | Single-cycle | Multiple-choice | Accuracy, F1 |
40
+ | Reasoning | Multi-cycle | Multiple-choice | Accuracy, F1 |
41
+ | Decision-Making | Multi-cycle | Open-ended | BLEU, ROUGE-L |
42
+
43
+ Each `conversations` entry contains multi-turn Q\&A annotated with:
44
+
45
+ * `stage`: Task type (1=Understanding, 2=Perception, 3=Reasoning, 4=Decision)
46
+ * `attribute`: Question format (`open` or `close`)
47
+ * `value`: Natural language prompt or response
48
+
49
+ ## Example QA Entry
50
+
51
+ ```json
52
+ {
53
+ "id": ["81571"],
54
+ "name": ["81571.csv"],
55
+ "conversations": [
56
+ {
57
+ "from": "human",
58
+ "stage": "3",
59
+ "attribute": "close",
60
+ "value": "Given the time series signal <ts>, by perceiving the engine signal across 10 cycles ... what is the qualitative condition of the engine?\n a: Good Condition\n b: Moderate Condition\n ..."
61
+ },
62
+ {
63
+ "from": "gpt",
64
+ "value": "d"
65
+ }
66
+ ]
67
+ }
68
+ ```
69
+
70
+ ## How to Use
71
+
72
+ ### Load Time-Series Data
73
+
74
+ ```python
75
+ import h5py
76
+ with h5py.File('time_series_data.h5', 'r') as f:
77
+ data_ids = f['data_ID'][:]
78
+ sequences = f['seq_data'][:] # Shape: (118921, 600, 33)
79
+ ```
80
+
81
+ ### Load QA Data
82
+
83
+ ```python
84
+ import json
85
+ with open('train_qa.jsonl', 'r') as f:
86
+ for line in f:
87
+ sample = json.loads(line)
88
+ ```
89
+
90
+ ### Match QA with Time-Series
91
+
92
+ The `id` field corresponds to indices in the `.h5` file. Use this to align QA queries with sensor sequences for modeling or fine-tuning.
93
+
94
+ ## Applications
95
+
96
+ * Time-Series QA benchmarking
97
+ * Engine health diagnostics
98
+ * Fault detection and prognosis
99
+ * Multimodal model training and evaluation
100
+ * Cross-modal semantic alignment (text + sensor signals)
101
+
102
+ ## Construction Details
103
+
104
+ * Based on NASA's **N-CMAPSS** dataset.
105
+ * Questions designed using domain-specific rules and LLMs (e.g., ChatGPT, DeepSeek) refined by experts.
106
+ * QA tasks were segmented to reflect real-world cognition:
107
+
108
+ * **Understanding**: Signal meaning interpretation
109
+ * **Perception**: Health/fault recognition
110
+ * **Reasoning**: Degradation trend & RUL
111
+ * **Decision-Making**: Maintenance strategy suggestions
112
+
113
+ More details can be found in **Appendix A–C** of the associated paper.
114
+
115
+ ## Citation
116
+
117
+ If you use this dataset, please cite our ICML 2025 paper:
118
+
119
+ ```bibtex
120
+ @inproceedings{wang2025itformer,
121
+ title = {ITFormer: Bridging Time Series and Natural Language for Multi-Modal QA with Large-Scale Multitask Dataset},
122
+ author = {Yilin Wang and Peixuan Lei and Jie Song and Haoyu Zhe and Tao Chen and Yuxuan Zhang and Lei Jia and Yuanxiang Li and Zhongyu Wei},
123
+ booktitle = {International Conference on Machine Learning (ICML)},
124
+ year = {2025}
125
+ url ={https://huggingface.co/papers/2506.20093}
126
+ }
127
+ ```
128
+
129
+ ## License
130
+
131
+ \[Insert license type here – e.g., MIT, CC BY-NC-SA 4.0, etc.]
132
+
133
+ ## Contact
134
+
135
+ For questions or collaborations, please contact:
136
+ [pandalin@sjtu.edu.cn]
dataset/__init__.py ADDED
File without changes
dataset/dataset.py ADDED
@@ -0,0 +1,416 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+ """
4
+ Time Series Question Answering Dataset.
5
+ Handles loading and preprocessing of time series data and question-answer pairs.
6
+ """
7
+ import sys
8
+ from transformers import PretrainedConfig, AutoTokenizer
9
+ from transformers import AutoProcessor
10
+ import torch
11
+ import os
12
+ import json
13
+ from torch.utils.data import Dataset
14
+ from typing import List, Dict, Any
15
+ import pandas as pd
16
+ import numpy as np
17
+ import h5py
18
+ import re
19
+ import random
20
+ from models.TimeLanguageModel import TLMConfig
21
+ from utils.log_util import adaptive_print
22
+
23
+ class PretrainDataset(Dataset):
24
+
25
+ def __init__(self, ts_path):
26
+ super().__init__()
27
+ self.ts_path = ts_path
28
+ self.load_data()
29
+
30
+ def load_data(self):
31
+ with h5py.File(self.ts_path, 'r') as f:
32
+ data = f['seq_data'][:]
33
+ self.datas = data
34
+
35
+ def __len__(self):
36
+ return len(self.datas)
37
+
38
+ def __getitem__(self, index):
39
+ return {'ts_values': torch.tensor(self.datas[index], dtype=torch.float)}
40
+
41
+ def find_assistant_tokens(tokenizer, target):
42
+ """Find assistant token positions in the target sequence.
43
+
44
+ Args:
45
+ tokenizer: Tokenizer instance
46
+ target: Target token sequence
47
+
48
+ Returns:
49
+ List of tuples containing start and end positions of assistant tokens
50
+ """
51
+ result = []
52
+ start_index = 0
53
+ end_index = 0
54
+ while start_index <= len(target) - 1:
55
+ if target[start_index] != tokenizer('assistant')['input_ids'][0]:
56
+ start_index += 1
57
+ end_index += 1
58
+ else:
59
+ end_index += 1
60
+ if target[end_index] == tokenizer('<|im_end|>')['input_ids'][0]:
61
+ result.append((start_index + 1, end_index + 1))
62
+ start_index = end_index + 1
63
+ return result
64
+
65
+
66
+ class TsQaDataset(Dataset):
67
+ """Time Series Question Answering Dataset with token ID range validation."""
68
+
69
+ def __init__(self, ts_path, data_path, tokenizer, processor, config, pretrain=False, sft=False, shuffle=False):
70
+ """Initialize the dataset.
71
+
72
+ Args:
73
+ ts_path: Path to time series data file
74
+ data_path: Path to question-answer data file
75
+ tokenizer: Tokenizer instance
76
+ processor: Processor instance
77
+ config: Configuration object
78
+ pretrain: Whether in pretraining mode
79
+ sft: Whether in supervised fine-tuning mode
80
+ shuffle: Whether to shuffle the data
81
+ """
82
+ super().__init__()
83
+ self.ts_path = ts_path
84
+ self.data_path = data_path
85
+ self.tokenizer = tokenizer
86
+ self.processor = processor
87
+ self.config = config
88
+ self.pretrain = pretrain
89
+ self.sft = sft
90
+ self.shuffle = shuffle
91
+ self.h5_file = None
92
+
93
+ # Key fix: Ensure vocab_size is correct
94
+ self.vocab_size = len(self.tokenizer)
95
+ adaptive_print(f"📊 Vocab size: {self.vocab_size}")
96
+
97
+ # Ensure tokenizer settings are consistent
98
+ self.tokenizer.padding_side = 'left'
99
+ if self.tokenizer.pad_token is None:
100
+ self.tokenizer.pad_token = self.tokenizer.eos_token
101
+
102
+ # Validate special tokens
103
+ self._validate_special_tokens()
104
+ self._build_index()
105
+
106
+ def _validate_special_tokens(self):
107
+ """Validate that all special token IDs are within valid range."""
108
+ special_tokens = {
109
+ 'pad_token_id': self.tokenizer.pad_token_id,
110
+ 'eos_token_id': self.tokenizer.eos_token_id,
111
+ 'bos_token_id': getattr(self.tokenizer, 'bos_token_id', None),
112
+ 'unk_token_id': getattr(self.tokenizer, 'unk_token_id', None),
113
+ }
114
+
115
+ adaptive_print("🔍 Validating special tokens:")
116
+ for name, token_id in special_tokens.items():
117
+ if token_id is not None:
118
+ if token_id >= self.vocab_size or token_id < 0:
119
+ adaptive_print(f"❌ {name} = {token_id} out of range [0, {self.vocab_size})")
120
+ # Fix invalid special tokens
121
+ if name == 'pad_token_id':
122
+ self.tokenizer.pad_token_id = self.tokenizer.eos_token_id
123
+ adaptive_print(f"🔧 Fixed: pad_token_id -> {self.tokenizer.pad_token_id}")
124
+ else:
125
+ adaptive_print(f"✅ {name} = {token_id}")
126
+
127
+ def _validate_token_ids(self, token_ids, context=""):
128
+ """Validate token IDs for validity.
129
+
130
+ Args:
131
+ token_ids: List of token IDs to validate
132
+ context: Context string for error messages
133
+
134
+ Returns:
135
+ List of validated token IDs
136
+ """
137
+ if not isinstance(token_ids, list):
138
+ return token_ids
139
+
140
+ valid_ids = []
141
+ for i, token_id in enumerate(token_ids):
142
+ if token_id < 0 or token_id >= self.vocab_size:
143
+ adaptive_print(f"⚠��� {context} position {i}: invalid token_id {token_id}, replacing with unk_token")
144
+ # Replace with unk_token, if not available use eos_token
145
+ replacement = getattr(self.tokenizer, 'unk_token_id', self.tokenizer.eos_token_id)
146
+ valid_ids.append(replacement)
147
+ else:
148
+ valid_ids.append(token_id)
149
+ return valid_ids
150
+
151
+ def _build_index(self):
152
+ """Build dataset index by loading and processing data files."""
153
+ self.datas = []
154
+ with open(self.data_path, 'r', encoding='utf-8') as f:
155
+ for line_num, line in enumerate(f):
156
+ item = json.loads(line)
157
+ for i in range(0, len(item['conversations']), 2):
158
+ if item['conversations'][i]['stage'] in ['1', '2', '3', '4']:
159
+ self.datas.append({
160
+ 'id': item['id'],
161
+ 'stage': int(item['conversations'][i]['stage']),
162
+ 'form': item['conversations'][i]['attribute'],
163
+ 'question': item['conversations'][i]['value'],
164
+ 'answer': item['conversations'][i + 1]['value'],
165
+ 'line_num': line_num
166
+ })
167
+
168
+ if self.shuffle:
169
+ adaptive_print(f"🎲 Shuffling dataset: {self.data_path}")
170
+ random.shuffle(self.datas)
171
+
172
+ def _get_h5_file(self):
173
+ """Get HDF5 file handle for time series data."""
174
+ if self.h5_file is None and os.path.exists(self.ts_path):
175
+ self.h5_file = h5py.File(self.ts_path, 'r')
176
+ return self.h5_file
177
+
178
+ def __len__(self):
179
+ """Return dataset length."""
180
+ return len(self.datas)
181
+
182
+ def add_adaptive_prompt(self, sample):
183
+ sample = sample.copy()
184
+
185
+ if sample['stage'] == 1:
186
+ sample['question'] += " Please analyze the change in this signal and explain its physical implication, such as component load, airflow, or temperature stability."
187
+ elif sample['stage'] == 2:
188
+ sample['question'] += " Carefully analyze the signal pattern (e.g., stability, oscillation, drops) to determine the correct fault status or root cause. Select the most likely option based on observed signal behavior."
189
+ elif sample['stage'] == 3:
190
+ sample['question'] += " Review the trends across 10 cycles and evaluate the degradation pattern. Select the option that best reflects the long-term health status or risk level indicated by the signal."
191
+ elif sample['stage'] == 4:
192
+ sample['question'] += " Based on the 10-cycle degradation pattern, propose concrete maintenance actions (e.g., replace, inspect) to ensure safe and efficient operation."
193
+ return sample
194
+
195
+ def _create_chat_input(self, question):
196
+ """Unified chat input creation method."""
197
+ messages = [
198
+ {"role": "system", "content": 'You are a helpful assistant.'},
199
+ {"role": "user", "content": question}
200
+ ]
201
+
202
+ try:
203
+ # Use a safer tokenization method
204
+ chat_text = self.tokenizer.apply_chat_template(
205
+ messages,
206
+ tokenize=False,
207
+ add_generation_prompt=True
208
+ )
209
+ # Replace time series placeholder
210
+ chat_text = chat_text.replace('<ts>', '<|image_pad|>' * self.config.ts_pad_num)
211
+ return chat_text
212
+ except Exception as e:
213
+ adaptive_print(f"❌ Chat template error: {e}")
214
+ # Fallback to a simple format
215
+ return f"You are a helpful assistant.\nuser\n{question}\nassistant\n"
216
+
217
+ def _safe_tokenize(self, text, add_special_tokens=True):
218
+ """Safe tokenization, ensure results are within valid range."""
219
+ try:
220
+ # Add more tokenization parameters
221
+ result = self.tokenizer(
222
+ text,
223
+ add_special_tokens=add_special_tokens,
224
+ padding=False,
225
+ truncation=False,
226
+ return_tensors=None
227
+ )
228
+ token_ids = result['input_ids']
229
+
230
+ # Validate token_ids
231
+ token_ids = self._validate_token_ids(token_ids, f"tokenize: {text[:50]}...")
232
+ return token_ids
233
+
234
+ except Exception as e:
235
+ adaptive_print(f"❌ Tokenization error for text: {text[:100]}...")
236
+ adaptive_print(f"Error: {e}")
237
+ # Return a safe default value
238
+ return [self.tokenizer.eos_token_id]
239
+
240
+ def __getitem__(self, idx):
241
+ try:
242
+ sample = self.datas[idx]
243
+ # sample = self.add_adaptive_prompt(sample)
244
+
245
+ # Load time series data
246
+ h5f = self._get_h5_file()
247
+ if isinstance(sample['id'], str):
248
+ ts = h5f['seq_data'][int(sample['id']) - 1]
249
+ elif isinstance(sample['id'], list):
250
+ ts_list = [h5f['seq_data'][int(i) - 1][:len(h5f['seq_data'][int(i) - 1]) // 10] for i in sample['id']]
251
+ ts = np.concatenate(ts_list, axis=0)
252
+
253
+ # =========================== Mode 1: Pretraining ===========================
254
+ if getattr(self, 'pretrain', False):
255
+ return {
256
+ 'ts_values': torch.tensor(ts, dtype=torch.float)
257
+ }
258
+
259
+ # =========================== Mode 2: SFT Training ===========================
260
+ elif getattr(self, 'sft', False):
261
+ # Create query_ids: only the original question text, no other information
262
+ original_question = sample['question']
263
+ query_ids = self._safe_tokenize(original_question, add_special_tokens=False)
264
+
265
+ # Create input_ids: full input including time series placeholder
266
+ q_text = self._create_chat_input(sample['question']) # This includes <|image_pad|>
267
+ q_input_ids = self._safe_tokenize(q_text, add_special_tokens=False)
268
+
269
+ # Ensure answer format is consistent and safe
270
+ a_text = sample['answer']
271
+ if not a_text.endswith(self.tokenizer.eos_token):
272
+ a_text += self.tokenizer.eos_token
273
+ a_input_ids = self._safe_tokenize(a_text, add_special_tokens=False)
274
+
275
+ # Construct training data
276
+ input_ids = q_input_ids + a_input_ids
277
+ labels = [self.tokenizer.pad_token_id] * len(q_input_ids) + a_input_ids
278
+
279
+ # Final validation
280
+ query_ids = self._validate_token_ids(query_ids, f"query_ids_sample_{idx}")
281
+ input_ids = self._validate_token_ids(input_ids, f"final_input_sample_{idx}")
282
+ labels = self._validate_token_ids(labels, f"final_labels_sample_{idx}")
283
+
284
+ # Ensure length matches
285
+ final_input_ids = input_ids[:-1] if len(input_ids) > 1 else input_ids
286
+ final_labels = labels[1:] if len(labels) > 1 else labels
287
+
288
+ return {
289
+ 'form': sample['form'],
290
+ 'stage': sample['stage'],
291
+ 'query_ids': query_ids, # Only contains the original question text
292
+ 'input_ids': final_input_ids,
293
+ 'labels': final_labels,
294
+ 'ts_values': torch.tensor(ts, dtype=torch.float),
295
+ 'index': sample['line_num']
296
+ }
297
+
298
+ # =========================== Mode 3: Inference/Evaluation ===========================
299
+ else:
300
+ # Create query_ids: only the original question text, no other information
301
+ original_question = sample['question']
302
+ query_ids = self._safe_tokenize(original_question, add_special_tokens=False)
303
+
304
+ # Create input_ids: includes time series placeholder
305
+ q_text = self._create_chat_input(sample['question'])
306
+ q_input_ids = self._safe_tokenize(q_text, add_special_tokens=False)
307
+
308
+ a_text = sample['answer']
309
+ if not a_text.endswith(self.tokenizer.eos_token):
310
+ a_text += self.tokenizer.eos_token
311
+ a_input_ids = self._safe_tokenize(a_text, add_special_tokens=False)
312
+
313
+ # Validate results
314
+ query_ids = self._validate_token_ids(query_ids, f"infer_query_sample_{idx}")
315
+ q_input_ids = self._validate_token_ids(q_input_ids, f"infer_q_sample_{idx}")
316
+ a_input_ids = self._validate_token_ids(a_input_ids, f"infer_a_sample_{idx}")
317
+
318
+ return {
319
+ 'form': sample['form'],
320
+ 'stage': sample['stage'],
321
+ 'query_ids': query_ids, # Only contains the original question text
322
+ 'input_ids': q_input_ids,
323
+ 'labels': a_input_ids,
324
+ 'ts_values': torch.tensor(ts, dtype=torch.float),
325
+ 'index': sample['line_num']
326
+ }
327
+
328
+ except Exception as e:
329
+ adaptive_print(f"❌ Error processing sample {idx}: {e}")
330
+ # Return a safe default sample
331
+ return self._get_safe_default_sample()
332
+
333
+ def _get_safe_default_sample(self):
334
+ """Return a safe default sample."""
335
+ return {
336
+ 'form': 'default',
337
+ 'stage': 1,
338
+ 'query_ids': [self.tokenizer.eos_token_id], # Simple default query
339
+ 'input_ids': [self.tokenizer.eos_token_id],
340
+ 'labels': [self.tokenizer.eos_token_id],
341
+ 'ts_values': torch.zeros(100, dtype=torch.float),
342
+ 'index': 0
343
+ }
344
+
345
+ def __del__(self):
346
+ if self.h5_file:
347
+ self.h5_file.close()
348
+
349
+
350
+ class DataCollator:
351
+ def __init__(self, tokenizer):
352
+ self.tokenizer = tokenizer
353
+ # Ensure tokenizer settings are correct
354
+ if self.tokenizer.padding_side != 'left':
355
+ adaptive_print("��️ Warning: Setting tokenizer.padding_side to 'left' for decoder-only model")
356
+ self.tokenizer.padding_side = 'left'
357
+
358
+ def __call__(self, features: List[Dict[str, Any]]) -> Dict[str, Any]:
359
+ # 兼容性处理:检查 key 是否存在,如果不存在(如预训练模式)则跳过相关逻辑
360
+ has_text_data = all('input_ids' in f and 'labels' in f and 'query_ids' in f for f in features)
361
+
362
+ if not has_text_data:
363
+ # 预训练模式或数据缺失:仅处理 ts_values
364
+ ts_values = [f['ts_values'] for f in features]
365
+ batch = {'ts_values': torch.stack(ts_values, dim=0)}
366
+ # 尝试包含其他可能存在的字段
367
+ for key in ['stage', 'index']:
368
+ if all(key in f for f in features):
369
+ batch[key] = torch.tensor([f[key] for f in features])
370
+ return batch
371
+
372
+ max_len_inputs = max(len(feature['input_ids']) for feature in features)
373
+ max_len_labels = max(len(feature['labels']) for feature in features)
374
+ max_len_querys = max(len(feature['query_ids']) for feature in features)
375
+ input_ids = []
376
+ attention_mask = []
377
+ labels = []
378
+ ts_values = []
379
+ stages = []
380
+ index = []
381
+ query_ids = []
382
+ for feature in features:
383
+ input_len = len(feature['input_ids'])
384
+ label_len = len(feature['labels'])
385
+ query_ids_len = len(feature['query_ids'])
386
+ # Left padding is correct (keep original logic)
387
+ padded_input = [self.tokenizer.pad_token_id] * (max_len_inputs - input_len) + feature['input_ids']
388
+ input_ids.append(padded_input)
389
+
390
+ # Corresponding attention mask
391
+ attention_mask.append([0] * (max_len_inputs - input_len) + [1] * input_len)
392
+
393
+ # Labels also left-padded
394
+ padded_labels = [self.tokenizer.pad_token_id] * (max_len_labels - label_len) + feature['labels'] # Use -100 to ignore pad positions in loss
395
+ labels.append(padded_labels)
396
+
397
+ # query_ids also left-padded
398
+ padded_query_ids = [self.tokenizer.pad_token_id] * (max_len_querys - query_ids_len) + feature['query_ids']
399
+ query_ids.append(padded_query_ids)
400
+
401
+ ts_values.append(feature['ts_values'])
402
+ stages.append(feature['stage'])
403
+ index.append(feature['index'])
404
+
405
+
406
+ return {
407
+ 'input_ids': torch.tensor(input_ids, dtype=torch.long),
408
+ 'attention_mask': torch.tensor(attention_mask, dtype=torch.long),
409
+ 'labels': torch.tensor(labels, dtype=torch.long),
410
+ 'ts_values': torch.stack(ts_values, dim=0),
411
+ 'stage': torch.tensor(stages, dtype=torch.int8),
412
+ 'index': torch.tensor(index, dtype=torch.int32),
413
+ 'query_ids': torch.tensor(query_ids, dtype=torch.long)
414
+ }
415
+
416
+
dataset/rats40k_dataset.py ADDED
@@ -0,0 +1,368 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ RATs40K Dataset for ITFormer adaptation.
3
+
4
+ Supports:
5
+ - RATsPretrainDataset : TS-only MAE pre-training
6
+ - RATsQADataset : SFT (Q&A with ts_values)
7
+ - RATsDataCollator : padding collator for SFT batches
8
+ """
9
+ import json
10
+ import re
11
+ import random
12
+ import torch
13
+ import torch.nn.functional as F
14
+ from torch.utils.data import Dataset
15
+ from typing import Dict, List, Optional, Any
16
+
17
+
18
+ # ── action / label mappings ────────────────────────────────────────────────
19
+ ACTION_ID_MAP: Dict[int, str] = {
20
+ 0: "Normal Sequence",
21
+ 1: "Point Anomaly",
22
+ 2: "Periodic Change Anomaly",
23
+ 3: "Trend Change Anomaly",
24
+ 4: "Change Point Anomaly",
25
+ 5: "Distributional Change Anomaly",
26
+ 6: "Amplitude Anomaly",
27
+ 7: "Pattern Change Anomaly",
28
+ 8: "Sparse Anomaly",
29
+ 9: "Repeated Value Anomaly",
30
+ 10: "Sudden Flatline Anomaly",
31
+ 11: "Drift Anomaly",
32
+ 12: "Sudden Spike Anomaly",
33
+ 13: "Continuous Segment Anomaly",
34
+ 14: "Nonlinear Pattern Anomaly",
35
+ }
36
+ ACTION_NAME_MAP: Dict[str, int] = {v: k for k, v in ACTION_ID_MAP.items()}
37
+
38
+ # ── prompt templates (aligned with Time-RA train/train_sft_parser.py) ───────
39
+ # Kept verbatim so this ITFormer run is a faithful baseline of Time-RA.
40
+ _SYSTEM_PROMPT = "You are a helpful assistant." # matches Time-RA BASE_SYSTEM_PROMPT
41
+
42
+ _ACTION_ID_GUIDE = (
43
+ "ActionID mapping: 0=Normal Sequence; 1=Point Anomaly; "
44
+ "2=Periodic Change Anomaly; 3=Trend Change Anomaly; "
45
+ "4=Change Point Anomaly; 5=Distributional Change Anomaly; "
46
+ "6=Amplitude Anomaly; 7=Pattern Change Anomaly; 8=Sparse Anomaly; "
47
+ "9=Repeated Value Anomaly; 10=Sudden Flatline Anomaly; "
48
+ "11=Drift Anomaly; 12=Sudden Spike Anomaly; "
49
+ "13=Continuous Segment Anomaly; 14=Nonlinear Pattern Anomaly."
50
+ )
51
+
52
+ # Time-RA build_prompt template; <ts> marks where the time series goes.
53
+ # For the adapter baseline the observation is the injected TS tokens (<ts>),
54
+ # not the raw numeric text.
55
+ _USER_TEMPLATE = (
56
+ "You are an expert in time series anomaly detection. We provide a time series "
57
+ "(called Observation), you should give us the anomaly type ID (called ActionID) "
58
+ "and its reasons (called Thought). \n"
59
+ "Thought steps can infer the current abnormal situation of time series.\n\n"
60
+ "The anomaly detection of each time series is divided into three steps: "
61
+ "Observation, Thought, ActionID. After analyzing each observation, please "
62
+ "provide the next Thought and next ActionID.\n"
63
+ "{action_id_guide}\n"
64
+ "Here is a time series observation that we need to check for anomaly categories. "
65
+ "The oberservation is from domain of {source}.\n"
66
+ "Return exactly two fields: Thought and ActionID. ActionID must be a single "
67
+ "integer from 0 to 14, not a category name.\n"
68
+ "Observation: <ts>\n"
69
+ "Thought:\n"
70
+ "ActionID:\n"
71
+ )
72
+
73
+ _ACTION_ALIASES: Dict[str, str] = {
74
+ "normal": "Normal Sequence",
75
+ "point": "Point Anomaly",
76
+ "periodic change": "Periodic Change Anomaly",
77
+ "periodic": "Periodic Change Anomaly",
78
+ "trend change": "Trend Change Anomaly",
79
+ "trend": "Trend Change Anomaly",
80
+ "change point": "Change Point Anomaly",
81
+ "distributional change": "Distributional Change Anomaly",
82
+ "distributional": "Distributional Change Anomaly",
83
+ "amplitude": "Amplitude Anomaly",
84
+ "pattern change": "Pattern Change Anomaly",
85
+ "pattern": "Pattern Change Anomaly",
86
+ "sparse": "Sparse Anomaly",
87
+ "repeated value": "Repeated Value Anomaly",
88
+ "repeated": "Repeated Value Anomaly",
89
+ "sudden flatline": "Sudden Flatline Anomaly",
90
+ "flatline": "Sudden Flatline Anomaly",
91
+ "drift": "Drift Anomaly",
92
+ "sudden spike": "Sudden Spike Anomaly",
93
+ "spike": "Sudden Spike Anomaly",
94
+ "continuous segment": "Continuous Segment Anomaly",
95
+ "continuous": "Continuous Segment Anomaly",
96
+ "nonlinear pattern": "Nonlinear Pattern Anomaly",
97
+ "nonlinear": "Nonlinear Pattern Anomaly",
98
+ }
99
+
100
+
101
+ def _normalize(text: str) -> str:
102
+ return re.sub(r"[^a-z0-9]+", " ", text.lower()).strip()
103
+
104
+
105
+ def parse_action_from_response(response: str) -> Optional[int]:
106
+ """Extract ActionID from model output. Returns None on failure.
107
+
108
+ Target format is "Thought: ...\\nActionID: <int>" (aligned with Time-RA),
109
+ so ActionID-as-integer is tried first, then JSON, then category names.
110
+ """
111
+ text = "" if response is None else str(response)
112
+
113
+ # 1. "ActionID: <int>" — the trained target format
114
+ m_id = re.search(r"Action\s*ID\s*[::]?\s*(\d{1,2})\b", text, flags=re.I)
115
+ if m_id and int(m_id.group(1)) in ACTION_ID_MAP:
116
+ return int(m_id.group(1))
117
+
118
+ # 2. JSON block
119
+ m = re.search(r"\{.*\}", text, flags=re.S)
120
+ for snippet in ([text, m.group(0)] if m else [text]):
121
+ try:
122
+ obj = json.loads(snippet)
123
+ if isinstance(obj, dict):
124
+ for key in ("ActionID", "action_id", "Action", "action", "Label"):
125
+ if key in obj:
126
+ val = str(obj[key])
127
+ if val.isdigit() and int(val) in ACTION_ID_MAP:
128
+ return int(val)
129
+ if val in ACTION_NAME_MAP:
130
+ return ACTION_NAME_MAP[val]
131
+ except (ValueError, TypeError):
132
+ pass
133
+
134
+ # 3. "Action: <name>" fallback (category names / aliases)
135
+ m2 = re.search(r"(?:^|\n)\s*Action\s*[::]\s*(.*?)(?=\n|$)", text, flags=re.I | re.S)
136
+ if m2:
137
+ candidate = m2.group(1).strip()
138
+ if candidate.isdigit() and int(candidate) in ACTION_ID_MAP:
139
+ return int(candidate)
140
+ norm = _normalize(candidate)
141
+ for name, aid in ACTION_NAME_MAP.items():
142
+ if _normalize(name) == norm:
143
+ return aid
144
+ for alias, name in _ACTION_ALIASES.items():
145
+ if alias in norm:
146
+ return ACTION_NAME_MAP[name]
147
+ for name, aid in ACTION_NAME_MAP.items():
148
+ if _normalize(name) in norm:
149
+ return aid
150
+
151
+ return None
152
+
153
+
154
+ def parse_thought_from_response(response: str) -> str:
155
+ """Extract Thought from model output (stops at the ActionID line)."""
156
+ text = "" if response is None else str(response)
157
+ m = re.search(
158
+ r"Thought\s*[::]\s*(.*?)(?=\n\s*Action\s*ID\s*[::]|\n\s*Action\s*[::]|$)",
159
+ text, flags=re.I | re.S,
160
+ )
161
+ if not m:
162
+ return ""
163
+ return m.group(1).strip()
164
+
165
+
166
+ def _pad_sequence(seq: List[float], input_len: int, normalize: bool = True) -> torch.Tensor:
167
+ """Per-instance z-score normalize, then pad/truncate to input_len -> [input_len, 1].
168
+
169
+ RATs40K is NOT pre-normalized: magnitudes span ~8 orders of magnitude across
170
+ domains (Healthcare-ECG ~1 vs. AIOps-CloudWatch ~1e8). TimeSeriesEncoder has
171
+ no built-in RevIN/instance-norm, so raw values overflow the patch embedding in
172
+ bf16/fp16. We z-score each sequence individually (computed on valid points
173
+ BEFORE padding) so every input matches the standardized regime the encoder
174
+ expects (mean~0, std~1).
175
+ """
176
+ arr = torch.tensor(seq, dtype=torch.float32)
177
+ arr = arr[:input_len] if arr.shape[0] >= input_len else arr
178
+
179
+ if normalize and arr.numel() > 0:
180
+ mean = arr.mean()
181
+ std = arr.std()
182
+ # Guard constant sequences (e.g. flatline anomalies) against div-by-zero
183
+ std = std if std > 1e-6 else torch.tensor(1.0)
184
+ arr = (arr - mean) / std
185
+
186
+ if arr.shape[0] < input_len:
187
+ arr = F.pad(arr, (0, input_len - arr.shape[0]))
188
+ return arr.unsqueeze(-1) # [input_len, 1]
189
+
190
+
191
+ # ── Pre-train dataset ──────────────────────────────────────────────────────
192
+
193
+ class RATsPretrainDataset(Dataset):
194
+ """Returns only ts_values for masked reconstruction pre-training."""
195
+
196
+ def __init__(self, data_path: str, split: str = "TSAD_train", input_len: int = 128):
197
+ with open(data_path, encoding="utf-8") as f:
198
+ raw = json.load(f).get(split, {})
199
+ self.sequences = [
200
+ item["Observation"]
201
+ for item in raw.values()
202
+ if isinstance(item, dict) and "Observation" in item
203
+ ]
204
+ self.input_len = input_len
205
+
206
+ def __len__(self) -> int:
207
+ return len(self.sequences)
208
+
209
+ def __getitem__(self, idx: int) -> Dict[str, torch.Tensor]:
210
+ return {"ts_values": _pad_sequence(self.sequences[idx], self.input_len)}
211
+
212
+
213
+ # ── SFT dataset ────────────────────────────────────────────────────────────
214
+
215
+ class RATsQADataset(Dataset):
216
+ """
217
+ Loads RATs40K JSON and builds instruction-tuning samples.
218
+ All samples use stage=1 (single short window, sinusoidal pos-enc).
219
+ """
220
+
221
+ def __init__(
222
+ self,
223
+ data_path: str,
224
+ split: str,
225
+ tokenizer,
226
+ ts_pad_num: int,
227
+ input_len: int = 128,
228
+ shuffle: bool = False,
229
+ include_answer: bool = True,
230
+ ):
231
+ with open(data_path, encoding="utf-8") as f:
232
+ raw = json.load(f).get(split, {})
233
+ self.records: List[Dict[str, Any]] = [
234
+ {"idx": int(k), **item}
235
+ for k, item in raw.items()
236
+ if isinstance(item, dict)
237
+ ]
238
+ if shuffle:
239
+ random.shuffle(self.records)
240
+
241
+ self.tokenizer = tokenizer
242
+ self.ts_pad_num = ts_pad_num
243
+ self.input_len = input_len
244
+ self.include_answer = include_answer
245
+ self.pad_id = tokenizer.pad_token_id or tokenizer.eos_token_id
246
+ self.eos = tokenizer.eos_token or ""
247
+
248
+ # Ensure <|image_pad|> token exists
249
+ if "<|image_pad|>" not in tokenizer.get_vocab():
250
+ tokenizer.add_tokens(["<|image_pad|>"])
251
+
252
+ def __len__(self) -> int:
253
+ return len(self.records)
254
+
255
+ def _build_question(self, source: str) -> str:
256
+ return _USER_TEMPLATE.format(
257
+ action_id_guide=_ACTION_ID_GUIDE, source=source or "unknown"
258
+ )
259
+
260
+ def _build_answer(self, thought: str, action_id: int) -> str:
261
+ # Time-RA build_target format: "Thought: {thought}\nActionID: {id}"
262
+ answer = f"Thought: {thought}\nActionID: {action_id}"
263
+ if not answer.endswith(self.eos):
264
+ answer += self.eos
265
+ return answer
266
+
267
+ def _chat_text(self, question: str) -> str:
268
+ messages = [
269
+ {"role": "system", "content": _SYSTEM_PROMPT},
270
+ {"role": "user", "content": question},
271
+ ]
272
+ text = self.tokenizer.apply_chat_template(
273
+ messages, tokenize=False, add_generation_prompt=True
274
+ )
275
+ ts_placeholder = "<|image_pad|>" * self.ts_pad_num
276
+ return text.replace("<ts>", ts_placeholder)
277
+
278
+ def _tokenize(self, text: str) -> List[int]:
279
+ result = self.tokenizer(
280
+ text, add_special_tokens=False, padding=False, truncation=False
281
+ )
282
+ return result["input_ids"]
283
+
284
+ def __getitem__(self, idx: int) -> Dict[str, Any]:
285
+ rec = self.records[idx]
286
+ source = rec.get("Source", "unknown")
287
+ thought = rec.get("Thought", "")
288
+ action_id = rec.get("ActionID", 0)
289
+
290
+ question = self._build_question(source)
291
+ answer = self._build_answer(thought, action_id)
292
+
293
+ query_ids = self._tokenize(question)
294
+ q_input_ids = self._tokenize(self._chat_text(question))
295
+ a_input_ids = self._tokenize(answer)
296
+
297
+ if self.include_answer:
298
+ input_ids = q_input_ids + a_input_ids
299
+ labels = [self.pad_id] * len(q_input_ids) + a_input_ids
300
+
301
+ # Causal LM shift (Dataset already aligns: input = x[:-1], label = x[1:])
302
+ final_input_ids = input_ids[:-1]
303
+ final_labels = labels[1:]
304
+ else:
305
+ # Generation must receive only the prompt. Including a_input_ids here
306
+ # leaks the reference Thought and ActionID into evaluation.
307
+ final_input_ids = q_input_ids
308
+ final_labels = [self.pad_id] * len(q_input_ids)
309
+
310
+ ts_values = _pad_sequence(rec["Observation"], self.input_len)
311
+
312
+ return {
313
+ "form": "open",
314
+ "stage": 1,
315
+ "query_ids": query_ids,
316
+ "input_ids": final_input_ids,
317
+ "labels": final_labels,
318
+ "ts_values": ts_values,
319
+ "index": rec["idx"],
320
+ # kept for eval only
321
+ "gt_action_id": rec.get("ActionID", 0),
322
+ "gt_thought": thought,
323
+ }
324
+
325
+
326
+ # ── Collator ───────────────────────────────────────────────────────────────
327
+
328
+ class RATsDataCollator:
329
+ def __init__(self, tokenizer):
330
+ self.tokenizer = tokenizer
331
+ self.tokenizer.padding_side = "left"
332
+
333
+ def __call__(self, features: List[Dict[str, Any]]) -> Dict[str, torch.Tensor]:
334
+ max_in = max(len(f["input_ids"]) for f in features)
335
+ max_lb = max(len(f["labels"]) for f in features)
336
+ max_qr = max(len(f["query_ids"]) for f in features)
337
+ pad_id = self.tokenizer.pad_token_id
338
+
339
+ input_ids, attn_masks, labels_out, query_ids_out = [], [], [], []
340
+ ts_values, stages, indices = [], [], []
341
+ gt_action_ids, gt_thoughts = [], []
342
+
343
+ for f in features:
344
+ in_len = len(f["input_ids"])
345
+ lb_len = len(f["labels"])
346
+ qr_len = len(f["query_ids"])
347
+
348
+ input_ids.append([pad_id] * (max_in - in_len) + f["input_ids"])
349
+ attn_masks.append([0] * (max_in - in_len) + [1] * in_len)
350
+ labels_out.append([pad_id] * (max_lb - lb_len) + f["labels"])
351
+ query_ids_out.append([pad_id] * (max_qr - qr_len) + f["query_ids"])
352
+ ts_values.append(f["ts_values"])
353
+ stages.append(f["stage"])
354
+ indices.append(f["index"])
355
+ gt_action_ids.append(f["gt_action_id"])
356
+ gt_thoughts.append(f["gt_thought"])
357
+
358
+ return {
359
+ "input_ids": torch.tensor(input_ids, dtype=torch.long),
360
+ "attention_mask": torch.tensor(attn_masks, dtype=torch.long),
361
+ "labels": torch.tensor(labels_out, dtype=torch.long),
362
+ "ts_values": torch.stack(ts_values, dim=0),
363
+ "stage": torch.tensor(stages, dtype=torch.int8),
364
+ "index": torch.tensor(indices, dtype=torch.int32),
365
+ "query_ids": torch.tensor(query_ids_out, dtype=torch.long),
366
+ "gt_action_id": torch.tensor(gt_action_ids, dtype=torch.long),
367
+ "gt_thought": gt_thoughts,
368
+ }
dataset/tsqa_dataset.py ADDED
@@ -0,0 +1,440 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Time-MQA TSQA dataset adapter for the native ITFormer implementation."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import json
8
+ import re
9
+ from collections import defaultdict
10
+ from pathlib import Path
11
+ from typing import Any, Dict, List
12
+
13
+ import numpy as np
14
+ import torch
15
+ from torch.utils.data import Dataset
16
+ from transformers import AutoTokenizer
17
+
18
+
19
+ SYSTEM_PROMPT = "You are a helpful assistant for time-series question answering."
20
+ SOURCE_ORDER = ("anomaly_detection", "classification", "forecasting", "open_ended")
21
+ NUMBER_LIST_RE = re.compile(r"\[([^\[\]]+)\]")
22
+
23
+
24
+ def _looks_like_number_list(text: str) -> int:
25
+ parts = [part.strip() for part in text.split(",")]
26
+ if not parts:
27
+ return 0
28
+ count = 0
29
+ for part in parts:
30
+ try:
31
+ float(part)
32
+ count += 1
33
+ except ValueError:
34
+ return 0
35
+ return count
36
+
37
+
38
+ def replace_numeric_series(question: str, expected_length: int) -> str:
39
+ """Replace the most likely embedded raw series with the ITFormer <ts> token."""
40
+ matches = []
41
+ for match in NUMBER_LIST_RE.finditer(question):
42
+ count = _looks_like_number_list(match.group(1))
43
+ if count:
44
+ matches.append((count, match))
45
+
46
+ if matches:
47
+ count, match = max(matches, key=lambda item: item[0])
48
+ minimum = max(2, int(expected_length * 0.5))
49
+ if count >= minimum:
50
+ question = question[: match.start()] + "<ts>" + question[match.end() :]
51
+
52
+ if "<ts>" not in question:
53
+ question = f"Given the time series <ts>, {question}"
54
+ return question
55
+
56
+
57
+ def resample_series(values: List[float], input_len: int) -> torch.Tensor:
58
+ """Convert a variable-length univariate series to normalized [input_len, 1]."""
59
+ array = np.asarray(values, dtype=np.float32).reshape(-1)
60
+ if array.size == 0:
61
+ array = np.zeros(1, dtype=np.float32)
62
+
63
+ finite = np.isfinite(array)
64
+ fill_value = float(np.median(array[finite])) if finite.any() else 0.0
65
+ array = np.nan_to_num(array, nan=fill_value, posinf=fill_value, neginf=fill_value)
66
+
67
+ mean = float(array.mean())
68
+ std = float(array.std())
69
+ if std < 1e-6:
70
+ std = 1.0
71
+ array = (array - mean) / std
72
+
73
+ if array.size == 1:
74
+ resized = np.full(input_len, array[0], dtype=np.float32)
75
+ elif array.size != input_len:
76
+ old_grid = np.linspace(0.0, 1.0, num=array.size, dtype=np.float32)
77
+ new_grid = np.linspace(0.0, 1.0, num=input_len, dtype=np.float32)
78
+ resized = np.interp(new_grid, old_grid, array).astype(np.float32)
79
+ else:
80
+ resized = array.astype(np.float32, copy=False)
81
+
82
+ return torch.from_numpy(resized).unsqueeze(-1)
83
+
84
+
85
+ def series_scale_metadata(values: List[float]) -> str:
86
+ """Expose scale discarded by z-normalization without repeating the series."""
87
+ array = np.asarray(values, dtype=np.float64).reshape(-1)
88
+ finite = array[np.isfinite(array)]
89
+ if finite.size == 0:
90
+ return ""
91
+
92
+ stats = {
93
+ "length": int(finite.size),
94
+ "mean": float(finite.mean()),
95
+ "standard_deviation": float(finite.std()),
96
+ "minimum": float(finite.min()),
97
+ "maximum": float(finite.max()),
98
+ "first": float(finite[0]),
99
+ "last": float(finite[-1]),
100
+ }
101
+ formatted = ", ".join(
102
+ f"{name}={value:.10g}" if isinstance(value, float) else f"{name}={value}"
103
+ for name, value in stats.items()
104
+ )
105
+ return (
106
+ "\nThe time-series encoder input is z-normalized. Original-scale metadata: "
107
+ f"{formatted}. Use the original scale for numeric answers."
108
+ )
109
+
110
+
111
+ def stage_for_record(record: Dict[str, Any]) -> int:
112
+ source = str(record.get("source_type") or "")
113
+ question_format = str(record.get("question_format") or "")
114
+ if source in {"anomaly_detection", "classification"}:
115
+ return 2
116
+ if source == "forecasting":
117
+ return 4
118
+ if question_format in {"multiple_choice", "true_false"}:
119
+ return 2
120
+ return 1
121
+
122
+
123
+ def form_for_record(record: Dict[str, Any]) -> str:
124
+ source = str(record.get("source_type") or "")
125
+ question_format = str(record.get("question_format") or "")
126
+ if source in {"anomaly_detection", "classification"}:
127
+ return "close"
128
+ if question_format in {"multiple_choice", "true_false"}:
129
+ return "close"
130
+ return "open"
131
+
132
+
133
+ def balanced_limit(records: List[Dict[str, Any]], max_samples: int) -> List[Dict[str, Any]]:
134
+ if max_samples <= 0 or len(records) <= max_samples:
135
+ return records
136
+
137
+ grouped: Dict[str, List[Dict[str, Any]]] = defaultdict(list)
138
+ for record in records:
139
+ grouped[str(record.get("source_type") or "unknown")].append(record)
140
+
141
+ names = [name for name in SOURCE_ORDER if grouped.get(name)]
142
+ names.extend(sorted(name for name in grouped if name not in names))
143
+ selected = []
144
+ offsets = defaultdict(int)
145
+ while len(selected) < max_samples:
146
+ added = False
147
+ for name in names:
148
+ offset = offsets[name]
149
+ if offset < len(grouped[name]):
150
+ selected.append(grouped[name][offset])
151
+ offsets[name] += 1
152
+ added = True
153
+ if len(selected) == max_samples:
154
+ break
155
+ if not added:
156
+ break
157
+ return selected
158
+
159
+
160
+ class ITFormerTSQADataset(Dataset):
161
+ def __init__(
162
+ self,
163
+ jsonl_path: str,
164
+ tokenizer,
165
+ prefix_num: int = 25,
166
+ input_len: int = 600,
167
+ max_samples: int = 0,
168
+ include_answer: bool = True,
169
+ max_seq_length: int = 0,
170
+ ):
171
+ path = Path(jsonl_path)
172
+ if not path.is_file():
173
+ raise FileNotFoundError(f"TSQA JSONL not found: {path}")
174
+
175
+ records = []
176
+ with path.open(encoding="utf-8") as handle:
177
+ for line_number, line in enumerate(handle):
178
+ record = json.loads(line)
179
+ if not str(record.get("question") or "").strip():
180
+ continue
181
+ if not str(record.get("answer") or "").strip():
182
+ continue
183
+ record["_line_number"] = line_number
184
+ records.append(record)
185
+
186
+ self.tokenizer = tokenizer
187
+ self.processor = tokenizer
188
+ self.prefix_num = prefix_num
189
+ self.input_len = input_len
190
+ self.include_answer = include_answer
191
+ self.max_seq_length = max_seq_length
192
+ self.pad_id = tokenizer.pad_token_id
193
+ self.eos = tokenizer.eos_token or ""
194
+ self.skipped_overlength = []
195
+
196
+ if include_answer and max_seq_length > 0:
197
+ records = self._filter_overlength_records(records, max_seq_length)
198
+ self.records = balanced_limit(records, max_samples)
199
+
200
+ def __len__(self) -> int:
201
+ return len(self.records)
202
+
203
+ def _tokenize(self, text: str) -> List[int]:
204
+ return self.tokenizer(
205
+ text,
206
+ add_special_tokens=False,
207
+ padding=False,
208
+ truncation=False,
209
+ )["input_ids"]
210
+
211
+ def _question(self, record: Dict[str, Any]) -> str:
212
+ series = record.get("time_series") or []
213
+ question = replace_numeric_series(str(record["question"]), len(series))
214
+ return question + series_scale_metadata(series)
215
+
216
+ def _chat_text(self, question: str) -> str:
217
+ messages = [
218
+ {"role": "system", "content": SYSTEM_PROMPT},
219
+ {"role": "user", "content": question},
220
+ ]
221
+ text = self.tokenizer.apply_chat_template(
222
+ messages,
223
+ tokenize=False,
224
+ add_generation_prompt=True,
225
+ )
226
+ return text.replace("<ts>", "<|image_pad|>" * self.prefix_num)
227
+
228
+ def _filter_overlength_records(
229
+ self,
230
+ records: List[Dict[str, Any]],
231
+ max_seq_length: int,
232
+ batch_size: int = 128,
233
+ ) -> List[Dict[str, Any]]:
234
+ kept = []
235
+ for start in range(0, len(records), batch_size):
236
+ batch = records[start : start + batch_size]
237
+ questions = [self._question(record) for record in batch]
238
+ prompts = [self._chat_text(question) for question in questions]
239
+ answers = []
240
+ for record in batch:
241
+ answer = str(record["answer"]).strip()
242
+ if self.eos and not answer.endswith(self.eos):
243
+ answer += self.eos
244
+ answers.append(answer)
245
+
246
+ query_ids = self.tokenizer(
247
+ questions,
248
+ add_special_tokens=False,
249
+ padding=False,
250
+ truncation=False,
251
+ )["input_ids"]
252
+ prompt_ids = self.tokenizer(
253
+ prompts,
254
+ add_special_tokens=False,
255
+ padding=False,
256
+ truncation=False,
257
+ )["input_ids"]
258
+ answer_ids = self.tokenizer(
259
+ answers,
260
+ add_special_tokens=False,
261
+ padding=False,
262
+ truncation=False,
263
+ )["input_ids"]
264
+
265
+ for record, query, prompt, answer in zip(
266
+ batch, query_ids, prompt_ids, answer_ids
267
+ ):
268
+ input_tokens = max(0, len(prompt) + len(answer) - 1)
269
+ instruction_tokens = len(query) + self.prefix_num
270
+ if max(input_tokens, instruction_tokens) <= max_seq_length:
271
+ kept.append(record)
272
+ continue
273
+ self.skipped_overlength.append(
274
+ {
275
+ "id": str(record.get("id") or record["_line_number"]),
276
+ "line_number": int(record["_line_number"]),
277
+ "source_type": str(record.get("source_type") or ""),
278
+ "input_tokens": input_tokens,
279
+ "instruction_tokens": instruction_tokens,
280
+ "max_seq_length": max_seq_length,
281
+ }
282
+ )
283
+ return kept
284
+
285
+ def __getitem__(self, index: int) -> Dict[str, Any]:
286
+ record = self.records[index]
287
+ question = self._question(record)
288
+ answer = str(record["answer"]).strip()
289
+ if self.eos and not answer.endswith(self.eos):
290
+ answer += self.eos
291
+
292
+ query_ids = self._tokenize(question)
293
+ prompt_ids = self._tokenize(self._chat_text(question))
294
+ answer_ids = self._tokenize(answer)
295
+ image_pad_id = self.tokenizer.convert_tokens_to_ids("<|image_pad|>")
296
+ pad_count = prompt_ids.count(image_pad_id)
297
+ if pad_count != self.prefix_num:
298
+ raise ValueError(
299
+ f"Record {record.get('id', index)} produced {pad_count} time-token "
300
+ f"positions; expected exactly {self.prefix_num}."
301
+ )
302
+
303
+ if self.include_answer:
304
+ combined = prompt_ids + answer_ids
305
+ labels = [self.pad_id] * len(prompt_ids) + answer_ids
306
+ input_ids = combined[:-1]
307
+ labels = labels[1:]
308
+ else:
309
+ input_ids = prompt_ids
310
+ labels = [self.pad_id] * len(prompt_ids)
311
+
312
+ return {
313
+ "input_ids": input_ids,
314
+ "attention_mask": [1] * len(input_ids),
315
+ "labels": labels,
316
+ "query_ids": query_ids,
317
+ "ts_values": resample_series(record.get("time_series") or [], self.input_len),
318
+ "stage": stage_for_record(record),
319
+ "index": index,
320
+ "id": str(record.get("id") or index),
321
+ "figure_path": str(record.get("figure_path") or ""),
322
+ "application_domain": str(record.get("application_domain") or ""),
323
+ "task_type": str(record.get("task_type") or ""),
324
+ "source_type": str(record.get("source_type") or ""),
325
+ "question_format": str(record.get("question_format") or ""),
326
+ "question": str(record["question"]),
327
+ "answer": str(record["answer"]),
328
+ "form": form_for_record(record),
329
+ }
330
+
331
+
332
+ class ITFormerTSQACollator:
333
+ def __init__(self, tokenizer):
334
+ self.tokenizer = tokenizer
335
+ self.tokenizer.padding_side = "left"
336
+
337
+ def __call__(self, features: List[Dict[str, Any]]) -> Dict[str, Any]:
338
+ pad_id = self.tokenizer.pad_token_id
339
+ max_input = max(len(item["input_ids"]) for item in features)
340
+ max_label = max(len(item["labels"]) for item in features)
341
+ max_query = max(len(item["query_ids"]) for item in features)
342
+
343
+ def left_pad(values: List[int], length: int, fill: int) -> List[int]:
344
+ return [fill] * (length - len(values)) + values
345
+
346
+ batch: Dict[str, Any] = {
347
+ "input_ids": torch.tensor(
348
+ [left_pad(item["input_ids"], max_input, pad_id) for item in features],
349
+ dtype=torch.long,
350
+ ),
351
+ "attention_mask": torch.tensor(
352
+ [left_pad(item["attention_mask"], max_input, 0) for item in features],
353
+ dtype=torch.long,
354
+ ),
355
+ "labels": torch.tensor(
356
+ [left_pad(item["labels"], max_label, pad_id) for item in features],
357
+ dtype=torch.long,
358
+ ),
359
+ "query_ids": torch.tensor(
360
+ [left_pad(item["query_ids"], max_query, pad_id) for item in features],
361
+ dtype=torch.long,
362
+ ),
363
+ "ts_values": torch.stack([item["ts_values"] for item in features]),
364
+ "stage": torch.tensor([item["stage"] for item in features], dtype=torch.int8),
365
+ "index": torch.tensor([item["index"] for item in features], dtype=torch.int32),
366
+ }
367
+ for key in (
368
+ "id",
369
+ "figure_path",
370
+ "application_domain",
371
+ "task_type",
372
+ "source_type",
373
+ "question_format",
374
+ "question",
375
+ "answer",
376
+ "form",
377
+ ):
378
+ batch[key] = [item[key] for item in features]
379
+ return batch
380
+
381
+
382
+ def data_check(args) -> None:
383
+ tokenizer = AutoTokenizer.from_pretrained(args.model_path)
384
+ tokenizer.padding_side = "left"
385
+ if tokenizer.pad_token is None:
386
+ tokenizer.pad_token = tokenizer.eos_token
387
+ if "<|image_pad|>" not in tokenizer.get_vocab():
388
+ tokenizer.add_tokens(["<|image_pad|>"])
389
+
390
+ for path in (args.train_path, args.eval_path):
391
+ dataset = ITFormerTSQADataset(
392
+ path,
393
+ tokenizer,
394
+ prefix_num=args.prefix_num,
395
+ input_len=args.input_len,
396
+ max_samples=args.samples,
397
+ include_answer=True,
398
+ )
399
+ if not dataset:
400
+ raise RuntimeError(f"No usable records in {path}")
401
+ batch = ITFormerTSQACollator(tokenizer)(
402
+ [dataset[index] for index in range(min(len(dataset), args.samples))]
403
+ )
404
+ source_counts = defaultdict(int)
405
+ for record in dataset.records:
406
+ source_counts[str(record.get("source_type") or "unknown")] += 1
407
+ print(
408
+ json.dumps(
409
+ {
410
+ "path": path,
411
+ "samples": len(dataset),
412
+ "source_counts": dict(source_counts),
413
+ "input_ids": list(batch["input_ids"].shape),
414
+ "query_ids": list(batch["query_ids"].shape),
415
+ "ts_values": list(batch["ts_values"].shape),
416
+ "finite_ts": bool(torch.isfinite(batch["ts_values"]).all()),
417
+ "prefix_num": args.prefix_num,
418
+ "input_len": args.input_len,
419
+ },
420
+ ensure_ascii=False,
421
+ )
422
+ )
423
+
424
+
425
+ def main() -> None:
426
+ parser = argparse.ArgumentParser(description="Validate the ITFormer TSQA data adapter.")
427
+ parser.add_argument("--train_path", required=True)
428
+ parser.add_argument("--eval_path", required=True)
429
+ parser.add_argument("--model_path", required=True)
430
+ parser.add_argument("--prefix_num", type=int, default=25)
431
+ parser.add_argument("--input_len", type=int, default=600)
432
+ parser.add_argument("--samples", type=int, default=8)
433
+ args = parser.parse_args()
434
+ if args.samples < 1 or args.input_len < 1 or args.prefix_num < 1:
435
+ raise ValueError("samples, input_len, and prefix_num must be positive")
436
+ data_check(args)
437
+
438
+
439
+ if __name__ == "__main__":
440
+ main()
inference_results/infer_metrics.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "stage1_BLEU": 0.13014072149413589,
3
+ "stage1_rouge1": 0.39644000247174743,
4
+ "stage1_rouge2": 0.1987773694070821,
5
+ "stage1_rougeL": 0.3430920813111804,
6
+ "stage3_precision": 0.9970449172576832,
7
+ "stage3_recall": 0.9970449172576832,
8
+ "stage3_f1": 0.9970449172576832,
9
+ "stage3_exact_match_accuracy": 0.9970449172576832
10
+ }
inference_results/inference_results_infer_20260413_183049.json ADDED
The diff for this file is too large to render. See raw diff
 
inference_results_rats40k_ckpt2838_20260609_184233/metrics_20260610_011207.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "num_samples": 6034,
3
+ "num_valid": 5482,
4
+ "num_invalid": 552,
5
+ "valid_rate": 0.9085183957573749,
6
+ "binary_accuracy": 0.7530659595624792,
7
+ "binary_precision_macro": 0.7233743738589018,
8
+ "binary_recall_macro": 0.571625503807581,
9
+ "binary_f1_macro": 0.6219595713958864,
10
+ "type_accuracy": 0.12744448127278754,
11
+ "type_precision_macro": 0.10075000465048053,
12
+ "type_recall_macro": 0.12802145546122815,
13
+ "type_f1_macro": 0.07155650275645399,
14
+ "thought_rouge_l": 0.20876195134635608,
15
+ "thought_bleu": 0.03356155811337113
16
+ }
inference_results_rats40k_ckpt2838_20260609_184233/predictions_20260610_011207.json ADDED
The diff for this file is too large to render. See raw diff
 
logs/compare_adapters_4gpu_20260605_152848.log ADDED
The diff for this file is too large to render. See raw diff
 
logs/compare_itformer_20260605_152848.log ADDED
The diff for this file is too large to render. See raw diff
 
logs/compare_qformer_20260605_152848.log ADDED
The diff for this file is too large to render. See raw diff
 
logs/full_train_itformer_flash_attn_4gpu_20260608_112358.log ADDED
@@ -0,0 +1,828 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
  0%| | 0/2116 [00:00<?, ?it/s]Casting fp32 inputs back to torch.bfloat16 for flash-attn compatibility.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Log file: logs/full_train_itformer_flash_attn_4gpu_20260608_112358.log
2
+ Project dir: /mnt/share01/sqk/ITFormer
3
+ Run id: 20260608_112358
4
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
5
+ Accelerate config: accelerate_config.yaml
6
+ Python: /dev/shm/suiqk/conda_envs/scalerag-ts-v4/bin/python
7
+ Accelerate: /dev/shm/suiqk/conda_envs/scalerag-ts-v4/bin/accelerate
8
+ RUN_STAGE_A: false
9
+ TS encoder checkpoint: save/pretrain/model.safetensors
10
+ Adapter type: itformer
11
+ LLM attention implementation: flash_attention_2
12
+ torch: 2.6.0+cu124
13
+ transformers: 4.54.1
14
+ accelerate: 0.34.2
15
+ cuda available: True
16
+ cuda device count: 4
17
+ flash_attn installed: True
18
+ Stage B: supervised fine-tuning
19
+ ⚙️ Running in WANDB offline mode⚙️ Running in WANDB offline mode
20
+
21
+ ⚙️ Running in WANDB offline mode
22
+ ⚙️ Running in WANDB offline mode
23
+ Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
24
+ Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
25
+ Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
26
+ loading file vocab.json
27
+ loading file merges.txt
28
+ loading file tokenizer.json
29
+ loading file added_tokens.json
30
+ loading file special_tokens_map.json
31
+ loading file tokenizer_config.json
32
+ loading file chat_template.jinja
33
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
34
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-3b-instruct/config.json
35
+ Model config Qwen2Config {
36
+ "architectures": [
37
+ "Qwen2ForCausalLM"
38
+ ],
39
+ "attention_dropout": 0.0,
40
+ "bos_token_id": 151643,
41
+ "eos_token_id": 151645,
42
+ "hidden_act": "silu",
43
+ "hidden_size": 2048,
44
+ "initializer_range": 0.02,
45
+ "intermediate_size": 11008,
46
+ "layer_types": [
47
+ "full_attention",
48
+ "full_attention",
49
+ "full_attention",
50
+ "full_attention",
51
+ "full_attention",
52
+ "full_attention",
53
+ "full_attention",
54
+ "full_attention",
55
+ "full_attention",
56
+ "full_attention",
57
+ "full_attention",
58
+ "full_attention",
59
+ "full_attention",
60
+ "full_attention",
61
+ "full_attention",
62
+ "full_attention",
63
+ "full_attention",
64
+ "full_attention",
65
+ "full_attention",
66
+ "full_attention",
67
+ "full_attention",
68
+ "full_attention",
69
+ "full_attention",
70
+ "full_attention",
71
+ "full_attention",
72
+ "full_attention",
73
+ "full_attention",
74
+ "full_attention",
75
+ "full_attention",
76
+ "full_attention",
77
+ "full_attention",
78
+ "full_attention",
79
+ "full_attention",
80
+ "full_attention",
81
+ "full_attention",
82
+ "full_attention"
83
+ ],
84
+ "max_position_embeddings": 32768,
85
+ "max_window_layers": 70,
86
+ "model_type": "qwen2",
87
+ "num_attention_heads": 16,
88
+ "num_hidden_layers": 36,
89
+ "num_key_value_heads": 2,
90
+ "rms_norm_eps": 1e-06,
91
+ "rope_scaling": null,
92
+ "rope_theta": 1000000.0,
93
+ "sliding_window": null,
94
+ "tie_word_embeddings": true,
95
+ "torch_dtype": "bfloat16",
96
+ "transformers_version": "4.54.1",
97
+ "use_cache": true,
98
+ "use_sliding_window": false,
99
+ "vocab_size": 151936
100
+ }
101
+
102
+ loading file vocab.json
103
+ loading file merges.txt
104
+ loading file tokenizer.json
105
+ loading file added_tokens.json
106
+ loading file special_tokens_map.json
107
+ loading file tokenizer_config.json
108
+ loading file chat_template.jinja
109
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
110
+ 📊 Vocab size: 151665
111
+ 🔍 Validating special tokens:
112
+ ✅ pad_token_id = 151643
113
+ ✅ eos_token_id = 151645
114
+ 🎲 Shuffling dataset: dataset/datasets/train_qa.jsonl
115
+ 📊 Vocab size: 151665
116
+ 🔍 Validating special tokens:
117
+ ✅ pad_token_id = 151643
118
+ ✅ eos_token_id = 151645
119
+ swanlab is not installed; training will run without swanlab logging.
120
+ Generate config GenerationConfig {}
121
+
122
+ ⚡ LLM attention implementation: flash_attention_2
123
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-3b-instruct/config.json
124
+ Model config Qwen2Config {
125
+ "architectures": [
126
+ "Qwen2ForCausalLM"
127
+ ],
128
+ "attention_dropout": 0.0,
129
+ "bos_token_id": 151643,
130
+ "eos_token_id": 151645,
131
+ "hidden_act": "silu",
132
+ "hidden_size": 2048,
133
+ "initializer_range": 0.02,
134
+ "intermediate_size": 11008,
135
+ "layer_types": [
136
+ "full_attention",
137
+ "full_attention",
138
+ "full_attention",
139
+ "full_attention",
140
+ "full_attention",
141
+ "full_attention",
142
+ "full_attention",
143
+ "full_attention",
144
+ "full_attention",
145
+ "full_attention",
146
+ "full_attention",
147
+ "full_attention",
148
+ "full_attention",
149
+ "full_attention",
150
+ "full_attention",
151
+ "full_attention",
152
+ "full_attention",
153
+ "full_attention",
154
+ "full_attention",
155
+ "full_attention",
156
+ "full_attention",
157
+ "full_attention",
158
+ "full_attention",
159
+ "full_attention",
160
+ "full_attention",
161
+ "full_attention",
162
+ "full_attention",
163
+ "full_attention",
164
+ "full_attention",
165
+ "full_attention",
166
+ "full_attention",
167
+ "full_attention",
168
+ "full_attention",
169
+ "full_attention",
170
+ "full_attention",
171
+ "full_attention"
172
+ ],
173
+ "max_position_embeddings": 32768,
174
+ "max_window_layers": 70,
175
+ "model_type": "qwen2",
176
+ "num_attention_heads": 16,
177
+ "num_hidden_layers": 36,
178
+ "num_key_value_heads": 2,
179
+ "rms_norm_eps": 1e-06,
180
+ "rope_scaling": null,
181
+ "rope_theta": 1000000.0,
182
+ "sliding_window": null,
183
+ "tie_word_embeddings": true,
184
+ "torch_dtype": "bfloat16",
185
+ "transformers_version": "4.54.1",
186
+ "use_cache": true,
187
+ "use_sliding_window": false,
188
+ "vocab_size": 151936
189
+ }
190
+
191
+ loading weights file /mnt/share01/sqk/models/qwen2.5-3b-instruct/model.safetensors.index.json
192
+ Flash Attention 2 only supports torch.float16 and torch.bfloat16 dtypes, but the current dype in Qwen2ForCausalLM is torch.float32. You should run training or inference using Automatic Mixed-Precision via the `with torch.autocast(device_type='torch_device'):` decorator, or load the model with the `torch_dtype` argument. Example: `model = AutoModel.from_pretrained("openai/whisper-tiny", attn_implementation="flash_attention_2", torch_dtype=torch.float16)`
193
+ Generate config GenerationConfig {
194
+ "bos_token_id": 151643,
195
+ "eos_token_id": 151645
196
+ }
197
+
198
+ Flash Attention 2 only supports torch.float16 and torch.bfloat16 dtypes, but the current dype in Qwen2Model is torch.float32. You should run training or inference using Automatic Mixed-Precision via the `with torch.autocast(device_type='torch_device'):` decorator, or load the model with the `torch_dtype` argument. Example: `model = AutoModel.from_pretrained("openai/whisper-tiny", attn_implementation="flash_attention_2", torch_dtype=torch.float16)`
199
+
200
+ All model checkpoint weights were used when initializing Qwen2ForCausalLM.
201
+
202
+ All the weights of Qwen2ForCausalLM were initialized from the model checkpoint at /mnt/share01/sqk/models/qwen2.5-3b-instruct.
203
+ If your task is similar to the task the model of the checkpoint was trained on, you can already use Qwen2ForCausalLM for predictions without further training.
204
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-3b-instruct/generation_config.json
205
+ Generate config GenerationConfig {
206
+ "bos_token_id": 151643,
207
+ "do_sample": true,
208
+ "eos_token_id": [
209
+ 151645,
210
+ 151643
211
+ ],
212
+ "pad_token_id": 151643,
213
+ "repetition_penalty": 1.05,
214
+ "temperature": 0.7,
215
+ "top_k": 20,
216
+ "top_p": 0.8
217
+ }
218
+
219
+ loading file vocab.json
220
+ loading file merges.txt
221
+ loading file tokenizer.json
222
+ loading file added_tokens.json
223
+ loading file special_tokens_map.json
224
+ loading file tokenizer_config.json
225
+ loading file chat_template.jinja
226
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
227
+ ✅ Loaded LLM model from: /mnt/share01/sqk/models/qwen2.5-3b-instruct
228
+ 📥 Loading pre-trained TimeSeries Encoder from: save/pretrain/model.safetensors
229
+ ✅ TS Encoder weights loaded. Missing: 0, Unexpected: 0
230
+ 🔌 Using adapter: itformer
231
+
232
+ Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
233
+ Using auto half precision backend
234
+
235
+
236
+
237
+ ***** Running training *****
238
+ Num examples = 101,565
239
+ Num Epochs = 2
240
+ Instantaneous batch size per device = 2
241
+ Total train batch size (w. parallel, distributed & accumulation) = 96
242
+ Gradient Accumulation steps = 12
243
+ Total optimization steps = 2,116
244
+ Number of trainable parameters = 52,040,832
245
+
246
  0%| | 0/2116 [00:00<?, ?it/s]Casting fp32 inputs back to torch.bfloat16 for flash-attn compatibility.
247
+ [rank2]: Traceback (most recent call last):
248
+ [rank2]: File "/mnt/share01/sqk/ITFormer/train_sft.py", line 166, in <module>
249
+ [rank2]: Trainer.train(resume_from_checkpoint=False)
250
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2237, in train
251
+ [rank2]: return inner_training_loop(
252
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^
253
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2578, in _inner_training_loop
254
+ [rank2]: tr_loss_step = self.training_step(model, inputs, num_items_in_batch)
255
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
256
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 3792, in training_step
257
+ [rank2]: loss = self.compute_loss(model, inputs, num_items_in_batch=num_items_in_batch)
258
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
259
+ [rank2]: File "/mnt/share01/sqk/ITFormer/EXP/exp_instruct.py", line 380, in compute_loss
260
+ [rank2]: outputs = model(
261
+ [rank2]: ^^^^^^
262
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
263
+ [rank2]: return self._call_impl(*args, **kwargs)
264
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
265
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
266
+ [rank2]: return forward_call(*args, **kwargs)
267
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
268
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1643, in forward
269
+ [rank2]: else self._run_ddp_forward(*inputs, **kwargs)
270
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
271
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1459, in _run_ddp_forward
272
+ [rank2]: return self.module(*inputs, **kwargs) # type: ignore[index]
273
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
274
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
275
+ [rank2]: return self._call_impl(*args, **kwargs)
276
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
277
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
278
+ [rank2]: return forward_call(*args, **kwargs)
279
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
280
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 820, in forward
281
+ [rank2]: return model_forward(*args, **kwargs)
282
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
283
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 808, in __call__
284
+ [rank2]: return convert_to_fp32(self.model_forward(*args, **kwargs))
285
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
286
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/amp/autocast_mode.py", line 44, in decorate_autocast
287
+ [rank2]: return func(*args, **kwargs)
288
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^
289
+ [rank2]: File "/mnt/share01/sqk/ITFormer/models/TimeLanguageModel.py", line 390, in forward
290
+ [rank2]: outputs = self.llm_model(inputs_embeds=inputs_embeds, attention_mask=attention_mask,
291
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
292
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
293
+ [rank2]: return self._call_impl(*args, **kwargs)
294
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
295
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
296
+ [rank2]: return forward_call(*args, **kwargs)
297
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
298
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/utils/generic.py", line 961, in wrapper
299
+ [rank2]: output = func(self, *args, **kwargs)
300
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
301
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 450, in forward
302
+ [rank2]: outputs: BaseModelOutputWithPast = self.model(
303
+ [rank2]: ^^^^^^^^^^^
304
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
305
+ [rank2]: return self._call_impl(*args, **kwargs)
306
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
307
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
308
+ [rank2]: return forward_call(*args, **kwargs)
309
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
310
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/utils/generic.py", line 1069, in wrapper
311
+ [rank2]: outputs = func(self, *args, **kwargs)
312
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
313
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 379, in forward
314
+ [rank2]: hidden_states = decoder_layer(
315
+ [rank2]: ^^^^^^^^^^^^^^
316
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/modeling_layers.py", line 94, in __call__
317
+ [rank2]: return super().__call__(*args, **kwargs)
318
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
319
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
320
+ [rank2]: return self._call_impl(*args, **kwargs)
321
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
322
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
323
+ [rank2]: return forward_call(*args, **kwargs)
324
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
325
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 231, in forward
326
+ [rank2]: hidden_states, _ = self.self_attn(
327
+ [rank2]: ^^^^^^^^^^^^^^^
328
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
329
+ [rank2]: return self._call_impl(*args, **kwargs)
330
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
331
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
332
+ [rank2]: return forward_call(*args, **kwargs)
333
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
334
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 167, in forward
335
+ [rank2]: attn_output, attn_weights = attention_interface(
336
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^
337
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/integrations/flash_attention.py", line 64, in flash_attention_forward
338
+ [rank2]: attn_output = _flash_attention_forward(
339
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^
340
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/modeling_flash_attention_utils.py", line 406, in _flash_attention_forward
341
+ [rank2]: out_unpad = flash_varlen_fn(
342
+ [rank2]: ^^^^^^^^^^^^^^^^
343
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/flash_attn/flash_attn_interface.py", line 1412, in flash_attn_varlen_func
344
+ [rank2]: return FlashAttnVarlenFunc.apply(
345
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^
346
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/autograd/function.py", line 575, in apply
347
+ [rank2]: return super().apply(*args, **kwargs) # type: ignore[misc]
348
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
349
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/flash_attn/flash_attn_interface.py", line 901, in forward
350
+ [rank2]: out_padded, softmax_lse, S_dmask, rng_state = _wrapped_flash_attn_varlen_forward(
351
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
352
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_ops.py", line 1123, in __call__
353
+ [rank2]: return self._op(*args, **(kwargs or {}))
354
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
355
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/autograd.py", line 113, in autograd_impl
356
+ [rank2]: result = forward_no_grad(*args, Metadata(keyset, keyword_only_args))
357
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
358
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/autograd.py", line 40, in forward_no_grad
359
+ [rank2]: result = op.redispatch(keyset & _C._after_autograd_keyset, *args, **kwargs)
360
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
361
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_ops.py", line 728, in redispatch
362
+ [rank2]: return self._handle.redispatch_boxed(keyset, *args, **kwargs)
363
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
364
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/custom_ops.py", line 305, in backend_impl
365
+ [rank2]: result = self._backend_fns[device_type](*args, **kwargs)
366
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
367
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_compile.py", line 32, in inner
368
+ [rank2]: return disable_fn(*args, **kwargs)
369
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
370
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_dynamo/eval_frame.py", line 745, in _fn
371
+ [rank2]: return fn(*args, **kwargs)
372
+ [rank2]: ^^^^^^^^^^^^^^^^^^^
373
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/custom_ops.py", line 337, in wrapped_fn
374
+ [rank2]: return fn(*args, **kwargs)
375
+ [rank2]: ^^^^^^^^^^^^^^^^^^^
376
+ [rank2]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/flash_attn/flash_attn_interface.py", line 169, in _flash_attn_varlen_forward
377
+ [rank2]: out, softmax_lse, S_dmask, rng_state = flash_attn_gpu.varlen_fwd(
378
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^
379
+ [rank2]: RuntimeError: FlashAttention only supports Ampere GPUs or newer.
380
+ [rank0]: Traceback (most recent call last):
381
+ [rank0]: File "/mnt/share01/sqk/ITFormer/train_sft.py", line 166, in <module>
382
+ [rank0]: Trainer.train(resume_from_checkpoint=False)
383
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2237, in train
384
+ [rank0]: return inner_training_loop(
385
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^
386
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2578, in _inner_training_loop
387
+ [rank0]: tr_loss_step = self.training_step(model, inputs, num_items_in_batch)
388
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
389
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 3792, in training_step
390
+ [rank0]: loss = self.compute_loss(model, inputs, num_items_in_batch=num_items_in_batch)
391
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
392
+ [rank0]: File "/mnt/share01/sqk/ITFormer/EXP/exp_instruct.py", line 380, in compute_loss
393
+ [rank0]: outputs = model(
394
+ [rank0]: ^^^^^^
395
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
396
+ [rank0]: return self._call_impl(*args, **kwargs)
397
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
398
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
399
+ [rank0]: return forward_call(*args, **kwargs)
400
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
401
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1643, in forward
402
+ [rank0]: else self._run_ddp_forward(*inputs, **kwargs)
403
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
404
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1459, in _run_ddp_forward
405
+ [rank0]: return self.module(*inputs, **kwargs) # type: ignore[index]
406
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
407
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
408
+ [rank0]: return self._call_impl(*args, **kwargs)
409
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
410
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
411
+ [rank0]: return forward_call(*args, **kwargs)
412
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
413
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 820, in forward
414
+ [rank0]: return model_forward(*args, **kwargs)
415
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
416
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 808, in __call__
417
+ [rank0]: return convert_to_fp32(self.model_forward(*args, **kwargs))
418
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
419
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/amp/autocast_mode.py", line 44, in decorate_autocast
420
+ [rank0]: return func(*args, **kwargs)
421
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^
422
+ [rank0]: File "/mnt/share01/sqk/ITFormer/models/TimeLanguageModel.py", line 390, in forward
423
+ [rank0]: outputs = self.llm_model(inputs_embeds=inputs_embeds, attention_mask=attention_mask,
424
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
425
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
426
+ [rank0]: return self._call_impl(*args, **kwargs)
427
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
428
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
429
+ [rank0]: return forward_call(*args, **kwargs)
430
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
431
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/utils/generic.py", line 961, in wrapper
432
+ [rank0]: output = func(self, *args, **kwargs)
433
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
434
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 450, in forward
435
+ [rank0]: outputs: BaseModelOutputWithPast = self.model(
436
+ [rank0]: ^^^^^^^^^^^
437
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
438
+ [rank0]: return self._call_impl(*args, **kwargs)
439
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
440
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
441
+ [rank0]: return forward_call(*args, **kwargs)
442
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
443
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/utils/generic.py", line 1069, in wrapper
444
+ [rank0]: outputs = func(self, *args, **kwargs)
445
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
446
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 379, in forward
447
+ [rank0]: hidden_states = decoder_layer(
448
+ [rank0]: ^^^^^^^^^^^^^^
449
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/modeling_layers.py", line 94, in __call__
450
+ [rank0]: return super().__call__(*args, **kwargs)
451
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
452
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
453
+ [rank0]: return self._call_impl(*args, **kwargs)
454
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
455
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
456
+ [rank0]: return forward_call(*args, **kwargs)
457
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
458
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 231, in forward
459
+ [rank0]: hidden_states, _ = self.self_attn(
460
+ [rank0]: ^^^^^^^^^^^^^^^
461
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
462
+ [rank0]: return self._call_impl(*args, **kwargs)
463
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
464
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
465
+ [rank0]: return forward_call(*args, **kwargs)
466
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
467
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 167, in forward
468
+ [rank0]: attn_output, attn_weights = attention_interface(
469
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^
470
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/integrations/flash_attention.py", line 64, in flash_attention_forward
471
+ [rank0]: attn_output = _flash_attention_forward(
472
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^
473
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/modeling_flash_attention_utils.py", line 406, in _flash_attention_forward
474
+ [rank0]: out_unpad = flash_varlen_fn(
475
+ [rank0]: ^^^^^^^^^^^^^^^^
476
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/flash_attn/flash_attn_interface.py", line 1412, in flash_attn_varlen_func
477
+ [rank0]: return FlashAttnVarlenFunc.apply(
478
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^
479
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/autograd/function.py", line 575, in apply
480
+ [rank0]: return super().apply(*args, **kwargs) # type: ignore[misc]
481
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
482
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/flash_attn/flash_attn_interface.py", line 901, in forward
483
+ [rank0]: out_padded, softmax_lse, S_dmask, rng_state = _wrapped_flash_attn_varlen_forward(
484
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
485
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_ops.py", line 1123, in __call__
486
+ [rank0]: return self._op(*args, **(kwargs or {}))
487
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
488
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/autograd.py", line 113, in autograd_impl
489
+ [rank0]: result = forward_no_grad(*args, Metadata(keyset, keyword_only_args))
490
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
491
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/autograd.py", line 40, in forward_no_grad
492
+ [rank0]: result = op.redispatch(keyset & _C._after_autograd_keyset, *args, **kwargs)
493
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
494
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_ops.py", line 728, in redispatch
495
+ [rank0]: return self._handle.redispatch_boxed(keyset, *args, **kwargs)
496
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
497
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/custom_ops.py", line 305, in backend_impl
498
+ [rank0]: result = self._backend_fns[device_type](*args, **kwargs)
499
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
500
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_compile.py", line 32, in inner
501
+ [rank0]: return disable_fn(*args, **kwargs)
502
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
503
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_dynamo/eval_frame.py", line 745, in _fn
504
+ [rank0]: return fn(*args, **kwargs)
505
+ [rank0]: ^^^^^^^^^^^^^^^^^^^
506
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/custom_ops.py", line 337, in wrapped_fn
507
+ [rank0]: return fn(*args, **kwargs)
508
+ [rank0]: ^^^^^^^^^^^^^^^^^^^
509
+ [rank0]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/flash_attn/flash_attn_interface.py", line 169, in _flash_attn_varlen_forward
510
+ [rank0]: out, softmax_lse, S_dmask, rng_state = flash_attn_gpu.varlen_fwd(
511
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^
512
+ [rank0]: RuntimeError: FlashAttention only supports Ampere GPUs or newer.
513
+ [rank1]: Traceback (most recent call last):
514
+ [rank1]: File "/mnt/share01/sqk/ITFormer/train_sft.py", line 166, in <module>
515
+ [rank1]: Trainer.train(resume_from_checkpoint=False)
516
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2237, in train
517
+ [rank1]: return inner_training_loop(
518
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^
519
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2578, in _inner_training_loop
520
+ [rank1]: tr_loss_step = self.training_step(model, inputs, num_items_in_batch)
521
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
522
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 3792, in training_step
523
+ [rank1]: loss = self.compute_loss(model, inputs, num_items_in_batch=num_items_in_batch)
524
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
525
+ [rank1]: File "/mnt/share01/sqk/ITFormer/EXP/exp_instruct.py", line 380, in compute_loss
526
+ [rank1]: outputs = model(
527
+ [rank1]: ^^^^^^
528
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
529
+ [rank1]: return self._call_impl(*args, **kwargs)
530
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
531
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
532
+ [rank1]: return forward_call(*args, **kwargs)
533
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
534
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1643, in forward
535
+ [rank1]: else self._run_ddp_forward(*inputs, **kwargs)
536
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
537
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1459, in _run_ddp_forward
538
+ [rank1]: return self.module(*inputs, **kwargs) # type: ignore[index]
539
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
540
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
541
+ [rank1]: return self._call_impl(*args, **kwargs)
542
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
543
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
544
+ [rank1]: return forward_call(*args, **kwargs)
545
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
546
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 820, in forward
547
+ [rank1]: return model_forward(*args, **kwargs)
548
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
549
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 808, in __call__
550
+ [rank1]: return convert_to_fp32(self.model_forward(*args, **kwargs))
551
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
552
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/amp/autocast_mode.py", line 44, in decorate_autocast
553
+ [rank1]: return func(*args, **kwargs)
554
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^
555
+ [rank1]: File "/mnt/share01/sqk/ITFormer/models/TimeLanguageModel.py", line 390, in forward
556
+ [rank1]: outputs = self.llm_model(inputs_embeds=inputs_embeds, attention_mask=attention_mask,
557
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
558
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
559
+ [rank1]: return self._call_impl(*args, **kwargs)
560
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
561
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
562
+ [rank1]: return forward_call(*args, **kwargs)
563
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
564
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/utils/generic.py", line 961, in wrapper
565
+ [rank1]: output = func(self, *args, **kwargs)
566
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
567
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 450, in forward
568
+ [rank1]: outputs: BaseModelOutputWithPast = self.model(
569
+ [rank1]: ^^^^^^^^^^^
570
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
571
+ [rank1]: return self._call_impl(*args, **kwargs)
572
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
573
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
574
+ [rank1]: return forward_call(*args, **kwargs)
575
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
576
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/utils/generic.py", line 1069, in wrapper
577
+ [rank1]: outputs = func(self, *args, **kwargs)
578
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
579
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 379, in forward
580
+ [rank1]: hidden_states = decoder_layer(
581
+ [rank1]: ^^^^^^^^^^^^^^
582
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/modeling_layers.py", line 94, in __call__
583
+ [rank1]: return super().__call__(*args, **kwargs)
584
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
585
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
586
+ [rank1]: return self._call_impl(*args, **kwargs)
587
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
588
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
589
+ [rank1]: return forward_call(*args, **kwargs)
590
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
591
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 231, in forward
592
+ [rank1]: hidden_states, _ = self.self_attn(
593
+ [rank1]: ^^^^^^^^^^^^^^^
594
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
595
+ [rank1]: return self._call_impl(*args, **kwargs)
596
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
597
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
598
+ [rank1]: return forward_call(*args, **kwargs)
599
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
600
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 167, in forward
601
+ [rank1]: attn_output, attn_weights = attention_interface(
602
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^
603
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/integrations/flash_attention.py", line 64, in flash_attention_forward
604
+ [rank1]: attn_output = _flash_attention_forward(
605
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^
606
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/modeling_flash_attention_utils.py", line 406, in _flash_attention_forward
607
+ [rank1]: out_unpad = flash_varlen_fn(
608
+ [rank1]: ^^^^^^^^^^^^^^^^
609
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/flash_attn/flash_attn_interface.py", line 1412, in flash_attn_varlen_func
610
+ [rank1]: return FlashAttnVarlenFunc.apply(
611
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^
612
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/autograd/function.py", line 575, in apply
613
+ [rank1]: return super().apply(*args, **kwargs) # type: ignore[misc]
614
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
615
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/flash_attn/flash_attn_interface.py", line 901, in forward
616
+ [rank1]: out_padded, softmax_lse, S_dmask, rng_state = _wrapped_flash_attn_varlen_forward(
617
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
618
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_ops.py", line 1123, in __call__
619
+ [rank1]: return self._op(*args, **(kwargs or {}))
620
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
621
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/autograd.py", line 113, in autograd_impl
622
+ [rank1]: result = forward_no_grad(*args, Metadata(keyset, keyword_only_args))
623
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
624
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/autograd.py", line 40, in forward_no_grad
625
+ [rank1]: result = op.redispatch(keyset & _C._after_autograd_keyset, *args, **kwargs)
626
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
627
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_ops.py", line 728, in redispatch
628
+ [rank1]: return self._handle.redispatch_boxed(keyset, *args, **kwargs)
629
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
630
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/custom_ops.py", line 305, in backend_impl
631
+ [rank1]: result = self._backend_fns[device_type](*args, **kwargs)
632
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
633
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_compile.py", line 32, in inner
634
+ [rank1]: return disable_fn(*args, **kwargs)
635
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
636
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_dynamo/eval_frame.py", line 745, in _fn
637
+ [rank1]: return fn(*args, **kwargs)
638
+ [rank1]: ^^^^^^^^^^^^^^^^^^^
639
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/custom_ops.py", line 337, in wrapped_fn
640
+ [rank1]: return fn(*args, **kwargs)
641
+ [rank1]: ^^^^^^^^^^^^^^^^^^^
642
+ [rank1]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/flash_attn/flash_attn_interface.py", line 169, in _flash_attn_varlen_forward
643
+ [rank1]: out, softmax_lse, S_dmask, rng_state = flash_attn_gpu.varlen_fwd(
644
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^
645
+ [rank1]: RuntimeError: FlashAttention only supports Ampere GPUs or newer.
646
+ [rank3]: Traceback (most recent call last):
647
+ [rank3]: File "/mnt/share01/sqk/ITFormer/train_sft.py", line 166, in <module>
648
+ [rank3]: Trainer.train(resume_from_checkpoint=False)
649
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2237, in train
650
+ [rank3]: return inner_training_loop(
651
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^
652
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2578, in _inner_training_loop
653
+ [rank3]: tr_loss_step = self.training_step(model, inputs, num_items_in_batch)
654
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
655
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 3792, in training_step
656
+ [rank3]: loss = self.compute_loss(model, inputs, num_items_in_batch=num_items_in_batch)
657
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
658
+ [rank3]: File "/mnt/share01/sqk/ITFormer/EXP/exp_instruct.py", line 380, in compute_loss
659
+ [rank3]: outputs = model(
660
+ [rank3]: ^^^^^^
661
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
662
+ [rank3]: return self._call_impl(*args, **kwargs)
663
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
664
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
665
+ [rank3]: return forward_call(*args, **kwargs)
666
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
667
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1643, in forward
668
+ [rank3]: else self._run_ddp_forward(*inputs, **kwargs)
669
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
670
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1459, in _run_ddp_forward
671
+ [rank3]: return self.module(*inputs, **kwargs) # type: ignore[index]
672
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
673
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
674
+ [rank3]: return self._call_impl(*args, **kwargs)
675
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
676
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
677
+ [rank3]: return forward_call(*args, **kwargs)
678
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
679
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 820, in forward
680
+ [rank3]: return model_forward(*args, **kwargs)
681
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
682
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 808, in __call__
683
+ [rank3]: return convert_to_fp32(self.model_forward(*args, **kwargs))
684
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
685
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/amp/autocast_mode.py", line 44, in decorate_autocast
686
+ [rank3]: return func(*args, **kwargs)
687
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^
688
+ [rank3]: File "/mnt/share01/sqk/ITFormer/models/TimeLanguageModel.py", line 390, in forward
689
+ [rank3]: outputs = self.llm_model(inputs_embeds=inputs_embeds, attention_mask=attention_mask,
690
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
691
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
692
+ [rank3]: return self._call_impl(*args, **kwargs)
693
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
694
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
695
+ [rank3]: return forward_call(*args, **kwargs)
696
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
697
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/utils/generic.py", line 961, in wrapper
698
+ [rank3]: output = func(self, *args, **kwargs)
699
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
700
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 450, in forward
701
+ [rank3]: outputs: BaseModelOutputWithPast = self.model(
702
+ [rank3]: ^^^^^^^^^^^
703
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
704
+ [rank3]: return self._call_impl(*args, **kwargs)
705
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
706
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
707
+ [rank3]: return forward_call(*args, **kwargs)
708
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
709
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/utils/generic.py", line 1069, in wrapper
710
+ [rank3]: outputs = func(self, *args, **kwargs)
711
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
712
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 379, in forward
713
+ [rank3]: hidden_states = decoder_layer(
714
+ [rank3]: ^^^^^^^^^^^^^^
715
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/modeling_layers.py", line 94, in __call__
716
+ [rank3]: return super().__call__(*args, **kwargs)
717
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
718
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
719
+ [rank3]: return self._call_impl(*args, **kwargs)
720
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
721
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
722
+ [rank3]: return forward_call(*args, **kwargs)
723
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
724
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 231, in forward
725
+ [rank3]: hidden_states, _ = self.self_attn(
726
+ [rank3]: ^^^^^^^^^^^^^^^
727
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
728
+ [rank3]: return self._call_impl(*args, **kwargs)
729
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
730
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
731
+ [rank3]: return forward_call(*args, **kwargs)
732
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
733
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 167, in forward
734
+ [rank3]: attn_output, attn_weights = attention_interface(
735
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^
736
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/integrations/flash_attention.py", line 64, in flash_attention_forward
737
+ [rank3]: attn_output = _flash_attention_forward(
738
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^
739
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/modeling_flash_attention_utils.py", line 406, in _flash_attention_forward
740
+ [rank3]: out_unpad = flash_varlen_fn(
741
+ [rank3]: ^^^^^^^^^^^^^^^^
742
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/flash_attn/flash_attn_interface.py", line 1412, in flash_attn_varlen_func
743
+ [rank3]: return FlashAttnVarlenFunc.apply(
744
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^
745
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/autograd/function.py", line 575, in apply
746
+ [rank3]: return super().apply(*args, **kwargs) # type: ignore[misc]
747
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
748
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/flash_attn/flash_attn_interface.py", line 901, in forward
749
+ [rank3]: out_padded, softmax_lse, S_dmask, rng_state = _wrapped_flash_attn_varlen_forward(
750
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
751
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_ops.py", line 1123, in __call__
752
+ [rank3]: return self._op(*args, **(kwargs or {}))
753
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
754
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/autograd.py", line 113, in autograd_impl
755
+ [rank3]: result = forward_no_grad(*args, Metadata(keyset, keyword_only_args))
756
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
757
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/autograd.py", line 40, in forward_no_grad
758
+ [rank3]: result = op.redispatch(keyset & _C._after_autograd_keyset, *args, **kwargs)
759
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
760
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_ops.py", line 728, in redispatch
761
+ [rank3]: return self._handle.redispatch_boxed(keyset, *args, **kwargs)
762
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
763
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/custom_ops.py", line 305, in backend_impl
764
+ [rank3]: result = self._backend_fns[device_type](*args, **kwargs)
765
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
766
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_compile.py", line 32, in inner
767
+ [rank3]: return disable_fn(*args, **kwargs)
768
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
769
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_dynamo/eval_frame.py", line 745, in _fn
770
+ [rank3]: return fn(*args, **kwargs)
771
+ [rank3]: ^^^^^^^^^^^^^^^^^^^
772
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/_library/custom_ops.py", line 337, in wrapped_fn
773
+ [rank3]: return fn(*args, **kwargs)
774
+ [rank3]: ^^^^^^^^^^^^^^^^^^^
775
+ [rank3]: File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/flash_attn/flash_attn_interface.py", line 169, in _flash_attn_varlen_forward
776
+ [rank3]: out, softmax_lse, S_dmask, rng_state = flash_attn_gpu.varlen_fwd(
777
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^
778
+ [rank3]: RuntimeError: FlashAttention only supports Ampere GPUs or newer.
779
+ [rank0]:[W608 11:26:33.685161946 ProcessGroupNCCL.cpp:1496] Warning: WARNING: destroy_process_group() was not called before program exit, which can leak resources. For more info, please see https://pytorch.org/docs/stable/distributed.html#shutdown (function operator())
780
+ W0608 11:26:34.616000 2647669 site-packages/torch/distributed/elastic/multiprocessing/api.py:897] Sending process 2648210 closing signal SIGTERM
781
+ W0608 11:26:34.617000 2647669 site-packages/torch/distributed/elastic/multiprocessing/api.py:897] Sending process 2648211 closing signal SIGTERM
782
+ E0608 11:26:34.833000 2647669 site-packages/torch/distributed/elastic/multiprocessing/api.py:869] failed (exitcode: 1) local_rank: 0 (pid: 2648208) of binary: /dev/shm/suiqk/conda_envs/scalerag-ts-v4/bin/python
783
+ Traceback (most recent call last):
784
+ File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/bin/accelerate", line 6, in <module>
785
+ sys.exit(main())
786
+ ^^^^^^
787
+ File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/commands/accelerate_cli.py", line 48, in main
788
+ args.func(args)
789
+ File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/commands/launch.py", line 1165, in launch_command
790
+ multi_gpu_launcher(args)
791
+ File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/commands/launch.py", line 799, in multi_gpu_launcher
792
+ distrib_run.run(args)
793
+ File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/distributed/run.py", line 909, in run
794
+ elastic_launch(
795
+ File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 138, in __call__
796
+ return launch_agent(self._config, self._entrypoint, list(args))
797
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
798
+ File "/dev/shm/suiqk/conda_envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 269, in launch_agent
799
+ raise ChildFailedError(
800
+ torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
801
+ ============================================================
802
+ train_sft.py FAILED
803
+ ------------------------------------------------------------
804
+ Failures:
805
+ [1]:
806
+ time : 2026-06-08_11:26:34
807
+ host : simtech-gpuserver
808
+ rank : 1 (local_rank: 1)
809
+ exitcode : 1 (pid: 2648209)
810
+ error_file: <N/A>
811
+ traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
812
+ ------------------------------------------------------------
813
+ Root Cause (first observed failure):
814
+ [0]:
815
+ time : 2026-06-08_11:26:34
816
+ host : simtech-gpuserver
817
+ rank : 0 (local_rank: 0)
818
+ exitcode : 1 (pid: 2648208)
819
+ error_file: <N/A>
820
+ traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
821
+ ============================================================
822
+
823
+ ========== TRAINING FAILED ==========
824
+ Time: 2026-06-08 11:26:36
825
+ Exit code: 1
826
+ Line: 197
827
+ Command: "$ACCELERATE_BIN" launch --config_file "$ACCELERATE_CONFIG" train_sft.py --model TimeSeriesEncoder --d_model 512 --n_heads 8 --e_layers 4 --patch_len 60 --stride 60 --input_len 600 --it_d_model 896 --it_n_heads 8 --it_layers 2 --prefix_num 25 --adapter_type "$ADAPTER_TYPE" "${SFT_EXTRA_ARGS[@]}" --llm_model_path "$LLM_MODEL_PATH" --load_ts_encoder "$TS_ENCODER_CHECKPOINT" --output_dir "$SFT_OUTPUT_DIR" --per_device_train_batch_size "$SFT_BATCH_SIZE" --gradient_accumulation_steps "$SFT_GRADIENT_ACCUMULATION_STEPS" --bf16 --learning_rate "$SFT_LR" --num_train_epochs "$SFT_EPOCHS" --dataloader_num_workers 4 --logging_steps "$SFT_LOGGING_STEPS" --save_total_limit "$SFT_SAVE_TOTAL_LIMIT" --report_to swanlab
828
+ Log file: logs/full_train_itformer_flash_attn_4gpu_20260608_112358.log
829
+ =====================================
logs/full_train_qformer_2gpu_20260608_130215.log ADDED
@@ -0,0 +1,379 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
  0%| | 0/2116 [00:00<?, ?it/s]
1
  0%| | 1/2116 [00:05<3:31:11, 5.99s/it]
2
  0%| | 2/2116 [00:08<2:22:07, 4.03s/it]
3
  0%| | 3/2116 [00:11<1:56:04, 3.30s/it]
4
  0%| | 4/2116 [00:13<1:48:08, 3.07s/it]
5
  0%| | 5/2116 [00:16<1:39:38, 2.83s/it]
6
 
 
7
  0%| | 5/2116 [00:16<1:39:38, 2.83s/it]
8
  0%| | 6/2116 [00:18<1:38:09, 2.79s/it]
9
  0%| | 7/2116 [00:21<1:34:53, 2.70s/it]
10
  0%| | 8/2116 [00:23<1:30:46, 2.58s/it]
11
  0%| | 9/2116 [00:25<1:25:49, 2.44s/it]
12
  0%| | 10/2116 [00:28<1:26:09, 2.45s/it]
13
 
 
14
  0%| | 10/2116 [00:28<1:26:09, 2.45s/it]
15
  1%| | 11/2116 [00:30<1:25:20, 2.43s/it]
16
  1%| | 12/2116 [00:33<1:23:56, 2.39s/it]
17
  1%| | 13/2116 [00:35<1:24:17, 2.41s/it]
18
  1%| | 14/2116 [00:37<1:17:00, 2.20s/it]
19
  1%| | 15/2116 [00:39<1:14:33, 2.13s/it]
20
 
 
21
  1%| | 15/2116 [00:39<1:14:33, 2.13s/it]
22
  1%| | 16/2116 [00:41<1:14:10, 2.12s/it]
23
  1%| | 17/2116 [00:43<1:10:47, 2.02s/it]
24
  1%| | 18/2116 [00:45<1:10:13, 2.01s/it]
25
  1%| | 19/2116 [00:47<1:16:23, 2.19s/it]
26
  1%| | 20/2116 [00:49<1:14:37, 2.14s/it]
27
 
 
28
  1%| | 20/2116 [00:49<1:14:37, 2.14s/it]
29
  1%| | 21/2116 [00:52<1:17:25, 2.22s/it]
30
  1%| | 22/2116 [00:54<1:17:19, 2.22s/it]
31
  1%| | 23/2116 [00:56<1:16:28, 2.19s/it]
32
  1%| | 24/2116 [00:58<1:15:15, 2.16s/it]
33
  1%| | 25/2116 [01:00<1:17:42, 2.23s/it]
34
 
 
35
  1%| | 25/2116 [01:00<1:17:42, 2.23s/it]
36
  1%| | 26/2116 [01:03<1:16:17, 2.19s/it]
37
  1%|▏ | 27/2116 [01:05<1:18:04, 2.24s/it]
38
  1%|▏ | 28/2116 [01:07<1:19:15, 2.28s/it]
39
  1%|▏ | 29/2116 [01:10<1:23:30, 2.40s/it]
40
  1%|▏ | 30/2116 [01:12<1:18:20, 2.25s/it]
41
 
 
42
  1%|▏ | 30/2116 [01:12<1:18:20, 2.25s/it]
43
  1%|▏ | 31/2116 [01:14<1:18:26, 2.26s/it]
44
  2%|▏ | 32/2116 [01:16<1:16:20, 2.20s/it]
45
  2%|▏ | 33/2116 [01:19<1:18:02, 2.25s/it]
46
  2%|▏ | 34/2116 [01:21<1:16:41, 2.21s/it]
47
  2%|▏ | 35/2116 [01:23<1:21:02, 2.34s/it]
48
 
 
49
  2%|▏ | 35/2116 [01:23<1:21:02, 2.34s/it]
50
  2%|▏ | 36/2116 [01:26<1:22:55, 2.39s/it]
51
  2%|▏ | 37/2116 [01:28<1:20:57, 2.34s/it]
52
  2%|▏ | 38/2116 [01:30<1:16:59, 2.22s/it]
53
  2%|▏ | 39/2116 [01:32<1:14:42, 2.16s/it]
54
  2%|▏ | 40/2116 [01:34<1:18:23, 2.27s/it]
55
 
 
56
  2%|▏ | 40/2116 [01:34<1:18:23, 2.27s/it]
57
  2%|▏ | 41/2116 [01:37<1:18:57, 2.28s/it]
58
  2%|▏ | 42/2116 [01:39<1:18:52, 2.28s/it]
59
  2%|▏ | 43/2116 [01:41<1:19:20, 2.30s/it]
60
  2%|▏ | 44/2116 [01:44<1:22:20, 2.38s/it]
61
  2%|▏ | 45/2116 [01:46<1:20:26, 2.33s/it]
62
 
 
63
  2%|▏ | 45/2116 [01:46<1:20:26, 2.33s/it]
64
  2%|▏ | 46/2116 [01:48<1:18:27, 2.27s/it]
65
  2%|▏ | 47/2116 [01:51<1:19:09, 2.30s/it]
66
  2%|▏ | 48/2116 [01:53<1:21:43, 2.37s/it]
67
  2%|▏ | 49/2116 [01:56<1:20:59, 2.35s/it]
68
  2%|▏ | 50/2116 [01:58<1:21:53, 2.38s/it]
69
 
 
70
  2%|▏ | 50/2116 [01:58<1:21:53, 2.38s/it]
71
  2%|▏ | 51/2116 [02:00<1:21:23, 2.36s/it]
72
  2%|▏ | 52/2116 [02:03<1:23:23, 2.42s/it]
73
  3%|▎ | 53/2116 [02:05<1:22:01, 2.39s/it]
74
  3%|▎ | 54/2116 [02:08<1:22:17, 2.39s/it]
75
  3%|▎ | 55/2116 [02:10<1:24:44, 2.47s/it]
76
 
 
77
  3%|▎ | 55/2116 [02:10<1:24:44, 2.47s/it]
78
  3%|▎ | 56/2116 [02:13<1:23:43, 2.44s/it]
79
  3%|▎ | 57/2116 [02:15<1:24:41, 2.47s/it]
80
  3%|▎ | 58/2116 [02:17<1:23:25, 2.43s/it]
81
  3%|▎ | 59/2116 [02:20<1:19:47, 2.33s/it]
82
  3%|▎ | 60/2116 [02:22<1:18:23, 2.29s/it]
83
 
 
84
  3%|▎ | 60/2116 [02:22<1:18:23, 2.29s/it]
85
  3%|▎ | 61/2116 [02:24<1:21:23, 2.38s/it]
86
  3%|▎ | 62/2116 [02:27<1:23:07, 2.43s/it]
87
  3%|▎ | 63/2116 [02:29<1:20:46, 2.36s/it]
88
  3%|▎ | 64/2116 [02:32<1:23:11, 2.43s/it]
89
  3%|▎ | 65/2116 [02:34<1:24:20, 2.47s/it]
90
 
 
91
  3%|▎ | 65/2116 [02:34<1:24:20, 2.47s/it]
92
  3%|▎ | 66/2116 [02:36<1:21:31, 2.39s/it]
93
  3%|▎ | 67/2116 [02:39<1:19:44, 2.33s/it]
94
  3%|▎ | 68/2116 [02:41<1:18:43, 2.31s/it]
95
  3%|▎ | 69/2116 [02:43<1:19:24, 2.33s/it]
96
  3%|▎ | 70/2116 [02:45<1:18:02, 2.29s/it]
97
 
 
98
  3%|▎ | 70/2116 [02:45<1:18:02, 2.29s/it]
99
  3%|▎ | 71/2116 [02:48<1:18:08, 2.29s/it]
100
  3%|▎ | 72/2116 [02:50<1:17:44, 2.28s/it]
101
  3%|▎ | 73/2116 [02:52<1:17:10, 2.27s/it]
102
  3%|▎ | 74/2116 [02:55<1:18:32, 2.31s/it]
103
  4%|▎ | 75/2116 [02:57<1:19:41, 2.34s/it]
104
 
 
105
  4%|▎ | 75/2116 [02:57<1:19:41, 2.34s/it]
106
  4%|▎ | 76/2116 [02:59<1:16:57, 2.26s/it]
107
  4%|▎ | 77/2116 [03:01<1:13:21, 2.16s/it]
108
  4%|▎ | 78/2116 [03:03<1:12:30, 2.13s/it]
109
  4%|▎ | 79/2116 [03:05<1:13:30, 2.17s/it]
110
  4%|▍ | 80/2116 [03:08<1:15:53, 2.24s/it]
111
 
 
112
  4%|▍ | 80/2116 [03:08<1:15:53, 2.24s/it]
113
  4%|▍ | 81/2116 [03:10<1:20:04, 2.36s/it]
114
  4%|▍ | 82/2116 [03:12<1:14:30, 2.20s/it]
115
  4%|▍ | 83/2116 [03:15<1:18:08, 2.31s/it]
116
  4%|▍ | 84/2116 [03:17<1:17:15, 2.28s/it]
117
  4%|▍ | 85/2116 [03:19<1:18:46, 2.33s/it]
118
 
 
119
  4%|▍ | 85/2116 [03:19<1:18:46, 2.33s/it]
120
  4%|▍ | 86/2116 [03:22<1:22:56, 2.45s/it]
121
  4%|▍ | 87/2116 [03:25<1:25:30, 2.53s/it]
122
  4%|▍ | 88/2116 [03:27<1:24:33, 2.50s/it]
123
  4%|▍ | 89/2116 [03:30<1:22:43, 2.45s/it]
124
  4%|▍ | 90/2116 [03:32<1:25:24, 2.53s/it]
125
 
 
126
  4%|▍ | 90/2116 [03:32<1:25:24, 2.53s/it]
127
  4%|▍ | 91/2116 [03:35<1:27:03, 2.58s/it]
128
  4%|▍ | 92/2116 [03:37<1:22:01, 2.43s/it]
129
  4%|▍ | 93/2116 [03:40<1:22:22, 2.44s/it]
130
  4%|▍ | 94/2116 [03:42<1:19:48, 2.37s/it]
131
  4%|▍ | 95/2116 [03:44<1:14:21, 2.21s/it]
132
 
 
133
  4%|▍ | 95/2116 [03:44<1:14:21, 2.21s/it]
134
  5%|▍ | 96/2116 [03:46<1:18:25, 2.33s/it]
135
  5%|▍ | 97/2116 [03:49<1:21:50, 2.43s/it]
136
  5%|▍ | 98/2116 [03:51<1:21:46, 2.43s/it]
137
  5%|▍ | 99/2116 [03:54<1:18:46, 2.34s/it]
138
  5%|▍ | 100/2116 [03:56<1:19:02, 2.35s/it]
139
 
 
140
  5%|▍ | 100/2116 [03:56<1:19:02, 2.35s/it]
141
  5%|▍ | 101/2116 [03:58<1:17:59, 2.32s/it]
142
  5%|▍ | 102/2116 [04:00<1:16:26, 2.28s/it]
143
  5%|▍ | 103/2116 [04:03<1:16:10, 2.27s/it]
144
  5%|▍ | 104/2116 [04:05<1:16:20, 2.28s/it]
145
  5%|▍ | 105/2116 [04:07<1:18:02, 2.33s/it]
146
 
 
147
  5%|▍ | 105/2116 [04:07<1:18:02, 2.33s/it]
148
  5%|▌ | 106/2116 [04:10<1:16:21, 2.28s/it]
149
  5%|▌ | 107/2116 [04:12<1:17:09, 2.30s/it]
150
  5%|▌ | 108/2116 [04:14<1:17:58, 2.33s/it]
151
  5%|▌ | 109/2116 [04:16<1:15:59, 2.27s/it]
152
  5%|▌ | 110/2116 [04:19<1:17:14, 2.31s/it]
153
 
 
154
  5%|▌ | 110/2116 [04:19<1:17:14, 2.31s/it]
155
  5%|▌ | 111/2116 [04:21<1:17:57, 2.33s/it]
156
  5%|▌ | 112/2116 [04:24<1:20:33, 2.41s/it]
157
  5%|▌ | 113/2116 [04:26<1:18:58, 2.37s/it]
158
  5%|▌ | 114/2116 [04:28<1:18:35, 2.36s/it]
159
  5%|▌ | 115/2116 [04:31<1:16:41, 2.30s/it]
160
 
 
161
  5%|▌ | 115/2116 [04:31<1:16:41, 2.30s/it]
162
  5%|▌ | 116/2116 [04:33<1:17:30, 2.33s/it]
163
  6%|▌ | 117/2116 [04:36<1:22:04, 2.46s/it]
164
  6%|▌ | 118/2116 [04:38<1:22:27, 2.48s/it]
165
  6%|▌ | 119/2116 [04:40<1:17:47, 2.34s/it]
166
  6%|▌ | 120/2116 [04:42<1:16:14, 2.29s/it]
167
 
 
168
  6%|▌ | 120/2116 [04:42<1:16:14, 2.29s/it]
169
  6%|▌ | 121/2116 [04:45<1:15:01, 2.26s/it]
170
  6%|▌ | 122/2116 [04:47<1:15:44, 2.28s/it]
171
  6%|▌ | 123/2116 [04:49<1:16:57, 2.32s/it]
172
  6%|▌ | 124/2116 [04:51<1:15:10, 2.26s/it]
173
  6%|▌ | 125/2116 [04:54<1:15:55, 2.29s/it]
174
 
 
175
  6%|▌ | 125/2116 [04:54<1:15:55, 2.29s/it]
176
  6%|▌ | 126/2116 [04:56<1:15:59, 2.29s/it]
177
  6%|▌ | 127/2116 [04:58<1:16:36, 2.31s/it]
178
  6%|▌ | 128/2116 [05:01<1:16:29, 2.31s/it]
179
  6%|▌ | 129/2116 [05:03<1:19:48, 2.41s/it]
180
  6%|▌ | 130/2116 [05:05<1:16:24, 2.31s/it]
181
 
 
182
  6%|▌ | 130/2116 [05:05<1:16:24, 2.31s/it]
183
  6%|▌ | 131/2116 [05:08<1:15:46, 2.29s/it]
184
  6%|▌ | 132/2116 [05:10<1:11:17, 2.16s/it]
185
  6%|▋ | 133/2116 [05:12<1:12:54, 2.21s/it]
186
  6%|▋ | 134/2116 [05:14<1:12:47, 2.20s/it]
187
  6%|▋ | 135/2116 [05:17<1:15:05, 2.27s/it]
188
 
 
189
  6%|▋ | 135/2116 [05:17<1:15:05, 2.27s/it]
190
  6%|▋ | 136/2116 [05:19<1:14:25, 2.26s/it]
191
  6%|▋ | 137/2116 [05:21<1:13:12, 2.22s/it]
192
  7%|▋ | 138/2116 [05:23<1:11:24, 2.17s/it]
193
  7%|▋ | 139/2116 [05:25<1:13:28, 2.23s/it]
194
  7%|▋ | 140/2116 [05:27<1:11:29, 2.17s/it]
195
 
 
196
  7%|▋ | 140/2116 [05:27<1:11:29, 2.17s/it]
197
  7%|▋ | 141/2116 [05:30<1:12:34, 2.21s/it]
198
  7%|▋ | 142/2116 [05:32<1:13:16, 2.23s/it]
199
  7%|▋ | 143/2116 [05:34<1:13:48, 2.24s/it]
200
  7%|▋ | 144/2116 [05:36<1:12:23, 2.20s/it]
201
  7%|▋ | 145/2116 [05:38<1:11:13, 2.17s/it]
202
 
 
203
  7%|▋ | 145/2116 [05:38<1:11:13, 2.17s/it]
204
  7%|▋ | 146/2116 [05:41<1:14:58, 2.28s/it]
205
  7%|▋ | 147/2116 [05:44<1:18:47, 2.40s/it]
206
  7%|▋ | 148/2116 [05:46<1:17:09, 2.35s/it]
207
  7%|▋ | 149/2116 [05:48<1:14:31, 2.27s/it]
208
  7%|▋ | 150/2116 [05:51<1:17:42, 2.37s/it]
209
 
 
210
  7%|▋ | 150/2116 [05:51<1:17:42, 2.37s/it]
211
  7%|▋ | 151/2116 [05:53<1:14:53, 2.29s/it]
212
  7%|▋ | 152/2116 [05:55<1:14:20, 2.27s/it]
213
  7%|▋ | 153/2116 [05:57<1:11:26, 2.18s/it]
214
  7%|▋ | 154/2116 [05:59<1:12:37, 2.22s/it]
215
  7%|▋ | 155/2116 [06:01<1:12:49, 2.23s/it]
216
 
 
217
  7%|▋ | 155/2116 [06:01<1:12:49, 2.23s/it]
218
  7%|▋ | 156/2116 [06:04<1:13:54, 2.26s/it]
219
  7%|▋ | 157/2116 [06:06<1:16:28, 2.34s/it]
220
  7%|▋ | 158/2116 [06:08<1:14:47, 2.29s/it]
221
  8%|▊ | 159/2116 [06:11<1:14:09, 2.27s/it]
222
  8%|▊ | 160/2116 [06:13<1:16:07, 2.34s/it]
223
 
 
224
  8%|▊ | 160/2116 [06:13<1:16:07, 2.34s/it]
225
  8%|▊ | 161/2116 [06:15<1:13:17, 2.25s/it]
226
  8%|▊ | 162/2116 [06:18<1:17:25, 2.38s/it]
227
  8%|▊ | 163/2116 [06:21<1:21:04, 2.49s/it]
228
  8%|▊ | 164/2116 [06:23<1:24:14, 2.59s/it]
229
  8%|▊ | 165/2116 [06:26<1:21:11, 2.50s/it]
230
 
 
231
  8%|▊ | 165/2116 [06:26<1:21:11, 2.50s/it]
232
  8%|▊ | 166/2116 [06:28<1:19:32, 2.45s/it]
233
  8%|▊ | 167/2116 [06:30<1:17:18, 2.38s/it]
234
  8%|▊ | 168/2116 [06:33<1:15:46, 2.33s/it]
235
  8%|▊ | 169/2116 [06:35<1:15:05, 2.31s/it]
236
  8%|▊ | 170/2116 [06:37<1:14:41, 2.30s/it]
237
 
 
238
  8%|▊ | 170/2116 [06:37<1:14:41, 2.30s/it]
239
  8%|▊ | 171/2116 [06:39<1:14:14, 2.29s/it]
240
  8%|▊ | 172/2116 [06:42<1:15:34, 2.33s/it]
241
  8%|▊ | 173/2116 [06:45<1:20:21, 2.48s/it]
242
  8%|▊ | 174/2116 [06:47<1:21:01, 2.50s/it]
243
  8%|▊ | 175/2116 [06:49<1:16:28, 2.36s/it]
244
 
 
245
  8%|▊ | 175/2116 [06:49<1:16:28, 2.36s/it]
246
  8%|▊ | 176/2116 [06:51<1:13:26, 2.27s/it]
247
  8%|▊ | 177/2116 [06:53<1:11:47, 2.22s/it]
248
  8%|▊ | 178/2116 [06:56<1:15:27, 2.34s/it]
249
  8%|▊ | 179/2116 [06:58<1:14:04, 2.29s/it]
250
  9%|▊ | 180/2116 [07:00<1:12:57, 2.26s/it]
251
 
 
252
  9%|▊ | 180/2116 [07:00<1:12:57, 2.26s/it]
253
  9%|▊ | 181/2116 [07:03<1:14:27, 2.31s/it]
254
  9%|▊ | 182/2116 [07:05<1:12:11, 2.24s/it]
255
  9%|▊ | 183/2116 [07:07<1:14:15, 2.30s/it]
256
  9%|▊ | 184/2116 [07:09<1:11:00, 2.21s/it]
257
  9%|▊ | 185/2116 [07:12<1:12:20, 2.25s/it]
258
 
 
259
  9%|▊ | 185/2116 [07:12<1:12:20, 2.25s/it]
260
  9%|▉ | 186/2116 [07:13<1:08:17, 2.12s/it]
261
  9%|▉ | 187/2116 [07:16<1:10:15, 2.19s/it]
262
  9%|▉ | 188/2116 [07:18<1:12:54, 2.27s/it]
263
  9%|▉ | 189/2116 [07:21<1:15:23, 2.35s/it]
264
  9%|▉ | 190/2116 [07:23<1:17:04, 2.40s/it]
265
 
 
266
  9%|▉ | 190/2116 [07:23<1:17:04, 2.40s/it]
267
  9%|▉ | 191/2116 [07:26<1:19:41, 2.48s/it]
268
  9%|▉ | 192/2116 [07:28<1:17:50, 2.43s/it]
269
  9%|▉ | 193/2116 [07:31<1:21:06, 2.53s/it]
270
  9%|▉ | 194/2116 [07:34<1:20:32, 2.51s/it]
271
  9%|▉ | 195/2116 [07:36<1:17:22, 2.42s/it]
272
 
 
273
  9%|▉ | 195/2116 [07:36<1:17:22, 2.42s/it]
274
  9%|▉ | 196/2116 [07:38<1:17:55, 2.44s/it]
275
  9%|▉ | 197/2116 [07:41<1:19:09, 2.47s/it]
276
  9%|▉ | 198/2116 [07:43<1:17:44, 2.43s/it]
277
  9%|▉ | 199/2116 [07:45<1:17:03, 2.41s/it]
278
  9%|▉ | 200/2116 [07:48<1:19:12, 2.48s/it]
279
 
 
280
  9%|▉ | 200/2116 [07:48<1:19:12, 2.48s/it]
281
  9%|▉ | 201/2116 [07:51<1:19:19, 2.49s/it]
282
  10%|▉ | 202/2116 [07:53<1:19:44, 2.50s/it]
283
  10%|▉ | 203/2116 [07:55<1:17:14, 2.42s/it]
284
  10%|▉ | 204/2116 [07:58<1:21:24, 2.55s/it]
285
  10%|▉ | 205/2116 [08:00<1:18:34, 2.47s/it]
286
 
 
287
  10%|▉ | 205/2116 [08:00<1:18:34, 2.47s/it]
288
  10%|▉ | 206/2116 [08:02<1:13:27, 2.31s/it]
289
  10%|▉ | 207/2116 [08:05<1:13:43, 2.32s/it]
290
  10%|▉ | 208/2116 [08:07<1:17:04, 2.42s/it]
291
  10%|▉ | 209/2116 [08:10<1:16:36, 2.41s/it]
292
  10%|▉ | 210/2116 [08:12<1:15:55, 2.39s/it]
293
 
 
294
  10%|▉ | 210/2116 [08:12<1:15:55, 2.39s/it]
295
  10%|▉ | 211/2116 [08:15<1:15:50, 2.39s/it]
296
  10%|█ | 212/2116 [08:17<1:14:23, 2.34s/it]
297
  10%|█ | 213/2116 [08:19<1:12:38, 2.29s/it]
298
  10%|█ | 214/2116 [08:21<1:10:35, 2.23s/it]
299
  10%|█ | 215/2116 [08:23<1:12:24, 2.29s/it]
300
 
 
301
  10%|█ | 215/2116 [08:23<1:12:24, 2.29s/it]
302
  10%|█ | 216/2116 [08:25<1:09:55, 2.21s/it]
303
  10%|█ | 217/2116 [08:28<1:09:32, 2.20s/it]
304
  10%|█ | 218/2116 [08:30<1:15:06, 2.37s/it]
305
  10%|█ | 219/2116 [08:33<1:17:55, 2.46s/it]
306
  10%|█ | 220/2116 [08:35<1:11:54, 2.28s/it]
307
 
 
308
  10%|█ | 220/2116 [08:35<1:11:54, 2.28s/it]
309
  10%|█ | 221/2116 [08:37<1:13:48, 2.34s/it]
310
  10%|█ | 222/2116 [08:40<1:12:35, 2.30s/it]
311
  11%|█ | 223/2116 [08:42<1:14:10, 2.35s/it]
312
  11%|█ | 224/2116 [08:44<1:13:54, 2.34s/it]
313
  11%|█ | 225/2116 [08:47<1:12:56, 2.31s/it]
314
 
 
315
  11%|█ | 225/2116 [08:47<1:12:56, 2.31s/it]
316
  11%|█ | 226/2116 [08:49<1:13:47, 2.34s/it]
317
  11%|█ | 227/2116 [08:52<1:17:38, 2.47s/it]
318
  11%|█ | 228/2116 [08:54<1:18:40, 2.50s/it]
319
  11%|█ | 229/2116 [08:57<1:16:11, 2.42s/it]
320
  11%|█ | 230/2116 [08:59<1:16:31, 2.43s/it]
321
 
 
322
  11%|█ | 230/2116 [08:59<1:16:31, 2.43s/it]
323
  11%|█ | 231/2116 [09:02<1:17:17, 2.46s/it]
324
  11%|█ | 232/2116 [09:04<1:15:27, 2.40s/it]
325
  11%|█ | 233/2116 [09:07<1:19:55, 2.55s/it]
326
  11%|█ | 234/2116 [09:09<1:16:33, 2.44s/it]
327
  11%|█ | 235/2116 [09:11<1:14:17, 2.37s/it]
328
 
 
329
  11%|█ | 235/2116 [09:11<1:14:17, 2.37s/it]
330
  11%|█ | 236/2116 [09:13<1:10:27, 2.25s/it]
331
  11%|█ | 237/2116 [09:15<1:08:59, 2.20s/it]
332
  11%|█ | 238/2116 [09:18<1:10:10, 2.24s/it]
333
  11%|█▏ | 239/2116 [09:20<1:11:12, 2.28s/it]
334
  11%|█▏ | 240/2116 [09:22<1:06:59, 2.14s/it]
335
 
 
336
  11%|█▏ | 240/2116 [09:22<1:06:59, 2.14s/it]
337
  11%|█▏ | 241/2116 [09:24<1:11:27, 2.29s/it]
338
  11%|█▏ | 242/2116 [09:27<1:14:32, 2.39s/it]
339
  11%|█▏ | 243/2116 [09:29<1:08:42, 2.20s/it]
340
  12%|█▏ | 244/2116 [09:31<1:10:10, 2.25s/it]
341
  12%|█▏ | 245/2116 [09:34<1:12:52, 2.34s/it]
342
 
 
343
  12%|█▏ | 245/2116 [09:34<1:12:52, 2.34s/it]
344
  12%|█▏ | 246/2116 [09:36<1:12:24, 2.32s/it]
345
  12%|█▏ | 247/2116 [09:38<1:13:09, 2.35s/it]
346
  12%|█▏ | 248/2116 [09:41<1:12:44, 2.34s/it]
347
  12%|█▏ | 249/2116 [09:43<1:14:09, 2.38s/it]
348
  12%|█▏ | 250/2116 [09:46<1:14:06, 2.38s/it]
349
 
 
350
  12%|█▏ | 250/2116 [09:46<1:14:06, 2.38s/it]
351
  12%|█▏ | 251/2116 [09:48<1:19:03, 2.54s/it]
352
  12%|█▏ | 252/2116 [09:51<1:16:37, 2.47s/it]
353
  12%|█▏ | 253/2116 [09:53<1:17:18, 2.49s/it]
354
  12%|█▏ | 254/2116 [09:56<1:18:28, 2.53s/it]
355
  12%|█▏ | 255/2116 [09:58<1:15:46, 2.44s/it]
356
 
 
357
  12%|█▏ | 255/2116 [09:58<1:15:46, 2.44s/it]
358
  12%|█▏ | 256/2116 [10:01<1:15:41, 2.44s/it]
359
  12%|█▏ | 257/2116 [10:03<1:13:55, 2.39s/it]
360
  12%|█▏ | 258/2116 [10:05<1:09:21, 2.24s/it]
361
  12%|█▏ | 259/2116 [10:07<1:10:26, 2.28s/it]
362
  12%|█▏ | 260/2116 [10:10<1:12:47, 2.35s/it]
363
 
 
364
  12%|█▏ | 260/2116 [10:10<1:12:47, 2.35s/it]
365
  12%|█▏ | 261/2116 [10:12<1:08:40, 2.22s/it]
366
  12%|█▏ | 262/2116 [10:13<1:05:38, 2.12s/it]
367
  12%|█▏ | 263/2116 [10:16<1:11:47, 2.32s/it]
368
  12%|█▏ | 264/2116 [10:18<1:10:30, 2.28s/it]
369
  13%|█▎ | 265/2116 [10:21<1:14:38, 2.42s/it]
370
 
 
371
  13%|█▎ | 265/2116 [10:21<1:14:38, 2.42s/it]
372
  13%|█▎ | 266/2116 [10:24<1:16:13, 2.47s/it]
373
  13%|█▎ | 267/2116 [10:26<1:16:31, 2.48s/it]
374
  13%|█▎ | 268/2116 [10:29<1:15:11, 2.44s/it]
375
  13%|█▎ | 269/2116 [10:31<1:15:43, 2.46s/it]
376
  13%|█▎ | 270/2116 [10:34<1:15:52, 2.47s/it]
377
 
 
378
  13%|█▎ | 270/2116 [10:34<1:15:52, 2.47s/it]
379
  13%|█▎ | 271/2116 [10:36<1:18:15, 2.54s/it]
380
  13%|█▎ | 272/2116 [10:38<1:14:28, 2.42s/it]
381
  13%|█▎ | 273/2116 [10:41<1:15:10, 2.45s/it]
382
  13%|█▎ | 274/2116 [10:43<1:11:51, 2.34s/it]
383
  13%|█▎ | 275/2116 [10:46<1:14:46, 2.44s/it]
384
 
 
385
  13%|█▎ | 275/2116 [10:46<1:14:46, 2.44s/it]
386
  13%|█▎ | 276/2116 [10:48<1:13:16, 2.39s/it]
387
  13%|█▎ | 277/2116 [10:50<1:08:40, 2.24s/it]
388
  13%|█▎ | 278/2116 [10:52<1:09:52, 2.28s/it]
389
  13%|█▎ | 279/2116 [10:55<1:09:23, 2.27s/it]
390
  13%|█▎ | 280/2116 [10:56<1:06:21, 2.17s/it]
391
 
 
392
  13%|█▎ | 280/2116 [10:56<1:06:21, 2.17s/it]
393
  13%|█▎ | 281/2116 [10:58<1:04:25, 2.11s/it]
394
  13%|█▎ | 282/2116 [11:01<1:05:56, 2.16s/it]
395
  13%|█▎ | 283/2116 [11:03<1:07:46, 2.22s/it]
396
  13%|█▎ | 284/2116 [11:05<1:08:19, 2.24s/it]
397
  13%|█▎ | 285/2116 [11:08<1:09:35, 2.28s/it]
398
 
 
399
  13%|█▎ | 285/2116 [11:08<1:09:35, 2.28s/it]
400
  14%|█▎ | 286/2116 [11:10<1:08:17, 2.24s/it]
401
  14%|█▎ | 287/2116 [11:12<1:09:29, 2.28s/it]
402
  14%|█▎ | 288/2116 [11:14<1:09:05, 2.27s/it]
403
  14%|█▎ | 289/2116 [11:16<1:05:38, 2.16s/it]
404
  14%|█▎ | 290/2116 [11:19<1:07:31, 2.22s/it]
405
 
 
406
  14%|█▎ | 290/2116 [11:19<1:07:31, 2.22s/it]
407
  14%|█▍ | 291/2116 [11:21<1:07:37, 2.22s/it]
408
  14%|█▍ | 292/2116 [11:23<1:08:54, 2.27s/it]
409
  14%|█▍ | 293/2116 [11:26<1:12:47, 2.40s/it]
410
  14%|█▍ | 294/2116 [11:29<1:13:47, 2.43s/it]
411
  14%|█▍ | 295/2116 [11:31<1:10:17, 2.32s/it]
412
 
 
413
  14%|█▍ | 295/2116 [11:31<1:10:17, 2.32s/it]
414
  14%|█▍ | 296/2116 [11:33<1:08:45, 2.27s/it]
415
  14%|█▍ | 297/2116 [11:35<1:07:32, 2.23s/it]
416
  14%|█▍ | 298/2116 [11:37<1:07:08, 2.22s/it]
417
  14%|█▍ | 299/2116 [11:39<1:08:23, 2.26s/it]
418
  14%|█▍ | 300/2116 [11:42<1:08:26, 2.26s/it]
419
 
 
420
  14%|█▍ | 300/2116 [11:42<1:08:26, 2.26s/it]
421
  14%|█▍ | 301/2116 [11:44<1:07:32, 2.23s/it]
422
  14%|█▍ | 302/2116 [11:47<1:13:13, 2.42s/it]
423
  14%|█▍ | 303/2116 [11:49<1:11:15, 2.36s/it]
424
  14%|█▍ | 304/2116 [11:51<1:10:04, 2.32s/it]
425
  14%|█▍ | 305/2116 [11:53<1:08:55, 2.28s/it]
426
 
 
427
  14%|█▍ | 305/2116 [11:53<1:08:55, 2.28s/it]
428
  14%|█▍ | 306/2116 [11:56<1:07:30, 2.24s/it]
429
  15%|█▍ | 307/2116 [11:58<1:08:04, 2.26s/it]
430
  15%|█▍ | 308/2116 [12:00<1:04:35, 2.14s/it]
431
  15%|█▍ | 309/2116 [12:02<1:05:36, 2.18s/it]
432
  15%|█▍ | 310/2116 [12:04<1:05:56, 2.19s/it]
433
 
 
434
  15%|█▍ | 310/2116 [12:04<1:05:56, 2.19s/it]
435
  15%|█▍ | 311/2116 [12:07<1:07:49, 2.25s/it]
436
  15%|█▍ | 312/2116 [12:09<1:10:31, 2.35s/it]
437
  15%|█▍ | 313/2116 [12:12<1:11:07, 2.37s/it]
438
  15%|█▍ | 314/2116 [12:14<1:08:53, 2.29s/it]
439
  15%|█▍ | 315/2116 [12:16<1:13:31, 2.45s/it]
440
 
 
441
  15%|█▍ | 315/2116 [12:16<1:13:31, 2.45s/it]
442
  15%|█▍ | 316/2116 [12:19<1:17:53, 2.60s/it]
443
  15%|█▍ | 317/2116 [12:22<1:14:00, 2.47s/it]
444
  15%|█▌ | 318/2116 [12:24<1:10:43, 2.36s/it]
445
  15%|█▌ | 319/2116 [12:26<1:12:49, 2.43s/it]
446
  15%|█▌ | 320/2116 [12:29<1:12:25, 2.42s/it]
447
 
 
448
  15%|█▌ | 320/2116 [12:29<1:12:25, 2.42s/it]
449
  15%|█▌ | 321/2116 [12:31<1:11:37, 2.39s/it]
450
  15%|█▌ | 322/2116 [12:33<1:09:39, 2.33s/it]
451
  15%|█▌ | 323/2116 [12:35<1:09:05, 2.31s/it]
452
  15%|█▌ | 324/2116 [12:38<1:08:55, 2.31s/it]
453
  15%|█▌ | 325/2116 [12:40<1:08:34, 2.30s/it]
454
 
 
455
  15%|█▌ | 325/2116 [12:40<1:08:34, 2.30s/it]
456
  15%|█▌ | 326/2116 [12:42<1:09:56, 2.34s/it]
457
  15%|█▌ | 327/2116 [12:45<1:11:23, 2.39s/it]
458
  16%|█▌ | 328/2116 [12:47<1:11:04, 2.39s/it]
459
  16%|█▌ | 329/2116 [12:49<1:07:01, 2.25s/it]
460
  16%|█▌ | 330/2116 [12:52<1:12:02, 2.42s/it]
461
 
 
462
  16%|█▌ | 330/2116 [12:52<1:12:02, 2.42s/it]
463
  16%|█▌ | 331/2116 [12:55<1:12:14, 2.43s/it]
464
  16%|█▌ | 332/2116 [12:57<1:08:25, 2.30s/it]
465
  16%|█▌ | 333/2116 [12:59<1:09:05, 2.32s/it]
466
  16%|█▌ | 334/2116 [13:01<1:08:20, 2.30s/it]
467
  16%|█▌ | 335/2116 [13:04<1:09:29, 2.34s/it]
468
 
 
469
  16%|█▌ | 335/2116 [13:04<1:09:29, 2.34s/it]
470
  16%|█▌ | 336/2116 [13:06<1:12:21, 2.44s/it]
471
  16%|█▌ | 337/2116 [13:09<1:14:23, 2.51s/it]
472
  16%|█▌ | 338/2116 [13:11<1:12:48, 2.46s/it]
473
  16%|█▌ | 339/2116 [13:14<1:10:34, 2.38s/it]
474
  16%|█▌ | 340/2116 [13:16<1:14:25, 2.51s/it]
475
 
 
476
  16%|█▌ | 340/2116 [13:16<1:14:25, 2.51s/it]
477
  16%|█▌ | 341/2116 [13:19<1:14:50, 2.53s/it]
478
  16%|█▌ | 342/2116 [13:21<1:09:58, 2.37s/it]
479
  16%|█▌ | 343/2116 [13:23<1:08:14, 2.31s/it]
480
  16%|█▋ | 344/2116 [13:26<1:10:26, 2.39s/it]
481
  16%|█▋ | 345/2116 [13:29<1:17:19, 2.62s/it]
482
 
 
483
  16%|█▋ | 345/2116 [13:29<1:17:19, 2.62s/it]
484
  16%|█▋ | 346/2116 [13:31<1:14:08, 2.51s/it]
485
  16%|█▋ | 347/2116 [13:34<1:13:33, 2.49s/it]
486
  16%|█▋ | 348/2116 [13:36<1:11:11, 2.42s/it]
487
  16%|█▋ | 349/2116 [13:38<1:06:42, 2.27s/it]
488
  17%|█▋ | 350/2116 [13:39<1:02:48, 2.13s/it]
489
 
 
490
  17%|█▋ | 350/2116 [13:39<1:02:48, 2.13s/it]
491
  17%|█▋ | 351/2116 [13:42<1:08:24, 2.33s/it]
492
  17%|█▋ | 352/2116 [13:44<1:06:28, 2.26s/it]
493
  17%|█▋ | 353/2116 [13:47<1:05:43, 2.24s/it]
494
  17%|█▋ | 354/2116 [13:49<1:06:17, 2.26s/it]
495
  17%|█▋ | 355/2116 [13:51<1:06:40, 2.27s/it]
496
 
 
497
  17%|█▋ | 355/2116 [13:51<1:06:40, 2.27s/it]
498
  17%|█▋ | 356/2116 [13:53<1:07:07, 2.29s/it]
499
  17%|█▋ | 357/2116 [13:56<1:08:14, 2.33s/it]
500
  17%|█▋ | 358/2116 [13:59<1:10:36, 2.41s/it]
501
  17%|█▋ | 359/2116 [14:00<1:04:52, 2.22s/it]
502
  17%|█▋ | 360/2116 [14:03<1:05:22, 2.23s/it]
503
 
 
504
  17%|█▋ | 360/2116 [14:03<1:05:22, 2.23s/it]
505
  17%|█▋ | 361/2116 [14:05<1:09:58, 2.39s/it]
506
  17%|█▋ | 362/2116 [14:08<1:13:03, 2.50s/it]
507
  17%|█▋ | 363/2116 [14:10<1:08:57, 2.36s/it]
508
  17%|█▋ | 364/2116 [14:13<1:10:57, 2.43s/it]
509
  17%|█▋ | 365/2116 [14:15<1:10:23, 2.41s/it]
510
 
 
511
  17%|█▋ | 365/2116 [14:15<1:10:23, 2.41s/it]
512
  17%|█▋ | 366/2116 [14:17<1:08:35, 2.35s/it]
513
  17%|█▋ | 367/2116 [14:19<1:05:37, 2.25s/it]
514
  17%|█▋ | 368/2116 [14:21<1:02:39, 2.15s/it]
515
  17%|█▋ | 369/2116 [14:24<1:06:53, 2.30s/it]
516
  17%|█▋ | 370/2116 [14:27<1:11:08, 2.44s/it]
517
 
 
518
  17%|█▋ | 370/2116 [14:27<1:11:08, 2.44s/it]
519
  18%|█▊ | 371/2116 [14:29<1:10:51, 2.44s/it]
520
  18%|█▊ | 372/2116 [14:31<1:10:32, 2.43s/it]
521
  18%|█▊ | 373/2116 [14:34<1:09:48, 2.40s/it]
522
  18%|█▊ | 374/2116 [14:36<1:07:35, 2.33s/it]
523
  18%|█▊ | 375/2116 [14:38<1:05:48, 2.27s/it]
524
 
 
525
  18%|█▊ | 375/2116 [14:38<1:05:48, 2.27s/it]
526
  18%|█▊ | 376/2116 [14:40<1:06:24, 2.29s/it]
527
  18%|█▊ | 377/2116 [14:43<1:07:03, 2.31s/it]
528
  18%|█▊ | 378/2116 [14:45<1:06:38, 2.30s/it]
529
  18%|█▊ | 379/2116 [14:47<1:03:40, 2.20s/it]
530
  18%|█▊ | 380/2116 [14:49<1:02:37, 2.16s/it]
531
 
 
532
  18%|█▊ | 380/2116 [14:49<1:02:37, 2.16s/it]
533
  18%|█▊ | 381/2116 [14:52<1:06:35, 2.30s/it]
534
  18%|█▊ | 382/2116 [14:54<1:07:22, 2.33s/it]
535
  18%|█▊ | 383/2116 [14:56<1:05:46, 2.28s/it]
536
  18%|█▊ | 384/2116 [14:59<1:05:47, 2.28s/it]
537
  18%|█▊ | 385/2116 [15:01<1:04:55, 2.25s/it]
538
 
 
539
  18%|█▊ | 385/2116 [15:01<1:04:55, 2.25s/it]
540
  18%|█▊ | 386/2116 [15:03<1:07:54, 2.36s/it]
541
  18%|█▊ | 387/2116 [15:05<1:03:38, 2.21s/it]
542
  18%|█▊ | 388/2116 [15:07<1:04:14, 2.23s/it]
543
  18%|█▊ | 389/2116 [15:10<1:04:39, 2.25s/it]
544
  18%|█▊ | 390/2116 [15:12<1:03:48, 2.22s/it]
545
 
 
546
  18%|█▊ | 390/2116 [15:12<1:03:48, 2.22s/it]
547
  18%|█▊ | 391/2116 [15:14<1:03:52, 2.22s/it]
548
  19%|█▊ | 392/2116 [15:17<1:05:29, 2.28s/it]
549
  19%|█▊ | 393/2116 [15:19<1:07:05, 2.34s/it]
550
  19%|█▊ | 394/2116 [15:21<1:06:52, 2.33s/it]
551
  19%|█▊ | 395/2116 [15:23<1:03:01, 2.20s/it]
552
 
 
553
  19%|█▊ | 395/2116 [15:23<1:03:01, 2.20s/it]
554
  19%|█▊ | 396/2116 [15:25<1:03:27, 2.21s/it]
555
  19%|█▉ | 397/2116 [15:28<1:03:13, 2.21s/it]
556
  19%|█▉ | 398/2116 [15:30<1:08:06, 2.38s/it]
557
  19%|█▉ | 399/2116 [15:33<1:10:59, 2.48s/it]
558
  19%|█▉ | 400/2116 [15:35<1:09:04, 2.42s/it]
559
 
 
560
  19%|█▉ | 400/2116 [15:35<1:09:04, 2.42s/it]
561
  19%|█▉ | 401/2116 [15:38<1:09:10, 2.42s/it]
562
  19%|█▉ | 402/2116 [15:41<1:12:18, 2.53s/it]
563
  19%|█▉ | 403/2116 [15:43<1:12:02, 2.52s/it]
564
  19%|█▉ | 404/2116 [15:46<1:11:47, 2.52s/it]
565
  19%|█▉ | 405/2116 [15:48<1:11:19, 2.50s/it]
566
 
 
567
  19%|█▉ | 405/2116 [15:48<1:11:19, 2.50s/it]
568
  19%|█▉ | 406/2116 [15:50<1:08:49, 2.42s/it]
569
  19%|█▉ | 407/2116 [15:53<1:08:28, 2.40s/it]
570
  19%|█▉ | 408/2116 [15:55<1:08:47, 2.42s/it]
571
  19%|█▉ | 409/2116 [15:58<1:08:24, 2.40s/it]
572
  19%|█▉ | 410/2116 [16:00<1:07:33, 2.38s/it]
573
 
 
574
  19%|█▉ | 410/2116 [16:00<1:07:33, 2.38s/it]
575
  19%|█▉ | 411/2116 [16:02<1:04:33, 2.27s/it]
576
  19%|█▉ | 412/2116 [16:04<1:05:39, 2.31s/it]
577
  20%|█▉ | 413/2116 [16:07<1:05:02, 2.29s/it]
578
  20%|█▉ | 414/2116 [16:09<1:03:22, 2.23s/it]
579
  20%|█▉ | 415/2116 [16:11<1:04:34, 2.28s/it]
580
 
 
581
  20%|█▉ | 415/2116 [16:11<1:04:34, 2.28s/it]
582
  20%|█▉ | 416/2116 [16:13<1:01:31, 2.17s/it]
583
  20%|█▉ | 417/2116 [16:15<1:02:02, 2.19s/it]
584
  20%|█▉ | 418/2116 [16:17<1:02:26, 2.21s/it]
585
  20%|█▉ | 419/2116 [16:20<1:04:52, 2.29s/it]
586
  20%|█▉ | 420/2116 [16:22<1:06:10, 2.34s/it]
587
 
 
588
  20%|█▉ | 420/2116 [16:22<1:06:10, 2.34s/it]
589
  20%|█▉ | 421/2116 [16:24<1:03:17, 2.24s/it]
590
  20%|█▉ | 422/2116 [16:27<1:06:20, 2.35s/it]
591
  20%|█▉ | 423/2116 [16:29<1:07:28, 2.39s/it]
592
  20%|██ | 424/2116 [16:32<1:08:32, 2.43s/it]
593
  20%|██ | 425/2116 [16:35<1:12:01, 2.56s/it]
594
 
 
595
  20%|██ | 425/2116 [16:35<1:12:01, 2.56s/it]
596
  20%|██ | 426/2116 [16:37<1:12:27, 2.57s/it]
597
  20%|██ | 427/2116 [16:40<1:12:39, 2.58s/it]
598
  20%|██ | 428/2116 [16:42<1:07:59, 2.42s/it]
599
  20%|██ | 429/2116 [16:44<1:06:44, 2.37s/it]
600
  20%|██ | 430/2116 [16:47<1:09:09, 2.46s/it]
601
 
 
602
  20%|██ | 430/2116 [16:47<1:09:09, 2.46s/it]
603
  20%|██ | 431/2116 [16:49<1:07:10, 2.39s/it]
604
  20%|██ | 432/2116 [16:51<1:04:47, 2.31s/it]
605
  20%|██ | 433/2116 [16:54<1:06:45, 2.38s/it]
606
  21%|██ | 434/2116 [16:56<1:07:00, 2.39s/it]
607
  21%|██ | 435/2116 [16:59<1:09:45, 2.49s/it]
608
 
 
609
  21%|██ | 435/2116 [16:59<1:09:45, 2.49s/it]
610
  21%|██ | 436/2116 [17:01<1:08:34, 2.45s/it]
611
  21%|██ | 437/2116 [17:04<1:08:11, 2.44s/it]
612
  21%|██ | 438/2116 [17:06<1:05:28, 2.34s/it]
613
  21%|██ | 439/2116 [17:08<1:04:51, 2.32s/it]
614
  21%|██ | 440/2116 [17:10<1:03:37, 2.28s/it]
615
 
 
616
  21%|██ | 440/2116 [17:10<1:03:37, 2.28s/it]
617
  21%|██ | 441/2116 [17:13<1:09:20, 2.48s/it]
618
  21%|██ | 442/2116 [17:16<1:08:02, 2.44s/it]
619
  21%|██ | 443/2116 [17:18<1:09:16, 2.48s/it]
620
  21%|██ | 444/2116 [17:21<1:11:00, 2.55s/it]
621
  21%|██ | 445/2116 [17:23<1:09:58, 2.51s/it]
622
 
 
623
  21%|██ | 445/2116 [17:23<1:09:58, 2.51s/it]
624
  21%|██ | 446/2116 [17:26<1:06:59, 2.41s/it]
625
  21%|██ | 447/2116 [17:28<1:06:44, 2.40s/it]
626
  21%|██ | 448/2116 [17:31<1:10:30, 2.54s/it]
627
  21%|██ | 449/2116 [17:33<1:09:50, 2.51s/it]
628
  21%|██▏ | 450/2116 [17:35<1:07:16, 2.42s/it]
629
 
 
630
  21%|██▏ | 450/2116 [17:35<1:07:16, 2.42s/it]
631
  21%|██▏ | 451/2116 [17:38<1:04:26, 2.32s/it]
632
  21%|██▏ | 452/2116 [17:40<1:06:47, 2.41s/it]
633
  21%|██▏ | 453/2116 [17:43<1:08:44, 2.48s/it]
634
  21%|██▏ | 454/2116 [17:45<1:07:57, 2.45s/it]
635
  22%|██▏ | 455/2116 [17:48<1:06:53, 2.42s/it]
636
 
 
637
  22%|██▏ | 455/2116 [17:48<1:06:53, 2.42s/it]
638
  22%|██▏ | 456/2116 [17:50<1:06:11, 2.39s/it]
639
  22%|██▏ | 457/2116 [17:52<1:08:01, 2.46s/it]
640
  22%|██▏ | 458/2116 [17:54<1:03:12, 2.29s/it]
641
  22%|██▏ | 459/2116 [17:57<1:04:28, 2.33s/it]
642
  22%|██▏ | 460/2116 [17:59<1:06:34, 2.41s/it]
643
 
 
644
  22%|██▏ | 460/2116 [17:59<1:06:34, 2.41s/it]
645
  22%|██▏ | 461/2116 [18:02<1:05:47, 2.39s/it]
646
  22%|██▏ | 462/2116 [18:04<1:04:49, 2.35s/it]
647
  22%|██▏ | 463/2116 [18:06<1:05:04, 2.36s/it]
648
  22%|██▏ | 464/2116 [18:09<1:03:57, 2.32s/it]
649
  22%|██▏ | 465/2116 [18:11<1:01:04, 2.22s/it]
650
 
 
651
  22%|██▏ | 465/2116 [18:11<1:01:04, 2.22s/it]
652
  22%|██▏ | 466/2116 [18:13<1:00:42, 2.21s/it]
653
  22%|██▏ | 467/2116 [18:15<58:26, 2.13s/it]
654
  22%|██▏ | 468/2116 [18:17<1:01:40, 2.25s/it]
655
  22%|██▏ | 469/2116 [18:19<59:16, 2.16s/it]
656
  22%|██▏ | 470/2116 [18:22<1:02:10, 2.27s/it]
657
 
 
658
  22%|██▏ | 470/2116 [18:22<1:02:10, 2.27s/it]
659
  22%|██▏ | 471/2116 [18:24<1:01:22, 2.24s/it]
660
  22%|██▏ | 472/2116 [18:26<1:00:57, 2.22s/it]
661
  22%|██▏ | 473/2116 [18:29<1:02:35, 2.29s/it]
662
  22%|██▏ | 474/2116 [18:31<1:03:32, 2.32s/it]
663
  22%|██▏ | 475/2116 [18:33<1:02:51, 2.30s/it]
664
 
 
665
  22%|██▏ | 475/2116 [18:33<1:02:51, 2.30s/it]
666
  22%|██▏ | 476/2116 [18:36<1:04:12, 2.35s/it]
667
  23%|██▎ | 477/2116 [18:38<1:03:31, 2.33s/it]
668
  23%|██▎ | 478/2116 [18:40<1:05:08, 2.39s/it]
669
  23%|██▎ | 479/2116 [18:42<1:01:06, 2.24s/it]
670
  23%|██▎ | 480/2116 [18:45<1:00:30, 2.22s/it]
671
 
 
672
  23%|██▎ | 480/2116 [18:45<1:00:30, 2.22s/it]
673
  23%|██▎ | 481/2116 [18:47<1:01:39, 2.26s/it]
674
  23%|██▎ | 482/2116 [18:49<1:02:38, 2.30s/it]
675
  23%|██▎ | 483/2116 [18:52<1:02:37, 2.30s/it]
676
  23%|██▎ | 484/2116 [18:54<1:01:36, 2.27s/it]
677
  23%|██▎ | 485/2116 [18:56<1:01:43, 2.27s/it]
678
 
 
679
  23%|██▎ | 485/2116 [18:56<1:01:43, 2.27s/it]
680
  23%|██▎ | 486/2116 [18:58<1:02:07, 2.29s/it]
681
  23%|██▎ | 487/2116 [19:01<1:03:08, 2.33s/it]
682
  23%|██▎ | 488/2116 [19:03<1:04:48, 2.39s/it]
683
  23%|██▎ | 489/2116 [19:05<1:01:41, 2.28s/it]
684
  23%|██▎ | 490/2116 [19:07<1:00:56, 2.25s/it]
685
 
 
686
  23%|██▎ | 490/2116 [19:07<1:00:56, 2.25s/it]
687
  23%|██▎ | 491/2116 [19:10<1:01:44, 2.28s/it]
688
  23%|██▎ | 492/2116 [19:12<1:04:11, 2.37s/it]
689
  23%|██▎ | 493/2116 [19:14<1:01:29, 2.27s/it]
690
  23%|██▎ | 494/2116 [19:17<1:06:15, 2.45s/it]
691
  23%|██▎ | 495/2116 [19:20<1:04:25, 2.38s/it]
692
 
 
693
  23%|██▎ | 495/2116 [19:20<1:04:25, 2.38s/it]
694
  23%|██▎ | 496/2116 [19:22<1:05:18, 2.42s/it]
695
  23%|██▎ | 497/2116 [19:25<1:05:37, 2.43s/it]
696
  24%|██▎ | 498/2116 [19:27<1:05:01, 2.41s/it]
697
  24%|██▎ | 499/2116 [19:29<1:05:22, 2.43s/it]
698
  24%|██▎ | 500/2116 [19:32<1:04:15, 2.39s/it]
699
 
 
700
  24%|██▎ | 500/2116 [19:32<1:04:15, 2.39s/it]
701
  24%|██▎ | 501/2116 [19:34<1:02:45, 2.33s/it]
702
  24%|██▎ | 502/2116 [19:36<1:00:28, 2.25s/it]
703
  24%|██▍ | 503/2116 [19:38<1:01:19, 2.28s/it]
704
  24%|██▍ | 504/2116 [19:41<1:02:25, 2.32s/it]
705
  24%|██▍ | 505/2116 [19:43<1:03:49, 2.38s/it]
706
 
 
707
  24%|██▍ | 505/2116 [19:43<1:03:49, 2.38s/it]
708
  24%|██▍ | 506/2116 [19:45<1:02:26, 2.33s/it]
709
  24%|██▍ | 507/2116 [19:47<59:41, 2.23s/it]
710
  24%|██▍ | 508/2116 [19:50<1:00:38, 2.26s/it]
711
  24%|██▍ | 509/2116 [19:52<59:47, 2.23s/it]
712
  24%|██▍ | 510/2116 [19:54<1:02:23, 2.33s/it]
713
 
 
714
  24%|██▍ | 510/2116 [19:54<1:02:23, 2.33s/it]
715
  24%|██▍ | 511/2116 [19:57<1:02:24, 2.33s/it]
716
  24%|██▍ | 512/2116 [19:59<1:03:34, 2.38s/it]
717
  24%|██▍ | 513/2116 [20:02<1:03:24, 2.37s/it]
718
  24%|██▍ | 514/2116 [20:04<1:01:36, 2.31s/it]
719
  24%|██▍ | 515/2116 [20:06<1:01:14, 2.30s/it]
720
 
 
721
  24%|██▍ | 515/2116 [20:06<1:01:14, 2.30s/it]
722
  24%|██▍ | 516/2116 [20:09<1:04:07, 2.40s/it]
723
  24%|██▍ | 517/2116 [20:12<1:07:17, 2.53s/it]
724
  24%|██▍ | 518/2116 [20:13<1:02:45, 2.36s/it]
725
  25%|██▍ | 519/2116 [20:16<1:02:45, 2.36s/it]
726
  25%|██▍ | 520/2116 [20:19<1:05:33, 2.46s/it]
727
 
 
728
  25%|██▍ | 520/2116 [20:19<1:05:33, 2.46s/it]
729
  25%|██▍ | 521/2116 [20:21<1:05:25, 2.46s/it]
730
  25%|██▍ | 522/2116 [20:23<1:04:20, 2.42s/it]
731
  25%|██▍ | 523/2116 [20:26<1:02:16, 2.35s/it]
732
  25%|██▍ | 524/2116 [20:28<1:03:50, 2.41s/it]
733
  25%|██▍ | 525/2116 [20:31<1:05:49, 2.48s/it]
734
 
 
735
  25%|██▍ | 525/2116 [20:31<1:05:49, 2.48s/it]
736
  25%|██▍ | 526/2116 [20:33<1:04:31, 2.43s/it]
737
  25%|██▍ | 527/2116 [20:36<1:06:12, 2.50s/it]
738
  25%|██▍ | 528/2116 [20:38<1:05:22, 2.47s/it]
739
  25%|██▌ | 529/2116 [20:41<1:05:34, 2.48s/it]
740
  25%|██▌ | 530/2116 [20:43<1:06:54, 2.53s/it]
741
 
 
742
  25%|██▌ | 530/2116 [20:43<1:06:54, 2.53s/it]
743
  25%|██▌ | 531/2116 [20:46<1:04:46, 2.45s/it]
744
  25%|██▌ | 532/2116 [20:48<1:03:36, 2.41s/it]
745
  25%|██▌ | 533/2116 [20:50<1:00:03, 2.28s/it]
746
  25%|██▌ | 534/2116 [20:52<57:01, 2.16s/it]
747
  25%|██▌ | 535/2116 [20:54<1:00:11, 2.28s/it]
748
 
 
749
  25%|██▌ | 535/2116 [20:54<1:00:11, 2.28s/it]
750
  25%|██▌ | 536/2116 [20:57<1:00:46, 2.31s/it]
751
  25%|██▌ | 537/2116 [20:59<1:01:12, 2.33s/it]
752
  25%|██▌ | 538/2116 [21:02<1:04:09, 2.44s/it]
753
  25%|██▌ | 539/2116 [21:04<1:04:26, 2.45s/it]
754
  26%|██▌ | 540/2116 [21:07<1:05:27, 2.49s/it]
755
 
 
756
  26%|██▌ | 540/2116 [21:07<1:05:27, 2.49s/it]
757
  26%|██▌ | 541/2116 [21:09<1:03:53, 2.43s/it]
758
  26%|██▌ | 542/2116 [21:11<1:03:35, 2.42s/it]
759
  26%|██▌ | 543/2116 [21:14<1:05:13, 2.49s/it]
760
  26%|██▌ | 544/2116 [21:17<1:05:36, 2.50s/it]
761
  26%|██▌ | 545/2116 [21:19<1:04:25, 2.46s/it]
762
 
 
763
  26%|██▌ | 545/2116 [21:19<1:04:25, 2.46s/it]
764
  26%|██▌ | 546/2116 [21:21<1:03:36, 2.43s/it]
765
  26%|██▌ | 547/2116 [21:24<1:03:59, 2.45s/it]
766
  26%|██▌ | 548/2116 [21:26<1:03:06, 2.41s/it]
767
  26%|██▌ | 549/2116 [21:28<1:02:07, 2.38s/it]
768
  26%|██▌ | 550/2116 [21:31<1:00:52, 2.33s/it]
769
 
 
770
  26%|██▌ | 550/2116 [21:31<1:00:52, 2.33s/it]
771
  26%|██▌ | 551/2116 [21:33<59:45, 2.29s/it]
772
  26%|██▌ | 552/2116 [21:35<1:00:21, 2.32s/it]
773
  26%|██▌ | 553/2116 [21:38<1:01:37, 2.37s/it]
774
  26%|██▌ | 554/2116 [21:40<1:03:31, 2.44s/it]
775
  26%|██▌ | 555/2116 [21:43<1:01:03, 2.35s/it]
776
 
 
777
  26%|██▌ | 555/2116 [21:43<1:01:03, 2.35s/it]
778
  26%|██▋ | 556/2116 [21:45<1:00:34, 2.33s/it]
779
  26%|██▋ | 557/2116 [21:47<1:02:44, 2.41s/it]
780
  26%|██▋ | 558/2116 [21:50<1:00:43, 2.34s/it]
781
  26%|██▋ | 559/2116 [21:52<1:00:32, 2.33s/it]
782
  26%|██▋ | 560/2116 [21:54<59:47, 2.31s/it]
783
 
 
784
  26%|██▋ | 560/2116 [21:54<59:47, 2.31s/it]
785
  27%|██▋ | 561/2116 [21:56<59:53, 2.31s/it]
786
  27%|██▋ | 562/2116 [21:59<58:40, 2.27s/it]
787
  27%|██▋ | 563/2116 [22:01<59:58, 2.32s/it]
788
  27%|██▋ | 564/2116 [22:03<59:02, 2.28s/it]
789
  27%|██▋ | 565/2116 [22:05<58:11, 2.25s/it]
790
 
 
791
  27%|██▋ | 565/2116 [22:05<58:11, 2.25s/it]
792
  27%|██▋ | 566/2116 [22:08<1:01:58, 2.40s/it]
793
  27%|██▋ | 567/2116 [22:10<57:55, 2.24s/it]
794
  27%|██▋ | 568/2116 [22:12<57:07, 2.21s/it]
795
  27%|██▋ | 569/2116 [22:14<55:53, 2.17s/it]
796
  27%|██▋ | 570/2116 [22:17<58:25, 2.27s/it]
797
 
 
798
  27%|██▋ | 570/2116 [22:17<58:25, 2.27s/it]
799
  27%|██▋ | 571/2116 [22:19<57:39, 2.24s/it]
800
  27%|██▋ | 572/2116 [22:21<58:38, 2.28s/it]
801
  27%|██▋ | 573/2116 [22:24<58:30, 2.28s/it]
802
  27%|██▋ | 574/2116 [22:26<57:53, 2.25s/it]
803
  27%|██▋ | 575/2116 [22:28<1:00:16, 2.35s/it]
804
 
 
805
  27%|██▋ | 575/2116 [22:28<1:00:16, 2.35s/it]
806
  27%|██▋ | 576/2116 [22:31<1:00:05, 2.34s/it]
807
  27%|██▋ | 577/2116 [22:33<59:13, 2.31s/it]
808
  27%|██▋ | 578/2116 [22:35<58:25, 2.28s/it]
809
  27%|██▋ | 579/2116 [22:38<59:58, 2.34s/it]
810
  27%|██▋ | 580/2116 [22:40<57:34, 2.25s/it]
811
 
 
812
  27%|██▋ | 580/2116 [22:40<57:34, 2.25s/it]
813
  27%|██▋ | 581/2116 [22:42<57:10, 2.23s/it]
814
  28%|██▊ | 582/2116 [22:44<57:18, 2.24s/it]
815
  28%|██▊ | 583/2116 [22:46<57:28, 2.25s/it]
816
  28%|██▊ | 584/2116 [22:49<58:54, 2.31s/it]
817
  28%|██▊ | 585/2116 [22:51<1:01:48, 2.42s/it]
818
 
 
819
  28%|██▊ | 585/2116 [22:51<1:01:48, 2.42s/it]
820
  28%|██▊ | 586/2116 [22:54<1:01:04, 2.40s/it]
821
  28%|██▊ | 587/2116 [22:56<59:01, 2.32s/it]
822
  28%|██▊ | 588/2116 [22:59<1:02:13, 2.44s/it]
823
  28%|██▊ | 589/2116 [23:01<59:39, 2.34s/it]
824
  28%|██▊ | 590/2116 [23:03<1:00:03, 2.36s/it]
825
 
 
826
  28%|���█▊ | 590/2116 [23:03<1:00:03, 2.36s/it]
827
  28%|██▊ | 591/2116 [23:05<57:45, 2.27s/it]
828
  28%|██▊ | 592/2116 [23:08<58:18, 2.30s/it]
829
  28%|██▊ | 593/2116 [23:10<57:44, 2.28s/it]
830
  28%|██▊ | 594/2116 [23:12<57:46, 2.28s/it]
831
  28%|██▊ | 595/2116 [23:14<58:23, 2.30s/it]
832
 
 
833
  28%|██▊ | 595/2116 [23:14<58:23, 2.30s/it]
834
  28%|██▊ | 596/2116 [23:17<56:55, 2.25s/it]
835
  28%|██▊ | 597/2116 [23:19<55:53, 2.21s/it]
836
  28%|██▊ | 598/2116 [23:21<1:00:07, 2.38s/it]
837
  28%|██▊ | 599/2116 [23:24<59:58, 2.37s/it]
838
  28%|██▊ | 600/2116 [23:26<1:01:27, 2.43s/it]
839
 
 
840
  28%|██▊ | 600/2116 [23:26<1:01:27, 2.43s/it]
841
  28%|██▊ | 601/2116 [23:28<57:46, 2.29s/it]
842
  28%|██▊ | 602/2116 [23:31<57:42, 2.29s/it]
843
  28%|██▊ | 603/2116 [23:33<57:41, 2.29s/it]
844
  29%|██▊ | 604/2116 [23:35<55:40, 2.21s/it]
845
  29%|██▊ | 605/2116 [23:38<58:30, 2.32s/it]
846
 
 
847
  29%|██▊ | 605/2116 [23:38<58:30, 2.32s/it]
848
  29%|██▊ | 606/2116 [23:40<57:15, 2.28s/it]
849
  29%|██▊ | 607/2116 [23:42<58:33, 2.33s/it]
850
  29%|██▊ | 608/2116 [23:45<59:33, 2.37s/it]
851
  29%|██▉ | 609/2116 [23:47<1:00:18, 2.40s/it]
852
  29%|██▉ | 610/2116 [23:49<59:33, 2.37s/it]
853
 
 
854
  29%|██▉ | 610/2116 [23:49<59:33, 2.37s/it]
855
  29%|██▉ | 611/2116 [23:52<1:00:59, 2.43s/it]
856
  29%|██▉ | 612/2116 [23:55<1:01:37, 2.46s/it]
857
  29%|██▉ | 613/2116 [23:57<1:00:13, 2.40s/it]
858
  29%|██▉ | 614/2116 [23:59<55:39, 2.22s/it]
859
  29%|██▉ | 615/2116 [24:01<55:43, 2.23s/it]
860
 
 
861
  29%|██▉ | 615/2116 [24:01<55:43, 2.23s/it]
862
  29%|██▉ | 616/2116 [24:03<57:22, 2.30s/it]
863
  29%|██▉ | 617/2116 [24:06<57:23, 2.30s/it]
864
  29%|██▉ | 618/2116 [24:08<55:19, 2.22s/it]
865
  29%|██▉ | 619/2116 [24:10<56:22, 2.26s/it]
866
  29%|██▉ | 620/2116 [24:12<56:18, 2.26s/it]
867
 
 
868
  29%|██▉ | 620/2116 [24:12<56:18, 2.26s/it]
869
  29%|██▉ | 621/2116 [24:14<55:35, 2.23s/it]
870
  29%|██▉ | 622/2116 [24:17<59:03, 2.37s/it]
871
  29%|██▉ | 623/2116 [24:19<57:41, 2.32s/it]
872
  29%|██▉ | 624/2116 [24:22<57:15, 2.30s/it]
873
  30%|██▉ | 625/2116 [24:24<1:00:40, 2.44s/it]
874
 
 
875
  30%|██▉ | 625/2116 [24:24<1:00:40, 2.44s/it]
876
  30%|██▉ | 626/2116 [24:27<1:00:41, 2.44s/it]
877
  30%|██▉ | 627/2116 [24:30<1:03:25, 2.56s/it]
878
  30%|██▉ | 628/2116 [24:32<1:00:52, 2.45s/it]
879
  30%|██▉ | 629/2116 [24:34<59:47, 2.41s/it]
880
  30%|██▉ | 630/2116 [24:36<59:05, 2.39s/it]
881
 
 
882
  30%|██▉ | 630/2116 [24:36<59:05, 2.39s/it]
883
  30%|██▉ | 631/2116 [24:39<57:53, 2.34s/it]
884
  30%|██▉ | 632/2116 [24:41<59:00, 2.39s/it]
885
  30%|██▉ | 633/2116 [24:44<1:03:57, 2.59s/it]
886
  30%|██▉ | 634/2116 [24:47<1:05:57, 2.67s/it]
887
  30%|███ | 635/2116 [24:51<1:12:23, 2.93s/it]
888
 
 
889
  30%|███ | 635/2116 [24:51<1:12:23, 2.93s/it]
890
  30%|███ | 636/2116 [24:53<1:11:23, 2.89s/it]
891
  30%|███ | 637/2116 [24:56<1:10:16, 2.85s/it]
892
  30%|███ | 638/2116 [25:00<1:15:05, 3.05s/it]
893
  30%|███ | 639/2116 [25:03<1:14:19, 3.02s/it]
894
  30%|███ | 640/2116 [25:06<1:14:51, 3.04s/it]
895
 
 
896
  30%|███ | 640/2116 [25:06<1:14:51, 3.04s/it]
897
  30%|██�� | 641/2116 [25:09<1:16:32, 3.11s/it]
898
  30%|███ | 642/2116 [25:13<1:20:32, 3.28s/it]
899
  30%|███ | 643/2116 [25:17<1:29:05, 3.63s/it]
900
  30%|███ | 644/2116 [25:21<1:30:39, 3.70s/it]
901
  30%|███ | 645/2116 [25:26<1:41:15, 4.13s/it]
902
 
 
903
  30%|███ | 645/2116 [25:26<1:41:15, 4.13s/it]
904
  31%|███ | 646/2116 [25:33<2:00:44, 4.93s/it]
905
  31%|███ | 647/2116 [25:36<1:44:02, 4.25s/it]
906
  31%|███ | 648/2116 [25:41<1:50:58, 4.54s/it]
907
  31%|███ | 649/2116 [25:45<1:49:39, 4.49s/it]
908
  31%|███ | 650/2116 [25:48<1:40:50, 4.13s/it]
909
 
 
910
  31%|███ | 650/2116 [25:48<1:40:50, 4.13s/it]
911
  31%|███ | 651/2116 [25:53<1:45:11, 4.31s/it]
912
  31%|███ | 652/2116 [26:00<2:01:03, 4.96s/it]
913
  31%|███ | 653/2116 [26:07<2:18:03, 5.66s/it]
914
  31%|███ | 654/2116 [26:16<2:39:50, 6.56s/it]
915
  31%|███ | 655/2116 [26:20<2:23:24, 5.89s/it]
916
 
 
917
  31%|███ | 655/2116 [26:20<2:23:24, 5.89s/it]
918
  31%|███ | 656/2116 [26:26<2:22:05, 5.84s/it]
919
  31%|███ | 657/2116 [26:28<1:58:45, 4.88s/it]
920
  31%|███ | 658/2116 [26:32<1:48:02, 4.45s/it]
921
  31%|███ | 659/2116 [26:34<1:35:12, 3.92s/it]
922
  31%|███ | 660/2116 [26:38<1:32:36, 3.82s/it]
923
 
 
924
  31%|███ | 660/2116 [26:38<1:32:36, 3.82s/it]
925
  31%|███ | 661/2116 [26:41<1:26:29, 3.57s/it]
926
  31%|███▏ | 662/2116 [26:43<1:16:59, 3.18s/it]
927
  31%|███▏ | 663/2116 [26:46<1:13:02, 3.02s/it]
928
  31%|███▏ | 664/2116 [26:49<1:13:17, 3.03s/it]
929
  31%|███▏ | 665/2116 [26:53<1:19:23, 3.28s/it]
930
 
 
931
  31%|███▏ | 665/2116 [26:53<1:19:23, 3.28s/it]
932
  31%|███▏ | 666/2116 [26:55<1:14:12, 3.07s/it]
933
  32%|███▏ | 667/2116 [26:58<1:13:29, 3.04s/it]
934
  32%|███▏ | 668/2116 [27:01<1:10:38, 2.93s/it]
935
  32%|███▏ | 669/2116 [27:04<1:11:45, 2.98s/it]
936
  32%|███▏ | 670/2116 [27:07<1:09:33, 2.89s/it]
937
 
 
938
  32%|███▏ | 670/2116 [27:07<1:09:33, 2.89s/it]
939
  32%|███▏ | 671/2116 [27:09<1:04:29, 2.68s/it]
940
  32%|███▏ | 672/2116 [27:11<1:02:26, 2.59s/it]
941
  32%|███▏ | 673/2116 [27:15<1:05:55, 2.74s/it]
942
  32%|███▏ | 674/2116 [27:18<1:09:04, 2.87s/it]
943
  32%|███▏ | 675/2116 [27:20<1:06:32, 2.77s/it]
944
 
 
945
  32%|███▏ | 675/2116 [27:20<1:06:32, 2.77s/it]
946
  32%|███▏ | 676/2116 [27:23<1:07:25, 2.81s/it]
947
  32%|███▏ | 677/2116 [27:26<1:09:06, 2.88s/it]
948
  32%|███▏ | 678/2116 [27:28<1:04:43, 2.70s/it]
949
  32%|███▏ | 679/2116 [27:32<1:08:35, 2.86s/it]
950
  32%|███▏ | 680/2116 [27:35<1:10:25, 2.94s/it]
951
 
 
952
  32%|███▏ | 680/2116 [27:35<1:10:25, 2.94s/it]
953
  32%|███▏ | 681/2116 [27:37<1:03:45, 2.67s/it]
954
  32%|███▏ | 682/2116 [27:40<1:03:56, 2.68s/it]
955
  32%|███▏ | 683/2116 [27:42<1:04:41, 2.71s/it]
956
  32%|███▏ | 684/2116 [27:45<1:05:08, 2.73s/it]
957
  32%|███▏ | 685/2116 [27:48<1:04:08, 2.69s/it]
958
 
 
959
  32%|███▏ | 685/2116 [27:48<1:04:08, 2.69s/it]
960
  32%|███▏ | 686/2116 [27:50<1:01:53, 2.60s/it]
961
  32%|███▏ | 687/2116 [27:53<1:02:24, 2.62s/it]
962
  33%|███▎ | 688/2116 [27:56<1:03:50, 2.68s/it]
963
  33%|███▎ | 689/2116 [27:58<1:02:06, 2.61s/it]
964
  33%|███▎ | 690/2116 [28:00<59:15, 2.49s/it]
965
 
 
966
  33%|███▎ | 690/2116 [28:00<59:15, 2.49s/it]
967
  33%|███▎ | 691/2116 [28:02<57:20, 2.41s/it]
968
  33%|███▎ | 692/2116 [28:05<56:53, 2.40s/it]
969
  33%|███▎ | 693/2116 [28:07<56:29, 2.38s/it]
970
  33%|███▎ | 694/2116 [28:09<54:32, 2.30s/it]
971
  33%|███▎ | 695/2116 [28:12<54:38, 2.31s/it]
972
 
 
973
  33%|███▎ | 695/2116 [28:12<54:38, 2.31s/it]
974
  33%|███▎ | 696/2116 [28:14<54:17, 2.29s/it]
975
  33%|███▎ | 697/2116 [28:16<52:09, 2.21s/it]
976
  33%|███▎ | 698/2116 [28:18<51:49, 2.19s/it]
977
  33%|███▎ | 699/2116 [28:21<54:41, 2.32s/it]
978
  33%|███▎ | 700/2116 [28:23<53:43, 2.28s/it]
979
 
 
980
  33%|███▎ | 700/2116 [28:23<53:43, 2.28s/it]
981
  33%|███▎ | 701/2116 [28:25<51:56, 2.20s/it]
982
  33%|███▎ | 702/2116 [28:27<51:56, 2.20s/it]
983
  33%|███▎ | 703/2116 [28:30<54:22, 2.31s/it]
984
  33%|███▎ | 704/2116 [28:32<57:01, 2.42s/it]
985
  33%|███▎ | 705/2116 [28:35<57:34, 2.45s/it]
986
 
 
987
  33%|███▎ | 705/2116 [28:35<57:34, 2.45s/it]
988
  33%|███▎ | 706/2116 [28:37<53:24, 2.27s/it]
989
  33%|███▎ | 707/2116 [28:40<59:24, 2.53s/it]
990
  33%|███▎ | 708/2116 [28:42<58:50, 2.51s/it]
991
  34%|███▎ | 709/2116 [28:45<59:55, 2.56s/it]
992
  34%|███▎ | 710/2116 [28:48<1:01:11, 2.61s/it]
993
 
 
994
  34%|███▎ | 710/2116 [28:48<1:01:11, 2.61s/it]
995
  34%|███▎ | 711/2116 [28:50<58:25, 2.49s/it]
996
  34%|███▎ | 712/2116 [28:52<57:05, 2.44s/it]
997
  34%|███▎ | 713/2116 [28:55<58:37, 2.51s/it]
998
  34%|███▎ | 714/2116 [28:58<1:00:50, 2.60s/it]
999
  34%|███▍ | 715/2116 [29:00<59:30, 2.55s/it]
1000
 
 
1001
  34%|███▍ | 715/2116 [29:00<59:30, 2.55s/it]
1002
  34%|███▍ | 716/2116 [29:02<57:43, 2.47s/it]
1003
  34%|███▍ | 717/2116 [29:05<57:56, 2.49s/it]
1004
  34%|███▍ | 718/2116 [29:07<57:42, 2.48s/it]
1005
  34%|███▍ | 719/2116 [29:10<56:44, 2.44s/it]
1006
  34%|███▍ | 720/2116 [29:12<57:47, 2.48s/it]
1007
 
 
1008
  34%|███▍ | 720/2116 [29:12<57:47, 2.48s/it]
1009
  34%|███▍ | 721/2116 [29:15<1:00:05, 2.58s/it]
1010
  34%|███▍ | 722/2116 [29:17<58:24, 2.51s/it]
1011
  34%|███▍ | 723/2116 [29:20<57:30, 2.48s/it]
1012
  34%|███▍ | 724/2116 [29:22<57:01, 2.46s/it]
1013
  34%|███▍ | 725/2116 [29:25<55:55, 2.41s/it]
1014
 
 
1015
  34%|███▍ | 725/2116 [29:25<55:55, 2.41s/it]
1016
  34%|███▍ | 726/2116 [29:27<54:17, 2.34s/it]
1017
  34%|███▍ | 727/2116 [29:30<56:56, 2.46s/it]
1018
  34%|███▍ | 728/2116 [29:32<54:18, 2.35s/it]
1019
  34%|███▍ | 729/2116 [29:34<52:05, 2.25s/it]
 
1
+ Log file: logs/full_train_qformer_2gpu_20260608_130215.log
2
+ Project dir: /mnt/share01/sqk/ITFormer
3
+ Run id: 20260608_130215
4
+ CUDA_VISIBLE_DEVICES: 0,1
5
+ Accelerate config: accelerate_config_2gpu.yaml
6
+ Python: /home/suiqk/anaconda3/envs/scalerag-ts-v4/bin/python
7
+ Accelerate: /home/suiqk/anaconda3/envs/scalerag-ts-v4/bin/accelerate
8
+ RUN_STAGE_A: auto
9
+ TS encoder checkpoint: save/pretrain/model.safetensors
10
+ Adapter type: qformer
11
+ LLM attention implementation: default (no flash attention)
12
+ torch: 2.6.0+cu124
13
+ transformers: 4.54.1
14
+ accelerate: 0.34.2
15
+ cuda available: True
16
+ cuda device count: 2
17
+ Stage A: skipped; using existing TS encoder checkpoint: save/pretrain/model.safetensors
18
+ Stage B: supervised fine-tuning
19
+ ⚙️ Running in WANDB offline mode
20
+ ⚙️ Running in WANDB offline mode
21
+ loading file vocab.json
22
+ loading file merges.txt
23
+ loading file tokenizer.json
24
+ loading file added_tokens.json
25
+ loading file special_tokens_map.json
26
+ loading file tokenizer_config.json
27
+ loading file chat_template.jinja
28
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
29
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-3b-instruct/config.json
30
+ Model config Qwen2Config {
31
+ "architectures": [
32
+ "Qwen2ForCausalLM"
33
+ ],
34
+ "attention_dropout": 0.0,
35
+ "bos_token_id": 151643,
36
+ "eos_token_id": 151645,
37
+ "hidden_act": "silu",
38
+ "hidden_size": 2048,
39
+ "initializer_range": 0.02,
40
+ "intermediate_size": 11008,
41
+ "layer_types": [
42
+ "full_attention",
43
+ "full_attention",
44
+ "full_attention",
45
+ "full_attention",
46
+ "full_attention",
47
+ "full_attention",
48
+ "full_attention",
49
+ "full_attention",
50
+ "full_attention",
51
+ "full_attention",
52
+ "full_attention",
53
+ "full_attention",
54
+ "full_attention",
55
+ "full_attention",
56
+ "full_attention",
57
+ "full_attention",
58
+ "full_attention",
59
+ "full_attention",
60
+ "full_attention",
61
+ "full_attention",
62
+ "full_attention",
63
+ "full_attention",
64
+ "full_attention",
65
+ "full_attention",
66
+ "full_attention",
67
+ "full_attention",
68
+ "full_attention",
69
+ "full_attention",
70
+ "full_attention",
71
+ "full_attention",
72
+ "full_attention",
73
+ "full_attention",
74
+ "full_attention",
75
+ "full_attention",
76
+ "full_attention",
77
+ "full_attention"
78
+ ],
79
+ "max_position_embeddings": 32768,
80
+ "max_window_layers": 70,
81
+ "model_type": "qwen2",
82
+ "num_attention_heads": 16,
83
+ "num_hidden_layers": 36,
84
+ "num_key_value_heads": 2,
85
+ "rms_norm_eps": 1e-06,
86
+ "rope_scaling": null,
87
+ "rope_theta": 1000000.0,
88
+ "sliding_window": null,
89
+ "tie_word_embeddings": true,
90
+ "torch_dtype": "bfloat16",
91
+ "transformers_version": "4.54.1",
92
+ "use_cache": true,
93
+ "use_sliding_window": false,
94
+ "vocab_size": 151936
95
+ }
96
+
97
+ loading file vocab.json
98
+ loading file merges.txt
99
+ loading file tokenizer.json
100
+ loading file added_tokens.json
101
+ loading file special_tokens_map.json
102
+ loading file tokenizer_config.json
103
+ loading file chat_template.jinja
104
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
105
+ 📊 Vocab size: 151665
106
+ 🔍 Validating special tokens:
107
+ ✅ pad_token_id = 151643
108
+ ✅ eos_token_id = 151645
109
+ 🎲 Shuffling dataset: dataset/datasets/train_qa.jsonl
110
+ 📊 Vocab size: 151665
111
+ 🔍 Validating special tokens:
112
+ ✅ pad_token_id = 151643
113
+ ✅ eos_token_id = 151645
114
+ swanlab is not installed; training will run without swanlab logging.
115
+ Generate config GenerationConfig {}
116
+
117
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-3b-instruct/config.json
118
+ Model config Qwen2Config {
119
+ "architectures": [
120
+ "Qwen2ForCausalLM"
121
+ ],
122
+ "attention_dropout": 0.0,
123
+ "bos_token_id": 151643,
124
+ "eos_token_id": 151645,
125
+ "hidden_act": "silu",
126
+ "hidden_size": 2048,
127
+ "initializer_range": 0.02,
128
+ "intermediate_size": 11008,
129
+ "layer_types": [
130
+ "full_attention",
131
+ "full_attention",
132
+ "full_attention",
133
+ "full_attention",
134
+ "full_attention",
135
+ "full_attention",
136
+ "full_attention",
137
+ "full_attention",
138
+ "full_attention",
139
+ "full_attention",
140
+ "full_attention",
141
+ "full_attention",
142
+ "full_attention",
143
+ "full_attention",
144
+ "full_attention",
145
+ "full_attention",
146
+ "full_attention",
147
+ "full_attention",
148
+ "full_attention",
149
+ "full_attention",
150
+ "full_attention",
151
+ "full_attention",
152
+ "full_attention",
153
+ "full_attention",
154
+ "full_attention",
155
+ "full_attention",
156
+ "full_attention",
157
+ "full_attention",
158
+ "full_attention",
159
+ "full_attention",
160
+ "full_attention",
161
+ "full_attention",
162
+ "full_attention",
163
+ "full_attention",
164
+ "full_attention",
165
+ "full_attention"
166
+ ],
167
+ "max_position_embeddings": 32768,
168
+ "max_window_layers": 70,
169
+ "model_type": "qwen2",
170
+ "num_attention_heads": 16,
171
+ "num_hidden_layers": 36,
172
+ "num_key_value_heads": 2,
173
+ "rms_norm_eps": 1e-06,
174
+ "rope_scaling": null,
175
+ "rope_theta": 1000000.0,
176
+ "sliding_window": null,
177
+ "tie_word_embeddings": true,
178
+ "torch_dtype": "bfloat16",
179
+ "transformers_version": "4.54.1",
180
+ "use_cache": true,
181
+ "use_sliding_window": false,
182
+ "vocab_size": 151936
183
+ }
184
+
185
+ loading weights file /mnt/share01/sqk/models/qwen2.5-3b-instruct/model.safetensors.index.json
186
+ Generate config GenerationConfig {
187
+ "bos_token_id": 151643,
188
+ "eos_token_id": 151645
189
+ }
190
+
191
+
192
+ All model checkpoint weights were used when initializing Qwen2ForCausalLM.
193
+
194
+ All the weights of Qwen2ForCausalLM were initialized from the model checkpoint at /mnt/share01/sqk/models/qwen2.5-3b-instruct.
195
+ If your task is similar to the task the model of the checkpoint was trained on, you can already use Qwen2ForCausalLM for predictions without further training.
196
+
197
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-3b-instruct/generation_config.json
198
+ Generate config GenerationConfig {
199
+ "bos_token_id": 151643,
200
+ "do_sample": true,
201
+ "eos_token_id": [
202
+ 151645,
203
+ 151643
204
+ ],
205
+ "pad_token_id": 151643,
206
+ "repetition_penalty": 1.05,
207
+ "temperature": 0.7,
208
+ "top_k": 20,
209
+ "top_p": 0.8
210
+ }
211
+
212
+ loading file vocab.json
213
+ loading file merges.txt
214
+ loading file tokenizer.json
215
+ loading file added_tokens.json
216
+ loading file special_tokens_map.json
217
+ loading file tokenizer_config.json
218
+ loading file chat_template.jinja
219
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
220
+ ✅ Loaded LLM model from: /mnt/share01/sqk/models/qwen2.5-3b-instruct
221
+ 📥 Loading pre-trained TimeSeries Encoder from: save/pretrain/model.safetensors
222
+ ✅ TS Encoder weights loaded. Missing: 0, Unexpected: 0
223
+ 🔌 Using adapter: qformer
224
+ PyTorch: setting up devices
225
+ Using auto half precision backend
226
+ ***** Running training *****
227
+ Num examples = 101,565
228
+ Num Epochs = 2
229
+ Instantaneous batch size per device = 4
230
+ Total train batch size (w. parallel, distributed & accumulation) = 96
231
+ Gradient Accumulation steps = 12
232
+ Total optimization steps = 2,116
233
+ Number of trainable parameters = 34,372,608
234
+
235
  0%| | 0/2116 [00:00<?, ?it/s]
236
  0%| | 1/2116 [00:05<3:31:11, 5.99s/it]
237
  0%| | 2/2116 [00:08<2:22:07, 4.03s/it]
238
  0%| | 3/2116 [00:11<1:56:04, 3.30s/it]
239
  0%| | 4/2116 [00:13<1:48:08, 3.07s/it]
240
  0%| | 5/2116 [00:16<1:39:38, 2.83s/it]
241
 
242
+
243
  0%| | 5/2116 [00:16<1:39:38, 2.83s/it]
244
  0%| | 6/2116 [00:18<1:38:09, 2.79s/it]
245
  0%| | 7/2116 [00:21<1:34:53, 2.70s/it]
246
  0%| | 8/2116 [00:23<1:30:46, 2.58s/it]
247
  0%| | 9/2116 [00:25<1:25:49, 2.44s/it]
248
  0%| | 10/2116 [00:28<1:26:09, 2.45s/it]
249
 
250
+
251
  0%| | 10/2116 [00:28<1:26:09, 2.45s/it]
252
  1%| | 11/2116 [00:30<1:25:20, 2.43s/it]
253
  1%| | 12/2116 [00:33<1:23:56, 2.39s/it]
254
  1%| | 13/2116 [00:35<1:24:17, 2.41s/it]
255
  1%| | 14/2116 [00:37<1:17:00, 2.20s/it]
256
  1%| | 15/2116 [00:39<1:14:33, 2.13s/it]
257
 
258
+
259
  1%| | 15/2116 [00:39<1:14:33, 2.13s/it]
260
  1%| | 16/2116 [00:41<1:14:10, 2.12s/it]
261
  1%| | 17/2116 [00:43<1:10:47, 2.02s/it]
262
  1%| | 18/2116 [00:45<1:10:13, 2.01s/it]
263
  1%| | 19/2116 [00:47<1:16:23, 2.19s/it]
264
  1%| | 20/2116 [00:49<1:14:37, 2.14s/it]
265
 
266
+
267
  1%| | 20/2116 [00:49<1:14:37, 2.14s/it]
268
  1%| | 21/2116 [00:52<1:17:25, 2.22s/it]
269
  1%| | 22/2116 [00:54<1:17:19, 2.22s/it]
270
  1%| | 23/2116 [00:56<1:16:28, 2.19s/it]
271
  1%| | 24/2116 [00:58<1:15:15, 2.16s/it]
272
  1%| | 25/2116 [01:00<1:17:42, 2.23s/it]
273
 
274
+
275
  1%| | 25/2116 [01:00<1:17:42, 2.23s/it]
276
  1%| | 26/2116 [01:03<1:16:17, 2.19s/it]
277
  1%|▏ | 27/2116 [01:05<1:18:04, 2.24s/it]
278
  1%|▏ | 28/2116 [01:07<1:19:15, 2.28s/it]
279
  1%|▏ | 29/2116 [01:10<1:23:30, 2.40s/it]
280
  1%|▏ | 30/2116 [01:12<1:18:20, 2.25s/it]
281
 
282
+
283
  1%|▏ | 30/2116 [01:12<1:18:20, 2.25s/it]
284
  1%|▏ | 31/2116 [01:14<1:18:26, 2.26s/it]
285
  2%|▏ | 32/2116 [01:16<1:16:20, 2.20s/it]
286
  2%|▏ | 33/2116 [01:19<1:18:02, 2.25s/it]
287
  2%|▏ | 34/2116 [01:21<1:16:41, 2.21s/it]
288
  2%|▏ | 35/2116 [01:23<1:21:02, 2.34s/it]
289
 
290
+
291
  2%|▏ | 35/2116 [01:23<1:21:02, 2.34s/it]
292
  2%|▏ | 36/2116 [01:26<1:22:55, 2.39s/it]
293
  2%|▏ | 37/2116 [01:28<1:20:57, 2.34s/it]
294
  2%|▏ | 38/2116 [01:30<1:16:59, 2.22s/it]
295
  2%|▏ | 39/2116 [01:32<1:14:42, 2.16s/it]
296
  2%|▏ | 40/2116 [01:34<1:18:23, 2.27s/it]
297
 
298
+
299
  2%|▏ | 40/2116 [01:34<1:18:23, 2.27s/it]
300
  2%|▏ | 41/2116 [01:37<1:18:57, 2.28s/it]
301
  2%|▏ | 42/2116 [01:39<1:18:52, 2.28s/it]
302
  2%|▏ | 43/2116 [01:41<1:19:20, 2.30s/it]
303
  2%|▏ | 44/2116 [01:44<1:22:20, 2.38s/it]
304
  2%|▏ | 45/2116 [01:46<1:20:26, 2.33s/it]
305
 
306
+
307
  2%|▏ | 45/2116 [01:46<1:20:26, 2.33s/it]
308
  2%|▏ | 46/2116 [01:48<1:18:27, 2.27s/it]
309
  2%|▏ | 47/2116 [01:51<1:19:09, 2.30s/it]
310
  2%|▏ | 48/2116 [01:53<1:21:43, 2.37s/it]
311
  2%|▏ | 49/2116 [01:56<1:20:59, 2.35s/it]
312
  2%|▏ | 50/2116 [01:58<1:21:53, 2.38s/it]
313
 
314
+
315
  2%|▏ | 50/2116 [01:58<1:21:53, 2.38s/it]
316
  2%|▏ | 51/2116 [02:00<1:21:23, 2.36s/it]
317
  2%|▏ | 52/2116 [02:03<1:23:23, 2.42s/it]
318
  3%|▎ | 53/2116 [02:05<1:22:01, 2.39s/it]
319
  3%|▎ | 54/2116 [02:08<1:22:17, 2.39s/it]
320
  3%|▎ | 55/2116 [02:10<1:24:44, 2.47s/it]
321
 
322
+
323
  3%|▎ | 55/2116 [02:10<1:24:44, 2.47s/it]
324
  3%|▎ | 56/2116 [02:13<1:23:43, 2.44s/it]
325
  3%|▎ | 57/2116 [02:15<1:24:41, 2.47s/it]
326
  3%|▎ | 58/2116 [02:17<1:23:25, 2.43s/it]
327
  3%|▎ | 59/2116 [02:20<1:19:47, 2.33s/it]
328
  3%|▎ | 60/2116 [02:22<1:18:23, 2.29s/it]
329
 
330
+
331
  3%|▎ | 60/2116 [02:22<1:18:23, 2.29s/it]
332
  3%|▎ | 61/2116 [02:24<1:21:23, 2.38s/it]
333
  3%|▎ | 62/2116 [02:27<1:23:07, 2.43s/it]
334
  3%|▎ | 63/2116 [02:29<1:20:46, 2.36s/it]
335
  3%|▎ | 64/2116 [02:32<1:23:11, 2.43s/it]
336
  3%|▎ | 65/2116 [02:34<1:24:20, 2.47s/it]
337
 
338
+
339
  3%|▎ | 65/2116 [02:34<1:24:20, 2.47s/it]
340
  3%|▎ | 66/2116 [02:36<1:21:31, 2.39s/it]
341
  3%|▎ | 67/2116 [02:39<1:19:44, 2.33s/it]
342
  3%|▎ | 68/2116 [02:41<1:18:43, 2.31s/it]
343
  3%|▎ | 69/2116 [02:43<1:19:24, 2.33s/it]
344
  3%|▎ | 70/2116 [02:45<1:18:02, 2.29s/it]
345
 
346
+
347
  3%|▎ | 70/2116 [02:45<1:18:02, 2.29s/it]
348
  3%|▎ | 71/2116 [02:48<1:18:08, 2.29s/it]
349
  3%|▎ | 72/2116 [02:50<1:17:44, 2.28s/it]
350
  3%|▎ | 73/2116 [02:52<1:17:10, 2.27s/it]
351
  3%|▎ | 74/2116 [02:55<1:18:32, 2.31s/it]
352
  4%|▎ | 75/2116 [02:57<1:19:41, 2.34s/it]
353
 
354
+
355
  4%|▎ | 75/2116 [02:57<1:19:41, 2.34s/it]
356
  4%|▎ | 76/2116 [02:59<1:16:57, 2.26s/it]
357
  4%|▎ | 77/2116 [03:01<1:13:21, 2.16s/it]
358
  4%|▎ | 78/2116 [03:03<1:12:30, 2.13s/it]
359
  4%|▎ | 79/2116 [03:05<1:13:30, 2.17s/it]
360
  4%|▍ | 80/2116 [03:08<1:15:53, 2.24s/it]
361
 
362
+
363
  4%|▍ | 80/2116 [03:08<1:15:53, 2.24s/it]
364
  4%|▍ | 81/2116 [03:10<1:20:04, 2.36s/it]
365
  4%|▍ | 82/2116 [03:12<1:14:30, 2.20s/it]
366
  4%|▍ | 83/2116 [03:15<1:18:08, 2.31s/it]
367
  4%|▍ | 84/2116 [03:17<1:17:15, 2.28s/it]
368
  4%|▍ | 85/2116 [03:19<1:18:46, 2.33s/it]
369
 
370
+
371
  4%|▍ | 85/2116 [03:19<1:18:46, 2.33s/it]
372
  4%|▍ | 86/2116 [03:22<1:22:56, 2.45s/it]
373
  4%|▍ | 87/2116 [03:25<1:25:30, 2.53s/it]
374
  4%|▍ | 88/2116 [03:27<1:24:33, 2.50s/it]
375
  4%|▍ | 89/2116 [03:30<1:22:43, 2.45s/it]
376
  4%|▍ | 90/2116 [03:32<1:25:24, 2.53s/it]
377
 
378
+
379
  4%|▍ | 90/2116 [03:32<1:25:24, 2.53s/it]
380
  4%|▍ | 91/2116 [03:35<1:27:03, 2.58s/it]
381
  4%|▍ | 92/2116 [03:37<1:22:01, 2.43s/it]
382
  4%|▍ | 93/2116 [03:40<1:22:22, 2.44s/it]
383
  4%|▍ | 94/2116 [03:42<1:19:48, 2.37s/it]
384
  4%|▍ | 95/2116 [03:44<1:14:21, 2.21s/it]
385
 
386
+
387
  4%|▍ | 95/2116 [03:44<1:14:21, 2.21s/it]
388
  5%|▍ | 96/2116 [03:46<1:18:25, 2.33s/it]
389
  5%|▍ | 97/2116 [03:49<1:21:50, 2.43s/it]
390
  5%|▍ | 98/2116 [03:51<1:21:46, 2.43s/it]
391
  5%|▍ | 99/2116 [03:54<1:18:46, 2.34s/it]
392
  5%|▍ | 100/2116 [03:56<1:19:02, 2.35s/it]
393
 
394
+
395
  5%|▍ | 100/2116 [03:56<1:19:02, 2.35s/it]
396
  5%|▍ | 101/2116 [03:58<1:17:59, 2.32s/it]
397
  5%|▍ | 102/2116 [04:00<1:16:26, 2.28s/it]
398
  5%|▍ | 103/2116 [04:03<1:16:10, 2.27s/it]
399
  5%|▍ | 104/2116 [04:05<1:16:20, 2.28s/it]
400
  5%|▍ | 105/2116 [04:07<1:18:02, 2.33s/it]
401
 
402
+
403
  5%|▍ | 105/2116 [04:07<1:18:02, 2.33s/it]
404
  5%|▌ | 106/2116 [04:10<1:16:21, 2.28s/it]
405
  5%|▌ | 107/2116 [04:12<1:17:09, 2.30s/it]
406
  5%|▌ | 108/2116 [04:14<1:17:58, 2.33s/it]
407
  5%|▌ | 109/2116 [04:16<1:15:59, 2.27s/it]
408
  5%|▌ | 110/2116 [04:19<1:17:14, 2.31s/it]
409
 
410
+
411
  5%|▌ | 110/2116 [04:19<1:17:14, 2.31s/it]
412
  5%|▌ | 111/2116 [04:21<1:17:57, 2.33s/it]
413
  5%|▌ | 112/2116 [04:24<1:20:33, 2.41s/it]
414
  5%|▌ | 113/2116 [04:26<1:18:58, 2.37s/it]
415
  5%|▌ | 114/2116 [04:28<1:18:35, 2.36s/it]
416
  5%|▌ | 115/2116 [04:31<1:16:41, 2.30s/it]
417
 
418
+
419
  5%|▌ | 115/2116 [04:31<1:16:41, 2.30s/it]
420
  5%|▌ | 116/2116 [04:33<1:17:30, 2.33s/it]
421
  6%|▌ | 117/2116 [04:36<1:22:04, 2.46s/it]
422
  6%|▌ | 118/2116 [04:38<1:22:27, 2.48s/it]
423
  6%|▌ | 119/2116 [04:40<1:17:47, 2.34s/it]
424
  6%|▌ | 120/2116 [04:42<1:16:14, 2.29s/it]
425
 
426
+
427
  6%|▌ | 120/2116 [04:42<1:16:14, 2.29s/it]
428
  6%|▌ | 121/2116 [04:45<1:15:01, 2.26s/it]
429
  6%|▌ | 122/2116 [04:47<1:15:44, 2.28s/it]
430
  6%|▌ | 123/2116 [04:49<1:16:57, 2.32s/it]
431
  6%|▌ | 124/2116 [04:51<1:15:10, 2.26s/it]
432
  6%|▌ | 125/2116 [04:54<1:15:55, 2.29s/it]
433
 
434
+
435
  6%|▌ | 125/2116 [04:54<1:15:55, 2.29s/it]
436
  6%|▌ | 126/2116 [04:56<1:15:59, 2.29s/it]
437
  6%|▌ | 127/2116 [04:58<1:16:36, 2.31s/it]
438
  6%|▌ | 128/2116 [05:01<1:16:29, 2.31s/it]
439
  6%|▌ | 129/2116 [05:03<1:19:48, 2.41s/it]
440
  6%|▌ | 130/2116 [05:05<1:16:24, 2.31s/it]
441
 
442
+
443
  6%|▌ | 130/2116 [05:05<1:16:24, 2.31s/it]
444
  6%|▌ | 131/2116 [05:08<1:15:46, 2.29s/it]
445
  6%|▌ | 132/2116 [05:10<1:11:17, 2.16s/it]
446
  6%|▋ | 133/2116 [05:12<1:12:54, 2.21s/it]
447
  6%|▋ | 134/2116 [05:14<1:12:47, 2.20s/it]
448
  6%|▋ | 135/2116 [05:17<1:15:05, 2.27s/it]
449
 
450
+
451
  6%|▋ | 135/2116 [05:17<1:15:05, 2.27s/it]
452
  6%|▋ | 136/2116 [05:19<1:14:25, 2.26s/it]
453
  6%|▋ | 137/2116 [05:21<1:13:12, 2.22s/it]
454
  7%|▋ | 138/2116 [05:23<1:11:24, 2.17s/it]
455
  7%|▋ | 139/2116 [05:25<1:13:28, 2.23s/it]
456
  7%|▋ | 140/2116 [05:27<1:11:29, 2.17s/it]
457
 
458
+
459
  7%|▋ | 140/2116 [05:27<1:11:29, 2.17s/it]
460
  7%|▋ | 141/2116 [05:30<1:12:34, 2.21s/it]
461
  7%|▋ | 142/2116 [05:32<1:13:16, 2.23s/it]
462
  7%|▋ | 143/2116 [05:34<1:13:48, 2.24s/it]
463
  7%|▋ | 144/2116 [05:36<1:12:23, 2.20s/it]
464
  7%|▋ | 145/2116 [05:38<1:11:13, 2.17s/it]
465
 
466
+
467
  7%|▋ | 145/2116 [05:38<1:11:13, 2.17s/it]
468
  7%|▋ | 146/2116 [05:41<1:14:58, 2.28s/it]
469
  7%|▋ | 147/2116 [05:44<1:18:47, 2.40s/it]
470
  7%|▋ | 148/2116 [05:46<1:17:09, 2.35s/it]
471
  7%|▋ | 149/2116 [05:48<1:14:31, 2.27s/it]
472
  7%|▋ | 150/2116 [05:51<1:17:42, 2.37s/it]
473
 
474
+
475
  7%|▋ | 150/2116 [05:51<1:17:42, 2.37s/it]
476
  7%|▋ | 151/2116 [05:53<1:14:53, 2.29s/it]
477
  7%|▋ | 152/2116 [05:55<1:14:20, 2.27s/it]
478
  7%|▋ | 153/2116 [05:57<1:11:26, 2.18s/it]
479
  7%|▋ | 154/2116 [05:59<1:12:37, 2.22s/it]
480
  7%|▋ | 155/2116 [06:01<1:12:49, 2.23s/it]
481
 
482
+
483
  7%|▋ | 155/2116 [06:01<1:12:49, 2.23s/it]
484
  7%|▋ | 156/2116 [06:04<1:13:54, 2.26s/it]
485
  7%|▋ | 157/2116 [06:06<1:16:28, 2.34s/it]
486
  7%|▋ | 158/2116 [06:08<1:14:47, 2.29s/it]
487
  8%|▊ | 159/2116 [06:11<1:14:09, 2.27s/it]
488
  8%|▊ | 160/2116 [06:13<1:16:07, 2.34s/it]
489
 
490
+
491
  8%|▊ | 160/2116 [06:13<1:16:07, 2.34s/it]
492
  8%|▊ | 161/2116 [06:15<1:13:17, 2.25s/it]
493
  8%|▊ | 162/2116 [06:18<1:17:25, 2.38s/it]
494
  8%|▊ | 163/2116 [06:21<1:21:04, 2.49s/it]
495
  8%|▊ | 164/2116 [06:23<1:24:14, 2.59s/it]
496
  8%|▊ | 165/2116 [06:26<1:21:11, 2.50s/it]
497
 
498
+
499
  8%|▊ | 165/2116 [06:26<1:21:11, 2.50s/it]
500
  8%|▊ | 166/2116 [06:28<1:19:32, 2.45s/it]
501
  8%|▊ | 167/2116 [06:30<1:17:18, 2.38s/it]
502
  8%|▊ | 168/2116 [06:33<1:15:46, 2.33s/it]
503
  8%|▊ | 169/2116 [06:35<1:15:05, 2.31s/it]
504
  8%|▊ | 170/2116 [06:37<1:14:41, 2.30s/it]
505
 
506
+
507
  8%|▊ | 170/2116 [06:37<1:14:41, 2.30s/it]
508
  8%|▊ | 171/2116 [06:39<1:14:14, 2.29s/it]
509
  8%|▊ | 172/2116 [06:42<1:15:34, 2.33s/it]
510
  8%|▊ | 173/2116 [06:45<1:20:21, 2.48s/it]
511
  8%|▊ | 174/2116 [06:47<1:21:01, 2.50s/it]
512
  8%|▊ | 175/2116 [06:49<1:16:28, 2.36s/it]
513
 
514
+
515
  8%|▊ | 175/2116 [06:49<1:16:28, 2.36s/it]
516
  8%|▊ | 176/2116 [06:51<1:13:26, 2.27s/it]
517
  8%|▊ | 177/2116 [06:53<1:11:47, 2.22s/it]
518
  8%|▊ | 178/2116 [06:56<1:15:27, 2.34s/it]
519
  8%|▊ | 179/2116 [06:58<1:14:04, 2.29s/it]
520
  9%|▊ | 180/2116 [07:00<1:12:57, 2.26s/it]
521
 
522
+
523
  9%|▊ | 180/2116 [07:00<1:12:57, 2.26s/it]
524
  9%|▊ | 181/2116 [07:03<1:14:27, 2.31s/it]
525
  9%|▊ | 182/2116 [07:05<1:12:11, 2.24s/it]
526
  9%|▊ | 183/2116 [07:07<1:14:15, 2.30s/it]
527
  9%|▊ | 184/2116 [07:09<1:11:00, 2.21s/it]
528
  9%|▊ | 185/2116 [07:12<1:12:20, 2.25s/it]
529
 
530
+
531
  9%|▊ | 185/2116 [07:12<1:12:20, 2.25s/it]
532
  9%|▉ | 186/2116 [07:13<1:08:17, 2.12s/it]
533
  9%|▉ | 187/2116 [07:16<1:10:15, 2.19s/it]
534
  9%|▉ | 188/2116 [07:18<1:12:54, 2.27s/it]
535
  9%|▉ | 189/2116 [07:21<1:15:23, 2.35s/it]
536
  9%|▉ | 190/2116 [07:23<1:17:04, 2.40s/it]
537
 
538
+
539
  9%|▉ | 190/2116 [07:23<1:17:04, 2.40s/it]
540
  9%|▉ | 191/2116 [07:26<1:19:41, 2.48s/it]
541
  9%|▉ | 192/2116 [07:28<1:17:50, 2.43s/it]
542
  9%|▉ | 193/2116 [07:31<1:21:06, 2.53s/it]
543
  9%|▉ | 194/2116 [07:34<1:20:32, 2.51s/it]
544
  9%|▉ | 195/2116 [07:36<1:17:22, 2.42s/it]
545
 
546
+
547
  9%|▉ | 195/2116 [07:36<1:17:22, 2.42s/it]
548
  9%|▉ | 196/2116 [07:38<1:17:55, 2.44s/it]
549
  9%|▉ | 197/2116 [07:41<1:19:09, 2.47s/it]
550
  9%|▉ | 198/2116 [07:43<1:17:44, 2.43s/it]
551
  9%|▉ | 199/2116 [07:45<1:17:03, 2.41s/it]
552
  9%|▉ | 200/2116 [07:48<1:19:12, 2.48s/it]
553
 
554
+
555
  9%|▉ | 200/2116 [07:48<1:19:12, 2.48s/it]
556
  9%|▉ | 201/2116 [07:51<1:19:19, 2.49s/it]
557
  10%|▉ | 202/2116 [07:53<1:19:44, 2.50s/it]
558
  10%|▉ | 203/2116 [07:55<1:17:14, 2.42s/it]
559
  10%|▉ | 204/2116 [07:58<1:21:24, 2.55s/it]
560
  10%|▉ | 205/2116 [08:00<1:18:34, 2.47s/it]
561
 
562
+
563
  10%|▉ | 205/2116 [08:00<1:18:34, 2.47s/it]
564
  10%|▉ | 206/2116 [08:02<1:13:27, 2.31s/it]
565
  10%|▉ | 207/2116 [08:05<1:13:43, 2.32s/it]
566
  10%|▉ | 208/2116 [08:07<1:17:04, 2.42s/it]
567
  10%|▉ | 209/2116 [08:10<1:16:36, 2.41s/it]
568
  10%|▉ | 210/2116 [08:12<1:15:55, 2.39s/it]
569
 
570
+
571
  10%|▉ | 210/2116 [08:12<1:15:55, 2.39s/it]
572
  10%|▉ | 211/2116 [08:15<1:15:50, 2.39s/it]
573
  10%|█ | 212/2116 [08:17<1:14:23, 2.34s/it]
574
  10%|█ | 213/2116 [08:19<1:12:38, 2.29s/it]
575
  10%|█ | 214/2116 [08:21<1:10:35, 2.23s/it]
576
  10%|█ | 215/2116 [08:23<1:12:24, 2.29s/it]
577
 
578
+
579
  10%|█ | 215/2116 [08:23<1:12:24, 2.29s/it]
580
  10%|█ | 216/2116 [08:25<1:09:55, 2.21s/it]
581
  10%|█ | 217/2116 [08:28<1:09:32, 2.20s/it]
582
  10%|█ | 218/2116 [08:30<1:15:06, 2.37s/it]
583
  10%|█ | 219/2116 [08:33<1:17:55, 2.46s/it]
584
  10%|█ | 220/2116 [08:35<1:11:54, 2.28s/it]
585
 
586
+
587
  10%|█ | 220/2116 [08:35<1:11:54, 2.28s/it]
588
  10%|█ | 221/2116 [08:37<1:13:48, 2.34s/it]
589
  10%|█ | 222/2116 [08:40<1:12:35, 2.30s/it]
590
  11%|█ | 223/2116 [08:42<1:14:10, 2.35s/it]
591
  11%|█ | 224/2116 [08:44<1:13:54, 2.34s/it]
592
  11%|█ | 225/2116 [08:47<1:12:56, 2.31s/it]
593
 
594
+
595
  11%|█ | 225/2116 [08:47<1:12:56, 2.31s/it]
596
  11%|█ | 226/2116 [08:49<1:13:47, 2.34s/it]
597
  11%|█ | 227/2116 [08:52<1:17:38, 2.47s/it]
598
  11%|█ | 228/2116 [08:54<1:18:40, 2.50s/it]
599
  11%|█ | 229/2116 [08:57<1:16:11, 2.42s/it]
600
  11%|█ | 230/2116 [08:59<1:16:31, 2.43s/it]
601
 
602
+
603
  11%|█ | 230/2116 [08:59<1:16:31, 2.43s/it]
604
  11%|█ | 231/2116 [09:02<1:17:17, 2.46s/it]
605
  11%|█ | 232/2116 [09:04<1:15:27, 2.40s/it]
606
  11%|█ | 233/2116 [09:07<1:19:55, 2.55s/it]
607
  11%|█ | 234/2116 [09:09<1:16:33, 2.44s/it]
608
  11%|█ | 235/2116 [09:11<1:14:17, 2.37s/it]
609
 
610
+
611
  11%|█ | 235/2116 [09:11<1:14:17, 2.37s/it]
612
  11%|█ | 236/2116 [09:13<1:10:27, 2.25s/it]
613
  11%|█ | 237/2116 [09:15<1:08:59, 2.20s/it]
614
  11%|█ | 238/2116 [09:18<1:10:10, 2.24s/it]
615
  11%|█▏ | 239/2116 [09:20<1:11:12, 2.28s/it]
616
  11%|█▏ | 240/2116 [09:22<1:06:59, 2.14s/it]
617
 
618
+
619
  11%|█▏ | 240/2116 [09:22<1:06:59, 2.14s/it]
620
  11%|█▏ | 241/2116 [09:24<1:11:27, 2.29s/it]
621
  11%|█▏ | 242/2116 [09:27<1:14:32, 2.39s/it]
622
  11%|█▏ | 243/2116 [09:29<1:08:42, 2.20s/it]
623
  12%|█▏ | 244/2116 [09:31<1:10:10, 2.25s/it]
624
  12%|█▏ | 245/2116 [09:34<1:12:52, 2.34s/it]
625
 
626
+
627
  12%|█▏ | 245/2116 [09:34<1:12:52, 2.34s/it]
628
  12%|█▏ | 246/2116 [09:36<1:12:24, 2.32s/it]
629
  12%|█▏ | 247/2116 [09:38<1:13:09, 2.35s/it]
630
  12%|█▏ | 248/2116 [09:41<1:12:44, 2.34s/it]
631
  12%|█▏ | 249/2116 [09:43<1:14:09, 2.38s/it]
632
  12%|█▏ | 250/2116 [09:46<1:14:06, 2.38s/it]
633
 
634
+
635
  12%|█▏ | 250/2116 [09:46<1:14:06, 2.38s/it]
636
  12%|█▏ | 251/2116 [09:48<1:19:03, 2.54s/it]
637
  12%|█▏ | 252/2116 [09:51<1:16:37, 2.47s/it]
638
  12%|█▏ | 253/2116 [09:53<1:17:18, 2.49s/it]
639
  12%|█▏ | 254/2116 [09:56<1:18:28, 2.53s/it]
640
  12%|█▏ | 255/2116 [09:58<1:15:46, 2.44s/it]
641
 
642
+
643
  12%|█▏ | 255/2116 [09:58<1:15:46, 2.44s/it]
644
  12%|█▏ | 256/2116 [10:01<1:15:41, 2.44s/it]
645
  12%|█▏ | 257/2116 [10:03<1:13:55, 2.39s/it]
646
  12%|█▏ | 258/2116 [10:05<1:09:21, 2.24s/it]
647
  12%|█▏ | 259/2116 [10:07<1:10:26, 2.28s/it]
648
  12%|█▏ | 260/2116 [10:10<1:12:47, 2.35s/it]
649
 
650
+
651
  12%|█▏ | 260/2116 [10:10<1:12:47, 2.35s/it]
652
  12%|█▏ | 261/2116 [10:12<1:08:40, 2.22s/it]
653
  12%|█▏ | 262/2116 [10:13<1:05:38, 2.12s/it]
654
  12%|█▏ | 263/2116 [10:16<1:11:47, 2.32s/it]
655
  12%|█▏ | 264/2116 [10:18<1:10:30, 2.28s/it]
656
  13%|█▎ | 265/2116 [10:21<1:14:38, 2.42s/it]
657
 
658
+
659
  13%|█▎ | 265/2116 [10:21<1:14:38, 2.42s/it]
660
  13%|█▎ | 266/2116 [10:24<1:16:13, 2.47s/it]
661
  13%|█▎ | 267/2116 [10:26<1:16:31, 2.48s/it]
662
  13%|█▎ | 268/2116 [10:29<1:15:11, 2.44s/it]
663
  13%|█▎ | 269/2116 [10:31<1:15:43, 2.46s/it]
664
  13%|█▎ | 270/2116 [10:34<1:15:52, 2.47s/it]
665
 
666
+
667
  13%|█▎ | 270/2116 [10:34<1:15:52, 2.47s/it]
668
  13%|█▎ | 271/2116 [10:36<1:18:15, 2.54s/it]
669
  13%|█▎ | 272/2116 [10:38<1:14:28, 2.42s/it]
670
  13%|█▎ | 273/2116 [10:41<1:15:10, 2.45s/it]
671
  13%|█▎ | 274/2116 [10:43<1:11:51, 2.34s/it]
672
  13%|█▎ | 275/2116 [10:46<1:14:46, 2.44s/it]
673
 
674
+
675
  13%|█▎ | 275/2116 [10:46<1:14:46, 2.44s/it]
676
  13%|█▎ | 276/2116 [10:48<1:13:16, 2.39s/it]
677
  13%|█▎ | 277/2116 [10:50<1:08:40, 2.24s/it]
678
  13%|█▎ | 278/2116 [10:52<1:09:52, 2.28s/it]
679
  13%|█▎ | 279/2116 [10:55<1:09:23, 2.27s/it]
680
  13%|█▎ | 280/2116 [10:56<1:06:21, 2.17s/it]
681
 
682
+
683
  13%|█▎ | 280/2116 [10:56<1:06:21, 2.17s/it]
684
  13%|█▎ | 281/2116 [10:58<1:04:25, 2.11s/it]
685
  13%|█▎ | 282/2116 [11:01<1:05:56, 2.16s/it]
686
  13%|█▎ | 283/2116 [11:03<1:07:46, 2.22s/it]
687
  13%|█▎ | 284/2116 [11:05<1:08:19, 2.24s/it]
688
  13%|█▎ | 285/2116 [11:08<1:09:35, 2.28s/it]
689
 
690
+
691
  13%|█▎ | 285/2116 [11:08<1:09:35, 2.28s/it]
692
  14%|█▎ | 286/2116 [11:10<1:08:17, 2.24s/it]
693
  14%|█▎ | 287/2116 [11:12<1:09:29, 2.28s/it]
694
  14%|█▎ | 288/2116 [11:14<1:09:05, 2.27s/it]
695
  14%|█▎ | 289/2116 [11:16<1:05:38, 2.16s/it]
696
  14%|█▎ | 290/2116 [11:19<1:07:31, 2.22s/it]
697
 
698
+
699
  14%|█▎ | 290/2116 [11:19<1:07:31, 2.22s/it]
700
  14%|█▍ | 291/2116 [11:21<1:07:37, 2.22s/it]
701
  14%|█▍ | 292/2116 [11:23<1:08:54, 2.27s/it]
702
  14%|█▍ | 293/2116 [11:26<1:12:47, 2.40s/it]
703
  14%|█▍ | 294/2116 [11:29<1:13:47, 2.43s/it]
704
  14%|█▍ | 295/2116 [11:31<1:10:17, 2.32s/it]
705
 
706
+
707
  14%|█▍ | 295/2116 [11:31<1:10:17, 2.32s/it]
708
  14%|█▍ | 296/2116 [11:33<1:08:45, 2.27s/it]
709
  14%|█▍ | 297/2116 [11:35<1:07:32, 2.23s/it]
710
  14%|█▍ | 298/2116 [11:37<1:07:08, 2.22s/it]
711
  14%|█▍ | 299/2116 [11:39<1:08:23, 2.26s/it]
712
  14%|█▍ | 300/2116 [11:42<1:08:26, 2.26s/it]
713
 
714
+
715
  14%|█▍ | 300/2116 [11:42<1:08:26, 2.26s/it]
716
  14%|█▍ | 301/2116 [11:44<1:07:32, 2.23s/it]
717
  14%|█▍ | 302/2116 [11:47<1:13:13, 2.42s/it]
718
  14%|█▍ | 303/2116 [11:49<1:11:15, 2.36s/it]
719
  14%|█▍ | 304/2116 [11:51<1:10:04, 2.32s/it]
720
  14%|█▍ | 305/2116 [11:53<1:08:55, 2.28s/it]
721
 
722
+
723
  14%|█▍ | 305/2116 [11:53<1:08:55, 2.28s/it]
724
  14%|█▍ | 306/2116 [11:56<1:07:30, 2.24s/it]
725
  15%|█▍ | 307/2116 [11:58<1:08:04, 2.26s/it]
726
  15%|█▍ | 308/2116 [12:00<1:04:35, 2.14s/it]
727
  15%|█▍ | 309/2116 [12:02<1:05:36, 2.18s/it]
728
  15%|█▍ | 310/2116 [12:04<1:05:56, 2.19s/it]
729
 
730
+
731
  15%|█▍ | 310/2116 [12:04<1:05:56, 2.19s/it]
732
  15%|█▍ | 311/2116 [12:07<1:07:49, 2.25s/it]
733
  15%|█▍ | 312/2116 [12:09<1:10:31, 2.35s/it]
734
  15%|█▍ | 313/2116 [12:12<1:11:07, 2.37s/it]
735
  15%|█▍ | 314/2116 [12:14<1:08:53, 2.29s/it]
736
  15%|█▍ | 315/2116 [12:16<1:13:31, 2.45s/it]
737
 
738
+
739
  15%|█▍ | 315/2116 [12:16<1:13:31, 2.45s/it]
740
  15%|█▍ | 316/2116 [12:19<1:17:53, 2.60s/it]
741
  15%|█▍ | 317/2116 [12:22<1:14:00, 2.47s/it]
742
  15%|█▌ | 318/2116 [12:24<1:10:43, 2.36s/it]
743
  15%|█▌ | 319/2116 [12:26<1:12:49, 2.43s/it]
744
  15%|█▌ | 320/2116 [12:29<1:12:25, 2.42s/it]
745
 
746
+
747
  15%|█▌ | 320/2116 [12:29<1:12:25, 2.42s/it]
748
  15%|█▌ | 321/2116 [12:31<1:11:37, 2.39s/it]
749
  15%|█▌ | 322/2116 [12:33<1:09:39, 2.33s/it]
750
  15%|█▌ | 323/2116 [12:35<1:09:05, 2.31s/it]
751
  15%|█▌ | 324/2116 [12:38<1:08:55, 2.31s/it]
752
  15%|█▌ | 325/2116 [12:40<1:08:34, 2.30s/it]
753
 
754
+
755
  15%|█▌ | 325/2116 [12:40<1:08:34, 2.30s/it]
756
  15%|█▌ | 326/2116 [12:42<1:09:56, 2.34s/it]
757
  15%|█▌ | 327/2116 [12:45<1:11:23, 2.39s/it]
758
  16%|█▌ | 328/2116 [12:47<1:11:04, 2.39s/it]
759
  16%|█▌ | 329/2116 [12:49<1:07:01, 2.25s/it]
760
  16%|█▌ | 330/2116 [12:52<1:12:02, 2.42s/it]
761
 
762
+
763
  16%|█▌ | 330/2116 [12:52<1:12:02, 2.42s/it]
764
  16%|█▌ | 331/2116 [12:55<1:12:14, 2.43s/it]
765
  16%|█▌ | 332/2116 [12:57<1:08:25, 2.30s/it]
766
  16%|█▌ | 333/2116 [12:59<1:09:05, 2.32s/it]
767
  16%|█▌ | 334/2116 [13:01<1:08:20, 2.30s/it]
768
  16%|█▌ | 335/2116 [13:04<1:09:29, 2.34s/it]
769
 
770
+
771
  16%|█▌ | 335/2116 [13:04<1:09:29, 2.34s/it]
772
  16%|█▌ | 336/2116 [13:06<1:12:21, 2.44s/it]
773
  16%|█▌ | 337/2116 [13:09<1:14:23, 2.51s/it]
774
  16%|█▌ | 338/2116 [13:11<1:12:48, 2.46s/it]
775
  16%|█▌ | 339/2116 [13:14<1:10:34, 2.38s/it]
776
  16%|█▌ | 340/2116 [13:16<1:14:25, 2.51s/it]
777
 
778
+
779
  16%|█▌ | 340/2116 [13:16<1:14:25, 2.51s/it]
780
  16%|█▌ | 341/2116 [13:19<1:14:50, 2.53s/it]
781
  16%|█▌ | 342/2116 [13:21<1:09:58, 2.37s/it]
782
  16%|█▌ | 343/2116 [13:23<1:08:14, 2.31s/it]
783
  16%|█▋ | 344/2116 [13:26<1:10:26, 2.39s/it]
784
  16%|█▋ | 345/2116 [13:29<1:17:19, 2.62s/it]
785
 
786
+
787
  16%|█▋ | 345/2116 [13:29<1:17:19, 2.62s/it]
788
  16%|█▋ | 346/2116 [13:31<1:14:08, 2.51s/it]
789
  16%|█▋ | 347/2116 [13:34<1:13:33, 2.49s/it]
790
  16%|█▋ | 348/2116 [13:36<1:11:11, 2.42s/it]
791
  16%|█▋ | 349/2116 [13:38<1:06:42, 2.27s/it]
792
  17%|█▋ | 350/2116 [13:39<1:02:48, 2.13s/it]
793
 
794
+
795
  17%|█▋ | 350/2116 [13:39<1:02:48, 2.13s/it]
796
  17%|█▋ | 351/2116 [13:42<1:08:24, 2.33s/it]
797
  17%|█▋ | 352/2116 [13:44<1:06:28, 2.26s/it]
798
  17%|█▋ | 353/2116 [13:47<1:05:43, 2.24s/it]
799
  17%|█▋ | 354/2116 [13:49<1:06:17, 2.26s/it]
800
  17%|█▋ | 355/2116 [13:51<1:06:40, 2.27s/it]
801
 
802
+
803
  17%|█▋ | 355/2116 [13:51<1:06:40, 2.27s/it]
804
  17%|█▋ | 356/2116 [13:53<1:07:07, 2.29s/it]
805
  17%|█▋ | 357/2116 [13:56<1:08:14, 2.33s/it]
806
  17%|█▋ | 358/2116 [13:59<1:10:36, 2.41s/it]
807
  17%|█▋ | 359/2116 [14:00<1:04:52, 2.22s/it]
808
  17%|█▋ | 360/2116 [14:03<1:05:22, 2.23s/it]
809
 
810
+
811
  17%|█▋ | 360/2116 [14:03<1:05:22, 2.23s/it]
812
  17%|█▋ | 361/2116 [14:05<1:09:58, 2.39s/it]
813
  17%|█▋ | 362/2116 [14:08<1:13:03, 2.50s/it]
814
  17%|█▋ | 363/2116 [14:10<1:08:57, 2.36s/it]
815
  17%|█▋ | 364/2116 [14:13<1:10:57, 2.43s/it]
816
  17%|█▋ | 365/2116 [14:15<1:10:23, 2.41s/it]
817
 
818
+
819
  17%|█▋ | 365/2116 [14:15<1:10:23, 2.41s/it]
820
  17%|█▋ | 366/2116 [14:17<1:08:35, 2.35s/it]
821
  17%|█▋ | 367/2116 [14:19<1:05:37, 2.25s/it]
822
  17%|█▋ | 368/2116 [14:21<1:02:39, 2.15s/it]
823
  17%|█▋ | 369/2116 [14:24<1:06:53, 2.30s/it]
824
  17%|█▋ | 370/2116 [14:27<1:11:08, 2.44s/it]
825
 
826
+
827
  17%|█▋ | 370/2116 [14:27<1:11:08, 2.44s/it]
828
  18%|█▊ | 371/2116 [14:29<1:10:51, 2.44s/it]
829
  18%|█▊ | 372/2116 [14:31<1:10:32, 2.43s/it]
830
  18%|█▊ | 373/2116 [14:34<1:09:48, 2.40s/it]
831
  18%|█▊ | 374/2116 [14:36<1:07:35, 2.33s/it]
832
  18%|█▊ | 375/2116 [14:38<1:05:48, 2.27s/it]
833
 
834
+
835
  18%|█▊ | 375/2116 [14:38<1:05:48, 2.27s/it]
836
  18%|█▊ | 376/2116 [14:40<1:06:24, 2.29s/it]
837
  18%|█▊ | 377/2116 [14:43<1:07:03, 2.31s/it]
838
  18%|█▊ | 378/2116 [14:45<1:06:38, 2.30s/it]
839
  18%|█▊ | 379/2116 [14:47<1:03:40, 2.20s/it]
840
  18%|█▊ | 380/2116 [14:49<1:02:37, 2.16s/it]
841
 
842
+
843
  18%|█▊ | 380/2116 [14:49<1:02:37, 2.16s/it]
844
  18%|█▊ | 381/2116 [14:52<1:06:35, 2.30s/it]
845
  18%|█▊ | 382/2116 [14:54<1:07:22, 2.33s/it]
846
  18%|█▊ | 383/2116 [14:56<1:05:46, 2.28s/it]
847
  18%|█▊ | 384/2116 [14:59<1:05:47, 2.28s/it]
848
  18%|█▊ | 385/2116 [15:01<1:04:55, 2.25s/it]
849
 
850
+
851
  18%|█▊ | 385/2116 [15:01<1:04:55, 2.25s/it]
852
  18%|█▊ | 386/2116 [15:03<1:07:54, 2.36s/it]
853
  18%|█▊ | 387/2116 [15:05<1:03:38, 2.21s/it]
854
  18%|█▊ | 388/2116 [15:07<1:04:14, 2.23s/it]
855
  18%|█▊ | 389/2116 [15:10<1:04:39, 2.25s/it]
856
  18%|█▊ | 390/2116 [15:12<1:03:48, 2.22s/it]
857
 
858
+
859
  18%|█▊ | 390/2116 [15:12<1:03:48, 2.22s/it]
860
  18%|█▊ | 391/2116 [15:14<1:03:52, 2.22s/it]
861
  19%|█▊ | 392/2116 [15:17<1:05:29, 2.28s/it]
862
  19%|█▊ | 393/2116 [15:19<1:07:05, 2.34s/it]
863
  19%|█▊ | 394/2116 [15:21<1:06:52, 2.33s/it]
864
  19%|█▊ | 395/2116 [15:23<1:03:01, 2.20s/it]
865
 
866
+
867
  19%|█▊ | 395/2116 [15:23<1:03:01, 2.20s/it]
868
  19%|█▊ | 396/2116 [15:25<1:03:27, 2.21s/it]
869
  19%|█▉ | 397/2116 [15:28<1:03:13, 2.21s/it]
870
  19%|█▉ | 398/2116 [15:30<1:08:06, 2.38s/it]
871
  19%|█▉ | 399/2116 [15:33<1:10:59, 2.48s/it]
872
  19%|█▉ | 400/2116 [15:35<1:09:04, 2.42s/it]
873
 
874
+
875
  19%|█▉ | 400/2116 [15:35<1:09:04, 2.42s/it]
876
  19%|█▉ | 401/2116 [15:38<1:09:10, 2.42s/it]
877
  19%|█▉ | 402/2116 [15:41<1:12:18, 2.53s/it]
878
  19%|█▉ | 403/2116 [15:43<1:12:02, 2.52s/it]
879
  19%|█▉ | 404/2116 [15:46<1:11:47, 2.52s/it]
880
  19%|█▉ | 405/2116 [15:48<1:11:19, 2.50s/it]
881
 
882
+
883
  19%|█▉ | 405/2116 [15:48<1:11:19, 2.50s/it]
884
  19%|█▉ | 406/2116 [15:50<1:08:49, 2.42s/it]
885
  19%|█▉ | 407/2116 [15:53<1:08:28, 2.40s/it]
886
  19%|█▉ | 408/2116 [15:55<1:08:47, 2.42s/it]
887
  19%|█▉ | 409/2116 [15:58<1:08:24, 2.40s/it]
888
  19%|█▉ | 410/2116 [16:00<1:07:33, 2.38s/it]
889
 
890
+
891
  19%|█▉ | 410/2116 [16:00<1:07:33, 2.38s/it]
892
  19%|█▉ | 411/2116 [16:02<1:04:33, 2.27s/it]
893
  19%|█▉ | 412/2116 [16:04<1:05:39, 2.31s/it]
894
  20%|█▉ | 413/2116 [16:07<1:05:02, 2.29s/it]
895
  20%|█▉ | 414/2116 [16:09<1:03:22, 2.23s/it]
896
  20%|█▉ | 415/2116 [16:11<1:04:34, 2.28s/it]
897
 
898
+
899
  20%|█▉ | 415/2116 [16:11<1:04:34, 2.28s/it]
900
  20%|█▉ | 416/2116 [16:13<1:01:31, 2.17s/it]
901
  20%|█▉ | 417/2116 [16:15<1:02:02, 2.19s/it]
902
  20%|█▉ | 418/2116 [16:17<1:02:26, 2.21s/it]
903
  20%|█▉ | 419/2116 [16:20<1:04:52, 2.29s/it]
904
  20%|█▉ | 420/2116 [16:22<1:06:10, 2.34s/it]
905
 
906
+
907
  20%|█▉ | 420/2116 [16:22<1:06:10, 2.34s/it]
908
  20%|█▉ | 421/2116 [16:24<1:03:17, 2.24s/it]
909
  20%|█▉ | 422/2116 [16:27<1:06:20, 2.35s/it]
910
  20%|█▉ | 423/2116 [16:29<1:07:28, 2.39s/it]
911
  20%|██ | 424/2116 [16:32<1:08:32, 2.43s/it]
912
  20%|██ | 425/2116 [16:35<1:12:01, 2.56s/it]
913
 
914
+
915
  20%|██ | 425/2116 [16:35<1:12:01, 2.56s/it]
916
  20%|██ | 426/2116 [16:37<1:12:27, 2.57s/it]
917
  20%|██ | 427/2116 [16:40<1:12:39, 2.58s/it]
918
  20%|██ | 428/2116 [16:42<1:07:59, 2.42s/it]
919
  20%|██ | 429/2116 [16:44<1:06:44, 2.37s/it]
920
  20%|██ | 430/2116 [16:47<1:09:09, 2.46s/it]
921
 
922
+
923
  20%|██ | 430/2116 [16:47<1:09:09, 2.46s/it]
924
  20%|██ | 431/2116 [16:49<1:07:10, 2.39s/it]
925
  20%|██ | 432/2116 [16:51<1:04:47, 2.31s/it]
926
  20%|██ | 433/2116 [16:54<1:06:45, 2.38s/it]
927
  21%|██ | 434/2116 [16:56<1:07:00, 2.39s/it]
928
  21%|██ | 435/2116 [16:59<1:09:45, 2.49s/it]
929
 
930
+
931
  21%|██ | 435/2116 [16:59<1:09:45, 2.49s/it]
932
  21%|██ | 436/2116 [17:01<1:08:34, 2.45s/it]
933
  21%|██ | 437/2116 [17:04<1:08:11, 2.44s/it]
934
  21%|██ | 438/2116 [17:06<1:05:28, 2.34s/it]
935
  21%|██ | 439/2116 [17:08<1:04:51, 2.32s/it]
936
  21%|██ | 440/2116 [17:10<1:03:37, 2.28s/it]
937
 
938
+
939
  21%|██ | 440/2116 [17:10<1:03:37, 2.28s/it]
940
  21%|██ | 441/2116 [17:13<1:09:20, 2.48s/it]
941
  21%|██ | 442/2116 [17:16<1:08:02, 2.44s/it]
942
  21%|██ | 443/2116 [17:18<1:09:16, 2.48s/it]
943
  21%|██ | 444/2116 [17:21<1:11:00, 2.55s/it]
944
  21%|██ | 445/2116 [17:23<1:09:58, 2.51s/it]
945
 
946
+
947
  21%|██ | 445/2116 [17:23<1:09:58, 2.51s/it]
948
  21%|██ | 446/2116 [17:26<1:06:59, 2.41s/it]
949
  21%|██ | 447/2116 [17:28<1:06:44, 2.40s/it]
950
  21%|██ | 448/2116 [17:31<1:10:30, 2.54s/it]
951
  21%|██ | 449/2116 [17:33<1:09:50, 2.51s/it]
952
  21%|██▏ | 450/2116 [17:35<1:07:16, 2.42s/it]
953
 
954
+
955
  21%|██▏ | 450/2116 [17:35<1:07:16, 2.42s/it]
956
  21%|██▏ | 451/2116 [17:38<1:04:26, 2.32s/it]
957
  21%|██▏ | 452/2116 [17:40<1:06:47, 2.41s/it]
958
  21%|██▏ | 453/2116 [17:43<1:08:44, 2.48s/it]
959
  21%|██▏ | 454/2116 [17:45<1:07:57, 2.45s/it]
960
  22%|██▏ | 455/2116 [17:48<1:06:53, 2.42s/it]
961
 
962
+
963
  22%|██▏ | 455/2116 [17:48<1:06:53, 2.42s/it]
964
  22%|██▏ | 456/2116 [17:50<1:06:11, 2.39s/it]
965
  22%|██▏ | 457/2116 [17:52<1:08:01, 2.46s/it]
966
  22%|██▏ | 458/2116 [17:54<1:03:12, 2.29s/it]
967
  22%|██▏ | 459/2116 [17:57<1:04:28, 2.33s/it]
968
  22%|██▏ | 460/2116 [17:59<1:06:34, 2.41s/it]
969
 
970
+
971
  22%|██▏ | 460/2116 [17:59<1:06:34, 2.41s/it]
972
  22%|██▏ | 461/2116 [18:02<1:05:47, 2.39s/it]
973
  22%|██▏ | 462/2116 [18:04<1:04:49, 2.35s/it]
974
  22%|██▏ | 463/2116 [18:06<1:05:04, 2.36s/it]
975
  22%|██▏ | 464/2116 [18:09<1:03:57, 2.32s/it]
976
  22%|██▏ | 465/2116 [18:11<1:01:04, 2.22s/it]
977
 
978
+
979
  22%|██▏ | 465/2116 [18:11<1:01:04, 2.22s/it]
980
  22%|██▏ | 466/2116 [18:13<1:00:42, 2.21s/it]
981
  22%|██▏ | 467/2116 [18:15<58:26, 2.13s/it]
982
  22%|██▏ | 468/2116 [18:17<1:01:40, 2.25s/it]
983
  22%|██▏ | 469/2116 [18:19<59:16, 2.16s/it]
984
  22%|██▏ | 470/2116 [18:22<1:02:10, 2.27s/it]
985
 
986
+
987
  22%|██▏ | 470/2116 [18:22<1:02:10, 2.27s/it]
988
  22%|██▏ | 471/2116 [18:24<1:01:22, 2.24s/it]
989
  22%|██▏ | 472/2116 [18:26<1:00:57, 2.22s/it]
990
  22%|██▏ | 473/2116 [18:29<1:02:35, 2.29s/it]
991
  22%|██▏ | 474/2116 [18:31<1:03:32, 2.32s/it]
992
  22%|██▏ | 475/2116 [18:33<1:02:51, 2.30s/it]
993
 
994
+
995
  22%|██▏ | 475/2116 [18:33<1:02:51, 2.30s/it]
996
  22%|██▏ | 476/2116 [18:36<1:04:12, 2.35s/it]
997
  23%|██▎ | 477/2116 [18:38<1:03:31, 2.33s/it]
998
  23%|██▎ | 478/2116 [18:40<1:05:08, 2.39s/it]
999
  23%|██▎ | 479/2116 [18:42<1:01:06, 2.24s/it]
1000
  23%|██▎ | 480/2116 [18:45<1:00:30, 2.22s/it]
1001
 
1002
+
1003
  23%|██▎ | 480/2116 [18:45<1:00:30, 2.22s/it]
1004
  23%|██▎ | 481/2116 [18:47<1:01:39, 2.26s/it]
1005
  23%|██▎ | 482/2116 [18:49<1:02:38, 2.30s/it]
1006
  23%|██▎ | 483/2116 [18:52<1:02:37, 2.30s/it]
1007
  23%|██▎ | 484/2116 [18:54<1:01:36, 2.27s/it]
1008
  23%|██▎ | 485/2116 [18:56<1:01:43, 2.27s/it]
1009
 
1010
+
1011
  23%|██▎ | 485/2116 [18:56<1:01:43, 2.27s/it]
1012
  23%|██▎ | 486/2116 [18:58<1:02:07, 2.29s/it]
1013
  23%|██▎ | 487/2116 [19:01<1:03:08, 2.33s/it]
1014
  23%|██▎ | 488/2116 [19:03<1:04:48, 2.39s/it]
1015
  23%|██▎ | 489/2116 [19:05<1:01:41, 2.28s/it]
1016
  23%|██▎ | 490/2116 [19:07<1:00:56, 2.25s/it]
1017
 
1018
+
1019
  23%|██▎ | 490/2116 [19:07<1:00:56, 2.25s/it]
1020
  23%|██▎ | 491/2116 [19:10<1:01:44, 2.28s/it]
1021
  23%|██▎ | 492/2116 [19:12<1:04:11, 2.37s/it]
1022
  23%|██▎ | 493/2116 [19:14<1:01:29, 2.27s/it]
1023
  23%|██▎ | 494/2116 [19:17<1:06:15, 2.45s/it]
1024
  23%|██▎ | 495/2116 [19:20<1:04:25, 2.38s/it]
1025
 
1026
+
1027
  23%|██▎ | 495/2116 [19:20<1:04:25, 2.38s/it]
1028
  23%|██▎ | 496/2116 [19:22<1:05:18, 2.42s/it]
1029
  23%|██▎ | 497/2116 [19:25<1:05:37, 2.43s/it]
1030
  24%|██▎ | 498/2116 [19:27<1:05:01, 2.41s/it]
1031
  24%|██▎ | 499/2116 [19:29<1:05:22, 2.43s/it]
1032
  24%|██▎ | 500/2116 [19:32<1:04:15, 2.39s/it]
1033
 
1034
+
1035
  24%|██▎ | 500/2116 [19:32<1:04:15, 2.39s/it]
1036
  24%|██▎ | 501/2116 [19:34<1:02:45, 2.33s/it]
1037
  24%|██▎ | 502/2116 [19:36<1:00:28, 2.25s/it]
1038
  24%|██▍ | 503/2116 [19:38<1:01:19, 2.28s/it]
1039
  24%|██▍ | 504/2116 [19:41<1:02:25, 2.32s/it]
1040
  24%|██▍ | 505/2116 [19:43<1:03:49, 2.38s/it]
1041
 
1042
+
1043
  24%|██▍ | 505/2116 [19:43<1:03:49, 2.38s/it]
1044
  24%|██▍ | 506/2116 [19:45<1:02:26, 2.33s/it]
1045
  24%|██▍ | 507/2116 [19:47<59:41, 2.23s/it]
1046
  24%|██▍ | 508/2116 [19:50<1:00:38, 2.26s/it]
1047
  24%|██▍ | 509/2116 [19:52<59:47, 2.23s/it]
1048
  24%|██▍ | 510/2116 [19:54<1:02:23, 2.33s/it]
1049
 
1050
+
1051
  24%|██▍ | 510/2116 [19:54<1:02:23, 2.33s/it]
1052
  24%|██▍ | 511/2116 [19:57<1:02:24, 2.33s/it]
1053
  24%|██▍ | 512/2116 [19:59<1:03:34, 2.38s/it]
1054
  24%|██▍ | 513/2116 [20:02<1:03:24, 2.37s/it]
1055
  24%|██▍ | 514/2116 [20:04<1:01:36, 2.31s/it]
1056
  24%|██▍ | 515/2116 [20:06<1:01:14, 2.30s/it]
1057
 
1058
+
1059
  24%|██▍ | 515/2116 [20:06<1:01:14, 2.30s/it]
1060
  24%|██▍ | 516/2116 [20:09<1:04:07, 2.40s/it]
1061
  24%|██▍ | 517/2116 [20:12<1:07:17, 2.53s/it]
1062
  24%|██▍ | 518/2116 [20:13<1:02:45, 2.36s/it]
1063
  25%|██▍ | 519/2116 [20:16<1:02:45, 2.36s/it]
1064
  25%|██▍ | 520/2116 [20:19<1:05:33, 2.46s/it]
1065
 
1066
+
1067
  25%|██▍ | 520/2116 [20:19<1:05:33, 2.46s/it]
1068
  25%|██▍ | 521/2116 [20:21<1:05:25, 2.46s/it]
1069
  25%|██▍ | 522/2116 [20:23<1:04:20, 2.42s/it]
1070
  25%|██▍ | 523/2116 [20:26<1:02:16, 2.35s/it]
1071
  25%|██▍ | 524/2116 [20:28<1:03:50, 2.41s/it]
1072
  25%|██▍ | 525/2116 [20:31<1:05:49, 2.48s/it]
1073
 
1074
+
1075
  25%|██▍ | 525/2116 [20:31<1:05:49, 2.48s/it]
1076
  25%|██▍ | 526/2116 [20:33<1:04:31, 2.43s/it]
1077
  25%|██▍ | 527/2116 [20:36<1:06:12, 2.50s/it]
1078
  25%|██▍ | 528/2116 [20:38<1:05:22, 2.47s/it]
1079
  25%|██▌ | 529/2116 [20:41<1:05:34, 2.48s/it]
1080
  25%|██▌ | 530/2116 [20:43<1:06:54, 2.53s/it]
1081
 
1082
+
1083
  25%|██▌ | 530/2116 [20:43<1:06:54, 2.53s/it]
1084
  25%|██▌ | 531/2116 [20:46<1:04:46, 2.45s/it]
1085
  25%|██▌ | 532/2116 [20:48<1:03:36, 2.41s/it]
1086
  25%|██▌ | 533/2116 [20:50<1:00:03, 2.28s/it]
1087
  25%|██▌ | 534/2116 [20:52<57:01, 2.16s/it]
1088
  25%|██▌ | 535/2116 [20:54<1:00:11, 2.28s/it]
1089
 
1090
+
1091
  25%|██▌ | 535/2116 [20:54<1:00:11, 2.28s/it]
1092
  25%|██▌ | 536/2116 [20:57<1:00:46, 2.31s/it]
1093
  25%|██▌ | 537/2116 [20:59<1:01:12, 2.33s/it]
1094
  25%|██▌ | 538/2116 [21:02<1:04:09, 2.44s/it]
1095
  25%|██▌ | 539/2116 [21:04<1:04:26, 2.45s/it]
1096
  26%|██▌ | 540/2116 [21:07<1:05:27, 2.49s/it]
1097
 
1098
+
1099
  26%|██▌ | 540/2116 [21:07<1:05:27, 2.49s/it]
1100
  26%|██▌ | 541/2116 [21:09<1:03:53, 2.43s/it]
1101
  26%|██▌ | 542/2116 [21:11<1:03:35, 2.42s/it]
1102
  26%|██▌ | 543/2116 [21:14<1:05:13, 2.49s/it]
1103
  26%|██▌ | 544/2116 [21:17<1:05:36, 2.50s/it]
1104
  26%|██▌ | 545/2116 [21:19<1:04:25, 2.46s/it]
1105
 
1106
+
1107
  26%|██▌ | 545/2116 [21:19<1:04:25, 2.46s/it]
1108
  26%|██▌ | 546/2116 [21:21<1:03:36, 2.43s/it]
1109
  26%|██▌ | 547/2116 [21:24<1:03:59, 2.45s/it]
1110
  26%|██▌ | 548/2116 [21:26<1:03:06, 2.41s/it]
1111
  26%|██▌ | 549/2116 [21:28<1:02:07, 2.38s/it]
1112
  26%|██▌ | 550/2116 [21:31<1:00:52, 2.33s/it]
1113
 
1114
+
1115
  26%|██▌ | 550/2116 [21:31<1:00:52, 2.33s/it]
1116
  26%|██▌ | 551/2116 [21:33<59:45, 2.29s/it]
1117
  26%|██▌ | 552/2116 [21:35<1:00:21, 2.32s/it]
1118
  26%|██▌ | 553/2116 [21:38<1:01:37, 2.37s/it]
1119
  26%|██▌ | 554/2116 [21:40<1:03:31, 2.44s/it]
1120
  26%|██▌ | 555/2116 [21:43<1:01:03, 2.35s/it]
1121
 
1122
+
1123
  26%|██▌ | 555/2116 [21:43<1:01:03, 2.35s/it]
1124
  26%|██▋ | 556/2116 [21:45<1:00:34, 2.33s/it]
1125
  26%|██▋ | 557/2116 [21:47<1:02:44, 2.41s/it]
1126
  26%|██▋ | 558/2116 [21:50<1:00:43, 2.34s/it]
1127
  26%|██▋ | 559/2116 [21:52<1:00:32, 2.33s/it]
1128
  26%|██▋ | 560/2116 [21:54<59:47, 2.31s/it]
1129
 
1130
+
1131
  26%|██▋ | 560/2116 [21:54<59:47, 2.31s/it]
1132
  27%|██▋ | 561/2116 [21:56<59:53, 2.31s/it]
1133
  27%|██▋ | 562/2116 [21:59<58:40, 2.27s/it]
1134
  27%|██▋ | 563/2116 [22:01<59:58, 2.32s/it]
1135
  27%|██▋ | 564/2116 [22:03<59:02, 2.28s/it]
1136
  27%|██▋ | 565/2116 [22:05<58:11, 2.25s/it]
1137
 
1138
+
1139
  27%|██▋ | 565/2116 [22:05<58:11, 2.25s/it]
1140
  27%|██▋ | 566/2116 [22:08<1:01:58, 2.40s/it]
1141
  27%|██▋ | 567/2116 [22:10<57:55, 2.24s/it]
1142
  27%|██▋ | 568/2116 [22:12<57:07, 2.21s/it]
1143
  27%|██▋ | 569/2116 [22:14<55:53, 2.17s/it]
1144
  27%|██▋ | 570/2116 [22:17<58:25, 2.27s/it]
1145
 
1146
+
1147
  27%|██▋ | 570/2116 [22:17<58:25, 2.27s/it]
1148
  27%|██▋ | 571/2116 [22:19<57:39, 2.24s/it]
1149
  27%|██▋ | 572/2116 [22:21<58:38, 2.28s/it]
1150
  27%|██▋ | 573/2116 [22:24<58:30, 2.28s/it]
1151
  27%|██▋ | 574/2116 [22:26<57:53, 2.25s/it]
1152
  27%|██▋ | 575/2116 [22:28<1:00:16, 2.35s/it]
1153
 
1154
+
1155
  27%|██▋ | 575/2116 [22:28<1:00:16, 2.35s/it]
1156
  27%|██▋ | 576/2116 [22:31<1:00:05, 2.34s/it]
1157
  27%|██▋ | 577/2116 [22:33<59:13, 2.31s/it]
1158
  27%|██▋ | 578/2116 [22:35<58:25, 2.28s/it]
1159
  27%|██▋ | 579/2116 [22:38<59:58, 2.34s/it]
1160
  27%|██▋ | 580/2116 [22:40<57:34, 2.25s/it]
1161
 
1162
+
1163
  27%|██▋ | 580/2116 [22:40<57:34, 2.25s/it]
1164
  27%|██▋ | 581/2116 [22:42<57:10, 2.23s/it]
1165
  28%|██▊ | 582/2116 [22:44<57:18, 2.24s/it]
1166
  28%|██▊ | 583/2116 [22:46<57:28, 2.25s/it]
1167
  28%|██▊ | 584/2116 [22:49<58:54, 2.31s/it]
1168
  28%|██▊ | 585/2116 [22:51<1:01:48, 2.42s/it]
1169
 
1170
+
1171
  28%|██▊ | 585/2116 [22:51<1:01:48, 2.42s/it]
1172
  28%|██▊ | 586/2116 [22:54<1:01:04, 2.40s/it]
1173
  28%|██▊ | 587/2116 [22:56<59:01, 2.32s/it]
1174
  28%|██▊ | 588/2116 [22:59<1:02:13, 2.44s/it]
1175
  28%|██▊ | 589/2116 [23:01<59:39, 2.34s/it]
1176
  28%|██▊ | 590/2116 [23:03<1:00:03, 2.36s/it]
1177
 
1178
+
1179
  28%|���█▊ | 590/2116 [23:03<1:00:03, 2.36s/it]
1180
  28%|██▊ | 591/2116 [23:05<57:45, 2.27s/it]
1181
  28%|██▊ | 592/2116 [23:08<58:18, 2.30s/it]
1182
  28%|██▊ | 593/2116 [23:10<57:44, 2.28s/it]
1183
  28%|██▊ | 594/2116 [23:12<57:46, 2.28s/it]
1184
  28%|██▊ | 595/2116 [23:14<58:23, 2.30s/it]
1185
 
1186
+
1187
  28%|██▊ | 595/2116 [23:14<58:23, 2.30s/it]
1188
  28%|██▊ | 596/2116 [23:17<56:55, 2.25s/it]
1189
  28%|██▊ | 597/2116 [23:19<55:53, 2.21s/it]
1190
  28%|██▊ | 598/2116 [23:21<1:00:07, 2.38s/it]
1191
  28%|██▊ | 599/2116 [23:24<59:58, 2.37s/it]
1192
  28%|██▊ | 600/2116 [23:26<1:01:27, 2.43s/it]
1193
 
1194
+
1195
  28%|██▊ | 600/2116 [23:26<1:01:27, 2.43s/it]
1196
  28%|██▊ | 601/2116 [23:28<57:46, 2.29s/it]
1197
  28%|██▊ | 602/2116 [23:31<57:42, 2.29s/it]
1198
  28%|██▊ | 603/2116 [23:33<57:41, 2.29s/it]
1199
  29%|██▊ | 604/2116 [23:35<55:40, 2.21s/it]
1200
  29%|██▊ | 605/2116 [23:38<58:30, 2.32s/it]
1201
 
1202
+
1203
  29%|██▊ | 605/2116 [23:38<58:30, 2.32s/it]
1204
  29%|██▊ | 606/2116 [23:40<57:15, 2.28s/it]
1205
  29%|██▊ | 607/2116 [23:42<58:33, 2.33s/it]
1206
  29%|██▊ | 608/2116 [23:45<59:33, 2.37s/it]
1207
  29%|██▉ | 609/2116 [23:47<1:00:18, 2.40s/it]
1208
  29%|██▉ | 610/2116 [23:49<59:33, 2.37s/it]
1209
 
1210
+
1211
  29%|██▉ | 610/2116 [23:49<59:33, 2.37s/it]
1212
  29%|██▉ | 611/2116 [23:52<1:00:59, 2.43s/it]
1213
  29%|██▉ | 612/2116 [23:55<1:01:37, 2.46s/it]
1214
  29%|██▉ | 613/2116 [23:57<1:00:13, 2.40s/it]
1215
  29%|██▉ | 614/2116 [23:59<55:39, 2.22s/it]
1216
  29%|██▉ | 615/2116 [24:01<55:43, 2.23s/it]
1217
 
1218
+
1219
  29%|██▉ | 615/2116 [24:01<55:43, 2.23s/it]
1220
  29%|██▉ | 616/2116 [24:03<57:22, 2.30s/it]
1221
  29%|██▉ | 617/2116 [24:06<57:23, 2.30s/it]
1222
  29%|██▉ | 618/2116 [24:08<55:19, 2.22s/it]
1223
  29%|██▉ | 619/2116 [24:10<56:22, 2.26s/it]
1224
  29%|██▉ | 620/2116 [24:12<56:18, 2.26s/it]
1225
 
1226
+
1227
  29%|██▉ | 620/2116 [24:12<56:18, 2.26s/it]
1228
  29%|██▉ | 621/2116 [24:14<55:35, 2.23s/it]
1229
  29%|██▉ | 622/2116 [24:17<59:03, 2.37s/it]
1230
  29%|██▉ | 623/2116 [24:19<57:41, 2.32s/it]
1231
  29%|██▉ | 624/2116 [24:22<57:15, 2.30s/it]
1232
  30%|██▉ | 625/2116 [24:24<1:00:40, 2.44s/it]
1233
 
1234
+
1235
  30%|██▉ | 625/2116 [24:24<1:00:40, 2.44s/it]
1236
  30%|██▉ | 626/2116 [24:27<1:00:41, 2.44s/it]
1237
  30%|██▉ | 627/2116 [24:30<1:03:25, 2.56s/it]
1238
  30%|██▉ | 628/2116 [24:32<1:00:52, 2.45s/it]
1239
  30%|██▉ | 629/2116 [24:34<59:47, 2.41s/it]
1240
  30%|██▉ | 630/2116 [24:36<59:05, 2.39s/it]
1241
 
1242
+
1243
  30%|██▉ | 630/2116 [24:36<59:05, 2.39s/it]
1244
  30%|██▉ | 631/2116 [24:39<57:53, 2.34s/it]
1245
  30%|██▉ | 632/2116 [24:41<59:00, 2.39s/it]
1246
  30%|██▉ | 633/2116 [24:44<1:03:57, 2.59s/it]
1247
  30%|██▉ | 634/2116 [24:47<1:05:57, 2.67s/it]
1248
  30%|███ | 635/2116 [24:51<1:12:23, 2.93s/it]
1249
 
1250
+
1251
  30%|███ | 635/2116 [24:51<1:12:23, 2.93s/it]
1252
  30%|███ | 636/2116 [24:53<1:11:23, 2.89s/it]
1253
  30%|███ | 637/2116 [24:56<1:10:16, 2.85s/it]
1254
  30%|███ | 638/2116 [25:00<1:15:05, 3.05s/it]
1255
  30%|███ | 639/2116 [25:03<1:14:19, 3.02s/it]
1256
  30%|███ | 640/2116 [25:06<1:14:51, 3.04s/it]
1257
 
1258
+
1259
  30%|███ | 640/2116 [25:06<1:14:51, 3.04s/it]
1260
  30%|██�� | 641/2116 [25:09<1:16:32, 3.11s/it]
1261
  30%|███ | 642/2116 [25:13<1:20:32, 3.28s/it]
1262
  30%|███ | 643/2116 [25:17<1:29:05, 3.63s/it]
1263
  30%|███ | 644/2116 [25:21<1:30:39, 3.70s/it]
1264
  30%|███ | 645/2116 [25:26<1:41:15, 4.13s/it]
1265
 
1266
+
1267
  30%|███ | 645/2116 [25:26<1:41:15, 4.13s/it]
1268
  31%|███ | 646/2116 [25:33<2:00:44, 4.93s/it]
1269
  31%|███ | 647/2116 [25:36<1:44:02, 4.25s/it]
1270
  31%|███ | 648/2116 [25:41<1:50:58, 4.54s/it]
1271
  31%|███ | 649/2116 [25:45<1:49:39, 4.49s/it]
1272
  31%|███ | 650/2116 [25:48<1:40:50, 4.13s/it]
1273
 
1274
+
1275
  31%|███ | 650/2116 [25:48<1:40:50, 4.13s/it]
1276
  31%|███ | 651/2116 [25:53<1:45:11, 4.31s/it]
1277
  31%|███ | 652/2116 [26:00<2:01:03, 4.96s/it]
1278
  31%|███ | 653/2116 [26:07<2:18:03, 5.66s/it]
1279
  31%|███ | 654/2116 [26:16<2:39:50, 6.56s/it]
1280
  31%|███ | 655/2116 [26:20<2:23:24, 5.89s/it]
1281
 
1282
+
1283
  31%|███ | 655/2116 [26:20<2:23:24, 5.89s/it]
1284
  31%|███ | 656/2116 [26:26<2:22:05, 5.84s/it]
1285
  31%|███ | 657/2116 [26:28<1:58:45, 4.88s/it]
1286
  31%|███ | 658/2116 [26:32<1:48:02, 4.45s/it]
1287
  31%|███ | 659/2116 [26:34<1:35:12, 3.92s/it]
1288
  31%|███ | 660/2116 [26:38<1:32:36, 3.82s/it]
1289
 
1290
+
1291
  31%|███ | 660/2116 [26:38<1:32:36, 3.82s/it]
1292
  31%|███ | 661/2116 [26:41<1:26:29, 3.57s/it]
1293
  31%|███▏ | 662/2116 [26:43<1:16:59, 3.18s/it]
1294
  31%|███▏ | 663/2116 [26:46<1:13:02, 3.02s/it]
1295
  31%|███▏ | 664/2116 [26:49<1:13:17, 3.03s/it]
1296
  31%|███▏ | 665/2116 [26:53<1:19:23, 3.28s/it]
1297
 
1298
+
1299
  31%|███▏ | 665/2116 [26:53<1:19:23, 3.28s/it]
1300
  31%|███▏ | 666/2116 [26:55<1:14:12, 3.07s/it]
1301
  32%|███▏ | 667/2116 [26:58<1:13:29, 3.04s/it]
1302
  32%|███▏ | 668/2116 [27:01<1:10:38, 2.93s/it]
1303
  32%|███▏ | 669/2116 [27:04<1:11:45, 2.98s/it]
1304
  32%|███▏ | 670/2116 [27:07<1:09:33, 2.89s/it]
1305
 
1306
+
1307
  32%|███▏ | 670/2116 [27:07<1:09:33, 2.89s/it]
1308
  32%|███▏ | 671/2116 [27:09<1:04:29, 2.68s/it]
1309
  32%|███▏ | 672/2116 [27:11<1:02:26, 2.59s/it]
1310
  32%|███▏ | 673/2116 [27:15<1:05:55, 2.74s/it]
1311
  32%|███▏ | 674/2116 [27:18<1:09:04, 2.87s/it]
1312
  32%|███▏ | 675/2116 [27:20<1:06:32, 2.77s/it]
1313
 
1314
+
1315
  32%|███▏ | 675/2116 [27:20<1:06:32, 2.77s/it]
1316
  32%|███▏ | 676/2116 [27:23<1:07:25, 2.81s/it]
1317
  32%|███▏ | 677/2116 [27:26<1:09:06, 2.88s/it]
1318
  32%|███▏ | 678/2116 [27:28<1:04:43, 2.70s/it]
1319
  32%|███▏ | 679/2116 [27:32<1:08:35, 2.86s/it]
1320
  32%|███▏ | 680/2116 [27:35<1:10:25, 2.94s/it]
1321
 
1322
+
1323
  32%|███▏ | 680/2116 [27:35<1:10:25, 2.94s/it]
1324
  32%|███▏ | 681/2116 [27:37<1:03:45, 2.67s/it]
1325
  32%|███▏ | 682/2116 [27:40<1:03:56, 2.68s/it]
1326
  32%|███▏ | 683/2116 [27:42<1:04:41, 2.71s/it]
1327
  32%|███▏ | 684/2116 [27:45<1:05:08, 2.73s/it]
1328
  32%|███▏ | 685/2116 [27:48<1:04:08, 2.69s/it]
1329
 
1330
+
1331
  32%|███▏ | 685/2116 [27:48<1:04:08, 2.69s/it]
1332
  32%|███▏ | 686/2116 [27:50<1:01:53, 2.60s/it]
1333
  32%|███▏ | 687/2116 [27:53<1:02:24, 2.62s/it]
1334
  33%|███▎ | 688/2116 [27:56<1:03:50, 2.68s/it]
1335
  33%|███▎ | 689/2116 [27:58<1:02:06, 2.61s/it]
1336
  33%|███▎ | 690/2116 [28:00<59:15, 2.49s/it]
1337
 
1338
+
1339
  33%|███▎ | 690/2116 [28:00<59:15, 2.49s/it]
1340
  33%|███▎ | 691/2116 [28:02<57:20, 2.41s/it]
1341
  33%|███▎ | 692/2116 [28:05<56:53, 2.40s/it]
1342
  33%|███▎ | 693/2116 [28:07<56:29, 2.38s/it]
1343
  33%|███▎ | 694/2116 [28:09<54:32, 2.30s/it]
1344
  33%|███▎ | 695/2116 [28:12<54:38, 2.31s/it]
1345
 
1346
+
1347
  33%|███▎ | 695/2116 [28:12<54:38, 2.31s/it]
1348
  33%|███▎ | 696/2116 [28:14<54:17, 2.29s/it]
1349
  33%|███▎ | 697/2116 [28:16<52:09, 2.21s/it]
1350
  33%|███▎ | 698/2116 [28:18<51:49, 2.19s/it]
1351
  33%|███▎ | 699/2116 [28:21<54:41, 2.32s/it]
1352
  33%|███▎ | 700/2116 [28:23<53:43, 2.28s/it]
1353
 
1354
+
1355
  33%|███▎ | 700/2116 [28:23<53:43, 2.28s/it]
1356
  33%|███▎ | 701/2116 [28:25<51:56, 2.20s/it]
1357
  33%|███▎ | 702/2116 [28:27<51:56, 2.20s/it]
1358
  33%|███▎ | 703/2116 [28:30<54:22, 2.31s/it]
1359
  33%|███▎ | 704/2116 [28:32<57:01, 2.42s/it]
1360
  33%|███▎ | 705/2116 [28:35<57:34, 2.45s/it]
1361
 
1362
+
1363
  33%|███▎ | 705/2116 [28:35<57:34, 2.45s/it]
1364
  33%|███▎ | 706/2116 [28:37<53:24, 2.27s/it]
1365
  33%|███▎ | 707/2116 [28:40<59:24, 2.53s/it]
1366
  33%|███▎ | 708/2116 [28:42<58:50, 2.51s/it]
1367
  34%|███▎ | 709/2116 [28:45<59:55, 2.56s/it]
1368
  34%|███▎ | 710/2116 [28:48<1:01:11, 2.61s/it]
1369
 
1370
+
1371
  34%|███▎ | 710/2116 [28:48<1:01:11, 2.61s/it]
1372
  34%|███▎ | 711/2116 [28:50<58:25, 2.49s/it]
1373
  34%|███▎ | 712/2116 [28:52<57:05, 2.44s/it]
1374
  34%|███▎ | 713/2116 [28:55<58:37, 2.51s/it]
1375
  34%|███▎ | 714/2116 [28:58<1:00:50, 2.60s/it]
1376
  34%|███▍ | 715/2116 [29:00<59:30, 2.55s/it]
1377
 
1378
+
1379
  34%|███▍ | 715/2116 [29:00<59:30, 2.55s/it]
1380
  34%|███▍ | 716/2116 [29:02<57:43, 2.47s/it]
1381
  34%|███▍ | 717/2116 [29:05<57:56, 2.49s/it]
1382
  34%|███▍ | 718/2116 [29:07<57:42, 2.48s/it]
1383
  34%|███▍ | 719/2116 [29:10<56:44, 2.44s/it]
1384
  34%|███▍ | 720/2116 [29:12<57:47, 2.48s/it]
1385
 
1386
+
1387
  34%|███▍ | 720/2116 [29:12<57:47, 2.48s/it]
1388
  34%|███▍ | 721/2116 [29:15<1:00:05, 2.58s/it]
1389
  34%|███▍ | 722/2116 [29:17<58:24, 2.51s/it]
1390
  34%|███▍ | 723/2116 [29:20<57:30, 2.48s/it]
1391
  34%|███▍ | 724/2116 [29:22<57:01, 2.46s/it]
1392
  34%|███▍ | 725/2116 [29:25<55:55, 2.41s/it]
1393
 
1394
+
1395
  34%|███▍ | 725/2116 [29:25<55:55, 2.41s/it]
1396
  34%|███▍ | 726/2116 [29:27<54:17, 2.34s/it]
1397
  34%|███▍ | 727/2116 [29:30<56:56, 2.46s/it]
1398
  34%|███▍ | 728/2116 [29:32<54:18, 2.35s/it]
1399
  34%|███▍ | 729/2116 [29:34<52:05, 2.25s/it]
logs/full_train_qformer_4gpu_20260605_152011.log ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
  0%| | 0/2116 [00:00<?, ?it/s]
1
  0%| | 1/2116 [00:11<6:29:19, 11.04s/it]
2
  0%| | 2/2116 [00:19<5:37:52, 9.59s/it]
3
  0%| | 3/2116 [00:27<5:10:16, 8.81s/it]
4
  0%| | 4/2116 [00:35<5:02:45, 8.60s/it]
5
  0%| | 5/2116 [00:43<4:53:26, 8.34s/it]
6
 
 
7
  0%| | 5/2116 [00:43<4:53:26, 8.34s/it]
8
  0%| | 6/2116 [00:51<4:46:23, 8.14s/it]
9
  0%| | 7/2116 [00:59<4:44:59, 8.11s/it]
10
  0%| | 8/2116 [01:06<4:36:36, 7.87s/it]
11
  0%| | 9/2116 [01:14<4:29:02, 7.66s/it]
12
  0%| | 10/2116 [01:21<4:29:18, 7.67s/it]
13
 
 
14
  0%| | 10/2116 [01:21<4:29:18, 7.67s/it]
15
  1%| | 11/2116 [01:29<4:28:34, 7.66s/it]
16
  1%| | 12/2116 [01:37<4:28:50, 7.67s/it]
17
  1%| | 13/2116 [01:44<4:28:29, 7.66s/it]
18
  1%| | 14/2116 [01:51<4:21:28, 7.46s/it]
19
  1%| | 15/2116 [01:59<4:22:11, 7.49s/it]
20
 
 
21
  1%| | 15/2116 [01:59<4:22:11, 7.49s/it]
22
  1%| | 16/2116 [02:07<4:25:09, 7.58s/it]
23
  1%| | 17/2116 [02:14<4:21:19, 7.47s/it]
24
  1%| | 18/2116 [02:22<4:28:11, 7.67s/it]
25
  1%| | 19/2116 [02:30<4:27:50, 7.66s/it]
26
  1%| | 20/2116 [02:37<4:29:23, 7.71s/it]
27
 
 
28
  1%| | 20/2116 [02:37<4:29:23, 7.71s/it]
29
  1%| | 21/2116 [02:45<4:28:37, 7.69s/it]
30
  1%| | 22/2116 [02:53<4:28:49, 7.70s/it]
31
  1%| | 23/2116 [03:00<4:23:22, 7.55s/it]
32
  1%| | 24/2116 [03:07<4:18:25, 7.41s/it]
33
  1%| | 25/2116 [03:15<4:19:35, 7.45s/it]
34
 
 
35
  1%| | 25/2116 [03:15<4:19:35, 7.45s/it]
36
  1%| | 26/2116 [03:22<4:15:06, 7.32s/it]
37
  1%|▏ | 27/2116 [03:29<4:15:26, 7.34s/it]
38
  1%|▏ | 28/2116 [03:36<4:14:06, 7.30s/it]
39
  1%|▏ | 29/2116 [03:44<4:17:19, 7.40s/it]
40
  1%|▏ | 30/2116 [03:51<4:16:14, 7.37s/it]
41
 
 
42
  1%|▏ | 30/2116 [03:51<4:16:14, 7.37s/it]
43
  1%|▏ | 31/2116 [03:58<4:16:02, 7.37s/it]
44
  2%|▏ | 32/2116 [04:06<4:17:56, 7.43s/it]
45
  2%|▏ | 33/2116 [04:14<4:22:14, 7.55s/it]
46
  2%|▏ | 34/2116 [04:22<4:24:26, 7.62s/it]
47
  2%|▏ | 35/2116 [04:30<4:28:00, 7.73s/it]
48
 
 
49
  2%|▏ | 35/2116 [04:30<4:28:00, 7.73s/it]
50
  2%|▏ | 36/2116 [04:37<4:27:52, 7.73s/it]
 
1
+ Log file: logs/full_train_qformer_4gpu_20260605_152011.log
2
+ Project dir: /mnt/share01/sqk/ITFormer
3
+ Run id: 20260605_152011
4
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
5
+ Accelerate config: accelerate_config.yaml
6
+ Python: /dev/shm/suiqk/conda_envs/scalerag-ts-v4/bin/python
7
+ Accelerate: /dev/shm/suiqk/conda_envs/scalerag-ts-v4/bin/accelerate
8
+ RUN_STAGE_A: auto
9
+ TS encoder checkpoint: save/pretrain/model.safetensors
10
+ Adapter type: qformer
11
+ torch: 2.6.0+cu124
12
+ transformers: 4.54.1
13
+ accelerate: 0.34.2
14
+ cuda available: True
15
+ cuda device count: 4
16
+ Stage A: skipped; using existing TS encoder checkpoint: save/pretrain/model.safetensors
17
+ Stage B: supervised fine-tuning
18
+ ⚙️ Running in WANDB offline mode⚙️ Running in WANDB offline mode
19
+
20
+ ⚙️ Running in WANDB offline mode
21
+ ⚙️ Running in WANDB offline mode
22
+ Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
23
+ Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
24
+ Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
25
+ loading file vocab.json
26
+ loading file merges.txt
27
+ loading file tokenizer.json
28
+ loading file added_tokens.json
29
+ loading file special_tokens_map.json
30
+ loading file tokenizer_config.json
31
+ loading file chat_template.jinja
32
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
33
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-3b-instruct/config.json
34
+ Model config Qwen2Config {
35
+ "architectures": [
36
+ "Qwen2ForCausalLM"
37
+ ],
38
+ "attention_dropout": 0.0,
39
+ "bos_token_id": 151643,
40
+ "eos_token_id": 151645,
41
+ "hidden_act": "silu",
42
+ "hidden_size": 2048,
43
+ "initializer_range": 0.02,
44
+ "intermediate_size": 11008,
45
+ "layer_types": [
46
+ "full_attention",
47
+ "full_attention",
48
+ "full_attention",
49
+ "full_attention",
50
+ "full_attention",
51
+ "full_attention",
52
+ "full_attention",
53
+ "full_attention",
54
+ "full_attention",
55
+ "full_attention",
56
+ "full_attention",
57
+ "full_attention",
58
+ "full_attention",
59
+ "full_attention",
60
+ "full_attention",
61
+ "full_attention",
62
+ "full_attention",
63
+ "full_attention",
64
+ "full_attention",
65
+ "full_attention",
66
+ "full_attention",
67
+ "full_attention",
68
+ "full_attention",
69
+ "full_attention",
70
+ "full_attention",
71
+ "full_attention",
72
+ "full_attention",
73
+ "full_attention",
74
+ "full_attention",
75
+ "full_attention",
76
+ "full_attention",
77
+ "full_attention",
78
+ "full_attention",
79
+ "full_attention",
80
+ "full_attention",
81
+ "full_attention"
82
+ ],
83
+ "max_position_embeddings": 32768,
84
+ "max_window_layers": 70,
85
+ "model_type": "qwen2",
86
+ "num_attention_heads": 16,
87
+ "num_hidden_layers": 36,
88
+ "num_key_value_heads": 2,
89
+ "rms_norm_eps": 1e-06,
90
+ "rope_scaling": null,
91
+ "rope_theta": 1000000.0,
92
+ "sliding_window": null,
93
+ "tie_word_embeddings": true,
94
+ "torch_dtype": "bfloat16",
95
+ "transformers_version": "4.54.1",
96
+ "use_cache": true,
97
+ "use_sliding_window": false,
98
+ "vocab_size": 151936
99
+ }
100
+
101
+ loading file vocab.json
102
+ loading file merges.txt
103
+ loading file tokenizer.json
104
+ loading file added_tokens.json
105
+ loading file special_tokens_map.json
106
+ loading file tokenizer_config.json
107
+ loading file chat_template.jinja
108
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
109
+ 📊 Vocab size: 151665
110
+ 🔍 Validating special tokens:
111
+ ✅ pad_token_id = 151643
112
+ ✅ eos_token_id = 151645
113
+
114
+ 📊 Vocab size: 151665
115
+ 🔍 Validating special tokens:
116
+ ✅ pad_token_id = 151643
117
+ ✅ eos_token_id = 151645
118
+ swanlab is not installed; training will run without swanlab logging.
119
+
120
+
121
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-3b-instruct/config.json
122
+ Model config Qwen2Config {
123
+ "architectures": [
124
+ "Qwen2ForCausalLM"
125
+ ],
126
+ "attention_dropout": 0.0,
127
+ "bos_token_id": 151643,
128
+ "eos_token_id": 151645,
129
+ "hidden_act": "silu",
130
+ "hidden_size": 2048,
131
+ "initializer_range": 0.02,
132
+ "intermediate_size": 11008,
133
+ "layer_types": [
134
+ "full_attention",
135
+ "full_attention",
136
+ "full_attention",
137
+ "full_attention",
138
+ "full_attention",
139
+ "full_attention",
140
+ "full_attention",
141
+ "full_attention",
142
+ "full_attention",
143
+ "full_attention",
144
+ "full_attention",
145
+ "full_attention",
146
+ "full_attention",
147
+ "full_attention",
148
+ "full_attention",
149
+ "full_attention",
150
+ "full_attention",
151
+ "full_attention",
152
+ "full_attention",
153
+ "full_attention",
154
+ "full_attention",
155
+ "full_attention",
156
+ "full_attention",
157
+ "full_attention",
158
+ "full_attention",
159
+ "full_attention",
160
+ "full_attention",
161
+ "full_attention",
162
+ "full_attention",
163
+ "full_attention",
164
+ "full_attention",
165
+ "full_attention",
166
+ "full_attention",
167
+ "full_attention",
168
+ "full_attention",
169
+ "full_attention"
170
+ ],
171
+ "max_position_embeddings": 32768,
172
+ "max_window_layers": 70,
173
+ "model_type": "qwen2",
174
+ "num_attention_heads": 16,
175
+ "num_hidden_layers": 36,
176
+ "num_key_value_heads": 2,
177
+ "rms_norm_eps": 1e-06,
178
+ "rope_scaling": null,
179
+ "rope_theta": 1000000.0,
180
+ "sliding_window": null,
181
+ "tie_word_embeddings": true,
182
+ "torch_dtype": "bfloat16",
183
+ "transformers_version": "4.54.1",
184
+ "use_cache": true,
185
+ "use_sliding_window": false,
186
+ "vocab_size": 151936
187
+ }
188
+
189
+ loading weights file /mnt/share01/sqk/models/qwen2.5-3b-instruct/model.safetensors.index.json
190
+ Generate config GenerationConfig {
191
+ "bos_token_id": 151643,
192
+ "eos_token_id": 151645
193
+ }
194
+
195
+
196
+
197
+ All model checkpoint weights were used when initializing Qwen2ForCausalLM.
198
+
199
+ All the weights of Qwen2ForCausalLM were initialized from the model checkpoint at /mnt/share01/sqk/models/qwen2.5-3b-instruct.
200
+ If your task is similar to the task the model of the checkpoint was trained on, you can already use Qwen2ForCausalLM for predictions without further training.
201
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-3b-instruct/generation_config.json
202
+ Generate config GenerationConfig {
203
+ "bos_token_id": 151643,
204
+ "do_sample": true,
205
+ "eos_token_id": [
206
+ 151645,
207
+ 151643
208
+ ],
209
+ "pad_token_id": 151643,
210
+ "repetition_penalty": 1.05,
211
+ "temperature": 0.7,
212
+ "top_k": 20,
213
+ "top_p": 0.8
214
+ }
215
+
216
+ loading file vocab.json
217
+ loading file merges.txt
218
+ loading file tokenizer.json
219
+ loading file added_tokens.json
220
+ loading file special_tokens_map.json
221
+ loading file tokenizer_config.json
222
+ loading file chat_template.jinja
223
+
224
+
225
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
226
+ ✅ Loaded LLM model from: /mnt/share01/sqk/models/qwen2.5-3b-instruct
227
+ 📥 Loading pre-trained TimeSeries Encoder from: save/pretrain/model.safetensors
228
+ ✅ TS Encoder weights loaded. Missing: 0, Unexpected: 0
229
+ 🔌 Using adapter: qformer
230
+ PyTorch: setting up devices
231
+ Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
232
+ Using auto half precision backend
233
+ ***** Running training *****
234
+ Num examples = 101,565
235
+ Num Epochs = 2
236
+ Instantaneous batch size per device = 2
237
+ Total train batch size (w. parallel, distributed & accumulation) = 96
238
+ Gradient Accumulation steps = 12
239
+ Total optimization steps = 2,116
240
+ Number of trainable parameters = 29,888,128
241
+
242
  0%| | 0/2116 [00:00<?, ?it/s]
243
  0%| | 1/2116 [00:11<6:29:19, 11.04s/it]
244
  0%| | 2/2116 [00:19<5:37:52, 9.59s/it]
245
  0%| | 3/2116 [00:27<5:10:16, 8.81s/it]
246
  0%| | 4/2116 [00:35<5:02:45, 8.60s/it]
247
  0%| | 5/2116 [00:43<4:53:26, 8.34s/it]
248
 
249
+
250
  0%| | 5/2116 [00:43<4:53:26, 8.34s/it]
251
  0%| | 6/2116 [00:51<4:46:23, 8.14s/it]
252
  0%| | 7/2116 [00:59<4:44:59, 8.11s/it]
253
  0%| | 8/2116 [01:06<4:36:36, 7.87s/it]
254
  0%| | 9/2116 [01:14<4:29:02, 7.66s/it]
255
  0%| | 10/2116 [01:21<4:29:18, 7.67s/it]
256
 
257
+
258
  0%| | 10/2116 [01:21<4:29:18, 7.67s/it]
259
  1%| | 11/2116 [01:29<4:28:34, 7.66s/it]
260
  1%| | 12/2116 [01:37<4:28:50, 7.67s/it]
261
  1%| | 13/2116 [01:44<4:28:29, 7.66s/it]
262
  1%| | 14/2116 [01:51<4:21:28, 7.46s/it]
263
  1%| | 15/2116 [01:59<4:22:11, 7.49s/it]
264
 
265
+
266
  1%| | 15/2116 [01:59<4:22:11, 7.49s/it]
267
  1%| | 16/2116 [02:07<4:25:09, 7.58s/it]
268
  1%| | 17/2116 [02:14<4:21:19, 7.47s/it]
269
  1%| | 18/2116 [02:22<4:28:11, 7.67s/it]
270
  1%| | 19/2116 [02:30<4:27:50, 7.66s/it]
271
  1%| | 20/2116 [02:37<4:29:23, 7.71s/it]
272
 
273
+
274
  1%| | 20/2116 [02:37<4:29:23, 7.71s/it]
275
  1%| | 21/2116 [02:45<4:28:37, 7.69s/it]
276
  1%| | 22/2116 [02:53<4:28:49, 7.70s/it]
277
  1%| | 23/2116 [03:00<4:23:22, 7.55s/it]
278
  1%| | 24/2116 [03:07<4:18:25, 7.41s/it]
279
  1%| | 25/2116 [03:15<4:19:35, 7.45s/it]
280
 
281
+
282
  1%| | 25/2116 [03:15<4:19:35, 7.45s/it]
283
  1%| | 26/2116 [03:22<4:15:06, 7.32s/it]
284
  1%|▏ | 27/2116 [03:29<4:15:26, 7.34s/it]
285
  1%|▏ | 28/2116 [03:36<4:14:06, 7.30s/it]
286
  1%|▏ | 29/2116 [03:44<4:17:19, 7.40s/it]
287
  1%|▏ | 30/2116 [03:51<4:16:14, 7.37s/it]
288
 
289
+
290
  1%|▏ | 30/2116 [03:51<4:16:14, 7.37s/it]
291
  1%|▏ | 31/2116 [03:58<4:16:02, 7.37s/it]
292
  2%|▏ | 32/2116 [04:06<4:17:56, 7.43s/it]
293
  2%|▏ | 33/2116 [04:14<4:22:14, 7.55s/it]
294
  2%|▏ | 34/2116 [04:22<4:24:26, 7.62s/it]
295
  2%|▏ | 35/2116 [04:30<4:28:00, 7.73s/it]
296
 
297
+
298
  2%|▏ | 35/2116 [04:30<4:28:00, 7.73s/it]
299
  2%|▏ | 36/2116 [04:37<4:27:52, 7.73s/it]
logs/rats40k_2gpu_20260608_161856.log ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
  0%| | 0/1200 [00:00<?, ?it/s]/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
 
 
 
 
 
 
1
  0%| | 1/1200 [00:00<11:14, 1.78it/s]
2
  1%| | 7/1200 [00:00<01:30, 13.21it/s]
3
  1%| | 13/1200 [00:00<00:52, 22.61it/s]
4
  2%|▏ | 18/1200 [00:00<00:42, 27.51it/s]
5
  2%|▏ | 24/1200 [00:01<00:34, 34.51it/s]
6
  2%|▎ | 30/1200 [00:01<00:29, 39.72it/s]
7
  3%|▎ | 36/1200 [00:01<00:26, 44.23it/s]
8
  4%|▎ | 42/1200 [00:01<00:24, 46.95it/s]
9
  4%|▍ | 48/1200 [00:01<00:23, 48.66it/s]
10
 
 
11
  4%|▍ | 50/1200 [00:01<00:23, 48.66it/s]
12
  4%|▍ | 54/1200 [00:01<00:22, 51.53it/s]
13
  5%|▌ | 60/1200 [00:01<00:23, 47.98it/s]
14
  6%|▌ | 66/1200 [00:01<00:30, 37.54it/s]
15
  6%|▌ | 72/1200 [00:02<00:27, 41.61it/s]
16
  6%|▋ | 78/1200 [00:02<00:25, 44.44it/s]
17
  7%|▋ | 84/1200 [00:02<00:23, 46.97it/s]
18
  8%|▊ | 90/1200 [00:02<00:22, 48.43it/s]
19
  8%|▊ | 96/1200 [00:02<00:22, 50.02it/s]
20
 
 
21
  8%|▊ | 100/1200 [00:02<00:21, 50.02it/s]
22
  8%|▊ | 102/1200 [00:02<00:21, 51.22it/s]
23
  9%|▉ | 108/1200 [00:02<00:21, 51.86it/s]
24
  10%|▉ | 114/1200 [00:02<00:20, 52.95it/s]
25
  10%|█ | 120/1200 [00:03<00:22, 47.35it/s]
26
  10%|█ | 125/1200 [00:03<00:29, 36.78it/s]
27
  11%|█ | 131/1200 [00:03<00:26, 40.22it/s]
28
  11%|█▏ | 137/1200 [00:03<00:24, 43.29it/s]
29
  12%|█▏ | 143/1200 [00:03<00:23, 45.22it/s]
30
  12%|█▏ | 149/1200 [00:03<00:22, 47.02it/s]
31
 
 
32
  12%|█▎ | 150/1200 [00:03<00:22, 47.02it/s]
33
  13%|█▎ | 155/1200 [00:03<00:21, 48.47it/s]
34
  13%|█▎ | 161/1200 [00:03<00:21, 49.22it/s]
35
  14%|█▍ | 167/1200 [00:04<00:20, 51.00it/s]
36
  14%|█▍ | 173/1200 [00:04<00:19, 51.97it/s]
37
  15%|█▍ | 179/1200 [00:04<00:18, 53.84it/s]
38
  15%|█▌ | 185/1200 [00:04<00:28, 36.18it/s]
39
  16%|█▌ | 190/1200 [00:04<00:26, 38.65it/s]
40
  16%|█▋ | 196/1200 [00:04<00:23, 42.06it/s]
41
 
 
42
  17%|█▋ | 200/1200 [00:04<00:23, 42.06it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_161856/checkpoint-200
 
 
 
 
43
  17%|█▋ | 201/1200 [00:06<02:12, 7.53it/s]
44
  17%|█▋ | 206/1200 [00:06<01:40, 9.85it/s]
45
  18%|█▊ | 212/1200 [00:07<01:13, 13.35it/s]
46
  18%|█▊ | 218/1200 [00:07<00:55, 17.63it/s]
47
  19%|█▊ | 224/1200 [00:07<00:43, 22.39it/s]
48
  19%|█▉ | 230/1200 [00:07<00:35, 27.46it/s]
49
  20%|█▉ | 236/1200 [00:07<00:29, 32.29it/s]
50
  20%|██ | 242/1200 [00:07<00:34, 27.64it/s]
51
  21%|██ | 248/1200 [00:07<00:29, 32.59it/s]
52
 
 
53
  21%|██ | 250/1200 [00:07<00:29, 32.59it/s]
54
  21%|██ | 254/1200 [00:08<00:25, 36.92it/s]
55
  22%|██▏ | 260/1200 [00:08<00:22, 41.22it/s]
56
  22%|██▏ | 266/1200 [00:08<00:21, 44.43it/s]
57
  23%|██▎ | 272/1200 [00:08<00:19, 47.51it/s]
58
  23%|██▎ | 278/1200 [00:08<00:18, 49.56it/s]
59
  24%|██▎ | 284/1200 [00:08<00:18, 49.77it/s]
60
  24%|██▍ | 290/1200 [00:08<00:17, 51.36it/s]
61
  25%|██▍ | 296/1200 [00:08<00:17, 51.59it/s]
62
 
 
63
  25%|██▌ | 300/1200 [00:08<00:17, 51.59it/s]
64
  25%|██▌ | 302/1200 [00:09<00:25, 35.73it/s]
65
  26%|██▌ | 308/1200 [00:09<00:22, 40.06it/s]
66
  26%|██▌ | 313/1200 [00:09<00:21, 42.15it/s]
67
  27%|██▋ | 319/1200 [00:09<00:19, 45.86it/s]
68
  27%|██▋ | 325/1200 [00:09<00:18, 47.79it/s]
69
  28%|██▊ | 331/1200 [00:09<00:17, 48.41it/s]
70
  28%|██▊ | 337/1200 [00:09<00:17, 49.47it/s]
71
  29%|██▊ | 343/1200 [00:09<00:16, 50.58it/s]
72
  29%|██▉ | 349/1200 [00:09<00:16, 52.04it/s]
73
 
 
74
  29%|██▉ | 350/1200 [00:10<00:16, 52.04it/s]
75
  30%|██▉ | 355/1200 [00:10<00:15, 53.58it/s]
76
  30%|███ | 361/1200 [00:10<00:22, 37.09it/s]
77
  31%|███ | 367/1200 [00:10<00:20, 41.02it/s]
78
  31%|███ | 373/1200 [00:10<00:18, 44.04it/s]
79
  32%|███▏ | 378/1200 [00:10<00:18, 44.97it/s]
80
  32%|███▏ | 384/1200 [00:10<00:17, 46.92it/s]
81
  32%|███▎ | 390/1200 [00:10<00:16, 49.17it/s]
82
  33%|███▎ | 396/1200 [00:11<00:15, 51.06it/s]
83
 
 
84
  33%|███▎ | 400/1200 [00:11<00:15, 51.06it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_161856/checkpoint-400
 
 
 
 
85
  34%|███▎ | 402/1200 [00:13<01:36, 8.23it/s]
86
  34%|███▍ | 408/1200 [00:13<01:11, 11.10it/s]
87
  34%|███▍ | 414/1200 [00:13<00:53, 14.63it/s]
88
  35%|███▌ | 420/1200 [00:13<00:43, 17.98it/s]
89
  35%|███▌ | 425/1200 [00:13<00:40, 18.93it/s]
90
  36%|███▌ | 431/1200 [00:13<00:32, 23.82it/s]
91
  36%|███▋ | 437/1200 [00:13<00:26, 28.80it/s]
92
  37%|███▋ | 443/1200 [00:14<00:22, 33.73it/s]
93
  37%|███▋ | 449/1200 [00:14<00:19, 38.34it/s]
94
 
 
95
  38%|███▊ | 450/1200 [00:14<00:19, 38.34it/s]
96
  38%|███▊ | 455/1200 [00:14<00:17, 41.99it/s]
97
  38%|███▊ | 461/1200 [00:14<00:16, 45.20it/s]
98
  39%|███▉ | 467/1200 [00:14<00:15, 48.40it/s]
99
  39%|███▉ | 473/1200 [00:14<00:14, 49.54it/s]
100
  40%|███▉ | 479/1200 [00:14<00:13, 51.73it/s]
101
  40%|████ | 485/1200 [00:15<00:19, 36.17it/s]
102
  41%|████ | 491/1200 [00:15<00:17, 40.17it/s]
103
  41%|████▏ | 497/1200 [00:15<00:16, 43.69it/s]
104
 
 
105
  42%|████▏ | 500/1200 [00:15<00:16, 43.69it/s]
106
  42%|████▏ | 503/1200 [00:15<00:14, 46.48it/s]
107
  42%|████▏ | 509/1200 [00:15<00:14, 48.18it/s]
108
  43%|████▎ | 515/1200 [00:15<00:13, 49.98it/s]
109
  43%|████▎ | 521/1200 [00:15<00:13, 51.24it/s]
110
  44%|████▍ | 527/1200 [00:15<00:12, 52.03it/s]
111
  44%|████▍ | 533/1200 [00:15<00:12, 51.41it/s]
112
  45%|████▍ | 539/1200 [00:16<00:12, 52.80it/s]
113
  45%|████▌ | 545/1200 [00:16<00:18, 35.66it/s]
114
 
 
115
  46%|████▌ | 550/1200 [00:16<00:18, 35.66it/s]
116
  46%|████▌ | 551/1200 [00:16<00:16, 39.40it/s]
117
  46%|████▋ | 557/1200 [00:16<00:14, 43.25it/s]
118
  47%|████▋ | 563/1200 [00:16<00:13, 46.39it/s]
119
  47%|████▋ | 569/1200 [00:16<00:13, 48.26it/s]
120
  48%|████▊ | 575/1200 [00:16<00:12, 50.43it/s]
121
  48%|████▊ | 581/1200 [00:16<00:11, 52.75it/s]
122
  49%|████▉ | 587/1200 [00:17<00:11, 54.37it/s]
123
  49%|████▉ | 593/1200 [00:17<00:11, 53.78it/s]
124
  50%|████▉ | 599/1200 [00:17<00:11, 54.34it/s]
125
 
 
126
  50%|█████ | 600/1200 [00:17<00:11, 54.34it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_161856/checkpoint-600
 
 
 
 
 
127
  50%|█████ | 605/1200 [00:19<01:25, 6.97it/s]
128
  51%|█████ | 611/1200 [00:20<01:02, 9.44it/s]
129
  51%|█████▏ | 617/1200 [00:20<00:46, 12.55it/s]
130
  52%|█████▏ | 623/1200 [00:20<00:35, 16.36it/s]
131
  52%|█████▏ | 629/1200 [00:20<00:27, 20.63it/s]
132
  53%|█████▎ | 635/1200 [00:20<00:22, 25.43it/s]
133
  53%|█████▎ | 641/1200 [00:20<00:18, 30.24it/s]
134
  54%|█████▍ | 647/1200 [00:20<00:15, 35.50it/s]
135
 
 
136
  54%|█████▍ | 650/1200 [00:20<00:15, 35.50it/s]
137
  54%|█████▍ | 653/1200 [00:20<00:13, 39.26it/s]
138
  55%|█████▍ | 659/1200 [00:20<00:12, 42.92it/s]
139
  55%|█████▌ | 665/1200 [00:21<00:16, 32.49it/s]
140
  56%|█████▌ | 671/1200 [00:21<00:14, 37.15it/s]
141
  56%|█████▋ | 677/1200 [00:21<00:12, 40.95it/s]
142
  57%|█████▋ | 683/1200 [00:21<00:11, 44.61it/s]
143
  57%|█████▋ | 689/1200 [00:21<00:10, 46.62it/s]
144
  58%|█████▊ | 695/1200 [00:21<00:10, 48.79it/s]
145
 
 
146
  58%|█████▊ | 700/1200 [00:21<00:10, 48.79it/s]
147
  58%|█████▊ | 701/1200 [00:21<00:09, 50.60it/s]
148
  59%|█████▉ | 707/1200 [00:21<00:09, 51.67it/s]
149
  59%|█████▉ | 713/1200 [00:22<00:09, 52.90it/s]
150
  60%|█████▉ | 719/1200 [00:22<00:08, 54.47it/s]
151
  60%|██████ | 725/1200 [00:22<00:13, 36.46it/s]
152
  61%|██████ | 731/1200 [00:22<00:11, 40.43it/s]
153
  61%|██████▏ | 737/1200 [00:22<00:10, 43.76it/s]
154
  62%|██████▏ | 743/1200 [00:22<00:09, 46.20it/s]
155
  62%|██████▏ | 749/1200 [00:22<00:09, 48.66it/s]
156
 
 
157
  62%|██████▎ | 750/1200 [00:22<00:09, 48.66it/s]
158
  63%|██████▎ | 755/1200 [00:23<00:08, 49.91it/s]
159
  63%|██████▎ | 761/1200 [00:23<00:08, 51.34it/s]
160
  64%|██████▍ | 767/1200 [00:23<00:08, 52.35it/s]
161
  64%|██████▍ | 773/1200 [00:23<00:08, 52.21it/s]
162
  65%|██████▍ | 779/1200 [00:23<00:07, 53.75it/s]
163
  65%|██████▌ | 785/1200 [00:23<00:11, 36.63it/s]
164
  66%|██████▌ | 791/1200 [00:23<00:10, 40.15it/s]
165
  66%|██████▋ | 797/1200 [00:23<00:09, 43.39it/s]
166
 
 
167
  67%|██████▋ | 800/1200 [00:24<00:09, 43.39it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_161856/checkpoint-800
 
 
 
 
 
168
  67%|██████▋ | 802/1200 [00:26<00:52, 7.63it/s]
169
  67%|██████▋ | 808/1200 [00:26<00:37, 10.41it/s]
170
  68%|██████▊ | 814/1200 [00:26<00:27, 13.88it/s]
171
  68%|██████▊ | 820/1200 [00:26<00:21, 17.96it/s]
172
  69%|██████▉ | 826/1200 [00:26<00:16, 22.46it/s]
173
  69%|██████▉ | 832/1200 [00:26<00:13, 27.12it/s]
174
  70%|██████▉ | 839/1200 [00:26<00:10, 33.55it/s]
175
  70%|███████ | 845/1200 [00:27<00:12, 28.26it/s]
176
 
 
177
  71%|███████ | 850/1200 [00:27<00:12, 28.26it/s]
178
  71%|███████ | 851/1200 [00:27<00:10, 32.72it/s]
179
  71%|███████▏ | 856/1200 [00:27<00:09, 35.86it/s]
180
  72%|███████▏ | 862/1200 [00:27<00:08, 39.74it/s]
181
  72%|███████▏ | 868/1200 [00:27<00:07, 43.20it/s]
182
  73%|███████▎ | 874/1200 [00:27<00:07, 45.39it/s]
183
  73%|███████▎ | 880/1200 [00:27<00:06, 47.45it/s]
184
  74%|███████▍ | 886/1200 [00:27<00:06, 49.14it/s]
185
  74%|███████▍ | 892/1200 [00:27<00:06, 49.67it/s]
186
  75%|███████▍ | 898/1200 [00:28<00:05, 51.22it/s]
187
 
 
188
  75%|███████▌ | 900/1200 [00:28<00:05, 51.22it/s]
189
  75%|███████▌ | 904/1200 [00:28<00:08, 35.18it/s]
190
  76%|███████▌ | 910/1200 [00:28<00:07, 39.05it/s]
191
  76%|███████▋ | 916/1200 [00:28<00:06, 42.85it/s]
192
  77%|███████▋ | 922/1200 [00:28<00:06, 45.44it/s]
193
  77%|███████▋ | 928/1200 [00:28<00:05, 47.51it/s]
194
  78%|███████▊ | 934/1200 [00:28<00:05, 49.40it/s]
195
  78%|███████▊ | 940/1200 [00:29<00:05, 50.61it/s]
196
  79%|███████▉ | 946/1200 [00:29<00:04, 52.60it/s]
197
 
 
198
  79%|███████▉ | 950/1200 [00:29<00:04, 52.60it/s]
199
  79%|███████▉ | 952/1200 [00:29<00:04, 52.43it/s]
200
  80%|███████▉ | 958/1200 [00:29<00:04, 53.88it/s]
201
  80%|████████ | 964/1200 [00:29<00:06, 36.64it/s]
202
  81%|████████ | 970/1200 [00:29<00:05, 40.44it/s]
203
  81%|████████▏ | 976/1200 [00:29<00:05, 44.27it/s]
204
  82%|████████▏ | 982/1200 [00:30<00:04, 46.32it/s]
205
  82%|████████▏ | 988/1200 [00:30<00:04, 48.90it/s]
206
  83%|████████▎ | 994/1200 [00:30<00:04, 50.85it/s]
207
  83%|████████▎ | 1000/1200 [00:30<00:03, 51.43it/s]
208
 
 
209
  83%|████████▎ | 1000/1200 [00:30<00:03, 51.43it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_161856/checkpoint-1000
 
 
 
 
 
210
  84%|████████▍ | 1006/1200 [00:32<00:24, 8.05it/s]
211
  84%|████████▍ | 1012/1200 [00:32<00:17, 10.79it/s]
212
  85%|████████▍ | 1018/1200 [00:32<00:12, 14.23it/s]
213
  85%|████████▌ | 1023/1200 [00:33<00:11, 15.07it/s]
214
  86%|████████▌ | 1029/1200 [00:33<00:08, 19.42it/s]
215
  86%|████████▋ | 1035/1200 [00:33<00:06, 24.17it/s]
216
  87%|████████▋ | 1041/1200 [00:33<00:05, 28.98it/s]
217
  87%|████████▋ | 1047/1200 [00:33<00:04, 33.32it/s]
218
 
 
219
  88%|████████▊ | 1050/1200 [00:33<00:04, 33.32it/s]
220
  88%|████████▊ | 1053/1200 [00:33<00:03, 38.13it/s]
221
  88%|████████▊ | 1059/1200 [00:33<00:03, 42.55it/s]
222
  89%|████████▉ | 1065/1200 [00:33<00:02, 45.28it/s]
223
  89%|████████▉ | 1071/1200 [00:33<00:02, 48.16it/s]
224
  90%|████████▉ | 1077/1200 [00:34<00:02, 50.90it/s]
225
  90%|█████████ | 1083/1200 [00:34<00:03, 35.32it/s]
226
  91%|█████████ | 1089/1200 [00:34<00:02, 39.61it/s]
227
  91%|█████████▏| 1095/1200 [00:34<00:02, 42.45it/s]
228
 
 
229
  92%|█████████▏| 1100/1200 [00:34<00:02, 42.45it/s]
230
  92%|█████████▏| 1101/1200 [00:34<00:02, 44.99it/s]
231
  92%|█████████▏| 1107/1200 [00:34<00:01, 47.14it/s]
232
  93%|█████████▎| 1113/1200 [00:34<00:01, 48.81it/s]
233
  93%|█████████▎| 1119/1200 [00:34<00:01, 50.65it/s]
234
  94%|█████████▍| 1125/1200 [00:35<00:01, 51.59it/s]
235
  94%|█████████▍| 1131/1200 [00:35<00:01, 52.45it/s]
236
  95%|█████████▍| 1137/1200 [00:35<00:01, 54.42it/s]
237
  95%|█████████▌| 1143/1200 [00:35<00:01, 35.42it/s]
238
  96%|█████████▌| 1149/1200 [00:35<00:01, 39.48it/s]
239
 
 
240
  96%|█████████▌| 1150/1200 [00:35<00:01, 39.48it/s]
241
  96%|█████████▋| 1155/1200 [00:35<00:01, 42.73it/s]
242
  97%|█████████▋| 1161/1200 [00:35<00:00, 45.34it/s]
243
  97%|█████████▋| 1167/1200 [00:36<00:00, 47.92it/s]
244
  98%|█████████▊| 1173/1200 [00:36<00:00, 50.07it/s]
245
  98%|█████████▊| 1179/1200 [00:36<00:00, 51.94it/s]
246
  99%|█████████▉| 1185/1200 [00:36<00:00, 52.98it/s]
247
  99%|█████████▉| 1191/1200 [00:36<00:00, 52.92it/s]
248
 
 
 
 
 
 
 
 
 
 
249
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ torch: 2.6.0+cu124
2
+ accelerate: 0.34.2
3
+ cuda devices: 2
4
+ ================================================================
5
+ ITFormer × RATs40K | Run ID: 20260608_161856
6
+ CUDA_VISIBLE_DEVICES: 0,1
7
+ Data: /mnt/share01/sqk/datasets/RATs40K/RATs-Uni-TSImage_Reason.json
8
+ LLM: /mnt/share01/sqk/models/qwen2.5-7b-instruct
9
+ patch_len=16, input_len=128, prefix_num=8
10
+ it_d_model=3584, it_n_heads=28
11
+ ================================================================
12
+
13
+ ── Stage A: Pre-training TimeSeriesEncoder ──────────────────────
14
+ ⚙️ Running in WANDB offline mode
15
+ ⚙️ Running in WANDB offline mode
16
+ Pretrain dataset size: 30266
17
+ ts_values shape per sample: torch.Size([128, 1])
18
+ swanlab not installed; running without logging.
19
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/accelerator.py:494: FutureWarning: `torch.cuda.amp.GradScaler(args...)` is deprecated. Please use `torch.amp.GradScaler('cuda', args...)` instead.
20
+ self.scaler = torch.cuda.amp.GradScaler(**kwargs)
21
+ PyTorch: setting up devices
22
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/accelerator.py:494: FutureWarning: `torch.cuda.amp.GradScaler(args...)` is deprecated. Please use `torch.amp.GradScaler('cuda', args...)` instead.
23
+ self.scaler = torch.cuda.amp.GradScaler(**kwargs)
24
+ Using auto half precision backend
25
+ ***** Running training *****
26
+ Num examples = 30,266
27
+ Num Epochs = 20
28
+ Instantaneous batch size per device = 256
29
+ Total train batch size (w. parallel, distributed & accumulation) = 512
30
+ Gradient Accumulation steps = 1
31
+ Total optimization steps = 1,200
32
+ Number of trainable parameters = 16,829,456
33
+
34
  0%| | 0/1200 [00:00<?, ?it/s]/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
35
+ self.gen = func(*args, **kwds)
36
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
37
+ self.gen = func(*args, **kwds)
38
+ [rank1]:[W608 16:19:08.749567930 reducer.cpp:1400] Warning: find_unused_parameters=True was specified in DDP constructor, but did not find any unused parameters in the forward pass. This flag results in an extra traversal of the autograd graph every iteration, which can adversely affect performance. If your model indeed never has any unused parameters in the forward pass, consider turning this flag off. Note that this warning may be a false positive if your model has flow control causing later iterations to have unused parameters. (function operator())
39
+ [rank0]:[W608 16:19:08.749811315 reducer.cpp:1400] Warning: find_unused_parameters=True was specified in DDP constructor, but did not find any unused parameters in the forward pass. This flag results in an extra traversal of the autograd graph every iteration, which can adversely affect performance. If your model indeed never has any unused parameters in the forward pass, consider turning this flag off. Note that this warning may be a false positive if your model has flow control causing later iterations to have unused parameters. (function operator())
40
+
41
  0%| | 1/1200 [00:00<11:14, 1.78it/s]
42
  1%| | 7/1200 [00:00<01:30, 13.21it/s]
43
  1%| | 13/1200 [00:00<00:52, 22.61it/s]
44
  2%|▏ | 18/1200 [00:00<00:42, 27.51it/s]
45
  2%|▏ | 24/1200 [00:01<00:34, 34.51it/s]
46
  2%|▎ | 30/1200 [00:01<00:29, 39.72it/s]
47
  3%|▎ | 36/1200 [00:01<00:26, 44.23it/s]
48
  4%|▎ | 42/1200 [00:01<00:24, 46.95it/s]
49
  4%|▍ | 48/1200 [00:01<00:23, 48.66it/s]
50
 
51
+
52
  4%|▍ | 50/1200 [00:01<00:23, 48.66it/s]
53
  4%|▍ | 54/1200 [00:01<00:22, 51.53it/s]
54
  5%|▌ | 60/1200 [00:01<00:23, 47.98it/s]
55
  6%|▌ | 66/1200 [00:01<00:30, 37.54it/s]
56
  6%|▌ | 72/1200 [00:02<00:27, 41.61it/s]
57
  6%|▋ | 78/1200 [00:02<00:25, 44.44it/s]
58
  7%|▋ | 84/1200 [00:02<00:23, 46.97it/s]
59
  8%|▊ | 90/1200 [00:02<00:22, 48.43it/s]
60
  8%|▊ | 96/1200 [00:02<00:22, 50.02it/s]
61
 
62
+
63
  8%|▊ | 100/1200 [00:02<00:21, 50.02it/s]
64
  8%|▊ | 102/1200 [00:02<00:21, 51.22it/s]
65
  9%|▉ | 108/1200 [00:02<00:21, 51.86it/s]
66
  10%|▉ | 114/1200 [00:02<00:20, 52.95it/s]
67
  10%|█ | 120/1200 [00:03<00:22, 47.35it/s]
68
  10%|█ | 125/1200 [00:03<00:29, 36.78it/s]
69
  11%|█ | 131/1200 [00:03<00:26, 40.22it/s]
70
  11%|█▏ | 137/1200 [00:03<00:24, 43.29it/s]
71
  12%|█▏ | 143/1200 [00:03<00:23, 45.22it/s]
72
  12%|█▏ | 149/1200 [00:03<00:22, 47.02it/s]
73
 
74
+
75
  12%|█▎ | 150/1200 [00:03<00:22, 47.02it/s]
76
  13%|█▎ | 155/1200 [00:03<00:21, 48.47it/s]
77
  13%|█▎ | 161/1200 [00:03<00:21, 49.22it/s]
78
  14%|█▍ | 167/1200 [00:04<00:20, 51.00it/s]
79
  14%|█▍ | 173/1200 [00:04<00:19, 51.97it/s]
80
  15%|█▍ | 179/1200 [00:04<00:18, 53.84it/s]
81
  15%|█▌ | 185/1200 [00:04<00:28, 36.18it/s]
82
  16%|█▌ | 190/1200 [00:04<00:26, 38.65it/s]
83
  16%|█▋ | 196/1200 [00:04<00:23, 42.06it/s]
84
 
85
+
86
  17%|█▋ | 200/1200 [00:04<00:23, 42.06it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_161856/checkpoint-200
87
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
88
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
89
+ self.gen = func(*args, **kwds)
90
+
91
  17%|█▋ | 201/1200 [00:06<02:12, 7.53it/s]
92
  17%|█▋ | 206/1200 [00:06<01:40, 9.85it/s]
93
  18%|█▊ | 212/1200 [00:07<01:13, 13.35it/s]
94
  18%|█▊ | 218/1200 [00:07<00:55, 17.63it/s]
95
  19%|█▊ | 224/1200 [00:07<00:43, 22.39it/s]
96
  19%|█▉ | 230/1200 [00:07<00:35, 27.46it/s]
97
  20%|█▉ | 236/1200 [00:07<00:29, 32.29it/s]
98
  20%|██ | 242/1200 [00:07<00:34, 27.64it/s]
99
  21%|██ | 248/1200 [00:07<00:29, 32.59it/s]
100
 
101
+
102
  21%|██ | 250/1200 [00:07<00:29, 32.59it/s]
103
  21%|██ | 254/1200 [00:08<00:25, 36.92it/s]
104
  22%|██▏ | 260/1200 [00:08<00:22, 41.22it/s]
105
  22%|██▏ | 266/1200 [00:08<00:21, 44.43it/s]
106
  23%|██▎ | 272/1200 [00:08<00:19, 47.51it/s]
107
  23%|██▎ | 278/1200 [00:08<00:18, 49.56it/s]
108
  24%|██▎ | 284/1200 [00:08<00:18, 49.77it/s]
109
  24%|██▍ | 290/1200 [00:08<00:17, 51.36it/s]
110
  25%|██▍ | 296/1200 [00:08<00:17, 51.59it/s]
111
 
112
+
113
  25%|██▌ | 300/1200 [00:08<00:17, 51.59it/s]
114
  25%|██▌ | 302/1200 [00:09<00:25, 35.73it/s]
115
  26%|██▌ | 308/1200 [00:09<00:22, 40.06it/s]
116
  26%|██▌ | 313/1200 [00:09<00:21, 42.15it/s]
117
  27%|██▋ | 319/1200 [00:09<00:19, 45.86it/s]
118
  27%|██▋ | 325/1200 [00:09<00:18, 47.79it/s]
119
  28%|██▊ | 331/1200 [00:09<00:17, 48.41it/s]
120
  28%|██▊ | 337/1200 [00:09<00:17, 49.47it/s]
121
  29%|██▊ | 343/1200 [00:09<00:16, 50.58it/s]
122
  29%|██▉ | 349/1200 [00:09<00:16, 52.04it/s]
123
 
124
+
125
  29%|██▉ | 350/1200 [00:10<00:16, 52.04it/s]
126
  30%|██▉ | 355/1200 [00:10<00:15, 53.58it/s]
127
  30%|███ | 361/1200 [00:10<00:22, 37.09it/s]
128
  31%|███ | 367/1200 [00:10<00:20, 41.02it/s]
129
  31%|███ | 373/1200 [00:10<00:18, 44.04it/s]
130
  32%|███▏ | 378/1200 [00:10<00:18, 44.97it/s]
131
  32%|███▏ | 384/1200 [00:10<00:17, 46.92it/s]
132
  32%|███▎ | 390/1200 [00:10<00:16, 49.17it/s]
133
  33%|███▎ | 396/1200 [00:11<00:15, 51.06it/s]
134
 
135
+
136
  33%|███▎ | 400/1200 [00:11<00:15, 51.06it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_161856/checkpoint-400
137
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
138
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
139
+ self.gen = func(*args, **kwds)
140
+
141
  34%|███▎ | 402/1200 [00:13<01:36, 8.23it/s]
142
  34%|███▍ | 408/1200 [00:13<01:11, 11.10it/s]
143
  34%|███▍ | 414/1200 [00:13<00:53, 14.63it/s]
144
  35%|███▌ | 420/1200 [00:13<00:43, 17.98it/s]
145
  35%|███▌ | 425/1200 [00:13<00:40, 18.93it/s]
146
  36%|███▌ | 431/1200 [00:13<00:32, 23.82it/s]
147
  36%|███▋ | 437/1200 [00:13<00:26, 28.80it/s]
148
  37%|███▋ | 443/1200 [00:14<00:22, 33.73it/s]
149
  37%|███▋ | 449/1200 [00:14<00:19, 38.34it/s]
150
 
151
+
152
  38%|███▊ | 450/1200 [00:14<00:19, 38.34it/s]
153
  38%|███▊ | 455/1200 [00:14<00:17, 41.99it/s]
154
  38%|███▊ | 461/1200 [00:14<00:16, 45.20it/s]
155
  39%|███▉ | 467/1200 [00:14<00:15, 48.40it/s]
156
  39%|███▉ | 473/1200 [00:14<00:14, 49.54it/s]
157
  40%|███▉ | 479/1200 [00:14<00:13, 51.73it/s]
158
  40%|████ | 485/1200 [00:15<00:19, 36.17it/s]
159
  41%|████ | 491/1200 [00:15<00:17, 40.17it/s]
160
  41%|████▏ | 497/1200 [00:15<00:16, 43.69it/s]
161
 
162
+
163
  42%|████▏ | 500/1200 [00:15<00:16, 43.69it/s]
164
  42%|████▏ | 503/1200 [00:15<00:14, 46.48it/s]
165
  42%|████▏ | 509/1200 [00:15<00:14, 48.18it/s]
166
  43%|████▎ | 515/1200 [00:15<00:13, 49.98it/s]
167
  43%|████▎ | 521/1200 [00:15<00:13, 51.24it/s]
168
  44%|████▍ | 527/1200 [00:15<00:12, 52.03it/s]
169
  44%|████▍ | 533/1200 [00:15<00:12, 51.41it/s]
170
  45%|████▍ | 539/1200 [00:16<00:12, 52.80it/s]
171
  45%|████▌ | 545/1200 [00:16<00:18, 35.66it/s]
172
 
173
+
174
  46%|████▌ | 550/1200 [00:16<00:18, 35.66it/s]
175
  46%|████▌ | 551/1200 [00:16<00:16, 39.40it/s]
176
  46%|████▋ | 557/1200 [00:16<00:14, 43.25it/s]
177
  47%|████▋ | 563/1200 [00:16<00:13, 46.39it/s]
178
  47%|████▋ | 569/1200 [00:16<00:13, 48.26it/s]
179
  48%|████▊ | 575/1200 [00:16<00:12, 50.43it/s]
180
  48%|████▊ | 581/1200 [00:16<00:11, 52.75it/s]
181
  49%|████▉ | 587/1200 [00:17<00:11, 54.37it/s]
182
  49%|████▉ | 593/1200 [00:17<00:11, 53.78it/s]
183
  50%|████▉ | 599/1200 [00:17<00:11, 54.34it/s]
184
 
185
+
186
  50%|█████ | 600/1200 [00:17<00:11, 54.34it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_161856/checkpoint-600
187
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
188
+ Deleting older checkpoint [save/pretrain_rats40k_20260608_161856/checkpoint-200] due to args.save_total_limit
189
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
190
+ self.gen = func(*args, **kwds)
191
+
192
  50%|█████ | 605/1200 [00:19<01:25, 6.97it/s]
193
  51%|█████ | 611/1200 [00:20<01:02, 9.44it/s]
194
  51%|█████▏ | 617/1200 [00:20<00:46, 12.55it/s]
195
  52%|█████▏ | 623/1200 [00:20<00:35, 16.36it/s]
196
  52%|█████▏ | 629/1200 [00:20<00:27, 20.63it/s]
197
  53%|█████▎ | 635/1200 [00:20<00:22, 25.43it/s]
198
  53%|█████▎ | 641/1200 [00:20<00:18, 30.24it/s]
199
  54%|█████▍ | 647/1200 [00:20<00:15, 35.50it/s]
200
 
201
+
202
  54%|█████▍ | 650/1200 [00:20<00:15, 35.50it/s]
203
  54%|█████▍ | 653/1200 [00:20<00:13, 39.26it/s]
204
  55%|█████▍ | 659/1200 [00:20<00:12, 42.92it/s]
205
  55%|█████▌ | 665/1200 [00:21<00:16, 32.49it/s]
206
  56%|█████▌ | 671/1200 [00:21<00:14, 37.15it/s]
207
  56%|█████▋ | 677/1200 [00:21<00:12, 40.95it/s]
208
  57%|█████▋ | 683/1200 [00:21<00:11, 44.61it/s]
209
  57%|█████▋ | 689/1200 [00:21<00:10, 46.62it/s]
210
  58%|█████▊ | 695/1200 [00:21<00:10, 48.79it/s]
211
 
212
+
213
  58%|█████▊ | 700/1200 [00:21<00:10, 48.79it/s]
214
  58%|█████▊ | 701/1200 [00:21<00:09, 50.60it/s]
215
  59%|█████▉ | 707/1200 [00:21<00:09, 51.67it/s]
216
  59%|█████▉ | 713/1200 [00:22<00:09, 52.90it/s]
217
  60%|█████▉ | 719/1200 [00:22<00:08, 54.47it/s]
218
  60%|██████ | 725/1200 [00:22<00:13, 36.46it/s]
219
  61%|██████ | 731/1200 [00:22<00:11, 40.43it/s]
220
  61%|██████▏ | 737/1200 [00:22<00:10, 43.76it/s]
221
  62%|██████▏ | 743/1200 [00:22<00:09, 46.20it/s]
222
  62%|██████▏ | 749/1200 [00:22<00:09, 48.66it/s]
223
 
224
+
225
  62%|██████▎ | 750/1200 [00:22<00:09, 48.66it/s]
226
  63%|██████▎ | 755/1200 [00:23<00:08, 49.91it/s]
227
  63%|██████▎ | 761/1200 [00:23<00:08, 51.34it/s]
228
  64%|██████▍ | 767/1200 [00:23<00:08, 52.35it/s]
229
  64%|██████▍ | 773/1200 [00:23<00:08, 52.21it/s]
230
  65%|██████▍ | 779/1200 [00:23<00:07, 53.75it/s]
231
  65%|██████▌ | 785/1200 [00:23<00:11, 36.63it/s]
232
  66%|██████▌ | 791/1200 [00:23<00:10, 40.15it/s]
233
  66%|██████▋ | 797/1200 [00:23<00:09, 43.39it/s]
234
 
235
+
236
  67%|██████▋ | 800/1200 [00:24<00:09, 43.39it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_161856/checkpoint-800
237
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
238
+ Deleting older checkpoint [save/pretrain_rats40k_20260608_161856/checkpoint-400] due to args.save_total_limit
239
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
240
+ self.gen = func(*args, **kwds)
241
+
242
  67%|██████▋ | 802/1200 [00:26<00:52, 7.63it/s]
243
  67%|██████▋ | 808/1200 [00:26<00:37, 10.41it/s]
244
  68%|██████▊ | 814/1200 [00:26<00:27, 13.88it/s]
245
  68%|██████▊ | 820/1200 [00:26<00:21, 17.96it/s]
246
  69%|██████▉ | 826/1200 [00:26<00:16, 22.46it/s]
247
  69%|██████▉ | 832/1200 [00:26<00:13, 27.12it/s]
248
  70%|██████▉ | 839/1200 [00:26<00:10, 33.55it/s]
249
  70%|███████ | 845/1200 [00:27<00:12, 28.26it/s]
250
 
251
+
252
  71%|███████ | 850/1200 [00:27<00:12, 28.26it/s]
253
  71%|███████ | 851/1200 [00:27<00:10, 32.72it/s]
254
  71%|███████▏ | 856/1200 [00:27<00:09, 35.86it/s]
255
  72%|███████▏ | 862/1200 [00:27<00:08, 39.74it/s]
256
  72%|███████▏ | 868/1200 [00:27<00:07, 43.20it/s]
257
  73%|███████▎ | 874/1200 [00:27<00:07, 45.39it/s]
258
  73%|███████▎ | 880/1200 [00:27<00:06, 47.45it/s]
259
  74%|███████▍ | 886/1200 [00:27<00:06, 49.14it/s]
260
  74%|███████▍ | 892/1200 [00:27<00:06, 49.67it/s]
261
  75%|███████▍ | 898/1200 [00:28<00:05, 51.22it/s]
262
 
263
+
264
  75%|███████▌ | 900/1200 [00:28<00:05, 51.22it/s]
265
  75%|███████▌ | 904/1200 [00:28<00:08, 35.18it/s]
266
  76%|███████▌ | 910/1200 [00:28<00:07, 39.05it/s]
267
  76%|███████▋ | 916/1200 [00:28<00:06, 42.85it/s]
268
  77%|███████▋ | 922/1200 [00:28<00:06, 45.44it/s]
269
  77%|███████▋ | 928/1200 [00:28<00:05, 47.51it/s]
270
  78%|███████▊ | 934/1200 [00:28<00:05, 49.40it/s]
271
  78%|███████▊ | 940/1200 [00:29<00:05, 50.61it/s]
272
  79%|███████▉ | 946/1200 [00:29<00:04, 52.60it/s]
273
 
274
+
275
  79%|███████▉ | 950/1200 [00:29<00:04, 52.60it/s]
276
  79%|███████▉ | 952/1200 [00:29<00:04, 52.43it/s]
277
  80%|███████▉ | 958/1200 [00:29<00:04, 53.88it/s]
278
  80%|████████ | 964/1200 [00:29<00:06, 36.64it/s]
279
  81%|████████ | 970/1200 [00:29<00:05, 40.44it/s]
280
  81%|████████▏ | 976/1200 [00:29<00:05, 44.27it/s]
281
  82%|████████▏ | 982/1200 [00:30<00:04, 46.32it/s]
282
  82%|████████▏ | 988/1200 [00:30<00:04, 48.90it/s]
283
  83%|████████▎ | 994/1200 [00:30<00:04, 50.85it/s]
284
  83%|████████▎ | 1000/1200 [00:30<00:03, 51.43it/s]
285
 
286
+
287
  83%|████████▎ | 1000/1200 [00:30<00:03, 51.43it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_161856/checkpoint-1000
288
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
289
+ Deleting older checkpoint [save/pretrain_rats40k_20260608_161856/checkpoint-600] due to args.save_total_limit
290
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
291
+ self.gen = func(*args, **kwds)
292
+
293
  84%|████████▍ | 1006/1200 [00:32<00:24, 8.05it/s]
294
  84%|████████▍ | 1012/1200 [00:32<00:17, 10.79it/s]
295
  85%|████████▍ | 1018/1200 [00:32<00:12, 14.23it/s]
296
  85%|████████▌ | 1023/1200 [00:33<00:11, 15.07it/s]
297
  86%|████████▌ | 1029/1200 [00:33<00:08, 19.42it/s]
298
  86%|████████▋ | 1035/1200 [00:33<00:06, 24.17it/s]
299
  87%|████████▋ | 1041/1200 [00:33<00:05, 28.98it/s]
300
  87%|████████▋ | 1047/1200 [00:33<00:04, 33.32it/s]
301
 
302
+
303
  88%|████████▊ | 1050/1200 [00:33<00:04, 33.32it/s]
304
  88%|████████▊ | 1053/1200 [00:33<00:03, 38.13it/s]
305
  88%|████████▊ | 1059/1200 [00:33<00:03, 42.55it/s]
306
  89%|████████▉ | 1065/1200 [00:33<00:02, 45.28it/s]
307
  89%|████████▉ | 1071/1200 [00:33<00:02, 48.16it/s]
308
  90%|████████▉ | 1077/1200 [00:34<00:02, 50.90it/s]
309
  90%|█████████ | 1083/1200 [00:34<00:03, 35.32it/s]
310
  91%|█████████ | 1089/1200 [00:34<00:02, 39.61it/s]
311
  91%|█████████▏| 1095/1200 [00:34<00:02, 42.45it/s]
312
 
313
+
314
  92%|█████████▏| 1100/1200 [00:34<00:02, 42.45it/s]
315
  92%|█████████▏| 1101/1200 [00:34<00:02, 44.99it/s]
316
  92%|█████████▏| 1107/1200 [00:34<00:01, 47.14it/s]
317
  93%|█████████▎| 1113/1200 [00:34<00:01, 48.81it/s]
318
  93%|█████████▎| 1119/1200 [00:34<00:01, 50.65it/s]
319
  94%|█████████▍| 1125/1200 [00:35<00:01, 51.59it/s]
320
  94%|█████████▍| 1131/1200 [00:35<00:01, 52.45it/s]
321
  95%|█████████▍| 1137/1200 [00:35<00:01, 54.42it/s]
322
  95%|█████████▌| 1143/1200 [00:35<00:01, 35.42it/s]
323
  96%|█████████▌| 1149/1200 [00:35<00:01, 39.48it/s]
324
 
325
+
326
  96%|█████████▌| 1150/1200 [00:35<00:01, 39.48it/s]
327
  96%|█████████▋| 1155/1200 [00:35<00:01, 42.73it/s]
328
  97%|█████████▋| 1161/1200 [00:35<00:00, 45.34it/s]
329
  97%|█████████▋| 1167/1200 [00:36<00:00, 47.92it/s]
330
  98%|█████████▊| 1173/1200 [00:36<00:00, 50.07it/s]
331
  98%|█████████▊| 1179/1200 [00:36<00:00, 51.94it/s]
332
  99%|█████████▉| 1185/1200 [00:36<00:00, 52.98it/s]
333
  99%|█████████▉| 1191/1200 [00:36<00:00, 52.92it/s]
334
 
335
+
336
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
337
+ Deleting older checkpoint [save/pretrain_rats40k_20260608_161856/checkpoint-800] due to args.save_total_limit
338
+
339
+
340
+ Training completed. Do not forget to share your model on huggingface.co/models =)
341
+
342
+
343
+
344
 
345
+
346
+ Saving model checkpoint to save/pretrain_rats40k
347
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
348
+ Pre-training done. Weights saved to save/pretrain_rats40k/model.safetensors
349
+ [rank0]:[W608 16:19:47.280578046 ProcessGroupNCCL.cpp:1496] Warning: WARNING: destroy_process_group() was not called before program exit, which can leak resources. For more info, please see https://pytorch.org/docs/stable/distributed.html#shutdown (function operator())
350
+ Stage A done. TS encoder: save/pretrain_rats40k/model.safetensors
351
+
352
+ ── Stage B: SFT (ITFormer + LLM) ───────────────────────────────
353
+ ⚙️ Running in WANDB offline mode
354
+ ⚙️ Running in WANDB offline mode
355
+ loading file vocab.json
356
+ loading file merges.txt
357
+ loading file tokenizer.json
358
+ loading file added_tokens.json
359
+ loading file special_tokens_map.json
360
+ loading file tokenizer_config.json
361
+ loading file chat_template.jinja
362
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
363
+ Train: 30266 samples | Eval: 6034 samples
364
+ swanlab not installed; running without logging.
365
+ Generate config GenerationConfig {}
366
+
367
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-7b-instruct/config.json
368
+ Model config Qwen2Config {
369
+ "architectures": [
370
+ "Qwen2ForCausalLM"
371
+ ],
372
+ "attention_dropout": 0.0,
373
+ "bos_token_id": 151643,
374
+ "eos_token_id": 151645,
375
+ "hidden_act": "silu",
376
+ "hidden_size": 3584,
377
+ "initializer_range": 0.02,
378
+ "intermediate_size": 18944,
379
+ "layer_types": [
380
+ "full_attention",
381
+ "full_attention",
382
+ "full_attention",
383
+ "full_attention",
384
+ "full_attention",
385
+ "full_attention",
386
+ "full_attention",
387
+ "full_attention",
388
+ "full_attention",
389
+ "full_attention",
390
+ "full_attention",
391
+ "full_attention",
392
+ "full_attention",
393
+ "full_attention",
394
+ "full_attention",
395
+ "full_attention",
396
+ "full_attention",
397
+ "full_attention",
398
+ "full_attention",
399
+ "full_attention",
400
+ "full_attention",
401
+ "full_attention",
402
+ "full_attention",
403
+ "full_attention",
404
+ "full_attention",
405
+ "full_attention",
406
+ "full_attention",
407
+ "full_attention"
408
+ ],
409
+ "max_position_embeddings": 32768,
410
+ "max_window_layers": 28,
411
+ "model_type": "qwen2",
412
+ "num_attention_heads": 28,
413
+ "num_hidden_layers": 28,
414
+ "num_key_value_heads": 4,
415
+ "rms_norm_eps": 1e-06,
416
+ "rope_scaling": null,
417
+ "rope_theta": 1000000.0,
418
+ "sliding_window": null,
419
+ "tie_word_embeddings": false,
420
+ "torch_dtype": "bfloat16",
421
+ "transformers_version": "4.54.1",
422
+ "use_cache": true,
423
+ "use_sliding_window": false,
424
+ "vocab_size": 152064
425
+ }
426
+
427
+ loading weights file /mnt/share01/sqk/models/qwen2.5-7b-instruct/model.safetensors.index.json
428
+ Generate config GenerationConfig {
429
+ "bos_token_id": 151643,
430
+ "eos_token_id": 151645
431
+ }
432
+
433
+
logs/rats40k_2gpu_20260608_164521.log ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ torch: 2.6.0+cu124
2
+ accelerate: 0.34.2
3
+ cuda devices: 2
4
+ ================================================================
5
+ ITFormer × RATs40K | Run ID: 20260608_164521
6
+ CUDA_VISIBLE_DEVICES: 0,1
7
+ Data: /mnt/share01/sqk/datasets/RATs40K/RATs-Uni-TSImage_Reason.json
8
+ LLM: /mnt/share01/sqk/models/qwen2.5-7b-instruct
9
+ patch_len=16, input_len=128, prefix_num=8
10
+ it_d_model=3584, it_n_heads=28
11
+ ================================================================
12
+ Stage A: skipped (TS encoder exists: save/pretrain_rats40k/model.safetensors)
13
+
14
+ ── Stage B: SFT (ITFormer + LLM) ───────────────────────────────
logs/rats40k_2gpu_20260608_164558.log ADDED
@@ -0,0 +1,472 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
  0%| | 0/1200 [00:00<?, ?it/s]/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
 
 
 
 
 
 
1
  0%| | 1/1200 [00:00<11:29, 1.74it/s]
2
  0%| | 6/1200 [00:00<01:46, 11.22it/s]
3
  1%| | 11/1200 [00:00<01:00, 19.68it/s]
4
  1%|▏ | 16/1200 [00:00<00:44, 26.89it/s]
5
  2%|▏ | 22/1200 [00:00<00:34, 34.11it/s]
6
  2%|▏ | 28/1200 [00:01<00:29, 39.08it/s]
7
  3%|▎ | 33/1200 [00:01<00:28, 41.35it/s]
8
  3%|▎ | 39/1200 [00:01<00:26, 44.22it/s]
9
  4%|▎ | 44/1200 [00:01<00:25, 45.04it/s]
10
  4%|▍ | 50/1200 [00:01<00:24, 47.29it/s]
11
 
 
12
  4%|▍ | 50/1200 [00:01<00:24, 47.29it/s]
13
  5%|▍ | 56/1200 [00:01<00:23, 48.68it/s]
14
  5%|▌ | 62/1200 [00:01<00:33, 34.44it/s]
15
  6%|▌ | 68/1200 [00:02<00:29, 38.85it/s]
16
  6%|▌ | 74/1200 [00:02<00:26, 42.19it/s]
17
  7%|▋ | 80/1200 [00:02<00:25, 44.71it/s]
18
  7%|▋ | 86/1200 [00:02<00:23, 46.48it/s]
19
  8%|▊ | 92/1200 [00:02<00:23, 47.70it/s]
20
  8%|▊ | 97/1200 [00:02<00:22, 48.03it/s]
21
 
 
22
  8%|▊ | 100/1200 [00:02<00:22, 48.03it/s]
23
  8%|▊ | 102/1200 [00:02<00:22, 47.75it/s]
24
  9%|▉ | 108/1200 [00:02<00:22, 48.57it/s]
25
  10%|▉ | 114/1200 [00:02<00:21, 49.68it/s]
26
  10%|█ | 120/1200 [00:03<00:23, 45.03it/s]
27
  10%|█ | 125/1200 [00:03<00:30, 34.96it/s]
28
  11%|█ | 131/1200 [00:03<00:27, 38.82it/s]
29
  11%|█▏ | 136/1200 [00:03<00:25, 41.01it/s]
30
  12%|█▏ | 142/1200 [00:03<00:24, 43.80it/s]
31
  12%|█▏ | 147/1200 [00:03<00:23, 45.13it/s]
32
 
 
33
  12%|█▎ | 150/1200 [00:03<00:23, 45.13it/s]
34
  13%|█▎ | 153/1200 [00:03<00:22, 46.69it/s]
35
  13%|█▎ | 158/1200 [00:04<00:22, 47.12it/s]
36
  14%|█▎ | 163/1200 [00:04<00:21, 47.36it/s]
37
  14%|█▍ | 169/1200 [00:04<00:21, 48.94it/s]
38
  14%|█▍ | 174/1200 [00:04<00:20, 49.20it/s]
39
  15%|█▌ | 180/1200 [00:04<00:22, 44.52it/s]
40
  15%|█▌ | 185/1200 [00:04<00:29, 34.11it/s]
41
  16%|█▌ | 190/1200 [00:04<00:27, 36.63it/s]
42
  16%|█▋ | 195/1200 [00:04<00:25, 39.63it/s]
43
  17%|█▋ | 200/1200 [00:05<00:24, 41.43it/s]
44
 
 
45
  17%|█▋ | 200/1200 [00:05<00:24, 41.43it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_164558/checkpoint-200
 
 
 
 
46
  17%|█▋ | 205/1200 [00:07<02:22, 6.99it/s]
47
  18%|█▊ | 211/1200 [00:07<01:40, 9.85it/s]
48
  18%|█▊ | 217/1200 [00:07<01:13, 13.38it/s]
49
  18%|█▊ | 222/1200 [00:07<00:58, 16.72it/s]
50
  19%|█▉ | 227/1200 [00:07<00:47, 20.60it/s]
51
  19%|█▉ | 233/1200 [00:07<00:37, 25.69it/s]
52
  20%|█▉ | 239/1200 [00:07<00:31, 30.88it/s]
53
  20%|██ | 244/1200 [00:08<00:37, 25.64it/s]
54
  21%|██ | 250/1200 [00:08<00:31, 30.48it/s]
55
 
 
56
  21%|██ | 250/1200 [00:08<00:31, 30.48it/s]
57
  21%|██▏ | 255/1200 [00:08<00:27, 34.00it/s]
58
  22%|██▏ | 260/1200 [00:08<00:25, 37.24it/s]
59
  22%|██▏ | 266/1200 [00:08<00:22, 40.86it/s]
60
  23%|██▎ | 272/1200 [00:08<00:21, 43.77it/s]
61
  23%|██▎ | 278/1200 [00:08<00:20, 45.95it/s]
62
  24%|██▎ | 284/1200 [00:08<00:19, 47.71it/s]
63
  24%|██▍ | 290/1200 [00:09<00:18, 48.42it/s]
64
  25%|██▍ | 296/1200 [00:09<00:18, 49.62it/s]
65
 
 
66
  25%|██▌ | 300/1200 [00:09<00:18, 49.62it/s]
67
  25%|██▌ | 302/1200 [00:09<00:25, 34.57it/s]
68
  26%|██▌ | 307/1200 [00:09<00:23, 37.64it/s]
69
  26%|██▌ | 313/1200 [00:09<00:21, 40.85it/s]
70
  26%|██▋ | 318/1200 [00:09<00:20, 42.88it/s]
71
  27%|██▋ | 324/1200 [00:09<00:19, 45.21it/s]
72
  27%|██▋ | 329/1200 [00:10<00:18, 46.13it/s]
73
  28%|██▊ | 335/1200 [00:10<00:18, 47.33it/s]
74
  28%|██▊ | 341/1200 [00:10<00:17, 48.88it/s]
75
  29%|██▉ | 347/1200 [00:10<00:17, 49.49it/s]
76
 
 
77
  29%|██▉ | 350/1200 [00:10<00:17, 49.49it/s]
78
  29%|██▉ | 353/1200 [00:10<00:17, 48.86it/s]
79
  30%|██▉ | 359/1200 [00:10<00:16, 50.51it/s]
80
  30%|███ | 365/1200 [00:10<00:24, 34.55it/s]
81
  31%|███ | 371/1200 [00:11<00:21, 38.35it/s]
82
  31%|███▏ | 376/1200 [00:11<00:20, 40.87it/s]
83
  32%|███▏ | 381/1200 [00:11<00:19, 41.91it/s]
84
  32%|███▏ | 386/1200 [00:11<00:18, 43.61it/s]
85
  33%|███▎ | 391/1200 [00:11<00:18, 44.17it/s]
86
  33%|███▎ | 397/1200 [00:11<00:17, 46.35it/s]
87
 
 
88
  33%|███▎ | 400/1200 [00:11<00:17, 46.35it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_164558/checkpoint-400
 
 
 
 
89
  34%|███▎ | 402/1200 [00:13<01:48, 7.32it/s]
90
  34%|███▍ | 408/1200 [00:13<01:17, 10.16it/s]
91
  34%|███▍ | 413/1200 [00:13<01:00, 13.07it/s]
92
  35%|███▍ | 419/1200 [00:14<00:45, 17.34it/s]
93
  35%|███▌ | 424/1200 [00:14<00:44, 17.63it/s]
94
  36%|███▌ | 429/1200 [00:14<00:35, 21.60it/s]
95
  36%|███▋ | 435/1200 [00:14<00:28, 26.54it/s]
96
  37%|███▋ | 441/1200 [00:14<00:24, 31.01it/s]
97
  37%|███▋ | 446/1200 [00:14<00:21, 34.37it/s]
98
 
 
99
  38%|███▊ | 450/1200 [00:14<00:21, 34.37it/s]
100
  38%|███▊ | 451/1200 [00:14<00:20, 37.39it/s]
101
  38%|███▊ | 456/1200 [00:14<00:18, 39.63it/s]
102
  38%|███▊ | 461/1200 [00:15<00:17, 41.85it/s]
103
  39%|███▉ | 466/1200 [00:15<00:16, 43.56it/s]
104
  39%|███▉ | 471/1200 [00:15<00:16, 44.95it/s]
105
  40%|███▉ | 476/1200 [00:15<00:15, 45.83it/s]
106
  40%|████ | 481/1200 [00:15<00:23, 31.10it/s]
107
  41%|████ | 487/1200 [00:15<00:19, 35.90it/s]
108
  41%|████ | 492/1200 [00:15<00:18, 39.04it/s]
109
  41%|████▏ | 497/1200 [00:15<00:16, 41.57it/s]
110
 
 
111
  42%|████▏ | 500/1200 [00:16<00:16, 41.57it/s]
112
  42%|████▏ | 502/1200 [00:16<00:16, 42.76it/s]
113
  42%|████▏ | 507/1200 [00:16<00:15, 44.36it/s]
114
  43%|████▎ | 512/1200 [00:16<00:15, 45.11it/s]
115
  43%|████▎ | 517/1200 [00:16<00:14, 46.08it/s]
116
  44%|████▎ | 523/1200 [00:16<00:14, 47.37it/s]
117
  44%|████▍ | 528/1200 [00:16<00:14, 47.69it/s]
118
  44%|████▍ | 534/1200 [00:16<00:13, 48.81it/s]
119
  45%|████▌ | 540/1200 [00:16<00:14, 44.58it/s]
120
  45%|████▌ | 545/1200 [00:17<00:19, 34.25it/s]
121
 
 
122
  46%|████▌ | 550/1200 [00:17<00:18, 34.25it/s]
123
  46%|████▌ | 551/1200 [00:17<00:17, 37.89it/s]
124
  46%|████▋ | 556/1200 [00:17<00:16, 39.60it/s]
125
  47%|████▋ | 561/1200 [00:17<00:15, 41.88it/s]
126
  47%|████▋ | 566/1200 [00:17<00:14, 43.83it/s]
127
  48%|████▊ | 571/1200 [00:17<00:14, 44.37it/s]
128
  48%|████▊ | 576/1200 [00:17<00:13, 44.93it/s]
129
  48%|████▊ | 581/1200 [00:17<00:13, 46.20it/s]
130
  49%|████▉ | 586/1200 [00:17<00:13, 47.23it/s]
131
  49%|████▉ | 591/1200 [00:18<00:12, 47.16it/s]
132
  50%|████▉ | 597/1200 [00:18<00:12, 48.53it/s]
133
 
 
134
  50%|█████ | 600/1200 [00:18<00:12, 48.53it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_164558/checkpoint-600
 
 
 
 
 
135
  50%|█████ | 602/1200 [00:21<01:50, 5.43it/s]
136
  51%|█████ | 608/1200 [00:21<01:17, 7.69it/s]
137
  51%|█████ | 613/1200 [00:21<00:58, 10.09it/s]
138
  52%|█████▏ | 619/1200 [00:21<00:42, 13.65it/s]
139
  52%|█████▏ | 624/1200 [00:21<00:33, 17.13it/s]
140
  52%|█████▏ | 629/1200 [00:21<00:27, 21.07it/s]
141
  53%|█████▎ | 634/1200 [00:21<00:22, 25.18it/s]
142
  53%|█████▎ | 640/1200 [00:21<00:18, 30.77it/s]
143
  54%|█████▍ | 646/1200 [00:22<00:15, 34.91it/s]
144
 
 
145
  54%|█████▍ | 650/1200 [00:22<00:15, 34.91it/s]
146
  54%|█████▍ | 651/1200 [00:22<00:14, 37.71it/s]
147
  55%|█████▍ | 656/1200 [00:22<00:13, 40.29it/s]
148
  55%|█████▌ | 661/1200 [00:22<00:18, 29.58it/s]
149
  56%|█████▌ | 667/1200 [00:22<00:15, 34.25it/s]
150
  56%|█████▌ | 673/1200 [00:22<00:13, 38.31it/s]
151
  57%|█████▋ | 679/1200 [00:22<00:12, 41.67it/s]
152
  57%|█████▋ | 684/1200 [00:22<00:12, 42.85it/s]
153
  57%|█████▊ | 690/1200 [00:23<00:11, 45.22it/s]
154
  58%|█████▊ | 696/1200 [00:23<00:10, 46.98it/s]
155
 
 
156
  58%|█████▊ | 700/1200 [00:23<00:10, 46.98it/s]
157
  58%|█████▊ | 702/1200 [00:23<00:10, 48.52it/s]
158
  59%|█████▉ | 708/1200 [00:23<00:09, 49.66it/s]
159
  60%|█████▉ | 714/1200 [00:23<00:09, 50.16it/s]
160
  60%|██████ | 720/1200 [00:23<00:10, 44.83it/s]
161
  60%|██████ | 725/1200 [00:23<00:13, 34.29it/s]
162
  61%|██████ | 730/1200 [00:24<00:12, 37.08it/s]
163
  61%|██████▏ | 736/1200 [00:24<00:11, 40.59it/s]
164
  62%|██████▏ | 742/1200 [00:24<00:10, 43.49it/s]
165
  62%|██████▏ | 747/1200 [00:24<00:10, 44.95it/s]
166
 
 
167
  62%|██████▎ | 750/1200 [00:24<00:10, 44.95it/s]
168
  63%|██████▎ | 753/1200 [00:24<00:09, 46.48it/s]
169
  63%|██████▎ | 758/1200 [00:24<00:09, 47.09it/s]
170
  64%|██████▎ | 764/1200 [00:24<00:09, 48.30it/s]
171
  64%|██████▍ | 770/1200 [00:24<00:08, 49.49it/s]
172
  65%|██████▍ | 776/1200 [00:24<00:08, 48.53it/s]
173
  65%|██████▌ | 781/1200 [00:25<00:12, 33.21it/s]
174
  66%|██████▌ | 786/1200 [00:25<00:11, 36.08it/s]
175
  66%|██████▌ | 791/1200 [00:25<00:10, 39.10it/s]
176
  66%|██████▋ | 796/1200 [00:25<00:09, 41.42it/s]
177
 
 
178
  67%|██████▋ | 800/1200 [00:25<00:09, 41.42it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_164558/checkpoint-800
 
 
 
 
 
179
  67%|██████▋ | 801/1200 [00:27<00:56, 7.08it/s]
180
  67%|██████▋ | 807/1200 [00:27<00:39, 9.95it/s]
181
  68%|██████▊ | 812/1200 [00:27<00:30, 12.87it/s]
182
  68%|██████▊ | 817/1200 [00:28<00:23, 16.36it/s]
183
  69%|██████▊ | 823/1200 [00:28<00:17, 21.11it/s]
184
  69%|██████▉ | 828/1200 [00:28<00:14, 25.23it/s]
185
  70%|██████▉ | 834/1200 [00:28<00:11, 30.51it/s]
186
  70%|███████ | 840/1200 [00:28<00:11, 32.59it/s]
187
  70%|███████ | 845/1200 [00:28<00:12, 28.72it/s]
188
 
 
189
  71%|███████ | 850/1200 [00:28<00:12, 28.72it/s]
190
  71%|███████ | 851/1200 [00:28<00:10, 33.80it/s]
191
  71%|███████▏ | 857/1200 [00:28<00:08, 38.28it/s]
192
  72%|███████▏ | 863/1200 [00:29<00:08, 41.53it/s]
193
  72%|███████▏ | 869/1200 [00:29<00:07, 44.12it/s]
194
  73%|███████▎ | 875/1200 [00:29<00:07, 45.74it/s]
195
  73%|███████▎ | 881/1200 [00:29<00:06, 47.75it/s]
196
  74%|███████▍ | 887/1200 [00:29<00:06, 48.67it/s]
197
  74%|███████▍ | 893/1200 [00:29<00:06, 48.41it/s]
198
  75%|███████▍ | 899/1200 [00:29<00:06, 49.71it/s]
199
 
 
200
  75%|███████▌ | 900/1200 [00:29<00:06, 49.71it/s]
201
  75%|███████▌ | 905/1200 [00:30<00:08, 34.32it/s]
202
  76%|███████▌ | 911/1200 [00:30<00:07, 37.73it/s]
203
  76%|███████▋ | 917/1200 [00:30<00:06, 41.17it/s]
204
  77%|███████▋ | 923/1200 [00:30<00:06, 43.99it/s]
205
  77%|███████▋ | 929/1200 [00:30<00:05, 45.77it/s]
206
  78%|███████▊ | 934/1200 [00:30<00:05, 46.70it/s]
207
  78%|███████▊ | 939/1200 [00:30<00:05, 44.69it/s]
208
  79%|███████▊ | 944/1200 [00:30<00:05, 45.86it/s]
209
  79%|███████▉ | 950/1200 [00:31<00:05, 47.62it/s]
210
 
 
211
  79%|███████▉ | 950/1200 [00:31<00:05, 47.62it/s]
212
  80%|███████▉ | 956/1200 [00:31<00:04, 48.91it/s]
213
  80%|████████ | 961/1200 [00:31<00:07, 33.60it/s]
214
  81%|████████ | 967/1200 [00:31<00:06, 37.67it/s]
215
  81%|████████ | 972/1200 [00:31<00:05, 39.89it/s]
216
  81%|████████▏ | 977/1200 [00:31<00:05, 40.99it/s]
217
  82%|██���█████▏ | 983/1200 [00:31<00:04, 43.56it/s]
218
  82%|████████▏ | 988/1200 [00:31<00:04, 45.06it/s]
219
  83%|████████▎ | 993/1200 [00:32<00:04, 46.28it/s]
220
  83%|████████▎ | 998/1200 [00:32<00:04, 47.16it/s]
221
 
 
222
  83%|████████▎ | 1000/1200 [00:32<00:04, 47.16it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_164558/checkpoint-1000
 
 
 
 
 
223
  84%|████████▎ | 1003/1200 [00:34<00:28, 6.89it/s]
224
  84%|████████▍ | 1008/1200 [00:34<00:20, 9.15it/s]
225
  84%|████████▍ | 1014/1200 [00:34<00:14, 12.62it/s]
226
  85%|████████▌ | 1020/1200 [00:34<00:11, 15.99it/s]
227
  85%|████████▌ | 1024/1200 [00:34<00:10, 16.49it/s]
228
  86%|████████▌ | 1029/1200 [00:35<00:08, 20.44it/s]
229
  86%|████████▌ | 1034/1200 [00:35<00:06, 24.76it/s]
230
  87%|████████▋ | 1039/1200 [00:35<00:05, 28.85it/s]
231
  87%|████████▋ | 1044/1200 [00:35<00:04, 32.93it/s]
232
  87%|████████▋ | 1049/1200 [00:35<00:04, 36.52it/s]
233
 
 
234
  88%|████████▊ | 1050/1200 [00:35<00:04, 36.52it/s]
235
  88%|████████▊ | 1054/1200 [00:35<00:03, 39.23it/s]
236
  88%|████████▊ | 1059/1200 [00:35<00:03, 41.43it/s]
237
  89%|████████▊ | 1064/1200 [00:35<00:03, 43.29it/s]
238
  89%|████████▉ | 1070/1200 [00:35<00:02, 45.76it/s]
239
  90%|████████▉ | 1076/1200 [00:36<00:02, 47.24it/s]
240
  90%|█████████ | 1081/1200 [00:36<00:03, 32.22it/s]
241
  90%|█████████ | 1086/1200 [00:36<00:03, 35.68it/s]
242
  91%|█████████ | 1092/1200 [00:36<00:02, 39.67it/s]
243
  92%|█████████▏| 1098/1200 [00:36<00:02, 42.97it/s]
244
 
 
245
  92%|█████████▏| 1100/1200 [00:36<00:02, 42.97it/s]
246
  92%|█████████▏| 1103/1200 [00:36<00:02, 44.36it/s]
247
  92%|█████████▏| 1108/1200 [00:36<00:02, 45.49it/s]
248
  93%|█████████▎| 1113/1200 [00:36<00:01, 46.14it/s]
249
  93%|█████████▎| 1118/1200 [00:37<00:01, 46.65it/s]
250
  94%|█████████▎| 1124/1200 [00:37<00:01, 48.08it/s]
251
  94%|█████████▍| 1130/1200 [00:37<00:01, 48.64it/s]
252
  95%|█████████▍| 1136/1200 [00:37<00:01, 49.46it/s]
253
  95%|█████████▌| 1141/1200 [00:37<00:01, 33.64it/s]
254
  96%|█████████▌| 1146/1200 [00:37<00:01, 37.04it/s]
255
 
 
256
  96%|█████████▌| 1150/1200 [00:37<00:01, 37.04it/s]
257
  96%|█████████▌| 1152/1200 [00:37<00:01, 41.07it/s]
258
  96%|█████████▋| 1157/1200 [00:38<00:01, 42.66it/s]
259
  97%|█████████▋| 1162/1200 [00:38<00:00, 44.24it/s]
260
  97%|█████████▋| 1168/1200 [00:38<00:00, 46.16it/s]
261
  98%|█████████▊| 1174/1200 [00:38<00:00, 47.51it/s]
262
  98%|█████████▊| 1180/1200 [00:38<00:00, 48.94it/s]
263
  99%|█████████▉| 1186/1200 [00:38<00:00, 48.83it/s]
264
  99%|█████████▉| 1192/1200 [00:38<00:00, 49.54it/s]
265
 
 
 
 
 
 
 
 
 
 
266
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  0%| | 0/2838 [00:00<?, ?it/s][rank0]: Traceback (most recent call last):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  0%| | 0/2838 [00:01<?, ?it/s]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ torch: 2.6.0+cu124
2
+ accelerate: 0.34.2
3
+ cuda devices: 2
4
+ ================================================================
5
+ ITFormer × RATs40K | Run ID: 20260608_164558
6
+ CUDA_VISIBLE_DEVICES: 0,1
7
+ Data: /mnt/share01/sqk/datasets/RATs40K/RATs-Uni-TSImage_Reason.json
8
+ LLM: /mnt/share01/sqk/models/qwen2.5-7b-instruct
9
+ patch_len=16, input_len=128, prefix_num=8
10
+ it_d_model=3584, it_n_heads=28
11
+ ================================================================
12
+
13
+ ── Stage A: Pre-training TimeSeriesEncoder ──────────────────────
14
+ ⚙️ Running in WANDB offline mode
15
+ ⚙️ Running in WANDB offline mode
16
+ Pretrain dataset size: 30266
17
+ ts_values shape per sample: torch.Size([128, 1])
18
+ swanlab not installed; running without logging.
19
+ PyTorch: setting up devices
20
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/accelerator.py:494: FutureWarning: `torch.cuda.amp.GradScaler(args...)` is deprecated. Please use `torch.amp.GradScaler('cuda', args...)` instead.
21
+ self.scaler = torch.cuda.amp.GradScaler(**kwargs)
22
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/accelerator.py:494: FutureWarning: `torch.cuda.amp.GradScaler(args...)` is deprecated. Please use `torch.amp.GradScaler('cuda', args...)` instead.
23
+ self.scaler = torch.cuda.amp.GradScaler(**kwargs)
24
+ Using auto half precision backend
25
+ ***** Running training *****
26
+ Num examples = 30,266
27
+ Num Epochs = 20
28
+ Instantaneous batch size per device = 256
29
+ Total train batch size (w. parallel, distributed & accumulation) = 512
30
+ Gradient Accumulation steps = 1
31
+ Total optimization steps = 1,200
32
+ Number of trainable parameters = 16,829,456
33
+
34
  0%| | 0/1200 [00:00<?, ?it/s]/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
35
+ self.gen = func(*args, **kwds)
36
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
37
+ self.gen = func(*args, **kwds)
38
+ [rank1]:[W608 16:46:10.254224691 reducer.cpp:1400] Warning: find_unused_parameters=True was specified in DDP constructor, but did not find any unused parameters in the forward pass. This flag results in an extra traversal of the autograd graph every iteration, which can adversely affect performance. If your model indeed never has any unused parameters in the forward pass, consider turning this flag off. Note that this warning may be a false positive if your model has flow control causing later iterations to have unused parameters. (function operator())
39
+ [rank0]:[W608 16:46:10.258328144 reducer.cpp:1400] Warning: find_unused_parameters=True was specified in DDP constructor, but did not find any unused parameters in the forward pass. This flag results in an extra traversal of the autograd graph every iteration, which can adversely affect performance. If your model indeed never has any unused parameters in the forward pass, consider turning this flag off. Note that this warning may be a false positive if your model has flow control causing later iterations to have unused parameters. (function operator())
40
+
41
  0%| | 1/1200 [00:00<11:29, 1.74it/s]
42
  0%| | 6/1200 [00:00<01:46, 11.22it/s]
43
  1%| | 11/1200 [00:00<01:00, 19.68it/s]
44
  1%|▏ | 16/1200 [00:00<00:44, 26.89it/s]
45
  2%|▏ | 22/1200 [00:00<00:34, 34.11it/s]
46
  2%|▏ | 28/1200 [00:01<00:29, 39.08it/s]
47
  3%|▎ | 33/1200 [00:01<00:28, 41.35it/s]
48
  3%|▎ | 39/1200 [00:01<00:26, 44.22it/s]
49
  4%|▎ | 44/1200 [00:01<00:25, 45.04it/s]
50
  4%|▍ | 50/1200 [00:01<00:24, 47.29it/s]
51
 
52
+
53
  4%|▍ | 50/1200 [00:01<00:24, 47.29it/s]
54
  5%|▍ | 56/1200 [00:01<00:23, 48.68it/s]
55
  5%|▌ | 62/1200 [00:01<00:33, 34.44it/s]
56
  6%|▌ | 68/1200 [00:02<00:29, 38.85it/s]
57
  6%|▌ | 74/1200 [00:02<00:26, 42.19it/s]
58
  7%|▋ | 80/1200 [00:02<00:25, 44.71it/s]
59
  7%|▋ | 86/1200 [00:02<00:23, 46.48it/s]
60
  8%|▊ | 92/1200 [00:02<00:23, 47.70it/s]
61
  8%|▊ | 97/1200 [00:02<00:22, 48.03it/s]
62
 
63
+
64
  8%|▊ | 100/1200 [00:02<00:22, 48.03it/s]
65
  8%|▊ | 102/1200 [00:02<00:22, 47.75it/s]
66
  9%|▉ | 108/1200 [00:02<00:22, 48.57it/s]
67
  10%|▉ | 114/1200 [00:02<00:21, 49.68it/s]
68
  10%|█ | 120/1200 [00:03<00:23, 45.03it/s]
69
  10%|█ | 125/1200 [00:03<00:30, 34.96it/s]
70
  11%|█ | 131/1200 [00:03<00:27, 38.82it/s]
71
  11%|█▏ | 136/1200 [00:03<00:25, 41.01it/s]
72
  12%|█▏ | 142/1200 [00:03<00:24, 43.80it/s]
73
  12%|█▏ | 147/1200 [00:03<00:23, 45.13it/s]
74
 
75
+
76
  12%|█▎ | 150/1200 [00:03<00:23, 45.13it/s]
77
  13%|█▎ | 153/1200 [00:03<00:22, 46.69it/s]
78
  13%|█▎ | 158/1200 [00:04<00:22, 47.12it/s]
79
  14%|█▎ | 163/1200 [00:04<00:21, 47.36it/s]
80
  14%|█▍ | 169/1200 [00:04<00:21, 48.94it/s]
81
  14%|█▍ | 174/1200 [00:04<00:20, 49.20it/s]
82
  15%|█▌ | 180/1200 [00:04<00:22, 44.52it/s]
83
  15%|█▌ | 185/1200 [00:04<00:29, 34.11it/s]
84
  16%|█▌ | 190/1200 [00:04<00:27, 36.63it/s]
85
  16%|█▋ | 195/1200 [00:04<00:25, 39.63it/s]
86
  17%|█▋ | 200/1200 [00:05<00:24, 41.43it/s]
87
 
88
+
89
  17%|█▋ | 200/1200 [00:05<00:24, 41.43it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_164558/checkpoint-200
90
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
91
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
92
+ self.gen = func(*args, **kwds)
93
+
94
  17%|█▋ | 205/1200 [00:07<02:22, 6.99it/s]
95
  18%|█▊ | 211/1200 [00:07<01:40, 9.85it/s]
96
  18%|█▊ | 217/1200 [00:07<01:13, 13.38it/s]
97
  18%|█▊ | 222/1200 [00:07<00:58, 16.72it/s]
98
  19%|█▉ | 227/1200 [00:07<00:47, 20.60it/s]
99
  19%|█▉ | 233/1200 [00:07<00:37, 25.69it/s]
100
  20%|█▉ | 239/1200 [00:07<00:31, 30.88it/s]
101
  20%|██ | 244/1200 [00:08<00:37, 25.64it/s]
102
  21%|██ | 250/1200 [00:08<00:31, 30.48it/s]
103
 
104
+
105
  21%|██ | 250/1200 [00:08<00:31, 30.48it/s]
106
  21%|██▏ | 255/1200 [00:08<00:27, 34.00it/s]
107
  22%|██▏ | 260/1200 [00:08<00:25, 37.24it/s]
108
  22%|██▏ | 266/1200 [00:08<00:22, 40.86it/s]
109
  23%|██▎ | 272/1200 [00:08<00:21, 43.77it/s]
110
  23%|██▎ | 278/1200 [00:08<00:20, 45.95it/s]
111
  24%|██▎ | 284/1200 [00:08<00:19, 47.71it/s]
112
  24%|██▍ | 290/1200 [00:09<00:18, 48.42it/s]
113
  25%|██▍ | 296/1200 [00:09<00:18, 49.62it/s]
114
 
115
+
116
  25%|██▌ | 300/1200 [00:09<00:18, 49.62it/s]
117
  25%|██▌ | 302/1200 [00:09<00:25, 34.57it/s]
118
  26%|██▌ | 307/1200 [00:09<00:23, 37.64it/s]
119
  26%|██▌ | 313/1200 [00:09<00:21, 40.85it/s]
120
  26%|██▋ | 318/1200 [00:09<00:20, 42.88it/s]
121
  27%|██▋ | 324/1200 [00:09<00:19, 45.21it/s]
122
  27%|██▋ | 329/1200 [00:10<00:18, 46.13it/s]
123
  28%|██▊ | 335/1200 [00:10<00:18, 47.33it/s]
124
  28%|██▊ | 341/1200 [00:10<00:17, 48.88it/s]
125
  29%|██▉ | 347/1200 [00:10<00:17, 49.49it/s]
126
 
127
+
128
  29%|██▉ | 350/1200 [00:10<00:17, 49.49it/s]
129
  29%|██▉ | 353/1200 [00:10<00:17, 48.86it/s]
130
  30%|██▉ | 359/1200 [00:10<00:16, 50.51it/s]
131
  30%|███ | 365/1200 [00:10<00:24, 34.55it/s]
132
  31%|███ | 371/1200 [00:11<00:21, 38.35it/s]
133
  31%|███▏ | 376/1200 [00:11<00:20, 40.87it/s]
134
  32%|███▏ | 381/1200 [00:11<00:19, 41.91it/s]
135
  32%|███▏ | 386/1200 [00:11<00:18, 43.61it/s]
136
  33%|███▎ | 391/1200 [00:11<00:18, 44.17it/s]
137
  33%|███▎ | 397/1200 [00:11<00:17, 46.35it/s]
138
 
139
+
140
  33%|███▎ | 400/1200 [00:11<00:17, 46.35it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_164558/checkpoint-400
141
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
142
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
143
+ self.gen = func(*args, **kwds)
144
+
145
  34%|███▎ | 402/1200 [00:13<01:48, 7.32it/s]
146
  34%|███▍ | 408/1200 [00:13<01:17, 10.16it/s]
147
  34%|███▍ | 413/1200 [00:13<01:00, 13.07it/s]
148
  35%|███▍ | 419/1200 [00:14<00:45, 17.34it/s]
149
  35%|███▌ | 424/1200 [00:14<00:44, 17.63it/s]
150
  36%|███▌ | 429/1200 [00:14<00:35, 21.60it/s]
151
  36%|███▋ | 435/1200 [00:14<00:28, 26.54it/s]
152
  37%|███▋ | 441/1200 [00:14<00:24, 31.01it/s]
153
  37%|███▋ | 446/1200 [00:14<00:21, 34.37it/s]
154
 
155
+
156
  38%|███▊ | 450/1200 [00:14<00:21, 34.37it/s]
157
  38%|███▊ | 451/1200 [00:14<00:20, 37.39it/s]
158
  38%|███▊ | 456/1200 [00:14<00:18, 39.63it/s]
159
  38%|███▊ | 461/1200 [00:15<00:17, 41.85it/s]
160
  39%|███▉ | 466/1200 [00:15<00:16, 43.56it/s]
161
  39%|███▉ | 471/1200 [00:15<00:16, 44.95it/s]
162
  40%|███▉ | 476/1200 [00:15<00:15, 45.83it/s]
163
  40%|████ | 481/1200 [00:15<00:23, 31.10it/s]
164
  41%|████ | 487/1200 [00:15<00:19, 35.90it/s]
165
  41%|████ | 492/1200 [00:15<00:18, 39.04it/s]
166
  41%|████▏ | 497/1200 [00:15<00:16, 41.57it/s]
167
 
168
+
169
  42%|████▏ | 500/1200 [00:16<00:16, 41.57it/s]
170
  42%|████▏ | 502/1200 [00:16<00:16, 42.76it/s]
171
  42%|████▏ | 507/1200 [00:16<00:15, 44.36it/s]
172
  43%|████▎ | 512/1200 [00:16<00:15, 45.11it/s]
173
  43%|████▎ | 517/1200 [00:16<00:14, 46.08it/s]
174
  44%|████▎ | 523/1200 [00:16<00:14, 47.37it/s]
175
  44%|████▍ | 528/1200 [00:16<00:14, 47.69it/s]
176
  44%|████▍ | 534/1200 [00:16<00:13, 48.81it/s]
177
  45%|████▌ | 540/1200 [00:16<00:14, 44.58it/s]
178
  45%|████▌ | 545/1200 [00:17<00:19, 34.25it/s]
179
 
180
+
181
  46%|████▌ | 550/1200 [00:17<00:18, 34.25it/s]
182
  46%|████▌ | 551/1200 [00:17<00:17, 37.89it/s]
183
  46%|████▋ | 556/1200 [00:17<00:16, 39.60it/s]
184
  47%|████▋ | 561/1200 [00:17<00:15, 41.88it/s]
185
  47%|████▋ | 566/1200 [00:17<00:14, 43.83it/s]
186
  48%|████▊ | 571/1200 [00:17<00:14, 44.37it/s]
187
  48%|████▊ | 576/1200 [00:17<00:13, 44.93it/s]
188
  48%|████▊ | 581/1200 [00:17<00:13, 46.20it/s]
189
  49%|████▉ | 586/1200 [00:17<00:13, 47.23it/s]
190
  49%|████▉ | 591/1200 [00:18<00:12, 47.16it/s]
191
  50%|████▉ | 597/1200 [00:18<00:12, 48.53it/s]
192
 
193
+
194
  50%|█████ | 600/1200 [00:18<00:12, 48.53it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_164558/checkpoint-600
195
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
196
+ Deleting older checkpoint [save/pretrain_rats40k_20260608_164558/checkpoint-200] due to args.save_total_limit
197
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
198
+ self.gen = func(*args, **kwds)
199
+
200
  50%|█████ | 602/1200 [00:21<01:50, 5.43it/s]
201
  51%|█████ | 608/1200 [00:21<01:17, 7.69it/s]
202
  51%|█████ | 613/1200 [00:21<00:58, 10.09it/s]
203
  52%|█████▏ | 619/1200 [00:21<00:42, 13.65it/s]
204
  52%|█████▏ | 624/1200 [00:21<00:33, 17.13it/s]
205
  52%|█████▏ | 629/1200 [00:21<00:27, 21.07it/s]
206
  53%|█████▎ | 634/1200 [00:21<00:22, 25.18it/s]
207
  53%|█████▎ | 640/1200 [00:21<00:18, 30.77it/s]
208
  54%|█████▍ | 646/1200 [00:22<00:15, 34.91it/s]
209
 
210
+
211
  54%|█████▍ | 650/1200 [00:22<00:15, 34.91it/s]
212
  54%|█████▍ | 651/1200 [00:22<00:14, 37.71it/s]
213
  55%|█████▍ | 656/1200 [00:22<00:13, 40.29it/s]
214
  55%|█████▌ | 661/1200 [00:22<00:18, 29.58it/s]
215
  56%|█████▌ | 667/1200 [00:22<00:15, 34.25it/s]
216
  56%|█████▌ | 673/1200 [00:22<00:13, 38.31it/s]
217
  57%|█████▋ | 679/1200 [00:22<00:12, 41.67it/s]
218
  57%|█████▋ | 684/1200 [00:22<00:12, 42.85it/s]
219
  57%|█████▊ | 690/1200 [00:23<00:11, 45.22it/s]
220
  58%|█████▊ | 696/1200 [00:23<00:10, 46.98it/s]
221
 
222
+
223
  58%|█████▊ | 700/1200 [00:23<00:10, 46.98it/s]
224
  58%|█████▊ | 702/1200 [00:23<00:10, 48.52it/s]
225
  59%|█████▉ | 708/1200 [00:23<00:09, 49.66it/s]
226
  60%|█████▉ | 714/1200 [00:23<00:09, 50.16it/s]
227
  60%|██████ | 720/1200 [00:23<00:10, 44.83it/s]
228
  60%|██████ | 725/1200 [00:23<00:13, 34.29it/s]
229
  61%|██████ | 730/1200 [00:24<00:12, 37.08it/s]
230
  61%|██████▏ | 736/1200 [00:24<00:11, 40.59it/s]
231
  62%|██████▏ | 742/1200 [00:24<00:10, 43.49it/s]
232
  62%|██████▏ | 747/1200 [00:24<00:10, 44.95it/s]
233
 
234
+
235
  62%|██████▎ | 750/1200 [00:24<00:10, 44.95it/s]
236
  63%|██████▎ | 753/1200 [00:24<00:09, 46.48it/s]
237
  63%|██████▎ | 758/1200 [00:24<00:09, 47.09it/s]
238
  64%|██████▎ | 764/1200 [00:24<00:09, 48.30it/s]
239
  64%|██████▍ | 770/1200 [00:24<00:08, 49.49it/s]
240
  65%|██████▍ | 776/1200 [00:24<00:08, 48.53it/s]
241
  65%|██████▌ | 781/1200 [00:25<00:12, 33.21it/s]
242
  66%|██████▌ | 786/1200 [00:25<00:11, 36.08it/s]
243
  66%|██████▌ | 791/1200 [00:25<00:10, 39.10it/s]
244
  66%|██████▋ | 796/1200 [00:25<00:09, 41.42it/s]
245
 
246
+
247
  67%|██████▋ | 800/1200 [00:25<00:09, 41.42it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_164558/checkpoint-800
248
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
249
+ Deleting older checkpoint [save/pretrain_rats40k_20260608_164558/checkpoint-400] due to args.save_total_limit
250
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
251
+ self.gen = func(*args, **kwds)
252
+
253
  67%|██████▋ | 801/1200 [00:27<00:56, 7.08it/s]
254
  67%|██████▋ | 807/1200 [00:27<00:39, 9.95it/s]
255
  68%|██████▊ | 812/1200 [00:27<00:30, 12.87it/s]
256
  68%|██████▊ | 817/1200 [00:28<00:23, 16.36it/s]
257
  69%|██████▊ | 823/1200 [00:28<00:17, 21.11it/s]
258
  69%|██████▉ | 828/1200 [00:28<00:14, 25.23it/s]
259
  70%|██████▉ | 834/1200 [00:28<00:11, 30.51it/s]
260
  70%|███████ | 840/1200 [00:28<00:11, 32.59it/s]
261
  70%|███████ | 845/1200 [00:28<00:12, 28.72it/s]
262
 
263
+
264
  71%|███████ | 850/1200 [00:28<00:12, 28.72it/s]
265
  71%|███████ | 851/1200 [00:28<00:10, 33.80it/s]
266
  71%|███████▏ | 857/1200 [00:28<00:08, 38.28it/s]
267
  72%|███████▏ | 863/1200 [00:29<00:08, 41.53it/s]
268
  72%|███████▏ | 869/1200 [00:29<00:07, 44.12it/s]
269
  73%|███████▎ | 875/1200 [00:29<00:07, 45.74it/s]
270
  73%|███████▎ | 881/1200 [00:29<00:06, 47.75it/s]
271
  74%|███████▍ | 887/1200 [00:29<00:06, 48.67it/s]
272
  74%|███████▍ | 893/1200 [00:29<00:06, 48.41it/s]
273
  75%|███████▍ | 899/1200 [00:29<00:06, 49.71it/s]
274
 
275
+
276
  75%|███████▌ | 900/1200 [00:29<00:06, 49.71it/s]
277
  75%|███████▌ | 905/1200 [00:30<00:08, 34.32it/s]
278
  76%|███████▌ | 911/1200 [00:30<00:07, 37.73it/s]
279
  76%|███████▋ | 917/1200 [00:30<00:06, 41.17it/s]
280
  77%|███████▋ | 923/1200 [00:30<00:06, 43.99it/s]
281
  77%|███████▋ | 929/1200 [00:30<00:05, 45.77it/s]
282
  78%|███████▊ | 934/1200 [00:30<00:05, 46.70it/s]
283
  78%|███████▊ | 939/1200 [00:30<00:05, 44.69it/s]
284
  79%|███████▊ | 944/1200 [00:30<00:05, 45.86it/s]
285
  79%|███████▉ | 950/1200 [00:31<00:05, 47.62it/s]
286
 
287
+
288
  79%|███████▉ | 950/1200 [00:31<00:05, 47.62it/s]
289
  80%|███████▉ | 956/1200 [00:31<00:04, 48.91it/s]
290
  80%|████████ | 961/1200 [00:31<00:07, 33.60it/s]
291
  81%|████████ | 967/1200 [00:31<00:06, 37.67it/s]
292
  81%|████████ | 972/1200 [00:31<00:05, 39.89it/s]
293
  81%|████████▏ | 977/1200 [00:31<00:05, 40.99it/s]
294
  82%|██���█████▏ | 983/1200 [00:31<00:04, 43.56it/s]
295
  82%|████████▏ | 988/1200 [00:31<00:04, 45.06it/s]
296
  83%|████████▎ | 993/1200 [00:32<00:04, 46.28it/s]
297
  83%|████████▎ | 998/1200 [00:32<00:04, 47.16it/s]
298
 
299
+
300
  83%|████████▎ | 1000/1200 [00:32<00:04, 47.16it/s]Saving model checkpoint to save/pretrain_rats40k_20260608_164558/checkpoint-1000
301
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
302
+ Deleting older checkpoint [save/pretrain_rats40k_20260608_164558/checkpoint-600] due to args.save_total_limit
303
+ /home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/contextlib.py:105: FutureWarning: `torch.backends.cuda.sdp_kernel()` is deprecated. In the future, this context manager will be removed. Please see `torch.nn.attention.sdpa_kernel()` for the new context manager, with updated signature.
304
+ self.gen = func(*args, **kwds)
305
+
306
  84%|████████▎ | 1003/1200 [00:34<00:28, 6.89it/s]
307
  84%|████████▍ | 1008/1200 [00:34<00:20, 9.15it/s]
308
  84%|████████▍ | 1014/1200 [00:34<00:14, 12.62it/s]
309
  85%|████████▌ | 1020/1200 [00:34<00:11, 15.99it/s]
310
  85%|████████▌ | 1024/1200 [00:34<00:10, 16.49it/s]
311
  86%|████████▌ | 1029/1200 [00:35<00:08, 20.44it/s]
312
  86%|████████▌ | 1034/1200 [00:35<00:06, 24.76it/s]
313
  87%|████████▋ | 1039/1200 [00:35<00:05, 28.85it/s]
314
  87%|████████▋ | 1044/1200 [00:35<00:04, 32.93it/s]
315
  87%|████████▋ | 1049/1200 [00:35<00:04, 36.52it/s]
316
 
317
+
318
  88%|████████▊ | 1050/1200 [00:35<00:04, 36.52it/s]
319
  88%|████████▊ | 1054/1200 [00:35<00:03, 39.23it/s]
320
  88%|████████▊ | 1059/1200 [00:35<00:03, 41.43it/s]
321
  89%|████████▊ | 1064/1200 [00:35<00:03, 43.29it/s]
322
  89%|████████▉ | 1070/1200 [00:35<00:02, 45.76it/s]
323
  90%|████████▉ | 1076/1200 [00:36<00:02, 47.24it/s]
324
  90%|█████████ | 1081/1200 [00:36<00:03, 32.22it/s]
325
  90%|█████████ | 1086/1200 [00:36<00:03, 35.68it/s]
326
  91%|█████████ | 1092/1200 [00:36<00:02, 39.67it/s]
327
  92%|█████████▏| 1098/1200 [00:36<00:02, 42.97it/s]
328
 
329
+
330
  92%|█████████▏| 1100/1200 [00:36<00:02, 42.97it/s]
331
  92%|█████████▏| 1103/1200 [00:36<00:02, 44.36it/s]
332
  92%|█████████▏| 1108/1200 [00:36<00:02, 45.49it/s]
333
  93%|█████████▎| 1113/1200 [00:36<00:01, 46.14it/s]
334
  93%|█████████▎| 1118/1200 [00:37<00:01, 46.65it/s]
335
  94%|█████████▎| 1124/1200 [00:37<00:01, 48.08it/s]
336
  94%|█████████▍| 1130/1200 [00:37<00:01, 48.64it/s]
337
  95%|█████████▍| 1136/1200 [00:37<00:01, 49.46it/s]
338
  95%|█████████▌| 1141/1200 [00:37<00:01, 33.64it/s]
339
  96%|█████████▌| 1146/1200 [00:37<00:01, 37.04it/s]
340
 
341
+
342
  96%|█████████▌| 1150/1200 [00:37<00:01, 37.04it/s]
343
  96%|█████████▌| 1152/1200 [00:37<00:01, 41.07it/s]
344
  96%|█████████▋| 1157/1200 [00:38<00:01, 42.66it/s]
345
  97%|█████████▋| 1162/1200 [00:38<00:00, 44.24it/s]
346
  97%|█████████▋| 1168/1200 [00:38<00:00, 46.16it/s]
347
  98%|█████████▊| 1174/1200 [00:38<00:00, 47.51it/s]
348
  98%|█████████▊| 1180/1200 [00:38<00:00, 48.94it/s]
349
  99%|█████████▉| 1186/1200 [00:38<00:00, 48.83it/s]
350
  99%|█████████▉| 1192/1200 [00:38<00:00, 49.54it/s]
351
 
352
+
353
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
354
+ Deleting older checkpoint [save/pretrain_rats40k_20260608_164558/checkpoint-800] due to args.save_total_limit
355
+
356
+
357
+ Training completed. Do not forget to share your model on huggingface.co/models =)
358
+
359
+
360
+
361
 
362
+
363
+ Saving model checkpoint to save/pretrain_rats40k
364
+ Trainer.model is not a `PreTrainedModel`, only saving its state dict.
365
+ Pre-training done. Weights saved to save/pretrain_rats40k/model.safetensors
366
+ [rank0]:[W608 16:46:52.008465297 ProcessGroupNCCL.cpp:1496] Warning: WARNING: destroy_process_group() was not called before program exit, which can leak resources. For more info, please see https://pytorch.org/docs/stable/distributed.html#shutdown (function operator())
367
+ Stage A done. TS encoder: save/pretrain_rats40k/model.safetensors
368
+
369
+ ── Stage B: SFT (ITFormer + LLM) ───────────────────────────────
370
+ ⚙️ Running in WANDB offline mode
371
+ ⚙️ Running in WANDB offline mode
372
+ loading file vocab.json
373
+ loading file merges.txt
374
+ loading file tokenizer.json
375
+ loading file added_tokens.json
376
+ loading file special_tokens_map.json
377
+ loading file tokenizer_config.json
378
+ loading file chat_template.jinja
379
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
380
+
381
+ swanlab not installed; running without logging.
382
+ Generate config GenerationConfig {}
383
+
384
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-7b-instruct/config.json
385
+ Model config Qwen2Config {
386
+ "architectures": [
387
+ "Qwen2ForCausalLM"
388
+ ],
389
+ "attention_dropout": 0.0,
390
+ "bos_token_id": 151643,
391
+ "eos_token_id": 151645,
392
+ "hidden_act": "silu",
393
+ "hidden_size": 3584,
394
+ "initializer_range": 0.02,
395
+ "intermediate_size": 18944,
396
+ "layer_types": [
397
+ "full_attention",
398
+ "full_attention",
399
+ "full_attention",
400
+ "full_attention",
401
+ "full_attention",
402
+ "full_attention",
403
+ "full_attention",
404
+ "full_attention",
405
+ "full_attention",
406
+ "full_attention",
407
+ "full_attention",
408
+ "full_attention",
409
+ "full_attention",
410
+ "full_attention",
411
+ "full_attention",
412
+ "full_attention",
413
+ "full_attention",
414
+ "full_attention",
415
+ "full_attention",
416
+ "full_attention",
417
+ "full_attention",
418
+ "full_attention",
419
+ "full_attention",
420
+ "full_attention",
421
+ "full_attention",
422
+ "full_attention",
423
+ "full_attention",
424
+ "full_attention"
425
+ ],
426
+ "max_position_embeddings": 32768,
427
+ "max_window_layers": 28,
428
+ "model_type": "qwen2",
429
+ "num_attention_heads": 28,
430
+ "num_hidden_layers": 28,
431
+ "num_key_value_heads": 4,
432
+ "rms_norm_eps": 1e-06,
433
+ "rope_scaling": null,
434
+ "rope_theta": 1000000.0,
435
+ "sliding_window": null,
436
+ "tie_word_embeddings": false,
437
+ "torch_dtype": "bfloat16",
438
+ "transformers_version": "4.54.1",
439
+ "use_cache": true,
440
+ "use_sliding_window": false,
441
+ "vocab_size": 152064
442
+ }
443
+
444
+ loading weights file /mnt/share01/sqk/models/qwen2.5-7b-instruct/model.safetensors.index.json
445
+ Generate config GenerationConfig {
446
+ "bos_token_id": 151643,
447
+ "eos_token_id": 151645
448
+ }
449
+
450
+
451
+
452
+ All model checkpoint weights were used when initializing Qwen2ForCausalLM.
453
+
454
+ All the weights of Qwen2ForCausalLM were initialized from the model checkpoint at /mnt/share01/sqk/models/qwen2.5-7b-instruct.
455
+ If your task is similar to the task the model of the checkpoint was trained on, you can already use Qwen2ForCausalLM for predictions without further training.
456
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-7b-instruct/generation_config.json
457
+ Generate config GenerationConfig {
458
+ "bos_token_id": 151643,
459
+ "do_sample": true,
460
+ "eos_token_id": [
461
+ 151645,
462
+ 151643
463
+ ],
464
+ "pad_token_id": 151643,
465
+ "repetition_penalty": 1.05,
466
+ "temperature": 0.7,
467
+ "top_k": 20,
468
+ "top_p": 0.8
469
+ }
470
+
471
+ loading file vocab.json
472
+ loading file merges.txt
473
+ loading file tokenizer.json
474
+ loading file added_tokens.json
475
+ loading file special_tokens_map.json
476
+ loading file tokenizer_config.json
477
+ loading file chat_template.jinja
478
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
479
+ ✅ Loaded LLM model from: /mnt/share01/sqk/models/qwen2.5-7b-instruct
480
+ 📥 Loading pre-trained TimeSeries Encoder from: save/pretrain_rats40k/model.safetensors
481
+ ✅ TS Encoder weights loaded. Missing: 0, Unexpected: 0
482
+ 🔌 Using adapter: itformer
483
+ PyTorch: setting up devices
484
+ Using auto half precision backend
485
+ You are resizing the embedding layer without providing a `pad_to_multiple_of` parameter. This means that the new embedding dimension will be 151665. This might induce some performance reduction as *Tensor Cores* will not be available. For more details about this, or help on choosing the correct value for resizing, refer to this guide: https://docs.nvidia.com/deeplearning/performance/dl-performance-matrix-multiplication/index.html#requirements-tc
486
+ Resized LLM embeddings to 151665
487
+ ***** Running training *****
488
+ Num examples = 30,266
489
+ Num Epochs = 3
490
+ Instantaneous batch size per device = 1
491
+ Total train batch size (w. parallel, distributed & accumulation) = 32
492
+ Gradient Accumulation steps = 16
493
+ Total optimization steps = 2,838
494
+ Number of trainable parameters = 739,332,608
495
+
496
  0%| | 0/2838 [00:00<?, ?it/s][rank0]: Traceback (most recent call last):
497
+ [rank0]: File "/mnt/share01/sqk/ITFormer/train_sft_rats40k.py", line 189, in <module>
498
+ [rank0]: main()
499
+ [rank0]: File "/mnt/share01/sqk/ITFormer/train_sft_rats40k.py", line 182, in main
500
+ [rank0]: trainer.train(resume_from_checkpoint=False)
501
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2237, in train
502
+ [rank0]: return inner_training_loop(
503
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^
504
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2578, in _inner_training_loop
505
+ [rank0]: tr_loss_step = self.training_step(model, inputs, num_items_in_batch)
506
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
507
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 3792, in training_step
508
+ [rank0]: loss = self.compute_loss(model, inputs, num_items_in_batch=num_items_in_batch)
509
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
510
+ [rank0]: File "/mnt/share01/sqk/ITFormer/EXP/exp_instruct.py", line 380, in compute_loss
511
+ [rank0]: outputs = model(
512
+ [rank0]: ^^^^^^
513
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
514
+ [rank0]: return self._call_impl(*args, **kwargs)
515
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
516
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
517
+ [rank0]: return forward_call(*args, **kwargs)
518
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
519
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1643, in forward
520
+ [rank0]: else self._run_ddp_forward(*inputs, **kwargs)
521
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
522
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1459, in _run_ddp_forward
523
+ [rank0]: return self.module(*inputs, **kwargs) # type: ignore[index]
524
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
525
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
526
+ [rank0]: return self._call_impl(*args, **kwargs)
527
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
528
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
529
+ [rank0]: return forward_call(*args, **kwargs)
530
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
531
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 820, in forward
532
+ [rank0]: return model_forward(*args, **kwargs)
533
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
534
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 808, in __call__
535
+ [rank0]: return convert_to_fp32(self.model_forward(*args, **kwargs))
536
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
537
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/amp/autocast_mode.py", line 44, in decorate_autocast
538
+ [rank0]: return func(*args, **kwargs)
539
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^
540
+ [rank0]: File "/mnt/share01/sqk/ITFormer/models/TimeLanguageModel.py", line 390, in forward
541
+ [rank0]: outputs = self.llm_model(inputs_embeds=inputs_embeds, attention_mask=attention_mask,
542
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
543
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
544
+ [rank0]: return self._call_impl(*args, **kwargs)
545
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
546
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
547
+ [rank0]: return forward_call(*args, **kwargs)
548
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
549
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/utils/generic.py", line 961, in wrapper
550
+ [rank0]: output = func(self, *args, **kwargs)
551
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
552
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 450, in forward
553
+ [rank0]: outputs: BaseModelOutputWithPast = self.model(
554
+ [rank0]: ^^^^^^^^^^^
555
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
556
+ [rank0]: return self._call_impl(*args, **kwargs)
557
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
558
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
559
+ [rank0]: return forward_call(*args, **kwargs)
560
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
561
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/utils/generic.py", line 1069, in wrapper
562
+ [rank0]: outputs = func(self, *args, **kwargs)
563
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
564
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 379, in forward
565
+ [rank0]: hidden_states = decoder_layer(
566
+ [rank0]: ^^^^^^^^^^^^^^
567
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/modeling_layers.py", line 94, in __call__
568
+ [rank0]: return super().__call__(*args, **kwargs)
569
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
570
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
571
+ [rank0]: return self._call_impl(*args, **kwargs)
572
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
573
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
574
+ [rank0]: return forward_call(*args, **kwargs)
575
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
576
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 246, in forward
577
+ [rank0]: hidden_states = self.mlp(hidden_states)
578
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^
579
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
580
+ [rank0]: return self._call_impl(*args, **kwargs)
581
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
582
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
583
+ [rank0]: return forward_call(*args, **kwargs)
584
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
585
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 45, in forward
586
+ [rank0]: down_proj = self.down_proj(self.act_fn(self.gate_proj(x)) * self.up_proj(x))
587
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
588
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
589
+ [rank0]: return self._call_impl(*args, **kwargs)
590
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
591
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
592
+ [rank0]: return forward_call(*args, **kwargs)
593
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
594
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/linear.py", line 125, in forward
595
+ [rank0]: return F.linear(input, self.weight, self.bias)
596
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
597
+ [rank0]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 130.00 MiB. GPU 0 has a total capacity of 47.50 GiB of which 64.31 MiB is free. Process 133651 has 458.00 MiB memory in use. Process 133773 has 744.00 MiB memory in use. Including non-PyTorch memory, this process has 46.24 GiB memory in use. Of the allocated memory 45.52 GiB is allocated by PyTorch, and 78.72 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)
598
+ [rank1]: Traceback (most recent call last):
599
+ [rank1]: File "/mnt/share01/sqk/ITFormer/train_sft_rats40k.py", line 189, in <module>
600
+ [rank1]: main()
601
+ [rank1]: File "/mnt/share01/sqk/ITFormer/train_sft_rats40k.py", line 182, in main
602
+ [rank1]: trainer.train(resume_from_checkpoint=False)
603
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2237, in train
604
+ [rank1]: return inner_training_loop(
605
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^
606
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2578, in _inner_training_loop
607
+ [rank1]: tr_loss_step = self.training_step(model, inputs, num_items_in_batch)
608
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
609
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 3792, in training_step
610
+ [rank1]: loss = self.compute_loss(model, inputs, num_items_in_batch=num_items_in_batch)
611
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
612
+ [rank1]: File "/mnt/share01/sqk/ITFormer/EXP/exp_instruct.py", line 380, in compute_loss
613
+ [rank1]: outputs = model(
614
+ [rank1]: ^^^^^^
615
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
616
+ [rank1]: return self._call_impl(*args, **kwargs)
617
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
618
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
619
+ [rank1]: return forward_call(*args, **kwargs)
620
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
621
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1643, in forward
622
+ [rank1]: else self._run_ddp_forward(*inputs, **kwargs)
623
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
624
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1459, in _run_ddp_forward
625
+ [rank1]: return self.module(*inputs, **kwargs) # type: ignore[index]
626
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
627
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
628
+ [rank1]: return self._call_impl(*args, **kwargs)
629
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
630
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
631
+ [rank1]: return forward_call(*args, **kwargs)
632
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
633
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 820, in forward
634
+ [rank1]: return model_forward(*args, **kwargs)
635
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
636
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 808, in __call__
637
+ [rank1]: return convert_to_fp32(self.model_forward(*args, **kwargs))
638
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
639
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/amp/autocast_mode.py", line 44, in decorate_autocast
640
+ [rank1]: return func(*args, **kwargs)
641
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^
642
+ [rank1]: File "/mnt/share01/sqk/ITFormer/models/TimeLanguageModel.py", line 390, in forward
643
+ [rank1]: outputs = self.llm_model(inputs_embeds=inputs_embeds, attention_mask=attention_mask,
644
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
645
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
646
+ [rank1]: return self._call_impl(*args, **kwargs)
647
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
648
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
649
+ [rank1]: return forward_call(*args, **kwargs)
650
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
651
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/utils/generic.py", line 961, in wrapper
652
+ [rank1]: output = func(self, *args, **kwargs)
653
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
654
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 450, in forward
655
+ [rank1]: outputs: BaseModelOutputWithPast = self.model(
656
+ [rank1]: ^^^^^^^^^^^
657
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
658
+ [rank1]: return self._call_impl(*args, **kwargs)
659
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
660
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
661
+ [rank1]: return forward_call(*args, **kwargs)
662
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
663
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/utils/generic.py", line 1069, in wrapper
664
+ [rank1]: outputs = func(self, *args, **kwargs)
665
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
666
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 379, in forward
667
+ [rank1]: hidden_states = decoder_layer(
668
+ [rank1]: ^^^^^^^^^^^^^^
669
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/modeling_layers.py", line 94, in __call__
670
+ [rank1]: return super().__call__(*args, **kwargs)
671
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
672
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
673
+ [rank1]: return self._call_impl(*args, **kwargs)
674
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
675
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
676
+ [rank1]: return forward_call(*args, **kwargs)
677
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
678
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 246, in forward
679
+ [rank1]: hidden_states = self.mlp(hidden_states)
680
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^
681
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
682
+ [rank1]: return self._call_impl(*args, **kwargs)
683
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
684
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
685
+ [rank1]: return forward_call(*args, **kwargs)
686
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
687
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 45, in forward
688
+ [rank1]: down_proj = self.down_proj(self.act_fn(self.gate_proj(x)) * self.up_proj(x))
689
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
690
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
691
+ [rank1]: return self._call_impl(*args, **kwargs)
692
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
693
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
694
+ [rank1]: return forward_call(*args, **kwargs)
695
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
696
+ [rank1]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/linear.py", line 125, in forward
697
+ [rank1]: return F.linear(input, self.weight, self.bias)
698
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
699
+ [rank1]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 130.00 MiB. GPU 1 has a total capacity of 47.50 GiB of which 51.81 MiB is free. Including non-PyTorch memory, this process has 47.43 GiB memory in use. Of the allocated memory 46.71 GiB is allocated by PyTorch, and 79.92 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)
700
+
701
  0%| | 0/2838 [00:01<?, ?it/s]
702
+ [rank0]:[W608 16:49:44.310351832 ProcessGroupNCCL.cpp:1496] Warning: WARNING: destroy_process_group() was not called before program exit, which can leak resources. For more info, please see https://pytorch.org/docs/stable/distributed.html#shutdown (function operator())
703
+ W0608 16:49:46.228000 1042740 site-packages/torch/distributed/elastic/multiprocessing/api.py:897] Sending process 1043421 closing signal SIGTERM
704
+ E0608 16:49:46.262000 1042740 site-packages/torch/distributed/elastic/multiprocessing/api.py:869] failed (exitcode: 1) local_rank: 0 (pid: 1043420) of binary: /home/suiqk/anaconda3/envs/scalerag-ts-v4/bin/python
705
+ Traceback (most recent call last):
706
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/bin/accelerate", line 6, in <module>
707
+ sys.exit(main())
708
+ ^^^^^^
709
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/commands/accelerate_cli.py", line 48, in main
710
+ args.func(args)
711
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/commands/launch.py", line 1165, in launch_command
712
+ multi_gpu_launcher(args)
713
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/commands/launch.py", line 799, in multi_gpu_launcher
714
+ distrib_run.run(args)
715
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/distributed/run.py", line 909, in run
716
+ elastic_launch(
717
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 138, in __call__
718
+ return launch_agent(self._config, self._entrypoint, list(args))
719
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
720
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 269, in launch_agent
721
+ raise ChildFailedError(
722
+ torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
723
+ ============================================================
724
+ train_sft_rats40k.py FAILED
725
+ ------------------------------------------------------------
726
+ Failures:
727
+ <NO_OTHER_FAILURES>
728
+ ------------------------------------------------------------
729
+ Root Cause (first observed failure):
730
+ [0]:
731
+ time : 2026-06-08_16:49:46
732
+ host : GPUWorkstation
733
+ rank : 0 (local_rank: 0)
734
+ exitcode : 1 (pid: 1043420)
735
+ error_file: <N/A>
736
+ traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
737
+ ============================================================
738
+
739
+ ========== FAILED ==========
740
+ Time: Mon 08 Jun 2026 04:49:47 PM +08
741
+ Line: 186 Exit: 1 Cmd: "$ACCELERATE_BIN" launch --config_file "$ACCELERATE_CONFIG" train_sft_rats40k.py --data_path "$DATA_PATH" --model TimeSeriesEncoder --d_model "$D_MODEL" --n_heads "$N_HEADS" --e_layers "$E_LAYERS" --patch_len "$PATCH_LEN" --stride "$STRIDE" --input_len "$INPUT_LEN" --load_ts_encoder "$TS_ENCODER_CKPT" --it_d_model "$IT_D_MODEL" --it_n_heads "$IT_N_HEADS" --it_layers "$IT_LAYERS" --prefix_num "$PREFIX_NUM" --adapter_type "$ADAPTER_TYPE" --llm_model_path "$LLM_MODEL_PATH" --freeze_ts_model "$FREEZE_TS" --per_device_train_batch_size "$SFT_BATCH" --gradient_accumulation_steps "$SFT_GRAD_ACCUM" --learning_rate "$SFT_LR" --num_train_epochs "$SFT_EPOCHS" --save_steps "$SFT_SAVE_STEPS" --logging_steps "$SFT_LOGGING_STEPS" --output_dir "$SFT_OUTPUT_DIR" --dataloader_num_workers 4 $BF16_FLAG --report_to none
logs/rats40k_2gpu_20260608_165938.log ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
  0%| | 0/2838 [00:00<?, ?it/s]
1
  0%| | 1/2838 [00:02<2:04:50, 2.64s/it]
2
  0%| | 2/2838 [00:04<1:44:34, 2.21s/it]
3
  0%| | 3/2838 [00:06<1:41:28, 2.15s/it]
4
  0%| | 4/2838 [00:08<1:38:54, 2.09s/it]
5
  0%| | 5/2838 [00:10<1:37:44, 2.07s/it]
6
  0%| | 6/2838 [00:12<1:37:09, 2.06s/it]
7
  0%| | 7/2838 [00:14<1:36:13, 2.04s/it]
8
  0%| | 8/2838 [00:16<1:36:55, 2.05s/it]
9
  0%| | 9/2838 [00:18<1:36:25, 2.05s/it]
10
  0%| | 10/2838 [00:20<1:35:19, 2.02s/it]
11
  0%| | 11/2838 [00:22<1:35:22, 2.02s/it]
12
  0%| | 12/2838 [00:24<1:35:42, 2.03s/it]
13
  0%| | 13/2838 [00:26<1:36:25, 2.05s/it]
14
  0%| | 14/2838 [00:29<1:36:34, 2.05s/it]
15
  1%| | 15/2838 [00:31<1:36:02, 2.04s/it]
16
  1%| | 16/2838 [00:33<1:36:25, 2.05s/it]
17
  1%| | 17/2838 [00:35<1:36:32, 2.05s/it]
18
  1%| | 18/2838 [00:37<1:36:34, 2.05s/it]
19
  1%| | 19/2838 [00:39<1:36:39, 2.06s/it]
20
  1%| | 20/2838 [00:41<1:36:09, 2.05s/it]
21
 
 
22
  1%| | 20/2838 [00:41<1:36:09, 2.05s/it]
23
  1%| | 21/2838 [00:43<1:36:29, 2.06s/it]
24
  1%| | 22/2838 [00:45<1:36:11, 2.05s/it]
25
  1%| | 23/2838 [00:47<1:35:51, 2.04s/it]
26
  1%| | 24/2838 [00:49<1:36:27, 2.06s/it]
27
  1%| | 25/2838 [00:51<1:36:32, 2.06s/it]
28
  1%| | 26/2838 [00:53<1:36:07, 2.05s/it]
29
  1%| | 27/2838 [00:55<1:36:45, 2.07s/it]
30
  1%| | 28/2838 [00:57<1:37:13, 2.08s/it]
31
  1%| | 29/2838 [00:59<1:37:11, 2.08s/it]
32
  1%| | 30/2838 [01:01<1:37:23, 2.08s/it]
33
  1%| | 31/2838 [01:04<1:38:12, 2.10s/it]
34
  1%| | 32/2838 [01:06<1:38:24, 2.10s/it]
35
  1%| | 33/2838 [01:08<1:37:56, 2.09s/it]
36
  1%| | 34/2838 [01:10<1:37:18, 2.08s/it]
37
  1%| | 35/2838 [01:12<1:37:10, 2.08s/it]
38
  1%|▏ | 36/2838 [01:14<1:37:32, 2.09s/it]
39
  1%|▏ | 37/2838 [01:16<1:38:20, 2.11s/it]
40
  1%|▏ | 38/2838 [01:18<1:38:43, 2.12s/it]
41
  1%|▏ | 39/2838 [01:20<1:38:53, 2.12s/it]
42
  1%|▏ | 40/2838 [01:23<1:38:43, 2.12s/it]
43
 
 
44
  1%|▏ | 40/2838 [01:23<1:38:43, 2.12s/it]
45
  1%|▏ | 41/2838 [01:25<1:38:40, 2.12s/it]
46
  1%|▏ | 42/2838 [01:27<1:38:28, 2.11s/it]
47
  2%|▏ | 43/2838 [01:29<1:38:27, 2.11s/it]
48
  2%|▏ | 44/2838 [01:31<1:38:42, 2.12s/it]
49
  2%|▏ | 45/2838 [01:33<1:38:10, 2.11s/it]
50
  2%|▏ | 46/2838 [01:35<1:37:45, 2.10s/it]
51
  2%|▏ | 47/2838 [01:37<1:37:15, 2.09s/it]
52
  2%|▏ | 48/2838 [01:39<1:37:25, 2.10s/it]
53
  2%|▏ | 49/2838 [01:42<1:37:40, 2.10s/it]
54
  2%|▏ | 50/2838 [01:44<1:37:11, 2.09s/it]
55
  2%|▏ | 51/2838 [01:46<1:37:05, 2.09s/it]
56
  2%|▏ | 52/2838 [01:48<1:36:51, 2.09s/it]
57
  2%|▏ | 53/2838 [01:50<1:37:21, 2.10s/it]
58
  2%|▏ | 54/2838 [01:52<1:36:49, 2.09s/it]
59
  2%|▏ | 55/2838 [01:54<1:37:28, 2.10s/it]
60
  2%|▏ | 56/2838 [01:56<1:37:18, 2.10s/it]
61
  2%|▏ | 57/2838 [01:58<1:36:53, 2.09s/it]
62
  2%|▏ | 58/2838 [02:00<1:37:03, 2.09s/it]
63
  2%|▏ | 59/2838 [02:02<1:37:01, 2.09s/it]
64
  2%|▏ | 60/2838 [02:05<1:37:05, 2.10s/it]
65
 
 
66
  2%|▏ | 60/2838 [02:05<1:37:05, 2.10s/it]
67
  2%|▏ | 61/2838 [02:07<1:37:52, 2.11s/it]
68
  2%|▏ | 62/2838 [02:09<1:37:11, 2.10s/it]
69
  2%|▏ | 63/2838 [02:11<1:36:57, 2.10s/it]
70
  2%|▏ | 64/2838 [02:13<1:37:00, 2.10s/it]
71
  2%|▏ | 65/2838 [02:15<1:37:18, 2.11s/it]
72
  2%|▏ | 66/2838 [02:17<1:36:51, 2.10s/it]
73
  2%|▏ | 67/2838 [02:19<1:37:07, 2.10s/it]
74
  2%|▏ | 68/2838 [02:21<1:36:55, 2.10s/it]
75
  2%|▏ | 69/2838 [02:23<1:36:44, 2.10s/it]
76
  2%|▏ | 70/2838 [02:26<1:36:23, 2.09s/it]
77
  3%|▎ | 71/2838 [02:28<1:36:27, 2.09s/it]
78
  3%|▎ | 72/2838 [02:30<1:36:35, 2.10s/it]
79
  3%|▎ | 73/2838 [02:32<1:36:33, 2.10s/it]
80
  3%|▎ | 74/2838 [02:34<1:37:03, 2.11s/it]
81
  3%|▎ | 75/2838 [02:36<1:36:28, 2.10s/it]
82
  3%|▎ | 76/2838 [02:38<1:36:39, 2.10s/it]
83
  3%|▎ | 77/2838 [02:40<1:36:53, 2.11s/it]
84
  3%|▎ | 78/2838 [02:42<1:37:13, 2.11s/it]
85
  3%|▎ | 79/2838 [02:45<1:37:29, 2.12s/it]
86
  3%|▎ | 80/2838 [02:47<1:37:25, 2.12s/it]
87
 
 
88
  3%|▎ | 80/2838 [02:47<1:37:25, 2.12s/it]
89
  3%|▎ | 81/2838 [02:49<1:37:02, 2.11s/it]
90
  3%|▎ | 82/2838 [02:51<1:37:12, 2.12s/it]
91
  3%|▎ | 83/2838 [02:53<1:36:43, 2.11s/it]
92
  3%|▎ | 84/2838 [02:55<1:37:44, 2.13s/it]
93
  3%|▎ | 85/2838 [02:57<1:37:29, 2.12s/it]
94
  3%|▎ | 86/2838 [02:59<1:37:52, 2.13s/it]
95
  3%|▎ | 87/2838 [03:01<1:37:23, 2.12s/it]
96
  3%|▎ | 88/2838 [03:04<1:37:08, 2.12s/it]
97
  3%|▎ | 89/2838 [03:06<1:37:06, 2.12s/it]
98
  3%|▎ | 90/2838 [03:08<1:36:39, 2.11s/it]
99
  3%|▎ | 91/2838 [03:10<1:35:50, 2.09s/it]
100
  3%|▎ | 92/2838 [03:12<1:35:39, 2.09s/it]
101
  3%|▎ | 93/2838 [03:14<1:36:33, 2.11s/it]
102
  3%|▎ | 94/2838 [03:16<1:37:31, 2.13s/it]
103
  3%|▎ | 95/2838 [03:18<1:36:56, 2.12s/it]
104
  3%|▎ | 96/2838 [03:20<1:36:03, 2.10s/it]
105
  3%|▎ | 97/2838 [03:23<1:36:15, 2.11s/it]
106
  3%|▎ | 98/2838 [03:25<1:37:25, 2.13s/it]
107
  3%|▎ | 99/2838 [03:27<1:37:02, 2.13s/it]
108
  4%|▎ | 100/2838 [03:29<1:36:57, 2.12s/it]
109
 
 
110
  4%|▎ | 100/2838 [03:29<1:36:57, 2.12s/it]
111
  4%|▎ | 101/2838 [03:31<1:36:54, 2.12s/it]
112
  4%|▎ | 102/2838 [03:33<1:37:34, 2.14s/it]
113
  4%|▎ | 103/2838 [03:35<1:37:11, 2.13s/it]
114
  4%|▎ | 104/2838 [03:37<1:36:32, 2.12s/it]
115
  4%|▎ | 105/2838 [03:40<1:36:53, 2.13s/it]
116
  4%|▎ | 106/2838 [03:42<1:37:28, 2.14s/it]
117
  4%|▍ | 107/2838 [03:44<1:36:54, 2.13s/it]
118
  4%|▍ | 108/2838 [03:46<1:36:50, 2.13s/it]
119
  4%|▍ | 109/2838 [03:48<1:36:45, 2.13s/it]
120
  4%|▍ | 110/2838 [03:50<1:36:39, 2.13s/it]
121
  4%|▍ | 111/2838 [03:52<1:36:27, 2.12s/it]
122
  4%|▍ | 112/2838 [03:54<1:35:16, 2.10s/it]
123
  4%|▍ | 113/2838 [03:57<1:35:13, 2.10s/it]
124
  4%|▍ | 114/2838 [03:59<1:39:55, 2.20s/it]
125
  4%|▍ | 115/2838 [04:01<1:39:11, 2.19s/it]
126
  4%|▍ | 116/2838 [04:03<1:37:03, 2.14s/it]
127
  4%|▍ | 117/2838 [04:05<1:36:30, 2.13s/it]
128
  4%|▍ | 118/2838 [04:07<1:36:30, 2.13s/it]
129
  4%|▍ | 119/2838 [04:09<1:36:21, 2.13s/it]
130
  4%|▍ | 120/2838 [04:12<1:36:31, 2.13s/it]
131
 
 
132
  4%|▍ | 120/2838 [04:12<1:36:31, 2.13s/it]
133
  4%|▍ | 121/2838 [04:14<1:35:55, 2.12s/it]
134
  4%|▍ | 122/2838 [04:16<1:36:35, 2.13s/it]
135
  4%|▍ | 123/2838 [04:18<1:36:23, 2.13s/it]
136
  4%|▍ | 124/2838 [04:20<1:36:56, 2.14s/it]
137
  4%|▍ | 125/2838 [04:22<1:35:55, 2.12s/it]
138
  4%|▍ | 126/2838 [04:24<1:35:05, 2.10s/it]
139
  4%|▍ | 127/2838 [04:26<1:35:01, 2.10s/it]
140
  5%|▍ | 128/2838 [04:29<1:35:14, 2.11s/it]
141
  5%|▍ | 129/2838 [04:31<1:35:23, 2.11s/it]
142
  5%|▍ | 130/2838 [04:33<1:35:35, 2.12s/it]
143
  5%|▍ | 131/2838 [04:35<1:35:53, 2.13s/it]
144
  5%|▍ | 132/2838 [04:37<1:35:18, 2.11s/it]
145
  5%|▍ | 133/2838 [04:39<1:34:43, 2.10s/it]
146
  5%|▍ | 134/2838 [04:41<1:35:19, 2.12s/it]
147
  5%|▍ | 135/2838 [04:43<1:36:26, 2.14s/it]
148
  5%|▍ | 136/2838 [04:46<1:35:23, 2.12s/it]
149
  5%|▍ | 137/2838 [04:48<1:34:46, 2.11s/it]
150
  5%|▍ | 138/2838 [04:50<1:34:55, 2.11s/it]
151
  5%|▍ | 139/2838 [04:52<1:34:53, 2.11s/it]
152
  5%|▍ | 140/2838 [04:54<1:35:09, 2.12s/it]
153
 
 
154
  5%|▍ | 140/2838 [04:54<1:35:09, 2.12s/it]
155
  5%|��� | 141/2838 [04:56<1:34:59, 2.11s/it]
156
  5%|▌ | 142/2838 [04:58<1:35:12, 2.12s/it]
157
  5%|▌ | 143/2838 [05:00<1:35:11, 2.12s/it]
158
  5%|▌ | 144/2838 [05:02<1:35:27, 2.13s/it]
159
  5%|▌ | 145/2838 [05:05<1:36:41, 2.15s/it]
160
  5%|▌ | 146/2838 [05:07<1:36:10, 2.14s/it]
161
  5%|▌ | 147/2838 [05:09<1:36:16, 2.15s/it]
162
  5%|▌ | 148/2838 [05:11<1:35:28, 2.13s/it]
163
  5%|▌ | 149/2838 [05:13<1:35:51, 2.14s/it]
164
  5%|▌ | 150/2838 [05:15<1:35:21, 2.13s/it]
165
  5%|▌ | 151/2838 [05:17<1:34:54, 2.12s/it]
166
  5%|▌ | 152/2838 [05:20<1:34:58, 2.12s/it]
167
  5%|▌ | 153/2838 [05:22<1:35:11, 2.13s/it]
168
  5%|▌ | 154/2838 [05:24<1:35:12, 2.13s/it]
169
  5%|▌ | 155/2838 [05:26<1:34:25, 2.11s/it]
170
  5%|▌ | 156/2838 [05:28<1:34:19, 2.11s/it]
171
  6%|▌ | 157/2838 [05:30<1:34:35, 2.12s/it]
172
  6%|▌ | 158/2838 [05:32<1:34:48, 2.12s/it]
173
  6%|▌ | 159/2838 [05:34<1:34:46, 2.12s/it]
174
  6%|▌ | 160/2838 [05:36<1:34:07, 2.11s/it]
175
 
 
176
  6%|▌ | 160/2838 [05:37<1:34:07, 2.11s/it]
177
  6%|▌ | 161/2838 [05:39<1:34:23, 2.12s/it]
178
  6%|▌ | 162/2838 [05:41<1:34:43, 2.12s/it]
179
  6%|▌ | 163/2838 [05:43<1:33:40, 2.10s/it]
180
  6%|▌ | 164/2838 [05:45<1:33:26, 2.10s/it]
181
  6%|▌ | 165/2838 [05:47<1:32:54, 2.09s/it]
182
  6%|▌ | 166/2838 [05:49<1:32:55, 2.09s/it]
183
  6%|▌ | 167/2838 [05:51<1:32:49, 2.09s/it]
184
  6%|▌ | 168/2838 [05:53<1:33:18, 2.10s/it]
185
  6%|▌ | 169/2838 [05:55<1:33:32, 2.10s/it]
186
  6%|▌ | 170/2838 [05:57<1:33:40, 2.11s/it]
187
  6%|▌ | 171/2838 [06:00<1:34:17, 2.12s/it]
188
  6%|▌ | 172/2838 [06:02<1:33:55, 2.11s/it]
189
  6%|▌ | 173/2838 [06:04<1:33:30, 2.11s/it]
190
  6%|▌ | 174/2838 [06:06<1:33:45, 2.11s/it]
191
  6%|▌ | 175/2838 [06:08<1:33:52, 2.12s/it]
192
  6%|▌ | 176/2838 [06:10<1:33:41, 2.11s/it]
193
  6%|▌ | 177/2838 [06:12<1:34:19, 2.13s/it]
194
  6%|▋ | 178/2838 [06:14<1:33:53, 2.12s/it]
195
  6%|▋ | 179/2838 [06:16<1:33:31, 2.11s/it]
196
  6%|▋ | 180/2838 [06:19<1:33:30, 2.11s/it]
197
 
 
198
  6%|▋ | 180/2838 [06:19<1:33:30, 2.11s/it]
199
  6%|▋ | 181/2838 [06:21<1:34:25, 2.13s/it]
200
  6%|▋ | 182/2838 [06:23<1:34:22, 2.13s/it]
201
  6%|▋ | 183/2838 [06:25<1:33:50, 2.12s/it]
202
  6%|▋ | 184/2838 [06:27<1:34:32, 2.14s/it]
203
  7%|▋ | 185/2838 [06:29<1:33:48, 2.12s/it]
204
  7%|▋ | 186/2838 [06:31<1:33:33, 2.12s/it]
205
  7%|▋ | 187/2838 [06:33<1:32:59, 2.10s/it]
206
  7%|▋ | 188/2838 [06:36<1:32:52, 2.10s/it]
207
  7%|▋ | 189/2838 [06:38<1:32:52, 2.10s/it]
208
  7%|▋ | 190/2838 [06:40<1:33:34, 2.12s/it]
209
  7%|▋ | 191/2838 [06:42<1:33:38, 2.12s/it]
210
  7%|▋ | 192/2838 [06:44<1:33:52, 2.13s/it]
211
  7%|▋ | 193/2838 [06:46<1:33:48, 2.13s/it]
212
  7%|▋ | 194/2838 [06:48<1:34:24, 2.14s/it]
213
  7%|▋ | 195/2838 [06:51<1:35:01, 2.16s/it]
214
  7%|▋ | 196/2838 [06:53<1:35:01, 2.16s/it]
215
  7%|▋ | 197/2838 [06:55<1:34:22, 2.14s/it]
216
  7%|▋ | 198/2838 [06:57<1:33:17, 2.12s/it]
217
  7%|▋ | 199/2838 [06:59<1:33:34, 2.13s/it]
218
  7%|▋ | 200/2838 [07:01<1:33:47, 2.13s/it]
219
 
 
220
  7%|▋ | 200/2838 [07:01<1:33:47, 2.13s/it]
221
  7%|▋ | 201/2838 [07:03<1:33:33, 2.13s/it]
222
  7%|▋ | 202/2838 [07:05<1:32:40, 2.11s/it]
223
  7%|▋ | 203/2838 [07:08<1:33:29, 2.13s/it]
224
  7%|▋ | 204/2838 [07:10<1:34:10, 2.15s/it]
225
  7%|▋ | 205/2838 [07:12<1:34:36, 2.16s/it]
226
  7%|▋ | 206/2838 [07:14<1:33:36, 2.13s/it]
227
  7%|▋ | 207/2838 [07:16<1:33:07, 2.12s/it]
228
  7%|▋ | 208/2838 [07:18<1:32:50, 2.12s/it]
229
  7%|▋ | 209/2838 [07:20<1:33:07, 2.13s/it]
230
  7%|▋ | 210/2838 [07:22<1:32:54, 2.12s/it]
231
  7%|▋ | 211/2838 [07:25<1:32:50, 2.12s/it]
232
  7%|▋ | 212/2838 [07:27<1:32:21, 2.11s/it]
233
  8%|▊ | 213/2838 [07:29<1:32:18, 2.11s/it]
234
  8%|▊ | 214/2838 [07:31<1:32:17, 2.11s/it]
235
  8%|▊ | 215/2838 [07:33<1:32:44, 2.12s/it]
236
  8%|▊ | 216/2838 [07:35<1:32:33, 2.12s/it]
237
  8%|▊ | 217/2838 [07:37<1:33:19, 2.14s/it]
238
  8%|▊ | 218/2838 [07:39<1:33:19, 2.14s/it]
239
  8%|▊ | 219/2838 [07:42<1:32:24, 2.12s/it]
240
  8%|▊ | 220/2838 [07:44<1:32:11, 2.11s/it]
241
 
 
242
  8%|▊ | 220/2838 [07:44<1:32:11, 2.11s/it]
243
  8%|▊ | 221/2838 [07:46<1:32:08, 2.11s/it]
244
  8%|▊ | 222/2838 [07:48<1:32:28, 2.12s/it]
245
  8%|▊ | 223/2838 [07:50<1:32:22, 2.12s/it]
246
  8%|▊ | 224/2838 [07:52<1:32:52, 2.13s/it]
247
  8%|▊ | 225/2838 [07:54<1:32:50, 2.13s/it]
248
  8%|▊ | 226/2838 [07:56<1:31:46, 2.11s/it]
249
  8%|▊ | 227/2838 [07:58<1:31:29, 2.10s/it]
250
  8%|▊ | 228/2838 [08:01<1:31:36, 2.11s/it]
251
  8%|▊ | 229/2838 [08:03<1:31:14, 2.10s/it]
252
  8%|▊ | 230/2838 [08:05<1:31:38, 2.11s/it]
253
  8%|▊ | 231/2838 [08:07<1:31:50, 2.11s/it]
254
  8%|▊ | 232/2838 [08:09<1:32:03, 2.12s/it]
255
  8%|▊ | 233/2838 [08:11<1:31:59, 2.12s/it]
256
  8%|▊ | 234/2838 [08:14<1:36:10, 2.22s/it]
257
  8%|▊ | 235/2838 [08:16<1:37:31, 2.25s/it]
258
  8%|▊ | 236/2838 [08:18<1:35:31, 2.20s/it]
259
  8%|▊ | 237/2838 [08:20<1:34:12, 2.17s/it]
260
  8%|▊ | 238/2838 [08:22<1:32:53, 2.14s/it]
261
  8%|▊ | 239/2838 [08:24<1:32:15, 2.13s/it]
262
  8%|▊ | 240/2838 [08:26<1:31:59, 2.12s/it]
263
 
 
264
  8%|▊ | 240/2838 [08:26<1:31:59, 2.12s/it]
265
  8%|▊ | 241/2838 [08:28<1:31:27, 2.11s/it]
266
  9%|▊ | 242/2838 [08:31<1:30:43, 2.10s/it]
267
  9%|▊ | 243/2838 [08:33<1:31:13, 2.11s/it]
268
  9%|▊ | 244/2838 [08:35<1:30:44, 2.10s/it]
269
  9%|▊ | 245/2838 [08:37<1:30:56, 2.10s/it]
270
  9%|▊ | 246/2838 [08:39<1:31:04, 2.11s/it]
271
  9%|▊ | 247/2838 [08:41<1:31:03, 2.11s/it]
272
  9%|▊ | 248/2838 [08:43<1:31:38, 2.12s/it]
273
  9%|▉ | 249/2838 [08:45<1:31:25, 2.12s/it]
274
  9%|▉ | 250/2838 [08:47<1:31:16, 2.12s/it]
275
  9%|▉ | 251/2838 [08:50<1:31:05, 2.11s/it]
276
  9%|▉ | 252/2838 [08:52<1:31:04, 2.11s/it]
277
  9%|▉ | 253/2838 [08:54<1:31:21, 2.12s/it]
278
  9%|▉ | 254/2838 [08:56<1:31:01, 2.11s/it]
279
  9%|▉ | 255/2838 [08:58<1:30:57, 2.11s/it]
280
  9%|▉ | 256/2838 [09:00<1:30:58, 2.11s/it]
281
  9%|▉ | 257/2838 [09:02<1:31:07, 2.12s/it]
282
  9%|▉ | 258/2838 [09:04<1:30:20, 2.10s/it]
283
  9%|▉ | 259/2838 [09:07<1:31:11, 2.12s/it]
284
  9%|▉ | 260/2838 [09:09<1:31:47, 2.14s/it]
285
 
 
286
  9%|▉ | 260/2838 [09:09<1:31:47, 2.14s/it]
287
  9%|▉ | 261/2838 [09:11<1:31:35, 2.13s/it]
288
  9%|▉ | 262/2838 [09:13<1:31:01, 2.12s/it]
289
  9%|▉ | 263/2838 [09:15<1:30:48, 2.12s/it]
290
  9%|▉ | 264/2838 [09:17<1:30:47, 2.12s/it]
291
  9%|▉ | 265/2838 [09:19<1:30:54, 2.12s/it]
292
  9%|▉ | 266/2838 [09:21<1:30:18, 2.11s/it]
293
  9%|▉ | 267/2838 [09:23<1:30:55, 2.12s/it]
294
  9%|▉ | 268/2838 [09:26<1:30:30, 2.11s/it]
295
  9%|▉ | 269/2838 [09:28<1:31:34, 2.14s/it]
296
  10%|▉ | 270/2838 [09:30<1:31:03, 2.13s/it]
297
  10%|▉ | 271/2838 [09:32<1:30:22, 2.11s/it]
298
  10%|▉ | 272/2838 [09:34<1:30:28, 2.12s/it]
299
  10%|▉ | 273/2838 [09:36<1:30:06, 2.11s/it]
300
  10%|▉ | 274/2838 [09:38<1:29:39, 2.10s/it]
301
  10%|▉ | 275/2838 [09:40<1:29:56, 2.11s/it]
302
  10%|▉ | 276/2838 [09:42<1:29:52, 2.10s/it]
303
  10%|▉ | 277/2838 [09:45<1:29:48, 2.10s/it]
304
  10%|▉ | 278/2838 [09:47<1:30:17, 2.12s/it]
305
  10%|▉ | 279/2838 [09:49<1:30:06, 2.11s/it]
306
  10%|▉ | 280/2838 [09:51<1:29:59, 2.11s/it]
307
 
 
308
  10%|▉ | 280/2838 [09:51<1:29:59, 2.11s/it]
309
  10%|▉ | 281/2838 [09:53<1:30:11, 2.12s/it]
310
  10%|▉ | 282/2838 [09:55<1:30:09, 2.12s/it]
311
  10%|▉ | 283/2838 [09:57<1:30:18, 2.12s/it]
312
  10%|█ | 284/2838 [09:59<1:30:49, 2.13s/it]
313
  10%|█ | 285/2838 [10:02<1:31:14, 2.14s/it]
314
  10%|█ | 286/2838 [10:04<1:30:31, 2.13s/it]
315
  10%|█ | 287/2838 [10:06<1:29:54, 2.11s/it]
316
  10%|█ | 288/2838 [10:08<1:29:46, 2.11s/it]
317
  10%|█ | 289/2838 [10:10<1:29:31, 2.11s/it]
318
  10%|█ | 290/2838 [10:12<1:29:40, 2.11s/it]
319
  10%|█ | 291/2838 [10:14<1:29:38, 2.11s/it]
320
  10%|█ | 292/2838 [10:16<1:29:03, 2.10s/it]
321
  10%|█ | 293/2838 [10:18<1:29:27, 2.11s/it]
322
  10%|█ | 294/2838 [10:21<1:29:12, 2.10s/it]
323
  10%|█ | 295/2838 [10:23<1:30:21, 2.13s/it]
324
  10%|█ | 296/2838 [10:25<1:30:34, 2.14s/it]
325
  10%|█ | 297/2838 [10:27<1:30:00, 2.13s/it]
326
  11%|█ | 298/2838 [10:29<1:29:38, 2.12s/it]
327
  11%|█ | 299/2838 [10:31<1:29:36, 2.12s/it]
328
  11%|█ | 300/2838 [10:33<1:29:35, 2.12s/it]
329
 
 
330
  11%|█ | 300/2838 [10:33<1:29:35, 2.12s/it]
331
  11%|█ | 301/2838 [10:35<1:29:12, 2.11s/it]
332
  11%|█ | 302/2838 [10:38<1:29:31, 2.12s/it]
333
  11%|█ | 303/2838 [10:40<1:30:07, 2.13s/it]
334
  11%|█ | 304/2838 [10:42<1:29:16, 2.11s/it]
335
  11%|█ | 305/2838 [10:44<1:29:19, 2.12s/it]
336
  11%|█ | 306/2838 [10:46<1:29:34, 2.12s/it]
337
  11%|█ | 307/2838 [10:48<1:29:26, 2.12s/it]
338
  11%|█ | 308/2838 [10:50<1:29:04, 2.11s/it]
339
  11%|█ | 309/2838 [10:52<1:29:05, 2.11s/it]
340
  11%|█ | 310/2838 [10:54<1:28:56, 2.11s/it]
341
  11%|█ | 311/2838 [10:57<1:29:14, 2.12s/it]
342
  11%|█ | 312/2838 [10:59<1:29:10, 2.12s/it]
343
  11%|█ | 313/2838 [11:01<1:28:38, 2.11s/it]
344
  11%|█ | 314/2838 [11:03<1:28:52, 2.11s/it]
345
  11%|█ | 315/2838 [11:05<1:28:51, 2.11s/it]
346
  11%|█ | 316/2838 [11:07<1:29:02, 2.12s/it]
347
  11%|█ | 317/2838 [11:09<1:28:32, 2.11s/it]
348
  11%|█ | 318/2838 [11:11<1:28:54, 2.12s/it]
349
  11%|█ | 319/2838 [11:13<1:28:08, 2.10s/it]
350
  11%|█▏ | 320/2838 [11:16<1:28:03, 2.10s/it]
351
 
 
352
  11%|█▏ | 320/2838 [11:16<1:28:03, 2.10s/it]
353
  11%|█▏ | 321/2838 [11:18<1:27:57, 2.10s/it]
354
  11%|█▏ | 322/2838 [11:20<1:28:18, 2.11s/it]
355
  11%|█▏ | 323/2838 [11:22<1:28:08, 2.10s/it]
356
  11%|█▏ | 324/2838 [11:24<1:27:54, 2.10s/it]
357
  11%|█▏ | 325/2838 [11:26<1:28:20, 2.11s/it]
358
  11%|█▏ | 326/2838 [11:28<1:27:36, 2.09s/it]
359
  12%|█▏ | 327/2838 [11:30<1:27:03, 2.08s/it]
360
  12%|█▏ | 328/2838 [11:32<1:27:35, 2.09s/it]
361
  12%|█▏ | 329/2838 [11:34<1:27:41, 2.10s/it]
362
  12%|█▏ | 330/2838 [11:37<1:28:06, 2.11s/it]
363
  12%|█▏ | 331/2838 [11:39<1:27:59, 2.11s/it]
364
  12%|█▏ | 332/2838 [11:41<1:27:21, 2.09s/it]
365
  12%|█▏ | 333/2838 [11:43<1:27:40, 2.10s/it]
366
  12%|█▏ | 334/2838 [11:45<1:27:39, 2.10s/it]
367
  12%|█▏ | 335/2838 [11:47<1:28:19, 2.12s/it]
368
  12%|█▏ | 336/2838 [11:49<1:28:39, 2.13s/it]
369
  12%|█▏ | 337/2838 [11:51<1:28:38, 2.13s/it]
370
  12%|█▏ | 338/2838 [11:53<1:28:31, 2.12s/it]
371
  12%|█▏ | 339/2838 [11:56<1:28:42, 2.13s/it]
372
  12%|█▏ | 340/2838 [11:58<1:28:10, 2.12s/it]
373
 
 
374
  12%|█▏ | 340/2838 [11:58<1:28:10, 2.12s/it]
375
  12%|█▏ | 341/2838 [12:00<1:28:15, 2.12s/it]
376
  12%|█▏ | 342/2838 [12:02<1:28:03, 2.12s/it]
377
  12%|█▏ | 343/2838 [12:04<1:28:57, 2.14s/it]
378
  12%|█▏ | 344/2838 [12:06<1:28:30, 2.13s/it]
379
  12%|█▏ | 345/2838 [12:08<1:27:58, 2.12s/it]
380
  12%|█▏ | 346/2838 [12:10<1:27:34, 2.11s/it]
381
  12%|█▏ | 347/2838 [12:13<1:27:59, 2.12s/it]
382
  12%|█▏ | 348/2838 [12:15<1:27:45, 2.11s/it]
383
  12%|█▏ | 349/2838 [12:17<1:27:15, 2.10s/it]
384
  12%|█▏ | 350/2838 [12:19<1:29:50, 2.17s/it]
385
  12%|█▏ | 351/2838 [12:21<1:31:36, 2.21s/it]
386
  12%|█▏ | 352/2838 [12:23<1:30:18, 2.18s/it]
387
  12%|█▏ | 353/2838 [12:26<1:29:06, 2.15s/it]
388
  12%|█▏ | 354/2838 [12:28<1:28:01, 2.13s/it]
389
  13%|█▎ | 355/2838 [12:30<1:27:51, 2.12s/it]
390
  13%|█▎ | 356/2838 [12:32<1:28:10, 2.13s/it]
391
  13%|█▎ | 357/2838 [12:34<1:28:01, 2.13s/it]
392
  13%|█▎ | 358/2838 [12:36<1:27:44, 2.12s/it]
393
  13%|█▎ | 359/2838 [12:38<1:28:26, 2.14s/it]
394
  13%|█▎ | 360/2838 [12:40<1:27:41, 2.12s/it]
395
 
 
396
  13%|█▎ | 360/2838 [12:40<1:27:41, 2.12s/it]
397
  13%|█▎ | 361/2838 [12:43<1:28:08, 2.13s/it]
398
  13%|█▎ | 362/2838 [12:45<1:28:18, 2.14s/it]
399
  13%|█▎ | 363/2838 [12:47<1:27:42, 2.13s/it]
400
  13%|█▎ | 364/2838 [12:49<1:27:20, 2.12s/it]
401
  13%|█▎ | 365/2838 [12:51<1:27:31, 2.12s/it]
402
  13%|█▎ | 366/2838 [12:53<1:27:07, 2.11s/it]
403
  13%|█▎ | 367/2838 [12:55<1:27:20, 2.12s/it]
404
  13%|█▎ | 368/2838 [12:57<1:27:48, 2.13s/it]
405
  13%|█▎ | 369/2838 [13:00<1:27:10, 2.12s/it]
406
  13%|█▎ | 370/2838 [13:02<1:27:21, 2.12s/it]
407
  13%|█▎ | 371/2838 [13:04<1:27:39, 2.13s/it]
408
  13%|█▎ | 372/2838 [13:06<1:26:50, 2.11s/it]
409
  13%|█▎ | 373/2838 [13:08<1:27:21, 2.13s/it]
410
  13%|█▎ | 374/2838 [13:10<1:27:03, 2.12s/it]
411
  13%|█▎ | 375/2838 [13:12<1:26:20, 2.10s/it]
412
  13%|█▎ | 376/2838 [13:14<1:25:45, 2.09s/it]
413
  13%|█▎ | 377/2838 [13:16<1:25:49, 2.09s/it]
414
  13%|█▎ | 378/2838 [13:18<1:26:19, 2.11s/it]
415
  13%|█▎ | 379/2838 [13:21<1:26:37, 2.11s/it]
416
  13%|█▎ | 380/2838 [13:23<1:26:15, 2.11s/it]
417
 
 
418
  13%|█▎ | 380/2838 [13:23<1:26:15, 2.11s/it]
419
  13%|█▎ | 381/2838 [13:25<1:26:02, 2.10s/it]
420
  13%|█▎ | 382/2838 [13:27<1:25:53, 2.10s/it]
421
  13%|█▎ | 383/2838 [13:29<1:25:50, 2.10s/it]
422
  14%|█▎ | 384/2838 [13:31<1:25:51, 2.10s/it]
423
  14%|█▎ | 385/2838 [13:33<1:25:49, 2.10s/it]
424
  14%|█▎ | 386/2838 [13:35<1:25:48, 2.10s/it]
425
  14%|█▎ | 387/2838 [13:37<1:26:19, 2.11s/it]
426
  14%|█▎ | 388/2838 [13:40<1:26:01, 2.11s/it]
427
  14%|█▎ | 389/2838 [13:42<1:25:34, 2.10s/it]
428
  14%|█▎ | 390/2838 [13:44<1:25:31, 2.10s/it]
429
  14%|█▍ | 391/2838 [13:46<1:26:04, 2.11s/it]
430
  14%|█▍ | 392/2838 [13:48<1:26:11, 2.11s/it]
431
  14%|█▍ | 393/2838 [13:50<1:25:39, 2.10s/it]
432
  14%|█▍ | 394/2838 [13:52<1:26:04, 2.11s/it]
433
  14%|█▍ | 395/2838 [13:54<1:25:31, 2.10s/it]
434
  14%|█▍ | 396/2838 [13:56<1:25:37, 2.10s/it]
435
  14%|█▍ | 397/2838 [13:59<1:26:25, 2.12s/it]
436
  14%|█▍ | 398/2838 [14:01<1:25:50, 2.11s/it]
437
  14%|█▍ | 399/2838 [14:03<1:25:31, 2.10s/it]
438
  14%|█▍ | 400/2838 [14:05<1:25:48, 2.11s/it]
439
 
 
440
  14%|█▍ | 400/2838 [14:05<1:25:48, 2.11s/it]
441
  14%|█▍ | 401/2838 [14:07<1:26:24, 2.13s/it]
442
  14%|█▍ | 402/2838 [14:09<1:26:05, 2.12s/it]
443
  14%|█▍ | 403/2838 [14:11<1:25:53, 2.12s/it]
444
  14%|█▍ | 404/2838 [14:13<1:25:34, 2.11s/it]
445
  14%|█▍ | 405/2838 [14:15<1:26:20, 2.13s/it]
446
  14%|█▍ | 406/2838 [14:18<1:26:38, 2.14s/it]
447
  14%|█▍ | 407/2838 [14:20<1:27:48, 2.17s/it]
448
  14%|█▍ | 408/2838 [14:22<1:26:56, 2.15s/it]
449
  14%|█▍ | 409/2838 [14:24<1:26:57, 2.15s/it]
450
  14%|█▍ | 410/2838 [14:26<1:26:25, 2.14s/it]
451
  14%|█▍ | 411/2838 [14:28<1:26:22, 2.14s/it]
452
  15%|█▍ | 412/2838 [14:31<1:26:20, 2.14s/it]
453
  15%|█▍ | 413/2838 [14:33<1:26:32, 2.14s/it]
454
  15%|█▍ | 414/2838 [14:35<1:26:30, 2.14s/it]
455
  15%|█▍ | 415/2838 [14:37<1:26:01, 2.13s/it]
456
  15%|█▍ | 416/2838 [14:39<1:25:53, 2.13s/it]
457
  15%|█▍ | 417/2838 [14:41<1:25:53, 2.13s/it]
458
  15%|█▍ | 418/2838 [14:43<1:25:27, 2.12s/it]
459
  15%|█▍ | 419/2838 [14:45<1:25:50, 2.13s/it]
460
  15%|█▍ | 420/2838 [14:47<1:25:05, 2.11s/it]
461
 
 
462
  15%|█▍ | 420/2838 [14:48<1:25:05, 2.11s/it]
463
  15%|█▍ | 421/2838 [14:50<1:25:40, 2.13s/it]
464
  15%|█▍ | 422/2838 [14:52<1:25:27, 2.12s/it]
465
  15%|█▍ | 423/2838 [14:54<1:25:04, 2.11s/it]
466
  15%|█▍ | 424/2838 [14:56<1:24:47, 2.11s/it]
467
  15%|█▍ | 425/2838 [14:58<1:24:25, 2.10s/it]
468
  15%|█▌ | 426/2838 [15:00<1:24:45, 2.11s/it]
469
  15%|█▌ | 427/2838 [15:02<1:25:37, 2.13s/it]
470
  15%|█▌ | 428/2838 [15:04<1:25:41, 2.13s/it]
471
  15%|█▌ | 429/2838 [15:07<1:25:20, 2.13s/it]
472
  15%|█▌ | 430/2838 [15:09<1:25:21, 2.13s/it]
473
  15%|█▌ | 431/2838 [15:11<1:24:38, 2.11s/it]
474
  15%|█▌ | 432/2838 [15:13<1:25:13, 2.13s/it]
475
  15%|█▌ | 433/2838 [15:15<1:24:43, 2.11s/it]
476
  15%|█▌ | 434/2838 [15:17<1:24:53, 2.12s/it]
477
  15%|█▌ | 435/2838 [15:19<1:24:42, 2.11s/it]
478
  15%|█▌ | 436/2838 [15:21<1:24:09, 2.10s/it]
479
  15%|█▌ | 437/2838 [15:23<1:24:53, 2.12s/it]
480
  15%|█▌ | 438/2838 [15:26<1:24:18, 2.11s/it]
481
  15%|█▌ | 439/2838 [15:28<1:24:11, 2.11s/it]
482
  16%|█▌ | 440/2838 [15:30<1:24:45, 2.12s/it]
483
 
 
484
  16%|█▌ | 440/2838 [15:30<1:24:45, 2.12s/it]
485
  16%|█▌ | 441/2838 [15:32<1:24:53, 2.12s/it]
486
  16%|█▌ | 442/2838 [15:34<1:25:14, 2.13s/it]
487
  16%|█▌ | 443/2838 [15:36<1:24:46, 2.12s/it]
488
  16%|█▌ | 444/2838 [15:38<1:24:15, 2.11s/it]
489
  16%|█▌ | 445/2838 [15:40<1:24:07, 2.11s/it]
490
  16%|█▌ | 446/2838 [15:43<1:24:28, 2.12s/it]
491
  16%|█▌ | 447/2838 [15:45<1:24:12, 2.11s/it]
492
  16%|█▌ | 448/2838 [15:47<1:24:31, 2.12s/it]
493
  16%|█▌ | 449/2838 [15:49<1:24:08, 2.11s/it]
494
  16%|█▌ | 450/2838 [15:51<1:24:54, 2.13s/it]
495
  16%|█▌ | 451/2838 [15:53<1:24:55, 2.13s/it]
496
  16%|█▌ | 452/2838 [15:55<1:24:20, 2.12s/it]
497
  16%|█▌ | 453/2838 [15:57<1:24:27, 2.12s/it]
498
  16%|█▌ | 454/2838 [16:00<1:24:02, 2.12s/it]
499
  16%|█▌ | 455/2838 [16:02<1:23:59, 2.11s/it]
500
  16%|█▌ | 456/2838 [16:04<1:23:52, 2.11s/it]
501
  16%|█▌ | 457/2838 [16:06<1:23:57, 2.12s/it]
502
  16%|█▌ | 458/2838 [16:08<1:23:38, 2.11s/it]
503
  16%|█▌ | 459/2838 [16:10<1:24:22, 2.13s/it]
504
  16%|█▌ | 460/2838 [16:12<1:23:38, 2.11s/it]
505
 
 
506
  16%|█▌ | 460/2838 [16:12<1:23:38, 2.11s/it]
507
  16%|█▌ | 461/2838 [16:14<1:24:22, 2.13s/it]
508
  16%|█▋ | 462/2838 [16:17<1:24:51, 2.14s/it]
509
  16%|█▋ | 463/2838 [16:19<1:25:15, 2.15s/it]
510
  16%|█▋ | 464/2838 [16:21<1:24:28, 2.14s/it]
511
  16%|█▋ | 465/2838 [16:23<1:23:26, 2.11s/it]
512
  16%|█▋ | 466/2838 [16:25<1:23:23, 2.11s/it]
513
  16%|█▋ | 467/2838 [16:27<1:25:11, 2.16s/it]
514
  16%|█▋ | 468/2838 [16:29<1:24:26, 2.14s/it]
515
  17%|█▋ | 469/2838 [16:31<1:23:56, 2.13s/it]
516
  17%|█▋ | 470/2838 [16:34<1:24:01, 2.13s/it]
517
  17%|█▋ | 471/2838 [16:36<1:24:22, 2.14s/it]
518
  17%|█▋ | 472/2838 [16:38<1:23:28, 2.12s/it]
519
  17%|█▋ | 473/2838 [16:40<1:23:39, 2.12s/it]
520
  17%|█▋ | 474/2838 [16:42<1:23:05, 2.11s/it]
521
  17%|█▋ | 475/2838 [16:44<1:23:19, 2.12s/it]
522
  17%|█▋ | 476/2838 [16:46<1:22:56, 2.11s/it]
523
  17%|█▋ | 477/2838 [16:48<1:23:03, 2.11s/it]
524
  17%|█▋ | 478/2838 [16:50<1:22:25, 2.10s/it]
525
  17%|█▋ | 479/2838 [16:53<1:22:40, 2.10s/it]
526
  17%|█▋ | 480/2838 [16:55<1:23:00, 2.11s/it]
527
 
 
528
  17%|█▋ | 480/2838 [16:55<1:23:00, 2.11s/it]
529
  17%|█▋ | 481/2838 [16:57<1:23:43, 2.13s/it]
530
  17%|█▋ | 482/2838 [16:59<1:24:13, 2.14s/it]
531
  17%|█▋ | 483/2838 [17:01<1:23:53, 2.14s/it]
532
  17%|█▋ | 484/2838 [17:03<1:23:26, 2.13s/it]
533
  17%|█▋ | 485/2838 [17:05<1:23:13, 2.12s/it]
534
  17%|█▋ | 486/2838 [17:07<1:23:12, 2.12s/it]
535
  17%|█▋ | 487/2838 [17:10<1:22:53, 2.12s/it]
536
  17%|█▋ | 488/2838 [17:12<1:22:37, 2.11s/it]
537
  17%|█▋ | 489/2838 [17:14<1:22:35, 2.11s/it]
538
  17%|█▋ | 490/2838 [17:16<1:22:18, 2.10s/it]
539
  17%|█▋ | 491/2838 [17:18<1:22:34, 2.11s/it]
540
  17%|█▋ | 492/2838 [17:20<1:22:24, 2.11s/it]
541
  17%|█▋ | 493/2838 [17:22<1:22:26, 2.11s/it]
542
  17%|█▋ | 494/2838 [17:24<1:22:14, 2.11s/it]
543
  17%|█▋ | 495/2838 [17:26<1:22:38, 2.12s/it]
544
  17%|█▋ | 496/2838 [17:29<1:22:31, 2.11s/it]
545
  18%|█▊ | 497/2838 [17:31<1:22:56, 2.13s/it]
546
  18%|█▊ | 498/2838 [17:33<1:22:21, 2.11s/it]
547
  18%|█▊ | 499/2838 [17:35<1:22:49, 2.12s/it]
548
  18%|█▊ | 500/2838 [17:37<1:22:41, 2.12s/it]
549
 
 
550
  18%|█▊ | 500/2838 [17:37<1:22:41, 2.12s/it]Saving model checkpoint to save/sft_rats40k_20260608_165938/checkpoint-500
 
 
 
 
 
 
 
 
551
  18%|█▊ | 501/2838 [19:10<19:03:47, 29.37s/it]
552
  18%|█▊ | 502/2838 [19:12<13:44:20, 21.17s/it]
553
  18%|█▊ | 503/2838 [19:14<10:00:37, 15.43s/it]
554
  18%|█▊ | 504/2838 [19:16<7:24:04, 11.42s/it]
555
  18%|█▊ | 505/2838 [19:18<5:34:52, 8.61s/it]
556
  18%|█▊ | 506/2838 [19:20<4:18:08, 6.64s/it]
557
  18%|█▊ | 507/2838 [19:22<3:25:03, 5.28s/it]
558
  18%|█▊ | 508/2838 [19:24<2:47:47, 4.32s/it]
559
  18%|█▊ | 509/2838 [19:26<2:21:15, 3.64s/it]
560
  18%|█▊ | 510/2838 [19:29<2:03:22, 3.18s/it]
561
  18%|█▊ | 511/2838 [19:31<1:50:12, 2.84s/it]
562
  18%|█▊ | 512/2838 [19:33<1:40:50, 2.60s/it]
563
  18%|█▊ | 513/2838 [19:35<1:34:01, 2.43s/it]
564
  18%|█▊ | 514/2838 [19:37<1:29:29, 2.31s/it]
565
  18%|█�� | 515/2838 [19:39<1:26:13, 2.23s/it]
566
  18%|█▊ | 516/2838 [19:41<1:24:41, 2.19s/it]
567
  18%|█▊ | 517/2838 [19:43<1:24:27, 2.18s/it]
568
  18%|█▊ | 518/2838 [19:45<1:23:11, 2.15s/it]
569
  18%|█▊ | 519/2838 [19:47<1:22:07, 2.12s/it]
570
  18%|█▊ | 520/2838 [19:49<1:21:46, 2.12s/it]
571
 
 
572
  18%|█▊ | 520/2838 [19:49<1:21:46, 2.12s/it]
573
  18%|█▊ | 521/2838 [19:51<1:21:24, 2.11s/it]
574
  18%|█▊ | 522/2838 [19:53<1:21:23, 2.11s/it]
575
  18%|█▊ | 523/2838 [19:56<1:20:35, 2.09s/it]
576
  18%|█▊ | 524/2838 [19:58<1:20:48, 2.10s/it]
577
  18%|█▊ | 525/2838 [20:00<1:21:11, 2.11s/it]
578
  19%|█▊ | 526/2838 [20:02<1:20:34, 2.09s/it]
579
  19%|█▊ | 527/2838 [20:04<1:19:49, 2.07s/it]
580
  19%|█▊ | 528/2838 [20:06<1:20:09, 2.08s/it]
581
  19%|█▊ | 529/2838 [20:08<1:20:19, 2.09s/it]
582
  19%|█▊ | 530/2838 [20:10<1:20:09, 2.08s/it]
583
  19%|█▊ | 531/2838 [20:12<1:20:46, 2.10s/it]
584
  19%|█▊ | 532/2838 [20:14<1:21:18, 2.12s/it]
585
  19%|█▉ | 533/2838 [20:17<1:21:16, 2.12s/it]
586
  19%|█▉ | 534/2838 [20:19<1:20:59, 2.11s/it]
587
  19%|█▉ | 535/2838 [20:21<1:21:00, 2.11s/it]
588
  19%|█▉ | 536/2838 [20:23<1:21:14, 2.12s/it]
589
  19%|█▉ | 537/2838 [20:25<1:21:07, 2.12s/it]
590
  19%|█▉ | 538/2838 [20:27<1:20:33, 2.10s/it]
591
  19%|█▉ | 539/2838 [20:29<1:20:13, 2.09s/it]
592
  19%|█▉ | 540/2838 [20:31<1:20:00, 2.09s/it]
593
 
 
594
  19%|█▉ | 540/2838 [20:31<1:20:00, 2.09s/it]
595
  19%|█▉ | 541/2838 [20:33<1:20:07, 2.09s/it]
596
  19%|█▉ | 542/2838 [20:35<1:20:45, 2.11s/it]
597
  19%|█▉ | 543/2838 [20:38<1:20:17, 2.10s/it]
598
  19%|█▉ | 544/2838 [20:40<1:20:01, 2.09s/it]
599
  19%|█▉ | 545/2838 [20:42<1:20:25, 2.10s/it]
600
  19%|█▉ | 546/2838 [20:44<1:20:11, 2.10s/it]
601
  19%|█▉ | 547/2838 [20:46<1:20:05, 2.10s/it]
602
  19%|█▉ | 548/2838 [20:48<1:20:27, 2.11s/it]
603
  19%|█▉ | 549/2838 [20:50<1:20:44, 2.12s/it]
604
  19%|█▉ | 550/2838 [20:52<1:21:03, 2.13s/it]
605
  19%|█▉ | 551/2838 [20:54<1:20:46, 2.12s/it]
606
  19%|█▉ | 552/2838 [20:57<1:20:48, 2.12s/it]
607
  19%|█▉ | 553/2838 [20:59<1:20:25, 2.11s/it]
608
  20%|█▉ | 554/2838 [21:01<1:20:14, 2.11s/it]
609
  20%|█▉ | 555/2838 [21:03<1:20:10, 2.11s/it]
610
  20%|█▉ | 556/2838 [21:05<1:20:28, 2.12s/it]
611
  20%|█▉ | 557/2838 [21:07<1:19:58, 2.10s/it]
612
  20%|█▉ | 558/2838 [21:09<1:19:45, 2.10s/it]
613
  20%|█▉ | 559/2838 [21:11<1:20:28, 2.12s/it]
614
  20%|█▉ | 560/2838 [21:13<1:20:39, 2.12s/it]
615
 
 
616
  20%|█▉ | 560/2838 [21:14<1:20:39, 2.12s/it]
617
  20%|█▉ | 561/2838 [21:16<1:20:30, 2.12s/it]
618
  20%|█▉ | 562/2838 [21:18<1:20:42, 2.13s/it]
619
  20%|█▉ | 563/2838 [21:20<1:20:14, 2.12s/it]
620
  20%|█▉ | 564/2838 [21:22<1:19:58, 2.11s/it]
621
  20%|█▉ | 565/2838 [21:24<1:20:08, 2.12s/it]
622
  20%|█▉ | 566/2838 [21:26<1:20:11, 2.12s/it]
623
  20%|█▉ | 567/2838 [21:28<1:19:52, 2.11s/it]
624
  20%|██ | 568/2838 [21:30<1:20:20, 2.12s/it]
625
  20%|██ | 569/2838 [21:33<1:20:10, 2.12s/it]
626
  20%|██ | 570/2838 [21:35<1:20:27, 2.13s/it]
627
  20%|██ | 571/2838 [21:37<1:19:58, 2.12s/it]
628
  20%|██ | 572/2838 [21:39<1:19:40, 2.11s/it]
629
  20%|██ | 573/2838 [21:41<1:19:20, 2.10s/it]
630
  20%|██ | 574/2838 [21:43<1:19:05, 2.10s/it]
631
  20%|██ | 575/2838 [21:45<1:18:58, 2.09s/it]
632
  20%|██ | 576/2838 [21:47<1:19:05, 2.10s/it]
633
  20%|██ | 577/2838 [21:49<1:18:52, 2.09s/it]
634
  20%|██ | 578/2838 [21:51<1:19:19, 2.11s/it]
635
  20%|██ | 579/2838 [21:54<1:19:32, 2.11s/it]
636
  20%|██ | 580/2838 [21:56<1:19:15, 2.11s/it]
637
 
 
638
  20%|██ | 580/2838 [21:56<1:19:15, 2.11s/it]
639
  20%|██ | 581/2838 [21:58<1:19:23, 2.11s/it]
640
  21%|██ | 582/2838 [22:00<1:19:52, 2.12s/it]
641
  21%|██ | 583/2838 [22:02<1:22:26, 2.19s/it]
642
  21%|██ | 584/2838 [22:05<1:23:29, 2.22s/it]
643
  21%|██ | 585/2838 [22:07<1:22:02, 2.18s/it]
644
  21%|██ | 586/2838 [22:09<1:21:01, 2.16s/it]
645
  21%|██ | 587/2838 [22:11<1:20:19, 2.14s/it]
646
  21%|██ | 588/2838 [22:13<1:19:36, 2.12s/it]
647
  21%|██ | 589/2838 [22:15<1:20:31, 2.15s/it]
648
  21%|██ | 590/2838 [22:17<1:20:04, 2.14s/it]
649
  21%|██ | 591/2838 [22:19<1:19:57, 2.13s/it]
650
  21%|██ | 592/2838 [22:22<1:19:54, 2.13s/it]
651
  21%|██ | 593/2838 [22:24<1:19:23, 2.12s/it]
652
  21%|██ | 594/2838 [22:26<1:20:05, 2.14s/it]
653
  21%|██ | 595/2838 [22:28<1:19:31, 2.13s/it]
654
  21%|██ | 596/2838 [22:30<1:19:00, 2.11s/it]
655
  21%|██ | 597/2838 [22:32<1:19:31, 2.13s/it]
656
  21%|██ | 598/2838 [22:34<1:18:55, 2.11s/it]
657
  21%|██ | 599/2838 [22:36<1:18:49, 2.11s/it]
658
  21%|██ | 600/2838 [22:38<1:18:50, 2.11s/it]
659
 
 
660
  21%|██ | 600/2838 [22:39<1:18:50, 2.11s/it]
661
  21%|██ | 601/2838 [22:41<1:20:22, 2.16s/it]
662
  21%|██ | 602/2838 [22:43<1:19:24, 2.13s/it]
663
  21%|██ | 603/2838 [22:45<1:19:08, 2.12s/it]
664
  21%|██▏ | 604/2838 [22:47<1:19:16, 2.13s/it]
665
  21%|██▏ | 605/2838 [22:49<1:18:43, 2.12s/it]
666
  21%|██▏ | 606/2838 [22:51<1:18:36, 2.11s/it]
667
  21%|██▏ | 607/2838 [22:53<1:18:40, 2.12s/it]
668
  21%|██▏ | 608/2838 [22:55<1:18:41, 2.12s/it]
669
  21%|██▏ | 609/2838 [22:58<1:19:14, 2.13s/it]
670
  21%|██▏ | 610/2838 [23:00<1:19:02, 2.13s/it]
671
  22%|██▏ | 611/2838 [23:02<1:18:40, 2.12s/it]
672
  22%|██▏ | 612/2838 [23:04<1:19:19, 2.14s/it]
673
  22%|██▏ | 613/2838 [23:06<1:18:21, 2.11s/it]
674
  22%|██▏ | 614/2838 [23:08<1:18:25, 2.12s/it]
675
  22%|██▏ | 615/2838 [23:10<1:19:04, 2.13s/it]
676
  22%|██▏ | 616/2838 [23:13<1:19:10, 2.14s/it]
677
  22%|██▏ | 617/2838 [23:15<1:19:29, 2.15s/it]
678
  22%|██▏ | 618/2838 [23:17<1:19:06, 2.14s/it]
679
  22%|██▏ | 619/2838 [23:19<1:19:41, 2.15s/it]
680
  22%|██▏ | 620/2838 [23:21<1:19:35, 2.15s/it]
681
 
 
682
  22%|██▏ | 620/2838 [23:21<1:19:35, 2.15s/it]
683
  22%|██▏ | 621/2838 [23:23<1:19:26, 2.15s/it]
684
  22%|██▏ | 622/2838 [23:25<1:19:14, 2.15s/it]
685
  22%|██▏ | 623/2838 [23:28<1:18:39, 2.13s/it]
686
  22%|██▏ | 624/2838 [23:30<1:18:22, 2.12s/it]
687
  22%|██▏ | 625/2838 [23:32<1:18:23, 2.13s/it]
688
  22%|██▏ | 626/2838 [23:34<1:19:02, 2.14s/it]
689
  22%|██▏ | 627/2838 [23:36<1:18:40, 2.14s/it]
690
  22%|██▏ | 628/2838 [23:38<1:18:32, 2.13s/it]
691
  22%|██▏ | 629/2838 [23:41<1:21:33, 2.22s/it]
692
  22%|██▏ | 630/2838 [23:43<1:20:14, 2.18s/it]
693
  22%|██▏ | 631/2838 [23:45<1:20:35, 2.19s/it]
694
  22%|██▏ | 632/2838 [23:47<1:19:52, 2.17s/it]
695
  22%|██▏ | 633/2838 [23:49<1:19:03, 2.15s/it]
696
  22%|██▏ | 634/2838 [23:51<1:19:36, 2.17s/it]
697
  22%|██▏ | 635/2838 [23:54<1:19:57, 2.18s/it]
698
  22%|██▏ | 636/2838 [23:56<1:18:53, 2.15s/it]
699
  22%|██▏ | 637/2838 [23:58<1:19:06, 2.16s/it]
700
  22%|██▏ | 638/2838 [24:00<1:18:02, 2.13s/it]
701
  23%|██▎ | 639/2838 [24:02<1:18:39, 2.15s/it]
702
  23%|██▎ | 640/2838 [24:04<1:18:28, 2.14s/it]
703
 
 
704
  23%|██▎ | 640/2838 [24:04<1:18:28, 2.14s/it]
705
  23%|██▎ | 641/2838 [24:06<1:18:21, 2.14s/it]
706
  23%|██▎ | 642/2838 [24:08<1:17:42, 2.12s/it]
707
  23%|██▎ | 643/2838 [24:10<1:17:13, 2.11s/it]
708
  23%|██▎ | 644/2838 [24:13<1:17:42, 2.13s/it]
709
  23%|██▎ | 645/2838 [24:15<1:17:40, 2.13s/it]
710
  23%|██▎ | 646/2838 [24:17<1:17:37, 2.12s/it]
711
  23%|██▎ | 647/2838 [24:19<1:18:19, 2.14s/it]
712
  23%|██▎ | 648/2838 [24:21<1:17:48, 2.13s/it]
713
  23%|██▎ | 649/2838 [24:23<1:18:27, 2.15s/it]
714
  23%|██▎ | 650/2838 [24:26<1:19:47, 2.19s/it]
715
  23%|██▎ | 651/2838 [24:28<1:19:10, 2.17s/it]
716
  23%|██▎ | 652/2838 [24:30<1:19:40, 2.19s/it]
717
  23%|██▎ | 653/2838 [24:32<1:20:04, 2.20s/it]
718
  23%|██▎ | 654/2838 [24:34<1:20:29, 2.21s/it]
719
  23%|██▎ | 655/2838 [24:37<1:20:05, 2.20s/it]
720
  23%|██▎ | 656/2838 [24:39<1:18:35, 2.16s/it]
721
  23%|██▎ | 657/2838 [24:41<1:17:54, 2.14s/it]
722
  23%|██▎ | 658/2838 [24:43<1:17:39, 2.14s/it]
723
  23%|██▎ | 659/2838 [24:45<1:17:11, 2.13s/it]
724
  23%|██▎ | 660/2838 [24:47<1:17:05, 2.12s/it]
725
 
 
726
  23%|██▎ | 660/2838 [24:47<1:17:05, 2.12s/it]
727
  23%|██▎ | 661/2838 [24:49<1:17:19, 2.13s/it]
728
  23%|█���▎ | 662/2838 [24:51<1:16:57, 2.12s/it]
729
  23%|██▎ | 663/2838 [24:54<1:16:55, 2.12s/it]
730
  23%|██▎ | 664/2838 [24:56<1:16:42, 2.12s/it]
731
  23%|██▎ | 665/2838 [24:58<1:17:01, 2.13s/it]
732
  23%|██▎ | 666/2838 [25:00<1:16:33, 2.11s/it]
733
  24%|██▎ | 667/2838 [25:02<1:16:20, 2.11s/it]
734
  24%|██▎ | 668/2838 [25:04<1:15:45, 2.09s/it]
735
  24%|██▎ | 669/2838 [25:06<1:16:42, 2.12s/it]
736
  24%|██▎ | 670/2838 [25:08<1:16:54, 2.13s/it]
737
  24%|██▎ | 671/2838 [25:11<1:17:07, 2.14s/it]
738
  24%|██▎ | 672/2838 [25:13<1:17:04, 2.13s/it]
739
  24%|██▎ | 673/2838 [25:15<1:16:29, 2.12s/it]
740
  24%|██▎ | 674/2838 [25:17<1:16:18, 2.12s/it]
741
  24%|██▍ | 675/2838 [25:19<1:16:15, 2.12s/it]
742
  24%|██▍ | 676/2838 [25:21<1:16:11, 2.11s/it]
743
  24%|██▍ | 677/2838 [25:23<1:16:32, 2.13s/it]
744
  24%|██▍ | 678/2838 [25:25<1:16:20, 2.12s/it]
745
  24%|██▍ | 679/2838 [25:27<1:16:09, 2.12s/it]
746
  24%|██▍ | 680/2838 [25:30<1:16:23, 2.12s/it]
747
 
 
748
  24%|██▍ | 680/2838 [25:30<1:16:23, 2.12s/it]
749
  24%|██▍ | 681/2838 [25:32<1:16:08, 2.12s/it]
750
  24%|██▍ | 682/2838 [25:34<1:16:10, 2.12s/it]
751
  24%|██▍ | 683/2838 [25:36<1:16:12, 2.12s/it]
752
  24%|██▍ | 684/2838 [25:38<1:16:07, 2.12s/it]
753
  24%|██▍ | 685/2838 [25:40<1:15:26, 2.10s/it]
754
  24%|██▍ | 686/2838 [25:42<1:15:00, 2.09s/it]
755
  24%|██▍ | 687/2838 [25:44<1:14:45, 2.09s/it]
756
  24%|██▍ | 688/2838 [25:46<1:14:37, 2.08s/it]
757
  24%|██▍ | 689/2838 [25:48<1:15:10, 2.10s/it]
758
  24%|██▍ | 690/2838 [25:51<1:15:25, 2.11s/it]
759
  24%|██▍ | 691/2838 [25:53<1:14:56, 2.09s/it]
760
  24%|██▍ | 692/2838 [25:55<1:15:11, 2.10s/it]
761
  24%|██▍ | 693/2838 [25:57<1:15:12, 2.10s/it]
762
  24%|██▍ | 694/2838 [25:59<1:14:41, 2.09s/it]
763
  24%|██▍ | 695/2838 [26:01<1:14:44, 2.09s/it]
764
  25%|██▍ | 696/2838 [26:03<1:14:33, 2.09s/it]
765
  25%|██▍ | 697/2838 [26:05<1:14:53, 2.10s/it]
766
  25%|██▍ | 698/2838 [26:07<1:15:09, 2.11s/it]
767
  25%|██▍ | 699/2838 [26:09<1:15:10, 2.11s/it]
768
  25%|██▍ | 700/2838 [26:12<1:16:01, 2.13s/it]
769
 
 
770
  25%|██▍ | 700/2838 [26:12<1:16:01, 2.13s/it]
771
  25%|██▍ | 701/2838 [26:14<1:15:18, 2.11s/it]
772
  25%|██▍ | 702/2838 [26:16<1:15:19, 2.12s/it]
773
  25%|██▍ | 703/2838 [26:18<1:17:58, 2.19s/it]
774
  25%|██▍ | 704/2838 [26:21<1:19:26, 2.23s/it]
775
  25%|██▍ | 705/2838 [26:23<1:17:49, 2.19s/it]
776
  25%|██▍ | 706/2838 [26:25<1:17:08, 2.17s/it]
777
  25%|██▍ | 707/2838 [26:27<1:17:47, 2.19s/it]
778
  25%|██▍ | 708/2838 [26:29<1:17:14, 2.18s/it]
779
  25%|██▍ | 709/2838 [26:31<1:16:44, 2.16s/it]
780
  25%|██▌ | 710/2838 [26:33<1:16:05, 2.15s/it]
781
  25%|██▌ | 711/2838 [26:35<1:15:35, 2.13s/it]
782
  25%|██▌ | 712/2838 [26:38<1:15:25, 2.13s/it]
783
  25%|██▌ | 713/2838 [26:40<1:15:05, 2.12s/it]
784
  25%|██▌ | 714/2838 [26:42<1:15:00, 2.12s/it]
785
  25%|██▌ | 715/2838 [26:44<1:15:18, 2.13s/it]
786
  25%|██▌ | 716/2838 [26:46<1:14:44, 2.11s/it]
787
  25%|██▌ | 717/2838 [26:48<1:14:49, 2.12s/it]
788
  25%|██▌ | 718/2838 [26:50<1:14:37, 2.11s/it]
789
  25%|██▌ | 719/2838 [26:52<1:14:44, 2.12s/it]
790
  25%|██▌ | 720/2838 [26:55<1:15:01, 2.13s/it]
791
 
 
792
  25%|██▌ | 720/2838 [26:55<1:15:01, 2.13s/it]
793
  25%|██▌ | 721/2838 [26:57<1:15:32, 2.14s/it]
794
  25%|██▌ | 722/2838 [26:59<1:14:52, 2.12s/it]
795
  25%|██▌ | 723/2838 [27:01<1:15:05, 2.13s/it]
796
  26%|██▌ | 724/2838 [27:03<1:14:38, 2.12s/it]
797
  26%|██▌ | 725/2838 [27:05<1:14:38, 2.12s/it]
798
  26%|██▌ | 726/2838 [27:07<1:14:41, 2.12s/it]
799
  26%|██▌ | 727/2838 [27:09<1:14:14, 2.11s/it]
800
  26%|██▌ | 728/2838 [27:12<1:14:55, 2.13s/it]
801
  26%|██▌ | 729/2838 [27:14<1:15:17, 2.14s/it]
802
  26%|██▌ | 730/2838 [27:16<1:14:56, 2.13s/it]
803
  26%|██▌ | 731/2838 [27:18<1:15:19, 2.14s/it]
804
  26%|██▌ | 732/2838 [27:20<1:14:35, 2.12s/it]
805
  26%|██▌ | 733/2838 [27:22<1:14:11, 2.11s/it]
806
  26%|██▌ | 734/2838 [27:24<1:14:01, 2.11s/it]
807
  26%|██▌ | 735/2838 [27:26<1:14:20, 2.12s/it]
808
  26%|██▌ | 736/2838 [27:29<1:14:51, 2.14s/it]
809
  26%|██▌ | 737/2838 [27:31<1:14:32, 2.13s/it]
810
  26%|██▌ | 738/2838 [27:33<1:14:18, 2.12s/it]
811
  26%|██▌ | 739/2838 [27:35<1:14:24, 2.13s/it]
812
  26%|██▌ | 740/2838 [27:37<1:14:48, 2.14s/it]
813
 
 
814
  26%|██▌ | 740/2838 [27:37<1:14:48, 2.14s/it]
815
  26%|██▌ | 741/2838 [27:39<1:14:06, 2.12s/it]
816
  26%|██▌ | 742/2838 [27:41<1:14:11, 2.12s/it]
817
  26%|██▌ | 743/2838 [27:44<1:14:38, 2.14s/it]
818
  26%|██▌ | 744/2838 [27:46<1:14:31, 2.14s/it]
819
  26%|██▋ | 745/2838 [27:48<1:14:14, 2.13s/it]
820
  26%|██▋ | 746/2838 [27:50<1:14:06, 2.13s/it]
821
  26%|██▋ | 747/2838 [27:52<1:14:06, 2.13s/it]
822
  26%|██▋ | 748/2838 [27:54<1:14:31, 2.14s/it]
823
  26%|██▋ | 749/2838 [27:56<1:14:07, 2.13s/it]
824
  26%|██▋ | 750/2838 [27:58<1:13:41, 2.12s/it]
825
  26%|██▋ | 751/2838 [28:00<1:13:43, 2.12s/it]
826
  26%|██▋ | 752/2838 [28:03<1:13:18, 2.11s/it]
827
  27%|██▋ | 753/2838 [28:05<1:13:14, 2.11s/it]
828
  27%|██▋ | 754/2838 [28:07<1:13:33, 2.12s/it]
829
  27%|██▋ | 755/2838 [28:09<1:13:34, 2.12s/it]
830
  27%|██▋ | 756/2838 [28:11<1:13:22, 2.11s/it]
831
  27%|██▋ | 757/2838 [28:13<1:13:20, 2.11s/it]
832
  27%|██▋ | 758/2838 [28:15<1:13:21, 2.12s/it]
833
  27%|██▋ | 759/2838 [28:17<1:13:59, 2.14s/it]
834
  27%|██▋ | 760/2838 [28:20<1:14:31, 2.15s/it]
835
 
 
836
  27%|██▋ | 760/2838 [28:20<1:14:31, 2.15s/it]
837
  27%|██▋ | 761/2838 [28:22<1:13:31, 2.12s/it]
838
  27%|██▋ | 762/2838 [28:24<1:13:07, 2.11s/it]
839
  27%|██▋ | 763/2838 [28:26<1:12:24, 2.09s/it]
840
  27%|██▋ | 764/2838 [28:28<1:11:43, 2.07s/it]
841
  27%|██▋ | 765/2838 [28:30<1:11:43, 2.08s/it]
842
  27%|██▋ | 766/2838 [28:32<1:12:46, 2.11s/it]
843
  27%|██▋ | 767/2838 [28:34<1:13:03, 2.12s/it]
844
  27%|██▋ | 768/2838 [28:36<1:12:58, 2.12s/it]
845
  27%|██▋ | 769/2838 [28:39<1:13:27, 2.13s/it]
846
  27%|██▋ | 770/2838 [28:41<1:12:56, 2.12s/it]
847
  27%|██▋ | 771/2838 [28:43<1:13:36, 2.14s/it]
848
  27%|██▋ | 772/2838 [28:45<1:13:42, 2.14s/it]
849
  27%|██▋ | 773/2838 [28:47<1:13:36, 2.14s/it]
850
  27%|██▋ | 774/2838 [28:49<1:13:06, 2.13s/it]
851
  27%|██▋ | 775/2838 [28:51<1:13:45, 2.14s/it]
852
  27%|██▋ | 776/2838 [28:53<1:13:16, 2.13s/it]
853
  27%|██▋ | 777/2838 [28:56<1:12:57, 2.12s/it]
854
  27%|██▋ | 778/2838 [28:58<1:12:43, 2.12s/it]
855
  27%|██▋ | 779/2838 [29:00<1:12:33, 2.11s/it]
856
  27%|██▋ | 780/2838 [29:02<1:13:00, 2.13s/it]
857
 
 
858
  27%|██▋ | 780/2838 [29:02<1:13:00, 2.13s/it]
859
  28%|██▊ | 781/2838 [29:04<1:12:32, 2.12s/it]
860
  28%|██▊ | 782/2838 [29:06<1:12:39, 2.12s/it]
861
  28%|██▊ | 783/2838 [29:08<1:12:48, 2.13s/it]
862
  28%|██▊ | 784/2838 [29:10<1:12:18, 2.11s/it]
863
  28%|██▊ | 785/2838 [29:13<1:12:11, 2.11s/it]
864
  28%|██▊ | 786/2838 [29:15<1:12:15, 2.11s/it]
865
  28%|██▊ | 787/2838 [29:17<1:12:01, 2.11s/it]
866
  28%|██▊ | 788/2838 [29:19<1:12:25, 2.12s/it]
867
  28%|██▊ | 789/2838 [29:21<1:12:36, 2.13s/it]
868
  28%|██▊ | 790/2838 [29:23<1:11:57, 2.11s/it]
869
  28%|██▊ | 791/2838 [29:25<1:11:57, 2.11s/it]
870
  28%|██▊ | 792/2838 [29:27<1:11:57, 2.11s/it]
871
  28%|██▊ | 793/2838 [29:29<1:11:40, 2.10s/it]
872
  28%|██▊ | 794/2838 [29:32<1:11:46, 2.11s/it]
873
  28%|██▊ | 795/2838 [29:34<1:11:33, 2.10s/it]
874
  28%|██▊ | 796/2838 [29:36<1:11:17, 2.09s/it]
875
  28%|██▊ | 797/2838 [29:38<1:11:14, 2.09s/it]
876
  28%|██▊ | 798/2838 [29:40<1:11:54, 2.11s/it]
877
  28%|██▊ | 799/2838 [29:42<1:11:50, 2.11s/it]
878
  28%|██▊ | 800/2838 [29:44<1:11:28, 2.10s/it]
879
 
 
880
  28%|██▊ | 800/2838 [29:44<1:11:28, 2.10s/it]
881
  28%|██▊ | 801/2838 [29:46<1:11:10, 2.10s/it]
882
  28%|██▊ | 802/2838 [29:48<1:11:26, 2.11s/it]
883
  28%|██▊ | 803/2838 [29:50<1:11:36, 2.11s/it]
884
  28%|██▊ | 804/2838 [29:53<1:11:33, 2.11s/it]
885
  28%|██▊ | 805/2838 [29:55<1:11:18, 2.10s/it]
886
  28%|██▊ | 806/2838 [29:57<1:11:34, 2.11s/it]
887
  28%|██▊ | 807/2838 [29:59<1:11:13, 2.10s/it]
888
  28%|██▊ | 808/2838 [30:01<1:11:47, 2.12s/it]
889
  29%|██▊ | 809/2838 [30:03<1:11:39, 2.12s/it]
890
  29%|██▊ | 810/2838 [30:05<1:12:18, 2.14s/it]
891
  29%|██▊ | 811/2838 [30:07<1:12:05, 2.13s/it]
892
  29%|██▊ | 812/2838 [30:10<1:11:48, 2.13s/it]
893
  29%|██▊ | 813/2838 [30:12<1:11:21, 2.11s/it]
894
  29%|██▊ | 814/2838 [30:14<1:11:51, 2.13s/it]
895
  29%|██▊ | 815/2838 [30:16<1:11:39, 2.13s/it]
896
  29%|██▉ | 816/2838 [30:18<1:12:17, 2.15s/it]
897
  29%|██▉ | 817/2838 [30:20<1:12:39, 2.16s/it]
898
  29%|██▉ | 818/2838 [30:22<1:12:43, 2.16s/it]
899
  29%|██▉ | 819/2838 [30:25<1:14:14, 2.21s/it]
900
  29%|██▉ | 820/2838 [30:27<1:15:54, 2.26s/it]
901
 
 
902
  29%|██▉ | 820/2838 [30:27<1:15:54, 2.26s/it]
903
  29%|██▉ | 821/2838 [30:29<1:14:44, 2.22s/it]
904
  29%|██▉ | 822/2838 [30:31<1:13:01, 2.17s/it]
905
  29%|██▉ | 823/2838 [30:33<1:12:11, 2.15s/it]
906
  29%|██▉ | 824/2838 [30:36<1:11:29, 2.13s/it]
907
  29%|██▉ | 825/2838 [30:38<1:11:19, 2.13s/it]
908
  29%|██▉ | 826/2838 [30:40<1:10:57, 2.12s/it]
909
  29%|██▉ | 827/2838 [30:42<1:10:53, 2.11s/it]
910
  29%|██▉ | 828/2838 [30:44<1:11:10, 2.12s/it]
911
  29%|██▉ | 829/2838 [30:46<1:10:45, 2.11s/it]
912
  29%|██▉ | 830/2838 [30:48<1:11:39, 2.14s/it]
913
  29%|██▉ | 831/2838 [30:50<1:11:17, 2.13s/it]
914
  29%|██▉ | 832/2838 [30:53<1:11:08, 2.13s/it]
915
  29%|██▉ | 833/2838 [30:55<1:11:06, 2.13s/it]
916
  29%|██▉ | 834/2838 [30:57<1:11:20, 2.14s/it]
917
  29%|██▉ | 835/2838 [30:59<1:11:01, 2.13s/it]
918
  29%|██▉ | 836/2838 [31:01<1:10:31, 2.11s/it]
919
  29%|██▉ | 837/2838 [31:03<1:10:17, 2.11s/it]
920
  30%|██▉ | 838/2838 [31:05<1:10:43, 2.12s/it]
921
  30%|██▉ | 839/2838 [31:07<1:09:53, 2.10s/it]
922
  30%|██▉ | 840/2838 [31:09<1:10:17, 2.11s/it]
923
 
 
924
  30%|██▉ | 840/2838 [31:10<1:10:17, 2.11s/it]
925
  30%|██▉ | 841/2838 [31:11<1:09:30, 2.09s/it]
926
  30%|██▉ | 842/2838 [31:14<1:09:52, 2.10s/it]
927
  30%|██▉ | 843/2838 [31:16<1:10:17, 2.11s/it]
928
  30%|██▉ | 844/2838 [31:18<1:09:53, 2.10s/it]
929
  30%|██▉ | 845/2838 [31:20<1:09:59, 2.11s/it]
930
  30%|██▉ | 846/2838 [31:22<1:09:58, 2.11s/it]
931
  30%|██▉ | 847/2838 [31:24<1:09:43, 2.10s/it]
932
  30%|██▉ | 848/2838 [31:26<1:10:01, 2.11s/it]
933
  30%|██▉ | 849/2838 [31:28<1:10:18, 2.12s/it]
934
  30%|██▉ | 850/2838 [31:31<1:10:07, 2.12s/it]
935
  30%|██▉ | 851/2838 [31:33<1:09:36, 2.10s/it]
936
  30%|███ | 852/2838 [31:35<1:10:35, 2.13s/it]
937
  30%|███ | 853/2838 [31:37<1:10:01, 2.12s/it]
938
  30%|███ | 854/2838 [31:39<1:09:50, 2.11s/it]
939
  30%|███ | 855/2838 [31:41<1:09:54, 2.12s/it]
940
  30%|███ | 856/2838 [31:43<1:09:47, 2.11s/it]
941
  30%|███ | 857/2838 [31:45<1:09:57, 2.12s/it]
942
  30%|███ | 858/2838 [31:47<1:09:14, 2.10s/it]
943
  30%|███ | 859/2838 [31:50<1:09:27, 2.11s/it]
944
  30%|███ | 860/2838 [31:52<1:09:53, 2.12s/it]
945
 
 
946
  30%|███ | 860/2838 [31:52<1:09:53, 2.12s/it]
947
  30%|███ | 861/2838 [31:54<1:09:29, 2.11s/it]
948
  30%|███ | 862/2838 [31:56<1:09:34, 2.11s/it]
949
  30%|███ | 863/2838 [31:58<1:09:28, 2.11s/it]
950
  30%|███ | 864/2838 [32:00<1:09:32, 2.11s/it]
951
  30%|███ | 865/2838 [32:02<1:09:38, 2.12s/it]
952
  31%|███ | 866/2838 [32:04<1:09:33, 2.12s/it]
953
  31%|███ | 867/2838 [32:06<1:09:01, 2.10s/it]
954
  31%|███ | 868/2838 [32:09<1:08:59, 2.10s/it]
955
  31%|███ | 869/2838 [32:11<1:08:43, 2.09s/it]
956
  31%|███ | 870/2838 [32:13<1:08:57, 2.10s/it]
957
  31%|███ | 871/2838 [32:15<1:09:18, 2.11s/it]
958
  31%|███ | 872/2838 [32:17<1:09:44, 2.13s/it]
959
  31%|███ | 873/2838 [32:19<1:09:38, 2.13s/it]
960
  31%|███ | 874/2838 [32:21<1:09:33, 2.13s/it]
961
  31%|███ | 875/2838 [32:23<1:09:22, 2.12s/it]
962
  31%|███ | 876/2838 [32:26<1:10:12, 2.15s/it]
963
  31%|███ | 877/2838 [32:28<1:09:57, 2.14s/it]
964
  31%|███ | 878/2838 [32:30<1:09:45, 2.14s/it]
965
  31%|███ | 879/2838 [32:32<1:09:35, 2.13s/it]
966
  31%|███ | 880/2838 [32:34<1:09:45, 2.14s/it]
967
 
 
968
  31%|███ | 880/2838 [32:34<1:09:45, 2.14s/it]
969
  31%|███ | 881/2838 [32:36<1:09:03, 2.12s/it]
970
  31%|███ | 882/2838 [32:38<1:08:54, 2.11s/it]
971
  31%|███ | 883/2838 [32:40<1:09:08, 2.12s/it]
972
  31%|███ | 884/2838 [32:43<1:09:24, 2.13s/it]
973
  31%|███ | 885/2838 [32:45<1:09:27, 2.13s/it]
974
  31%|███ | 886/2838 [32:47<1:08:59, 2.12s/it]
975
  31%|███▏ | 887/2838 [32:49<1:09:24, 2.13s/it]
976
  31%|███▏ | 888/2838 [32:51<1:09:58, 2.15s/it]
977
  31%|███▏ | 889/2838 [32:53<1:09:35, 2.14s/it]
978
  31%|███▏ | 890/2838 [32:55<1:09:37, 2.14s/it]
979
  31%|███▏ | 891/2838 [32:58<1:09:00, 2.13s/it]
980
  31%|███▏ | 892/2838 [33:00<1:08:41, 2.12s/it]
981
  31%|███▏ | 893/2838 [33:02<1:08:37, 2.12s/it]
982
  32%|███▏ | 894/2838 [33:04<1:08:17, 2.11s/it]
983
  32%|███▏ | 895/2838 [33:06<1:08:01, 2.10s/it]
984
  32%|███▏ | 896/2838 [33:08<1:08:05, 2.10s/it]
985
  32%|███▏ | 897/2838 [33:10<1:07:37, 2.09s/it]
986
  32%|███▏ | 898/2838 [33:12<1:07:52, 2.10s/it]
987
  32%|███▏ | 899/2838 [33:14<1:08:14, 2.11s/it]
988
  32%|███▏ | 900/2838 [33:16<1:07:51, 2.10s/it]
989
 
 
990
  32%|███▏ | 900/2838 [33:16<1:07:51, 2.10s/it]
991
  32%|███▏ | 901/2838 [33:18<1:07:52, 2.10s/it]
992
  32%|███▏ | 902/2838 [33:21<1:08:09, 2.11s/it]
993
  32%|███▏ | 903/2838 [33:23<1:08:10, 2.11s/it]
994
  32%|███▏ | 904/2838 [33:25<1:08:35, 2.13s/it]
995
  32%|███▏ | 905/2838 [33:27<1:08:00, 2.11s/it]
996
  32%|███▏ | 906/2838 [33:29<1:07:44, 2.10s/it]
997
  32%|███▏ | 907/2838 [33:31<1:08:29, 2.13s/it]
998
  32%|███▏ | 908/2838 [33:33<1:08:56, 2.14s/it]
999
  32%|███▏ | 909/2838 [33:36<1:08:30, 2.13s/it]
1000
  32%|███▏ | 910/2838 [33:38<1:08:29, 2.13s/it]
1001
  32%|███▏ | 911/2838 [33:40<1:08:03, 2.12s/it]
1002
  32%|███▏ | 912/2838 [33:42<1:07:52, 2.11s/it]
1003
  32%|███▏ | 913/2838 [33:44<1:07:33, 2.11s/it]
1004
  32%|███▏ | 914/2838 [33:46<1:07:20, 2.10s/it]
1005
  32%|███▏ | 915/2838 [33:48<1:07:36, 2.11s/it]
1006
  32%|███▏ | 916/2838 [33:50<1:07:19, 2.10s/it]
1007
  32%|███▏ | 917/2838 [33:52<1:07:08, 2.10s/it]
1008
  32%|███▏ | 918/2838 [33:54<1:06:59, 2.09s/it]
1009
  32%|███▏ | 919/2838 [33:57<1:07:24, 2.11s/it]
1010
  32%|███▏ | 920/2838 [33:59<1:07:24, 2.11s/it]
1011
 
 
1012
  32%|███▏ | 920/2838 [33:59<1:07:24, 2.11s/it]
1013
  32%|███▏ | 921/2838 [34:01<1:07:38, 2.12s/it]
1014
  32%|███▏ | 922/2838 [34:03<1:08:09, 2.13s/it]
1015
  33%|███▎ | 923/2838 [34:05<1:08:38, 2.15s/it]
1016
  33%|███▎ | 924/2838 [34:07<1:08:28, 2.15s/it]
1017
  33%|███▎ | 925/2838 [34:09<1:08:03, 2.13s/it]
1018
  33%|███▎ | 926/2838 [34:11<1:07:27, 2.12s/it]
1019
  33%|███▎ | 927/2838 [34:14<1:07:04, 2.11s/it]
1020
  33%|███▎ | 928/2838 [34:16<1:07:30, 2.12s/it]
1021
  33%|███▎ | 929/2838 [34:18<1:07:32, 2.12s/it]
1022
  33%|███▎ | 930/2838 [34:20<1:07:34, 2.13s/it]
1023
  33%|███▎ | 931/2838 [34:22<1:06:54, 2.11s/it]
1024
  33%|███▎ | 932/2838 [34:24<1:06:55, 2.11s/it]
1025
  33%|███▎ | 933/2838 [34:26<1:06:36, 2.10s/it]
1026
  33%|███▎ | 934/2838 [34:28<1:06:49, 2.11s/it]
1027
  33%|███▎ | 935/2838 [34:30<1:06:45, 2.10s/it]
1028
  33%|███▎ | 936/2838 [34:33<1:09:26, 2.19s/it]
1029
  33%|███▎ | 937/2838 [34:35<1:08:36, 2.17s/it]
1030
  33%|███▎ | 938/2838 [34:37<1:08:01, 2.15s/it]
1031
  33%|███▎ | 939/2838 [34:39<1:07:19, 2.13s/it]
1032
  33%|███▎ | 940/2838 [34:41<1:07:12, 2.12s/it]
1033
 
 
1034
  33%|███▎ | 940/2838 [34:41<1:07:12, 2.12s/it]
1035
  33%|███▎ | 941/2838 [34:43<1:06:44, 2.11s/it]
1036
  33%|███▎ | 942/2838 [34:45<1:06:39, 2.11s/it]
1037
  33%|███▎ | 943/2838 [34:48<1:07:01, 2.12s/it]
1038
  33%|███▎ | 944/2838 [34:50<1:06:45, 2.11s/it]
1039
  33%|███▎ | 945/2838 [34:52<1:06:45, 2.12s/it]
1040
  33%|███▎ | 946/2838 [34:54<1:03:47, 2.02s/it]
1041
  33%|███▎ | 947/2838 [34:56<1:06:07, 2.10s/it]
1042
  33%|███▎ | 948/2838 [34:58<1:06:03, 2.10s/it]
1043
  33%|███▎ | 949/2838 [35:00<1:05:58, 2.10s/it]
1044
  33%|███▎ | 950/2838 [35:02<1:06:14, 2.11s/it]
1045
  34%|███▎ | 951/2838 [35:04<1:06:05, 2.10s/it]
1046
  34%|███▎ | 952/2838 [35:06<1:05:53, 2.10s/it]
1047
  34%|███▎ | 953/2838 [35:09<1:06:15, 2.11s/it]
1048
  34%|███▎ | 954/2838 [35:11<1:06:29, 2.12s/it]
1049
  34%|███▎ | 955/2838 [35:13<1:06:40, 2.12s/it]
1050
  34%|███▎ | 956/2838 [35:15<1:06:47, 2.13s/it]
1051
  34%|███▎ | 957/2838 [35:17<1:06:22, 2.12s/it]
1052
  34%|███▍ | 958/2838 [35:19<1:06:43, 2.13s/it]
1053
  34%|███▍ | 959/2838 [35:21<1:07:06, 2.14s/it]
1054
  34%|███▍ | 960/2838 [35:23<1:06:37, 2.13s/it]
1055
 
 
1056
  34%|███▍ | 960/2838 [35:24<1:06:37, 2.13s/it]
1057
  34%|███▍ | 961/2838 [35:26<1:05:50, 2.10s/it]
1058
  34%|███▍ | 962/2838 [35:28<1:05:53, 2.11s/it]
1059
  34%|███▍ | 963/2838 [35:30<1:06:08, 2.12s/it]
1060
  34%|███▍ | 964/2838 [35:32<1:05:33, 2.10s/it]
1061
  34%|███▍ | 965/2838 [35:34<1:05:12, 2.09s/it]
1062
  34%|███▍ | 966/2838 [35:36<1:05:43, 2.11s/it]
1063
  34%|███▍ | 967/2838 [35:38<1:06:08, 2.12s/it]
1064
  34%|███▍ | 968/2838 [35:40<1:06:01, 2.12s/it]
1065
  34%|███▍ | 969/2838 [35:42<1:06:07, 2.12s/it]
1066
  34%|███▍ | 970/2838 [35:45<1:06:08, 2.12s/it]
1067
  34%|███▍ | 971/2838 [35:47<1:06:06, 2.12s/it]
1068
  34%|███▍ | 972/2838 [35:49<1:05:30, 2.11s/it]
1069
  34%|███▍ | 973/2838 [35:51<1:05:44, 2.11s/it]
1070
  34%|███▍ | 974/2838 [35:53<1:05:51, 2.12s/it]
1071
  34%|███▍ | 975/2838 [35:55<1:06:55, 2.16s/it]
1072
  34%|███▍ | 976/2838 [35:57<1:06:01, 2.13s/it]
1073
  34%|███▍ | 977/2838 [35:59<1:06:08, 2.13s/it]
1074
  34%|███▍ | 978/2838 [36:02<1:06:44, 2.15s/it]
1075
  34%|███▍ | 979/2838 [36:04<1:05:56, 2.13s/it]
1076
  35%|███▍ | 980/2838 [36:06<1:06:17, 2.14s/it]
1077
 
 
1078
  35%|███▍ | 980/2838 [36:06<1:06:17, 2.14s/it]
1079
  35%|███▍ | 981/2838 [36:08<1:05:59, 2.13s/it]
1080
  35%|███▍ | 982/2838 [36:10<1:06:35, 2.15s/it]
1081
  35%|███▍ | 983/2838 [36:12<1:06:03, 2.14s/it]
1082
  35%|███▍ | 984/2838 [36:14<1:06:20, 2.15s/it]
1083
  35%|███▍ | 985/2838 [36:17<1:06:51, 2.16s/it]
1084
  35%|███▍ | 986/2838 [36:19<1:06:36, 2.16s/it]
1085
  35%|███▍ | 987/2838 [36:21<1:06:03, 2.14s/it]
1086
  35%|███▍ | 988/2838 [36:23<1:05:40, 2.13s/it]
1087
  35%|███▍ | 989/2838 [36:25<1:07:09, 2.18s/it]
1088
  35%|███▍ | 990/2838 [36:27<1:06:32, 2.16s/it]
1089
  35%|███▍ | 991/2838 [36:30<1:06:17, 2.15s/it]
1090
  35%|███▍ | 992/2838 [36:32<1:05:50, 2.14s/it]
1091
  35%|███▍ | 993/2838 [36:34<1:06:30, 2.16s/it]
1092
  35%|███▌ | 994/2838 [36:36<1:07:07, 2.18s/it]
1093
  35%|███▌ | 995/2838 [36:38<1:07:09, 2.19s/it]
1094
  35%|███▌ | 996/2838 [36:41<1:07:45, 2.21s/it]
1095
  35%|███▌ | 997/2838 [36:43<1:07:52, 2.21s/it]
1096
  35%|███▌ | 998/2838 [36:45<1:07:28, 2.20s/it]
1097
  35%|███▌ | 999/2838 [36:47<1:06:56, 2.18s/it]
1098
  35%|███▌ | 1000/2838 [36:49<1:06:19, 2.17s/it]
1099
 
 
1100
  35%|███▌ | 1000/2838 [36:49<1:06:19, 2.17s/it]Saving model checkpoint to save/sft_rats40k_20260608_165938/checkpoint-1000
 
 
 
 
 
 
 
 
1101
  35%|███▌ | 1001/2838 [39:19<23:45:25, 46.56s/it]
1102
  35%|███▌ | 1002/2838 [39:21<16:55:43, 33.19s/it]
1103
  35%|███▌ | 1003/2838 [39:23<12:09:08, 23.84s/it]
1104
  35%|███▌ | 1004/2838 [39:25<8:48:10, 17.28s/it]
1105
  35%|███▌ | 1005/2838 [39:28<6:29:42, 12.76s/it]
1106
  35%|███▌ | 1006/2838 [39:30<4:50:48, 9.52s/it]
1107
  35%|███▌ | 1007/2838 [39:32<3:41:34, 7.26s/it]
1108
  36%|███▌ | 1008/2838 [39:34<2:53:56, 5.70s/it]
1109
  36%|███▌ | 1009/2838 [39:36<2:20:55, 4.62s/it]
1110
  36%|███▌ | 1010/2838 [39:38<1:57:39, 3.86s/it]
1111
  36%|███▌ | 1011/2838 [39:40<1:42:07, 3.35s/it]
1112
  36%|███▌ | 1012/2838 [39:42<1:30:37, 2.98s/it]
1113
  36%|███▌ | 1013/2838 [39:44<1:22:44, 2.72s/it]
1114
  36%|███▌ | 1014/2838 [39:46<1:16:56, 2.53s/it]
1115
  36%|███▌ | 1015/2838 [39:48<1:12:39, 2.39s/it]
1116
  36%|███▌ | 1016/2838 [39:51<1:10:43, 2.33s/it]
1117
  36%|███▌ | 1017/2838 [39:53<1:08:30, 2.26s/it]
1118
  36%|███▌ | 1018/2838 [39:55<1:07:05, 2.21s/it]
1119
  36%|███▌ | 1019/2838 [39:57<1:05:58, 2.18s/it]
1120
  36%|███▌ | 1020/2838 [39:59<1:05:55, 2.18s/it]
1121
 
 
1122
  36%|███▌ | 1020/2838 [39:59<1:05:55, 2.18s/it]
1123
  36%|███▌ | 1021/2838 [40:01<1:05:49, 2.17s/it]
1124
  36%|███▌ | 1022/2838 [40:03<1:05:49, 2.17s/it]
1125
  36%|███▌ | 1023/2838 [40:05<1:05:24, 2.16s/it]
1126
  36%|███▌ | 1024/2838 [40:08<1:06:24, 2.20s/it]
1127
  36%|███▌ | 1025/2838 [40:10<1:05:58, 2.18s/it]
1128
  36%|███▌ | 1026/2838 [40:12<1:05:30, 2.17s/it]
1129
  36%|███▌ | 1027/2838 [40:14<1:06:13, 2.19s/it]
1130
  36%|███▌ | 1028/2838 [40:16<1:06:04, 2.19s/it]
1131
  36%|███▋ | 1029/2838 [40:19<1:05:25, 2.17s/it]
1132
  36%|███▋ | 1030/2838 [40:21<1:04:58, 2.16s/it]
1133
  36%|███▋ | 1031/2838 [40:23<1:04:44, 2.15s/it]
1134
  36%|███▋ | 1032/2838 [40:25<1:04:57, 2.16s/it]
1135
  36%|███▋ | 1033/2838 [40:27<1:04:37, 2.15s/it]
1136
  36%|███▋ | 1034/2838 [40:29<1:04:26, 2.14s/it]
1137
  36%|███▋ | 1035/2838 [40:31<1:03:42, 2.12s/it]
1138
  37%|███▋ | 1036/2838 [40:33<1:03:42, 2.12s/it]
1139
  37%|███▋ | 1037/2838 [40:36<1:03:32, 2.12s/it]
1140
  37%|███▋ | 1038/2838 [40:38<1:03:28, 2.12s/it]
1141
  37%|███▋ | 1039/2838 [40:40<1:03:26, 2.12s/it]
1142
  37%|███▋ | 1040/2838 [40:42<1:02:56, 2.10s/it]
1143
 
 
1144
  37%|███▋ | 1040/2838 [40:42<1:02:56, 2.10s/it]
1145
  37%|███▋ | 1041/2838 [40:44<1:02:58, 2.10s/it]
1146
  37%|███▋ | 1042/2838 [40:46<1:03:17, 2.11s/it]
1147
  37%|███▋ | 1043/2838 [40:48<1:03:30, 2.12s/it]
1148
  37%|███▋ | 1044/2838 [40:50<1:03:07, 2.11s/it]
1149
  37%|███▋ | 1045/2838 [40:52<1:02:54, 2.11s/it]
1150
  37%|███▋ | 1046/2838 [40:55<1:02:49, 2.10s/it]
1151
  37%|███▋ | 1047/2838 [40:57<1:02:55, 2.11s/it]
1152
  37%|███▋ | 1048/2838 [40:59<1:02:43, 2.10s/it]
1153
  37%|███▋ | 1049/2838 [41:01<1:02:35, 2.10s/it]
1154
  37%|███▋ | 1050/2838 [41:03<1:02:34, 2.10s/it]
1155
  37%|███▋ | 1051/2838 [41:05<1:05:08, 2.19s/it]
1156
  37%|███▋ | 1052/2838 [41:08<1:05:20, 2.20s/it]
1157
  37%|███▋ | 1053/2838 [41:10<1:04:31, 2.17s/it]
1158
  37%|███▋ | 1054/2838 [41:12<1:03:53, 2.15s/it]
1159
  37%|███▋ | 1055/2838 [41:14<1:03:37, 2.14s/it]
1160
  37%|███▋ | 1056/2838 [41:16<1:04:05, 2.16s/it]
1161
  37%|███▋ | 1057/2838 [41:18<1:03:26, 2.14s/it]
1162
  37%|███▋ | 1058/2838 [41:20<1:02:55, 2.12s/it]
1163
  37%|███▋ | 1059/2838 [41:22<1:02:26, 2.11s/it]
1164
  37%|███▋ | 1060/2838 [41:24<1:01:50, 2.09s/it]
1165
 
 
1166
  37%|███▋ | 1060/2838 [41:24<1:01:50, 2.09s/it]
1167
  37%|███▋ | 1061/2838 [41:26<1:01:42, 2.08s/it]
1168
  37%|███▋ | 1062/2838 [41:28<1:01:17, 2.07s/it]
1169
  37%|███▋ | 1063/2838 [41:31<1:01:26, 2.08s/it]
1170
  37%|███▋ | 1064/2838 [41:33<1:01:39, 2.09s/it]
1171
  38%|███▊ | 1065/2838 [41:35<1:01:20, 2.08s/it]
1172
  38%|███▊ | 1066/2838 [41:37<1:01:38, 2.09s/it]
1173
  38%|███▊ | 1067/2838 [41:39<1:01:22, 2.08s/it]
1174
  38%|███▊ | 1068/2838 [41:41<1:01:53, 2.10s/it]
1175
  38%|███▊ | 1069/2838 [41:43<1:01:59, 2.10s/it]
1176
  38%|███▊ | 1070/2838 [41:45<1:02:01, 2.10s/it]
1177
  38%|███▊ | 1071/2838 [41:47<1:02:17, 2.12s/it]
1178
  38%|███▊ | 1072/2838 [41:50<1:02:07, 2.11s/it]
1179
  38%|███▊ | 1073/2838 [41:52<1:01:58, 2.11s/it]
1180
  38%|███▊ | 1074/2838 [41:54<1:01:42, 2.10s/it]
1181
  38%|███▊ | 1075/2838 [41:56<1:01:33, 2.09s/it]
1182
  38%|███▊ | 1076/2838 [41:58<1:01:19, 2.09s/it]
1183
  38%|███▊ | 1077/2838 [42:00<1:01:22, 2.09s/it]
1184
  38%|███▊ | 1078/2838 [42:02<1:01:45, 2.11s/it]
1185
  38%|███▊ | 1079/2838 [42:04<1:02:08, 2.12s/it]
1186
  38%|███▊ | 1080/2838 [42:06<1:02:16, 2.13s/it]
1187
 
 
1188
  38%|███▊ | 1080/2838 [42:06<1:02:16, 2.13s/it]
1189
  38%|███▊ | 1081/2838 [42:08<1:01:53, 2.11s/it]
1190
  38%|███▊ | 1082/2838 [42:11<1:01:49, 2.11s/it]
1191
  38%|███▊ | 1083/2838 [42:13<1:02:28, 2.14s/it]
1192
  38%|███▊ | 1084/2838 [42:15<1:02:22, 2.13s/it]
1193
  38%|███▊ | 1085/2838 [42:17<1:02:35, 2.14s/it]
1194
  38%|███▊ | 1086/2838 [42:19<1:02:18, 2.13s/it]
1195
  38%|███▊ | 1087/2838 [42:21<1:02:22, 2.14s/it]
1196
  38%|███▊ | 1088/2838 [42:23<1:02:06, 2.13s/it]
1197
  38%|███▊ | 1089/2838 [42:26<1:01:45, 2.12s/it]
1198
  38%|███▊ | 1090/2838 [42:28<1:01:45, 2.12s/it]
1199
  38%|███▊ | 1091/2838 [42:30<1:01:17, 2.10s/it]
1200
  38%|███▊ | 1092/2838 [42:32<1:00:58, 2.10s/it]
1201
  39%|███▊ | 1093/2838 [42:34<1:01:14, 2.11s/it]
1202
  39%|███▊ | 1094/2838 [42:36<1:01:54, 2.13s/it]
1203
  39%|███▊ | 1095/2838 [42:38<1:02:16, 2.14s/it]
1204
  39%|███▊ | 1096/2838 [42:40<1:01:35, 2.12s/it]
1205
  39%|███▊ | 1097/2838 [42:42<1:01:01, 2.10s/it]
1206
  39%|███▊ | 1098/2838 [42:45<1:01:11, 2.11s/it]
1207
  39%|███▊ | 1099/2838 [42:47<1:01:13, 2.11s/it]
1208
  39%|███▉ | 1100/2838 [42:49<1:01:17, 2.12s/it]
1209
 
 
1210
  39%|███▉ | 1100/2838 [42:49<1:01:17, 2.12s/it]
1211
  39%|███▉ | 1101/2838 [42:51<1:01:00, 2.11s/it]
1212
  39%|███▉ | 1102/2838 [42:53<1:00:49, 2.10s/it]
1213
  39%|███▉ | 1103/2838 [42:55<1:01:30, 2.13s/it]
1214
  39%|███▉ | 1104/2838 [42:57<1:00:57, 2.11s/it]
1215
  39%|███▉ | 1105/2838 [42:59<1:01:02, 2.11s/it]
1216
  39%|███▉ | 1106/2838 [43:01<1:00:43, 2.10s/it]
1217
  39%|███▉ | 1107/2838 [43:04<1:00:57, 2.11s/it]
1218
  39%|███▉ | 1108/2838 [43:06<1:00:46, 2.11s/it]
1219
  39%|███▉ | 1109/2838 [43:08<1:00:48, 2.11s/it]
1220
  39%|███▉ | 1110/2838 [43:10<1:01:23, 2.13s/it]
1221
  39%|███▉ | 1111/2838 [43:12<1:01:28, 2.14s/it]
1222
  39%|███▉ | 1112/2838 [43:14<1:01:36, 2.14s/it]
1223
  39%|███▉ | 1113/2838 [43:16<1:01:04, 2.12s/it]
1224
  39%|███▉ | 1114/2838 [43:18<1:00:40, 2.11s/it]
1225
  39%|███▉ | 1115/2838 [43:21<1:00:59, 2.12s/it]
1226
  39%|███▉ | 1116/2838 [43:23<1:00:39, 2.11s/it]
1227
  39%|███▉ | 1117/2838 [43:25<1:00:51, 2.12s/it]
1228
  39%|███▉ | 1118/2838 [43:27<1:00:32, 2.11s/it]
1229
  39%|███▉ | 1119/2838 [43:29<1:00:45, 2.12s/it]
1230
  39%|███▉ | 1120/2838 [43:31<1:00:56, 2.13s/it]
1231
 
 
1232
  39%|███▉ | 1120/2838 [43:31<1:00:56, 2.13s/it]
1233
  39%|███▉ | 1121/2838 [43:33<1:01:30, 2.15s/it]
1234
  40%|███▉ | 1122/2838 [43:35<1:01:02, 2.13s/it]
1235
  40%|███▉ | 1123/2838 [43:38<1:00:28, 2.12s/it]
1236
  40%|███▉ | 1124/2838 [43:40<1:00:15, 2.11s/it]
1237
  40%|███▉ | 1125/2838 [43:42<1:00:28, 2.12s/it]
1238
  40%|███▉ | 1126/2838 [43:44<1:00:53, 2.13s/it]
1239
  40%|███▉ | 1127/2838 [43:46<1:00:28, 2.12s/it]
1240
  40%|███▉ | 1128/2838 [43:48<1:00:48, 2.13s/it]
1241
  40%|███▉ | 1129/2838 [43:50<1:00:19, 2.12s/it]
1242
  40%|███▉ | 1130/2838 [43:52<1:00:31, 2.13s/it]
1243
  40%|███▉ | 1131/2838 [43:55<1:00:16, 2.12s/it]
1244
  40%|███▉ | 1132/2838 [43:57<1:00:22, 2.12s/it]
1245
  40%|███▉ | 1133/2838 [43:59<59:57, 2.11s/it]
1246
  40%|███▉ | 1134/2838 [44:01<1:00:03, 2.12s/it]
1247
  40%|███▉ | 1135/2838 [44:03<59:53, 2.11s/it]
1248
  40%|████ | 1136/2838 [44:05<59:43, 2.11s/it]
1249
  40%|████ | 1137/2838 [44:07<59:34, 2.10s/it]
1250
  40%|████ | 1138/2838 [44:09<59:19, 2.09s/it]
1251
  40%|████ | 1139/2838 [44:11<1:00:37, 2.14s/it]
1252
  40%|████ | 1140/2838 [44:14<1:00:19, 2.13s/it]
1253
 
 
1254
  40%|████ | 1140/2838 [44:14<1:00:19, 2.13s/it]
1255
  40%|████ | 1141/2838 [44:16<1:00:31, 2.14s/it]
1256
  40%|████ | 1142/2838 [44:18<1:00:26, 2.14s/it]
1257
  40%|████ | 1143/2838 [44:20<1:00:32, 2.14s/it]
1258
  40%|████ | 1144/2838 [44:22<1:00:16, 2.13s/it]
1259
  40%|████ | 1145/2838 [44:24<1:00:11, 2.13s/it]
1260
  40%|████ | 1146/2838 [44:26<59:52, 2.12s/it]
1261
  40%|████ | 1147/2838 [44:28<59:38, 2.12s/it]
1262
  40%|████ | 1148/2838 [44:31<59:44, 2.12s/it]
1263
  40%|████ | 1149/2838 [44:33<59:30, 2.11s/it]
1264
  41%|████ | 1150/2838 [44:35<59:09, 2.10s/it]
1265
  41%|████ | 1151/2838 [44:37<59:01, 2.10s/it]
1266
  41%|████ | 1152/2838 [44:39<58:38, 2.09s/it]
1267
  41%|████ | 1153/2838 [44:41<58:44, 2.09s/it]
1268
  41%|████ | 1154/2838 [44:43<58:58, 2.10s/it]
1269
  41%|████ | 1155/2838 [44:45<59:49, 2.13s/it]
1270
  41%|████ | 1156/2838 [44:48<59:55, 2.14s/it]
1271
  41%|████ | 1157/2838 [44:50<1:00:25, 2.16s/it]
1272
  41%|████ | 1158/2838 [44:52<1:00:17, 2.15s/it]
1273
  41%|████ | 1159/2838 [44:54<59:42, 2.13s/it]
1274
  41%|████ | 1160/2838 [44:56<59:39, 2.13s/it]
1275
 
 
1276
  41%|████ | 1160/2838 [44:56<59:39, 2.13s/it]
1277
  41%|████ | 1161/2838 [44:58<59:28, 2.13s/it]
1278
  41%|████ | 1162/2838 [45:00<59:03, 2.11s/it]
1279
  41%|████ | 1163/2838 [45:02<59:05, 2.12s/it]
1280
  41%|████ | 1164/2838 [45:05<59:07, 2.12s/it]
1281
  41%|████ | 1165/2838 [45:07<58:53, 2.11s/it]
1282
  41%|████ | 1166/2838 [45:09<1:00:16, 2.16s/it]
1283
  41%|████ | 1167/2838 [45:11<59:48, 2.15s/it]
1284
  41%|████ | 1168/2838 [45:13<59:31, 2.14s/it]
1285
  41%|████ | 1169/2838 [45:15<59:08, 2.13s/it]
1286
  41%|████ | 1170/2838 [45:18<1:00:42, 2.18s/it]
1287
  41%|████▏ | 1171/2838 [45:20<1:00:09, 2.17s/it]
1288
  41%|████▏ | 1172/2838 [45:22<59:41, 2.15s/it]
1289
  41%|████▏ | 1173/2838 [45:24<59:17, 2.14s/it]
1290
  41%|████▏ | 1174/2838 [45:26<58:59, 2.13s/it]
1291
  41%|████▏ | 1175/2838 [45:28<58:27, 2.11s/it]
1292
  41%|████▏ | 1176/2838 [45:30<58:50, 2.12s/it]
1293
  41%|████▏ | 1177/2838 [45:32<59:08, 2.14s/it]
1294
  42%|████▏ | 1178/2838 [45:35<59:07, 2.14s/it]
1295
  42%|████▏ | 1179/2838 [45:37<59:17, 2.14s/it]
1296
  42%|████▏ | 1180/2838 [45:39<59:22, 2.15s/it]
1297
 
 
1298
  42%|████▏ | 1180/2838 [45:39<59:22, 2.15s/it]
1299
  42%|████▏ | 1181/2838 [45:41<59:38, 2.16s/it]
1300
  42%|████▏ | 1182/2838 [45:43<59:30, 2.16s/it]
1301
  42%|████▏ | 1183/2838 [45:45<59:17, 2.15s/it]
1302
  42%|████▏ | 1184/2838 [45:47<59:01, 2.14s/it]
1303
  42%|████▏ | 1185/2838 [45:50<58:28, 2.12s/it]
1304
  42%|████▏ | 1186/2838 [45:52<58:00, 2.11s/it]
1305
  42%|████▏ | 1187/2838 [45:54<58:28, 2.12s/it]
1306
  42%|████▏ | 1188/2838 [45:56<58:33, 2.13s/it]
1307
  42%|████▏ | 1189/2838 [45:58<58:58, 2.15s/it]
1308
  42%|████▏ | 1190/2838 [46:00<58:59, 2.15s/it]
1309
  42%|████▏ | 1191/2838 [46:02<58:13, 2.12s/it]
1310
  42%|████▏ | 1192/2838 [46:04<58:04, 2.12s/it]
1311
  42%|████▏ | 1193/2838 [46:07<57:57, 2.11s/it]
1312
  42%|████▏ | 1194/2838 [46:09<57:38, 2.10s/it]
1313
  42%|████▏ | 1195/2838 [46:11<57:38, 2.10s/it]
1314
  42%|████▏ | 1196/2838 [46:13<58:18, 2.13s/it]
1315
  42%|████▏ | 1197/2838 [46:15<58:18, 2.13s/it]
1316
  42%|████▏ | 1198/2838 [46:17<58:18, 2.13s/it]
1317
  42%|████▏ | 1199/2838 [46:19<58:09, 2.13s/it]
1318
  42%|████▏ | 1200/2838 [46:21<57:40, 2.11s/it]
1319
 
 
1320
  42%|████▏ | 1200/2838 [46:21<57:40, 2.11s/it]
1321
  42%|████▏ | 1201/2838 [46:23<57:32, 2.11s/it]
1322
  42%|████▏ | 1202/2838 [46:26<57:22, 2.10s/it]
1323
  42%|████▏ | 1203/2838 [46:28<57:06, 2.10s/it]
1324
  42%|████▏ | 1204/2838 [46:30<57:25, 2.11s/it]
1325
  42%|████▏ | 1205/2838 [46:32<57:43, 2.12s/it]
1326
  42%|████▏ | 1206/2838 [46:34<57:13, 2.10s/it]
1327
  43%|████▎ | 1207/2838 [46:36<57:27, 2.11s/it]
1328
  43%|████▎ | 1208/2838 [46:38<57:17, 2.11s/it]
1329
  43%|████▎ | 1209/2838 [46:40<58:10, 2.14s/it]
1330
  43%|████▎ | 1210/2838 [46:43<57:41, 2.13s/it]
1331
  43%|████▎ | 1211/2838 [46:45<57:29, 2.12s/it]
1332
  43%|████▎ | 1212/2838 [46:47<58:10, 2.15s/it]
1333
  43%|████▎ | 1213/2838 [46:49<58:16, 2.15s/it]
1334
  43%|████▎ | 1214/2838 [46:51<57:50, 2.14s/it]
1335
  43%|████▎ | 1215/2838 [46:53<57:46, 2.14s/it]
1336
  43%|████▎ | 1216/2838 [46:55<58:12, 2.15s/it]
1337
  43%|████▎ | 1217/2838 [46:58<58:05, 2.15s/it]
1338
  43%|████▎ | 1218/2838 [47:00<57:42, 2.14s/it]
1339
  43%|████▎ | 1219/2838 [47:02<57:16, 2.12s/it]
1340
  43%|████▎ | 1220/2838 [47:04<57:11, 2.12s/it]
1341
 
 
1342
  43%|████▎ | 1220/2838 [47:04<57:11, 2.12s/it]
1343
  43%|████▎ | 1221/2838 [47:06<57:30, 2.13s/it]
1344
  43%|████▎ | 1222/2838 [47:08<57:38, 2.14s/it]
1345
  43%|████▎ | 1223/2838 [47:10<57:08, 2.12s/it]
1346
  43%|████��� | 1224/2838 [47:12<56:56, 2.12s/it]
1347
  43%|████▎ | 1225/2838 [47:14<56:41, 2.11s/it]
1348
  43%|████▎ | 1226/2838 [47:17<56:34, 2.11s/it]
1349
  43%|████▎ | 1227/2838 [47:19<56:26, 2.10s/it]
1350
  43%|████▎ | 1228/2838 [47:21<56:35, 2.11s/it]
1351
  43%|████▎ | 1229/2838 [47:23<56:12, 2.10s/it]
1352
  43%|████▎ | 1230/2838 [47:25<56:22, 2.10s/it]
1353
  43%|████▎ | 1231/2838 [47:27<56:40, 2.12s/it]
1354
  43%|████▎ | 1232/2838 [47:29<56:24, 2.11s/it]
1355
  43%|████▎ | 1233/2838 [47:31<56:37, 2.12s/it]
1356
  43%|████▎ | 1234/2838 [47:33<56:34, 2.12s/it]
1357
  44%|████▎ | 1235/2838 [47:36<56:18, 2.11s/it]
1358
  44%|████▎ | 1236/2838 [47:38<56:46, 2.13s/it]
1359
  44%|████▎ | 1237/2838 [47:40<57:18, 2.15s/it]
1360
  44%|████▎ | 1238/2838 [47:42<57:06, 2.14s/it]
1361
  44%|████▎ | 1239/2838 [47:44<57:02, 2.14s/it]
1362
  44%|████▎ | 1240/2838 [47:46<56:47, 2.13s/it]
1363
 
 
1364
  44%|████▎ | 1240/2838 [47:46<56:47, 2.13s/it]
1365
  44%|████▎ | 1241/2838 [47:48<56:09, 2.11s/it]
1366
  44%|████▍ | 1242/2838 [47:50<56:12, 2.11s/it]
1367
  44%|████▍ | 1243/2838 [47:53<56:03, 2.11s/it]
1368
  44%|████▍ | 1244/2838 [47:55<55:57, 2.11s/it]
1369
  44%|████▍ | 1245/2838 [47:57<56:06, 2.11s/it]
1370
  44%|████▍ | 1246/2838 [47:59<56:06, 2.11s/it]
1371
  44%|████▍ | 1247/2838 [48:01<55:47, 2.10s/it]
1372
  44%|████▍ | 1248/2838 [48:03<55:56, 2.11s/it]
1373
  44%|████▍ | 1249/2838 [48:05<56:22, 2.13s/it]
1374
  44%|████▍ | 1250/2838 [48:07<56:50, 2.15s/it]
1375
  44%|████▍ | 1251/2838 [48:10<56:01, 2.12s/it]
1376
  44%|████▍ | 1252/2838 [48:12<56:00, 2.12s/it]
1377
  44%|████▍ | 1253/2838 [48:14<56:11, 2.13s/it]
1378
  44%|████▍ | 1254/2838 [48:16<56:27, 2.14s/it]
1379
  44%|████▍ | 1255/2838 [48:18<56:24, 2.14s/it]
1380
  44%|████▍ | 1256/2838 [48:20<56:28, 2.14s/it]
1381
  44%|████▍ | 1257/2838 [48:22<56:17, 2.14s/it]
1382
  44%|████▍ | 1258/2838 [48:24<55:56, 2.12s/it]
1383
  44%|████▍ | 1259/2838 [48:27<56:03, 2.13s/it]
1384
  44%|████▍ | 1260/2838 [48:29<55:44, 2.12s/it]
1385
 
 
1386
  44%|████▍ | 1260/2838 [48:29<55:44, 2.12s/it]
1387
  44%|████▍ | 1261/2838 [48:31<55:29, 2.11s/it]
1388
  44%|████▍ | 1262/2838 [48:33<55:14, 2.10s/it]
1389
  45%|████▍ | 1263/2838 [48:35<55:03, 2.10s/it]
1390
  45%|████▍ | 1264/2838 [48:37<55:36, 2.12s/it]
1391
  45%|████▍ | 1265/2838 [48:39<55:31, 2.12s/it]
1392
  45%|████▍ | 1266/2838 [48:41<55:37, 2.12s/it]
1393
  45%|████▍ | 1267/2838 [48:44<55:27, 2.12s/it]
1394
  45%|████▍ | 1268/2838 [48:46<55:41, 2.13s/it]
1395
  45%|████▍ | 1269/2838 [48:48<55:19, 2.12s/it]
1396
  45%|████▍ | 1270/2838 [48:50<55:15, 2.11s/it]
1397
  45%|████▍ | 1271/2838 [48:52<55:06, 2.11s/it]
1398
  45%|████▍ | 1272/2838 [48:54<55:23, 2.12s/it]
1399
  45%|████▍ | 1273/2838 [48:56<55:04, 2.11s/it]
1400
  45%|████▍ | 1274/2838 [48:58<55:00, 2.11s/it]
1401
  45%|████▍ | 1275/2838 [49:00<54:59, 2.11s/it]
1402
  45%|████▍ | 1276/2838 [49:03<55:23, 2.13s/it]
1403
  45%|████▍ | 1277/2838 [49:05<55:04, 2.12s/it]
1404
  45%|████▌ | 1278/2838 [49:07<55:09, 2.12s/it]
1405
  45%|████▌ | 1279/2838 [49:09<55:29, 2.14s/it]
1406
  45%|████▌ | 1280/2838 [49:11<56:10, 2.16s/it]
1407
 
 
1408
  45%|████▌ | 1280/2838 [49:11<56:10, 2.16s/it]
1409
  45%|████▌ | 1281/2838 [49:13<55:49, 2.15s/it]
1410
  45%|████▌ | 1282/2838 [49:15<55:32, 2.14s/it]
1411
  45%|████▌ | 1283/2838 [49:18<55:29, 2.14s/it]
1412
  45%|████▌ | 1284/2838 [49:20<56:46, 2.19s/it]
1413
  45%|████▌ | 1285/2838 [49:22<57:34, 2.22s/it]
1414
  45%|████▌ | 1286/2838 [49:24<56:33, 2.19s/it]
1415
  45%|████▌ | 1287/2838 [49:26<55:56, 2.16s/it]
1416
  45%|████▌ | 1288/2838 [49:29<55:24, 2.14s/it]
1417
  45%|████▌ | 1289/2838 [49:31<55:15, 2.14s/it]
1418
  45%|████▌ | 1290/2838 [49:33<54:44, 2.12s/it]
1419
  45%|████▌ | 1291/2838 [49:35<55:13, 2.14s/it]
1420
  46%|████▌ | 1292/2838 [49:37<54:53, 2.13s/it]
1421
  46%|████▌ | 1293/2838 [49:39<54:23, 2.11s/it]
1422
  46%|████▌ | 1294/2838 [49:41<54:31, 2.12s/it]
1423
  46%|████▌ | 1295/2838 [49:43<54:25, 2.12s/it]
1424
  46%|���███▌ | 1296/2838 [49:45<54:16, 2.11s/it]
1425
  46%|████▌ | 1297/2838 [49:48<54:36, 2.13s/it]
1426
  46%|████▌ | 1298/2838 [49:50<54:41, 2.13s/it]
1427
  46%|████▌ | 1299/2838 [49:52<54:15, 2.12s/it]
1428
  46%|████▌ | 1300/2838 [49:54<54:48, 2.14s/it]
1429
 
 
1430
  46%|████▌ | 1300/2838 [49:54<54:48, 2.14s/it]
1431
  46%|████▌ | 1301/2838 [49:56<54:19, 2.12s/it]
1432
  46%|████▌ | 1302/2838 [49:58<54:19, 2.12s/it]
1433
  46%|████▌ | 1303/2838 [50:00<54:34, 2.13s/it]
1434
  46%|████▌ | 1304/2838 [50:02<54:11, 2.12s/it]
1435
  46%|████▌ | 1305/2838 [50:05<54:40, 2.14s/it]
1436
  46%|████▌ | 1306/2838 [50:07<54:28, 2.13s/it]
1437
  46%|████▌ | 1307/2838 [50:09<53:49, 2.11s/it]
1438
  46%|████▌ | 1308/2838 [50:11<53:57, 2.12s/it]
1439
  46%|████▌ | 1309/2838 [50:13<53:47, 2.11s/it]
1440
  46%|████▌ | 1310/2838 [50:15<54:27, 2.14s/it]
1441
  46%|████▌ | 1311/2838 [50:17<54:22, 2.14s/it]
1442
  46%|████▌ | 1312/2838 [50:20<54:28, 2.14s/it]
1443
  46%|████▋ | 1313/2838 [50:22<54:01, 2.13s/it]
1444
  46%|████▋ | 1314/2838 [50:24<53:43, 2.12s/it]
1445
  46%|████▋ | 1315/2838 [50:26<53:55, 2.12s/it]
1446
  46%|████▋ | 1316/2838 [50:28<53:35, 2.11s/it]
1447
  46%|████▋ | 1317/2838 [50:30<54:03, 2.13s/it]
1448
  46%|████▋ | 1318/2838 [50:32<53:52, 2.13s/it]
1449
  46%|████▋ | 1319/2838 [50:34<53:40, 2.12s/it]
1450
  47%|████▋ | 1320/2838 [50:36<53:52, 2.13s/it]
1451
 
 
1452
  47%|████▋ | 1320/2838 [50:37<53:52, 2.13s/it]
1453
  47%|████▋ | 1321/2838 [50:39<53:25, 2.11s/it]
1454
  47%|████▋ | 1322/2838 [50:41<53:53, 2.13s/it]
1455
  47%|████▋ | 1323/2838 [50:43<53:36, 2.12s/it]
1456
  47%|████▋ | 1324/2838 [50:45<53:07, 2.11s/it]
1457
  47%|████▋ | 1325/2838 [50:47<53:09, 2.11s/it]
1458
  47%|████▋ | 1326/2838 [50:49<53:09, 2.11s/it]
1459
  47%|████▋ | 1327/2838 [50:51<52:56, 2.10s/it]
1460
  47%|████▋ | 1328/2838 [50:53<52:41, 2.09s/it]
1461
  47%|████▋ | 1329/2838 [50:55<53:06, 2.11s/it]
1462
  47%|████▋ | 1330/2838 [50:58<53:27, 2.13s/it]
 
1
+ torch: 2.6.0+cu124
2
+ accelerate: 0.34.2
3
+ cuda devices: 2
4
+ flash_attn installed: True
5
+ ================================================================
6
+ ITFormer × RATs40K | Run ID: 20260608_165938
7
+ CUDA_VISIBLE_DEVICES: 0,1
8
+ Data: /mnt/share01/sqk/datasets/RATs40K/RATs-Uni-TSImage_Reason.json
9
+ LLM: /mnt/share01/sqk/models/qwen2.5-7b-instruct
10
+ patch_len=16, input_len=128, prefix_num=8
11
+ it_d_model=3584, it_n_heads=28
12
+ ================================================================
13
+ Stage A: skipped (TS encoder exists: save/pretrain_rats40k/model.safetensors)
14
+
15
+ ── Stage B: SFT (ITFormer + LLM) ───────────────────────────────
16
+ LLM attention: flash_attention_2
17
+ ⚙️ Running in WANDB offline mode
18
+ ⚙️ Running in WANDB offline mode
19
+ loading file vocab.json
20
+ loading file merges.txt
21
+ loading file tokenizer.json
22
+ loading file added_tokens.json
23
+ loading file special_tokens_map.json
24
+ loading file tokenizer_config.json
25
+ loading file chat_template.jinja
26
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
27
+
28
+ swanlab not installed; running without logging.
29
+ Generate config GenerationConfig {}
30
+
31
+ ⚡ LLM attention implementation: flash_attention_2
32
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-7b-instruct/config.json
33
+ Model config Qwen2Config {
34
+ "architectures": [
35
+ "Qwen2ForCausalLM"
36
+ ],
37
+ "attention_dropout": 0.0,
38
+ "bos_token_id": 151643,
39
+ "eos_token_id": 151645,
40
+ "hidden_act": "silu",
41
+ "hidden_size": 3584,
42
+ "initializer_range": 0.02,
43
+ "intermediate_size": 18944,
44
+ "layer_types": [
45
+ "full_attention",
46
+ "full_attention",
47
+ "full_attention",
48
+ "full_attention",
49
+ "full_attention",
50
+ "full_attention",
51
+ "full_attention",
52
+ "full_attention",
53
+ "full_attention",
54
+ "full_attention",
55
+ "full_attention",
56
+ "full_attention",
57
+ "full_attention",
58
+ "full_attention",
59
+ "full_attention",
60
+ "full_attention",
61
+ "full_attention",
62
+ "full_attention",
63
+ "full_attention",
64
+ "full_attention",
65
+ "full_attention",
66
+ "full_attention",
67
+ "full_attention",
68
+ "full_attention",
69
+ "full_attention",
70
+ "full_attention",
71
+ "full_attention",
72
+ "full_attention"
73
+ ],
74
+ "max_position_embeddings": 32768,
75
+ "max_window_layers": 28,
76
+ "model_type": "qwen2",
77
+ "num_attention_heads": 28,
78
+ "num_hidden_layers": 28,
79
+ "num_key_value_heads": 4,
80
+ "rms_norm_eps": 1e-06,
81
+ "rope_scaling": null,
82
+ "rope_theta": 1000000.0,
83
+ "sliding_window": null,
84
+ "tie_word_embeddings": false,
85
+ "torch_dtype": "bfloat16",
86
+ "transformers_version": "4.54.1",
87
+ "use_cache": true,
88
+ "use_sliding_window": false,
89
+ "vocab_size": 152064
90
+ }
91
+
92
+ loading weights file /mnt/share01/sqk/models/qwen2.5-7b-instruct/model.safetensors.index.json
93
+ Instantiating Qwen2ForCausalLM model under default dtype torch.bfloat16.
94
+ Generate config GenerationConfig {
95
+ "bos_token_id": 151643,
96
+ "eos_token_id": 151645
97
+ }
98
+
99
+
100
+
101
+ All model checkpoint weights were used when initializing Qwen2ForCausalLM.
102
+
103
+ All the weights of Qwen2ForCausalLM were initialized from the model checkpoint at /mnt/share01/sqk/models/qwen2.5-7b-instruct.
104
+ If your task is similar to the task the model of the checkpoint was trained on, you can already use Qwen2ForCausalLM for predictions without further training.
105
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-7b-instruct/generation_config.json
106
+ Generate config GenerationConfig {
107
+ "bos_token_id": 151643,
108
+ "do_sample": true,
109
+ "eos_token_id": [
110
+ 151645,
111
+ 151643
112
+ ],
113
+ "pad_token_id": 151643,
114
+ "repetition_penalty": 1.05,
115
+ "temperature": 0.7,
116
+ "top_k": 20,
117
+ "top_p": 0.8
118
+ }
119
+
120
+ loading file vocab.json
121
+ loading file merges.txt
122
+ loading file tokenizer.json
123
+ loading file added_tokens.json
124
+ loading file special_tokens_map.json
125
+ loading file tokenizer_config.json
126
+ loading file chat_template.jinja
127
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
128
+ ✅ Loaded LLM model from: /mnt/share01/sqk/models/qwen2.5-7b-instruct
129
+ 📥 Loading pre-trained TimeSeries Encoder from: save/pretrain_rats40k/model.safetensors
130
+ ✅ TS Encoder weights loaded. Missing: 0, Unexpected: 0
131
+ 🔌 Using adapter: itformer
132
+ PyTorch: setting up devices
133
+ Using auto half precision backend
134
+ You are resizing the embedding layer without providing a `pad_to_multiple_of` parameter. This means that the new embedding dimension will be 151665. This might induce some performance reduction as *Tensor Cores* will not be available. For more details about this, or help on choosing the correct value for resizing, refer to this guide: https://docs.nvidia.com/deeplearning/performance/dl-performance-matrix-multiplication/index.html#requirements-tc
135
+ Resized LLM embeddings to 151665
136
+ ***** Running training *****
137
+ Num examples = 30,266
138
+ Num Epochs = 3
139
+ Instantaneous batch size per device = 1
140
+ Total train batch size (w. parallel, distributed & accumulation) = 32
141
+ Gradient Accumulation steps = 16
142
+ Total optimization steps = 2,838
143
+ Number of trainable parameters = 739,332,608
144
+
145
  0%| | 0/2838 [00:00<?, ?it/s]
146
  0%| | 1/2838 [00:02<2:04:50, 2.64s/it]
147
  0%| | 2/2838 [00:04<1:44:34, 2.21s/it]
148
  0%| | 3/2838 [00:06<1:41:28, 2.15s/it]
149
  0%| | 4/2838 [00:08<1:38:54, 2.09s/it]
150
  0%| | 5/2838 [00:10<1:37:44, 2.07s/it]
151
  0%| | 6/2838 [00:12<1:37:09, 2.06s/it]
152
  0%| | 7/2838 [00:14<1:36:13, 2.04s/it]
153
  0%| | 8/2838 [00:16<1:36:55, 2.05s/it]
154
  0%| | 9/2838 [00:18<1:36:25, 2.05s/it]
155
  0%| | 10/2838 [00:20<1:35:19, 2.02s/it]
156
  0%| | 11/2838 [00:22<1:35:22, 2.02s/it]
157
  0%| | 12/2838 [00:24<1:35:42, 2.03s/it]
158
  0%| | 13/2838 [00:26<1:36:25, 2.05s/it]
159
  0%| | 14/2838 [00:29<1:36:34, 2.05s/it]
160
  1%| | 15/2838 [00:31<1:36:02, 2.04s/it]
161
  1%| | 16/2838 [00:33<1:36:25, 2.05s/it]
162
  1%| | 17/2838 [00:35<1:36:32, 2.05s/it]
163
  1%| | 18/2838 [00:37<1:36:34, 2.05s/it]
164
  1%| | 19/2838 [00:39<1:36:39, 2.06s/it]
165
  1%| | 20/2838 [00:41<1:36:09, 2.05s/it]
166
 
167
+
168
  1%| | 20/2838 [00:41<1:36:09, 2.05s/it]
169
  1%| | 21/2838 [00:43<1:36:29, 2.06s/it]
170
  1%| | 22/2838 [00:45<1:36:11, 2.05s/it]
171
  1%| | 23/2838 [00:47<1:35:51, 2.04s/it]
172
  1%| | 24/2838 [00:49<1:36:27, 2.06s/it]
173
  1%| | 25/2838 [00:51<1:36:32, 2.06s/it]
174
  1%| | 26/2838 [00:53<1:36:07, 2.05s/it]
175
  1%| | 27/2838 [00:55<1:36:45, 2.07s/it]
176
  1%| | 28/2838 [00:57<1:37:13, 2.08s/it]
177
  1%| | 29/2838 [00:59<1:37:11, 2.08s/it]
178
  1%| | 30/2838 [01:01<1:37:23, 2.08s/it]
179
  1%| | 31/2838 [01:04<1:38:12, 2.10s/it]
180
  1%| | 32/2838 [01:06<1:38:24, 2.10s/it]
181
  1%| | 33/2838 [01:08<1:37:56, 2.09s/it]
182
  1%| | 34/2838 [01:10<1:37:18, 2.08s/it]
183
  1%| | 35/2838 [01:12<1:37:10, 2.08s/it]
184
  1%|▏ | 36/2838 [01:14<1:37:32, 2.09s/it]
185
  1%|▏ | 37/2838 [01:16<1:38:20, 2.11s/it]
186
  1%|▏ | 38/2838 [01:18<1:38:43, 2.12s/it]
187
  1%|▏ | 39/2838 [01:20<1:38:53, 2.12s/it]
188
  1%|▏ | 40/2838 [01:23<1:38:43, 2.12s/it]
189
 
190
+
191
  1%|▏ | 40/2838 [01:23<1:38:43, 2.12s/it]
192
  1%|▏ | 41/2838 [01:25<1:38:40, 2.12s/it]
193
  1%|▏ | 42/2838 [01:27<1:38:28, 2.11s/it]
194
  2%|▏ | 43/2838 [01:29<1:38:27, 2.11s/it]
195
  2%|▏ | 44/2838 [01:31<1:38:42, 2.12s/it]
196
  2%|▏ | 45/2838 [01:33<1:38:10, 2.11s/it]
197
  2%|▏ | 46/2838 [01:35<1:37:45, 2.10s/it]
198
  2%|▏ | 47/2838 [01:37<1:37:15, 2.09s/it]
199
  2%|▏ | 48/2838 [01:39<1:37:25, 2.10s/it]
200
  2%|▏ | 49/2838 [01:42<1:37:40, 2.10s/it]
201
  2%|▏ | 50/2838 [01:44<1:37:11, 2.09s/it]
202
  2%|▏ | 51/2838 [01:46<1:37:05, 2.09s/it]
203
  2%|▏ | 52/2838 [01:48<1:36:51, 2.09s/it]
204
  2%|▏ | 53/2838 [01:50<1:37:21, 2.10s/it]
205
  2%|▏ | 54/2838 [01:52<1:36:49, 2.09s/it]
206
  2%|▏ | 55/2838 [01:54<1:37:28, 2.10s/it]
207
  2%|▏ | 56/2838 [01:56<1:37:18, 2.10s/it]
208
  2%|▏ | 57/2838 [01:58<1:36:53, 2.09s/it]
209
  2%|▏ | 58/2838 [02:00<1:37:03, 2.09s/it]
210
  2%|▏ | 59/2838 [02:02<1:37:01, 2.09s/it]
211
  2%|▏ | 60/2838 [02:05<1:37:05, 2.10s/it]
212
 
213
+
214
  2%|▏ | 60/2838 [02:05<1:37:05, 2.10s/it]
215
  2%|▏ | 61/2838 [02:07<1:37:52, 2.11s/it]
216
  2%|▏ | 62/2838 [02:09<1:37:11, 2.10s/it]
217
  2%|▏ | 63/2838 [02:11<1:36:57, 2.10s/it]
218
  2%|▏ | 64/2838 [02:13<1:37:00, 2.10s/it]
219
  2%|▏ | 65/2838 [02:15<1:37:18, 2.11s/it]
220
  2%|▏ | 66/2838 [02:17<1:36:51, 2.10s/it]
221
  2%|▏ | 67/2838 [02:19<1:37:07, 2.10s/it]
222
  2%|▏ | 68/2838 [02:21<1:36:55, 2.10s/it]
223
  2%|▏ | 69/2838 [02:23<1:36:44, 2.10s/it]
224
  2%|▏ | 70/2838 [02:26<1:36:23, 2.09s/it]
225
  3%|▎ | 71/2838 [02:28<1:36:27, 2.09s/it]
226
  3%|▎ | 72/2838 [02:30<1:36:35, 2.10s/it]
227
  3%|▎ | 73/2838 [02:32<1:36:33, 2.10s/it]
228
  3%|▎ | 74/2838 [02:34<1:37:03, 2.11s/it]
229
  3%|▎ | 75/2838 [02:36<1:36:28, 2.10s/it]
230
  3%|▎ | 76/2838 [02:38<1:36:39, 2.10s/it]
231
  3%|▎ | 77/2838 [02:40<1:36:53, 2.11s/it]
232
  3%|▎ | 78/2838 [02:42<1:37:13, 2.11s/it]
233
  3%|▎ | 79/2838 [02:45<1:37:29, 2.12s/it]
234
  3%|▎ | 80/2838 [02:47<1:37:25, 2.12s/it]
235
 
236
+
237
  3%|▎ | 80/2838 [02:47<1:37:25, 2.12s/it]
238
  3%|▎ | 81/2838 [02:49<1:37:02, 2.11s/it]
239
  3%|▎ | 82/2838 [02:51<1:37:12, 2.12s/it]
240
  3%|▎ | 83/2838 [02:53<1:36:43, 2.11s/it]
241
  3%|▎ | 84/2838 [02:55<1:37:44, 2.13s/it]
242
  3%|▎ | 85/2838 [02:57<1:37:29, 2.12s/it]
243
  3%|▎ | 86/2838 [02:59<1:37:52, 2.13s/it]
244
  3%|▎ | 87/2838 [03:01<1:37:23, 2.12s/it]
245
  3%|▎ | 88/2838 [03:04<1:37:08, 2.12s/it]
246
  3%|▎ | 89/2838 [03:06<1:37:06, 2.12s/it]
247
  3%|▎ | 90/2838 [03:08<1:36:39, 2.11s/it]
248
  3%|▎ | 91/2838 [03:10<1:35:50, 2.09s/it]
249
  3%|▎ | 92/2838 [03:12<1:35:39, 2.09s/it]
250
  3%|▎ | 93/2838 [03:14<1:36:33, 2.11s/it]
251
  3%|▎ | 94/2838 [03:16<1:37:31, 2.13s/it]
252
  3%|▎ | 95/2838 [03:18<1:36:56, 2.12s/it]
253
  3%|▎ | 96/2838 [03:20<1:36:03, 2.10s/it]
254
  3%|▎ | 97/2838 [03:23<1:36:15, 2.11s/it]
255
  3%|▎ | 98/2838 [03:25<1:37:25, 2.13s/it]
256
  3%|▎ | 99/2838 [03:27<1:37:02, 2.13s/it]
257
  4%|▎ | 100/2838 [03:29<1:36:57, 2.12s/it]
258
 
259
+
260
  4%|▎ | 100/2838 [03:29<1:36:57, 2.12s/it]
261
  4%|▎ | 101/2838 [03:31<1:36:54, 2.12s/it]
262
  4%|▎ | 102/2838 [03:33<1:37:34, 2.14s/it]
263
  4%|▎ | 103/2838 [03:35<1:37:11, 2.13s/it]
264
  4%|▎ | 104/2838 [03:37<1:36:32, 2.12s/it]
265
  4%|▎ | 105/2838 [03:40<1:36:53, 2.13s/it]
266
  4%|▎ | 106/2838 [03:42<1:37:28, 2.14s/it]
267
  4%|▍ | 107/2838 [03:44<1:36:54, 2.13s/it]
268
  4%|▍ | 108/2838 [03:46<1:36:50, 2.13s/it]
269
  4%|▍ | 109/2838 [03:48<1:36:45, 2.13s/it]
270
  4%|▍ | 110/2838 [03:50<1:36:39, 2.13s/it]
271
  4%|▍ | 111/2838 [03:52<1:36:27, 2.12s/it]
272
  4%|▍ | 112/2838 [03:54<1:35:16, 2.10s/it]
273
  4%|▍ | 113/2838 [03:57<1:35:13, 2.10s/it]
274
  4%|▍ | 114/2838 [03:59<1:39:55, 2.20s/it]
275
  4%|▍ | 115/2838 [04:01<1:39:11, 2.19s/it]
276
  4%|▍ | 116/2838 [04:03<1:37:03, 2.14s/it]
277
  4%|▍ | 117/2838 [04:05<1:36:30, 2.13s/it]
278
  4%|▍ | 118/2838 [04:07<1:36:30, 2.13s/it]
279
  4%|▍ | 119/2838 [04:09<1:36:21, 2.13s/it]
280
  4%|▍ | 120/2838 [04:12<1:36:31, 2.13s/it]
281
 
282
+
283
  4%|▍ | 120/2838 [04:12<1:36:31, 2.13s/it]
284
  4%|▍ | 121/2838 [04:14<1:35:55, 2.12s/it]
285
  4%|▍ | 122/2838 [04:16<1:36:35, 2.13s/it]
286
  4%|▍ | 123/2838 [04:18<1:36:23, 2.13s/it]
287
  4%|▍ | 124/2838 [04:20<1:36:56, 2.14s/it]
288
  4%|▍ | 125/2838 [04:22<1:35:55, 2.12s/it]
289
  4%|▍ | 126/2838 [04:24<1:35:05, 2.10s/it]
290
  4%|▍ | 127/2838 [04:26<1:35:01, 2.10s/it]
291
  5%|▍ | 128/2838 [04:29<1:35:14, 2.11s/it]
292
  5%|▍ | 129/2838 [04:31<1:35:23, 2.11s/it]
293
  5%|▍ | 130/2838 [04:33<1:35:35, 2.12s/it]
294
  5%|▍ | 131/2838 [04:35<1:35:53, 2.13s/it]
295
  5%|▍ | 132/2838 [04:37<1:35:18, 2.11s/it]
296
  5%|▍ | 133/2838 [04:39<1:34:43, 2.10s/it]
297
  5%|▍ | 134/2838 [04:41<1:35:19, 2.12s/it]
298
  5%|▍ | 135/2838 [04:43<1:36:26, 2.14s/it]
299
  5%|▍ | 136/2838 [04:46<1:35:23, 2.12s/it]
300
  5%|▍ | 137/2838 [04:48<1:34:46, 2.11s/it]
301
  5%|▍ | 138/2838 [04:50<1:34:55, 2.11s/it]
302
  5%|▍ | 139/2838 [04:52<1:34:53, 2.11s/it]
303
  5%|▍ | 140/2838 [04:54<1:35:09, 2.12s/it]
304
 
305
+
306
  5%|▍ | 140/2838 [04:54<1:35:09, 2.12s/it]
307
  5%|��� | 141/2838 [04:56<1:34:59, 2.11s/it]
308
  5%|▌ | 142/2838 [04:58<1:35:12, 2.12s/it]
309
  5%|▌ | 143/2838 [05:00<1:35:11, 2.12s/it]
310
  5%|▌ | 144/2838 [05:02<1:35:27, 2.13s/it]
311
  5%|▌ | 145/2838 [05:05<1:36:41, 2.15s/it]
312
  5%|▌ | 146/2838 [05:07<1:36:10, 2.14s/it]
313
  5%|▌ | 147/2838 [05:09<1:36:16, 2.15s/it]
314
  5%|▌ | 148/2838 [05:11<1:35:28, 2.13s/it]
315
  5%|▌ | 149/2838 [05:13<1:35:51, 2.14s/it]
316
  5%|▌ | 150/2838 [05:15<1:35:21, 2.13s/it]
317
  5%|▌ | 151/2838 [05:17<1:34:54, 2.12s/it]
318
  5%|▌ | 152/2838 [05:20<1:34:58, 2.12s/it]
319
  5%|▌ | 153/2838 [05:22<1:35:11, 2.13s/it]
320
  5%|▌ | 154/2838 [05:24<1:35:12, 2.13s/it]
321
  5%|▌ | 155/2838 [05:26<1:34:25, 2.11s/it]
322
  5%|▌ | 156/2838 [05:28<1:34:19, 2.11s/it]
323
  6%|▌ | 157/2838 [05:30<1:34:35, 2.12s/it]
324
  6%|▌ | 158/2838 [05:32<1:34:48, 2.12s/it]
325
  6%|▌ | 159/2838 [05:34<1:34:46, 2.12s/it]
326
  6%|▌ | 160/2838 [05:36<1:34:07, 2.11s/it]
327
 
328
+
329
  6%|▌ | 160/2838 [05:37<1:34:07, 2.11s/it]
330
  6%|▌ | 161/2838 [05:39<1:34:23, 2.12s/it]
331
  6%|▌ | 162/2838 [05:41<1:34:43, 2.12s/it]
332
  6%|▌ | 163/2838 [05:43<1:33:40, 2.10s/it]
333
  6%|▌ | 164/2838 [05:45<1:33:26, 2.10s/it]
334
  6%|▌ | 165/2838 [05:47<1:32:54, 2.09s/it]
335
  6%|▌ | 166/2838 [05:49<1:32:55, 2.09s/it]
336
  6%|▌ | 167/2838 [05:51<1:32:49, 2.09s/it]
337
  6%|▌ | 168/2838 [05:53<1:33:18, 2.10s/it]
338
  6%|▌ | 169/2838 [05:55<1:33:32, 2.10s/it]
339
  6%|▌ | 170/2838 [05:57<1:33:40, 2.11s/it]
340
  6%|▌ | 171/2838 [06:00<1:34:17, 2.12s/it]
341
  6%|▌ | 172/2838 [06:02<1:33:55, 2.11s/it]
342
  6%|▌ | 173/2838 [06:04<1:33:30, 2.11s/it]
343
  6%|▌ | 174/2838 [06:06<1:33:45, 2.11s/it]
344
  6%|▌ | 175/2838 [06:08<1:33:52, 2.12s/it]
345
  6%|▌ | 176/2838 [06:10<1:33:41, 2.11s/it]
346
  6%|▌ | 177/2838 [06:12<1:34:19, 2.13s/it]
347
  6%|▋ | 178/2838 [06:14<1:33:53, 2.12s/it]
348
  6%|▋ | 179/2838 [06:16<1:33:31, 2.11s/it]
349
  6%|▋ | 180/2838 [06:19<1:33:30, 2.11s/it]
350
 
351
+
352
  6%|▋ | 180/2838 [06:19<1:33:30, 2.11s/it]
353
  6%|▋ | 181/2838 [06:21<1:34:25, 2.13s/it]
354
  6%|▋ | 182/2838 [06:23<1:34:22, 2.13s/it]
355
  6%|▋ | 183/2838 [06:25<1:33:50, 2.12s/it]
356
  6%|▋ | 184/2838 [06:27<1:34:32, 2.14s/it]
357
  7%|▋ | 185/2838 [06:29<1:33:48, 2.12s/it]
358
  7%|▋ | 186/2838 [06:31<1:33:33, 2.12s/it]
359
  7%|▋ | 187/2838 [06:33<1:32:59, 2.10s/it]
360
  7%|▋ | 188/2838 [06:36<1:32:52, 2.10s/it]
361
  7%|▋ | 189/2838 [06:38<1:32:52, 2.10s/it]
362
  7%|▋ | 190/2838 [06:40<1:33:34, 2.12s/it]
363
  7%|▋ | 191/2838 [06:42<1:33:38, 2.12s/it]
364
  7%|▋ | 192/2838 [06:44<1:33:52, 2.13s/it]
365
  7%|▋ | 193/2838 [06:46<1:33:48, 2.13s/it]
366
  7%|▋ | 194/2838 [06:48<1:34:24, 2.14s/it]
367
  7%|▋ | 195/2838 [06:51<1:35:01, 2.16s/it]
368
  7%|▋ | 196/2838 [06:53<1:35:01, 2.16s/it]
369
  7%|▋ | 197/2838 [06:55<1:34:22, 2.14s/it]
370
  7%|▋ | 198/2838 [06:57<1:33:17, 2.12s/it]
371
  7%|▋ | 199/2838 [06:59<1:33:34, 2.13s/it]
372
  7%|▋ | 200/2838 [07:01<1:33:47, 2.13s/it]
373
 
374
+
375
  7%|▋ | 200/2838 [07:01<1:33:47, 2.13s/it]
376
  7%|▋ | 201/2838 [07:03<1:33:33, 2.13s/it]
377
  7%|▋ | 202/2838 [07:05<1:32:40, 2.11s/it]
378
  7%|▋ | 203/2838 [07:08<1:33:29, 2.13s/it]
379
  7%|▋ | 204/2838 [07:10<1:34:10, 2.15s/it]
380
  7%|▋ | 205/2838 [07:12<1:34:36, 2.16s/it]
381
  7%|▋ | 206/2838 [07:14<1:33:36, 2.13s/it]
382
  7%|▋ | 207/2838 [07:16<1:33:07, 2.12s/it]
383
  7%|▋ | 208/2838 [07:18<1:32:50, 2.12s/it]
384
  7%|▋ | 209/2838 [07:20<1:33:07, 2.13s/it]
385
  7%|▋ | 210/2838 [07:22<1:32:54, 2.12s/it]
386
  7%|▋ | 211/2838 [07:25<1:32:50, 2.12s/it]
387
  7%|▋ | 212/2838 [07:27<1:32:21, 2.11s/it]
388
  8%|▊ | 213/2838 [07:29<1:32:18, 2.11s/it]
389
  8%|▊ | 214/2838 [07:31<1:32:17, 2.11s/it]
390
  8%|▊ | 215/2838 [07:33<1:32:44, 2.12s/it]
391
  8%|▊ | 216/2838 [07:35<1:32:33, 2.12s/it]
392
  8%|▊ | 217/2838 [07:37<1:33:19, 2.14s/it]
393
  8%|▊ | 218/2838 [07:39<1:33:19, 2.14s/it]
394
  8%|▊ | 219/2838 [07:42<1:32:24, 2.12s/it]
395
  8%|▊ | 220/2838 [07:44<1:32:11, 2.11s/it]
396
 
397
+
398
  8%|▊ | 220/2838 [07:44<1:32:11, 2.11s/it]
399
  8%|▊ | 221/2838 [07:46<1:32:08, 2.11s/it]
400
  8%|▊ | 222/2838 [07:48<1:32:28, 2.12s/it]
401
  8%|▊ | 223/2838 [07:50<1:32:22, 2.12s/it]
402
  8%|▊ | 224/2838 [07:52<1:32:52, 2.13s/it]
403
  8%|▊ | 225/2838 [07:54<1:32:50, 2.13s/it]
404
  8%|▊ | 226/2838 [07:56<1:31:46, 2.11s/it]
405
  8%|▊ | 227/2838 [07:58<1:31:29, 2.10s/it]
406
  8%|▊ | 228/2838 [08:01<1:31:36, 2.11s/it]
407
  8%|▊ | 229/2838 [08:03<1:31:14, 2.10s/it]
408
  8%|▊ | 230/2838 [08:05<1:31:38, 2.11s/it]
409
  8%|▊ | 231/2838 [08:07<1:31:50, 2.11s/it]
410
  8%|▊ | 232/2838 [08:09<1:32:03, 2.12s/it]
411
  8%|▊ | 233/2838 [08:11<1:31:59, 2.12s/it]
412
  8%|▊ | 234/2838 [08:14<1:36:10, 2.22s/it]
413
  8%|▊ | 235/2838 [08:16<1:37:31, 2.25s/it]
414
  8%|▊ | 236/2838 [08:18<1:35:31, 2.20s/it]
415
  8%|▊ | 237/2838 [08:20<1:34:12, 2.17s/it]
416
  8%|▊ | 238/2838 [08:22<1:32:53, 2.14s/it]
417
  8%|▊ | 239/2838 [08:24<1:32:15, 2.13s/it]
418
  8%|▊ | 240/2838 [08:26<1:31:59, 2.12s/it]
419
 
420
+
421
  8%|▊ | 240/2838 [08:26<1:31:59, 2.12s/it]
422
  8%|▊ | 241/2838 [08:28<1:31:27, 2.11s/it]
423
  9%|▊ | 242/2838 [08:31<1:30:43, 2.10s/it]
424
  9%|▊ | 243/2838 [08:33<1:31:13, 2.11s/it]
425
  9%|▊ | 244/2838 [08:35<1:30:44, 2.10s/it]
426
  9%|▊ | 245/2838 [08:37<1:30:56, 2.10s/it]
427
  9%|▊ | 246/2838 [08:39<1:31:04, 2.11s/it]
428
  9%|▊ | 247/2838 [08:41<1:31:03, 2.11s/it]
429
  9%|▊ | 248/2838 [08:43<1:31:38, 2.12s/it]
430
  9%|▉ | 249/2838 [08:45<1:31:25, 2.12s/it]
431
  9%|▉ | 250/2838 [08:47<1:31:16, 2.12s/it]
432
  9%|▉ | 251/2838 [08:50<1:31:05, 2.11s/it]
433
  9%|▉ | 252/2838 [08:52<1:31:04, 2.11s/it]
434
  9%|▉ | 253/2838 [08:54<1:31:21, 2.12s/it]
435
  9%|▉ | 254/2838 [08:56<1:31:01, 2.11s/it]
436
  9%|▉ | 255/2838 [08:58<1:30:57, 2.11s/it]
437
  9%|▉ | 256/2838 [09:00<1:30:58, 2.11s/it]
438
  9%|▉ | 257/2838 [09:02<1:31:07, 2.12s/it]
439
  9%|▉ | 258/2838 [09:04<1:30:20, 2.10s/it]
440
  9%|▉ | 259/2838 [09:07<1:31:11, 2.12s/it]
441
  9%|▉ | 260/2838 [09:09<1:31:47, 2.14s/it]
442
 
443
+
444
  9%|▉ | 260/2838 [09:09<1:31:47, 2.14s/it]
445
  9%|▉ | 261/2838 [09:11<1:31:35, 2.13s/it]
446
  9%|▉ | 262/2838 [09:13<1:31:01, 2.12s/it]
447
  9%|▉ | 263/2838 [09:15<1:30:48, 2.12s/it]
448
  9%|▉ | 264/2838 [09:17<1:30:47, 2.12s/it]
449
  9%|▉ | 265/2838 [09:19<1:30:54, 2.12s/it]
450
  9%|▉ | 266/2838 [09:21<1:30:18, 2.11s/it]
451
  9%|▉ | 267/2838 [09:23<1:30:55, 2.12s/it]
452
  9%|▉ | 268/2838 [09:26<1:30:30, 2.11s/it]
453
  9%|▉ | 269/2838 [09:28<1:31:34, 2.14s/it]
454
  10%|▉ | 270/2838 [09:30<1:31:03, 2.13s/it]
455
  10%|▉ | 271/2838 [09:32<1:30:22, 2.11s/it]
456
  10%|▉ | 272/2838 [09:34<1:30:28, 2.12s/it]
457
  10%|▉ | 273/2838 [09:36<1:30:06, 2.11s/it]
458
  10%|▉ | 274/2838 [09:38<1:29:39, 2.10s/it]
459
  10%|▉ | 275/2838 [09:40<1:29:56, 2.11s/it]
460
  10%|▉ | 276/2838 [09:42<1:29:52, 2.10s/it]
461
  10%|▉ | 277/2838 [09:45<1:29:48, 2.10s/it]
462
  10%|▉ | 278/2838 [09:47<1:30:17, 2.12s/it]
463
  10%|▉ | 279/2838 [09:49<1:30:06, 2.11s/it]
464
  10%|▉ | 280/2838 [09:51<1:29:59, 2.11s/it]
465
 
466
+
467
  10%|▉ | 280/2838 [09:51<1:29:59, 2.11s/it]
468
  10%|▉ | 281/2838 [09:53<1:30:11, 2.12s/it]
469
  10%|▉ | 282/2838 [09:55<1:30:09, 2.12s/it]
470
  10%|▉ | 283/2838 [09:57<1:30:18, 2.12s/it]
471
  10%|█ | 284/2838 [09:59<1:30:49, 2.13s/it]
472
  10%|█ | 285/2838 [10:02<1:31:14, 2.14s/it]
473
  10%|█ | 286/2838 [10:04<1:30:31, 2.13s/it]
474
  10%|█ | 287/2838 [10:06<1:29:54, 2.11s/it]
475
  10%|█ | 288/2838 [10:08<1:29:46, 2.11s/it]
476
  10%|█ | 289/2838 [10:10<1:29:31, 2.11s/it]
477
  10%|█ | 290/2838 [10:12<1:29:40, 2.11s/it]
478
  10%|█ | 291/2838 [10:14<1:29:38, 2.11s/it]
479
  10%|█ | 292/2838 [10:16<1:29:03, 2.10s/it]
480
  10%|█ | 293/2838 [10:18<1:29:27, 2.11s/it]
481
  10%|█ | 294/2838 [10:21<1:29:12, 2.10s/it]
482
  10%|█ | 295/2838 [10:23<1:30:21, 2.13s/it]
483
  10%|█ | 296/2838 [10:25<1:30:34, 2.14s/it]
484
  10%|█ | 297/2838 [10:27<1:30:00, 2.13s/it]
485
  11%|█ | 298/2838 [10:29<1:29:38, 2.12s/it]
486
  11%|█ | 299/2838 [10:31<1:29:36, 2.12s/it]
487
  11%|█ | 300/2838 [10:33<1:29:35, 2.12s/it]
488
 
489
+
490
  11%|█ | 300/2838 [10:33<1:29:35, 2.12s/it]
491
  11%|█ | 301/2838 [10:35<1:29:12, 2.11s/it]
492
  11%|█ | 302/2838 [10:38<1:29:31, 2.12s/it]
493
  11%|█ | 303/2838 [10:40<1:30:07, 2.13s/it]
494
  11%|█ | 304/2838 [10:42<1:29:16, 2.11s/it]
495
  11%|█ | 305/2838 [10:44<1:29:19, 2.12s/it]
496
  11%|█ | 306/2838 [10:46<1:29:34, 2.12s/it]
497
  11%|█ | 307/2838 [10:48<1:29:26, 2.12s/it]
498
  11%|█ | 308/2838 [10:50<1:29:04, 2.11s/it]
499
  11%|█ | 309/2838 [10:52<1:29:05, 2.11s/it]
500
  11%|█ | 310/2838 [10:54<1:28:56, 2.11s/it]
501
  11%|█ | 311/2838 [10:57<1:29:14, 2.12s/it]
502
  11%|█ | 312/2838 [10:59<1:29:10, 2.12s/it]
503
  11%|█ | 313/2838 [11:01<1:28:38, 2.11s/it]
504
  11%|█ | 314/2838 [11:03<1:28:52, 2.11s/it]
505
  11%|█ | 315/2838 [11:05<1:28:51, 2.11s/it]
506
  11%|█ | 316/2838 [11:07<1:29:02, 2.12s/it]
507
  11%|█ | 317/2838 [11:09<1:28:32, 2.11s/it]
508
  11%|█ | 318/2838 [11:11<1:28:54, 2.12s/it]
509
  11%|█ | 319/2838 [11:13<1:28:08, 2.10s/it]
510
  11%|█▏ | 320/2838 [11:16<1:28:03, 2.10s/it]
511
 
512
+
513
  11%|█▏ | 320/2838 [11:16<1:28:03, 2.10s/it]
514
  11%|█▏ | 321/2838 [11:18<1:27:57, 2.10s/it]
515
  11%|█▏ | 322/2838 [11:20<1:28:18, 2.11s/it]
516
  11%|█▏ | 323/2838 [11:22<1:28:08, 2.10s/it]
517
  11%|█▏ | 324/2838 [11:24<1:27:54, 2.10s/it]
518
  11%|█▏ | 325/2838 [11:26<1:28:20, 2.11s/it]
519
  11%|█▏ | 326/2838 [11:28<1:27:36, 2.09s/it]
520
  12%|█▏ | 327/2838 [11:30<1:27:03, 2.08s/it]
521
  12%|█▏ | 328/2838 [11:32<1:27:35, 2.09s/it]
522
  12%|█▏ | 329/2838 [11:34<1:27:41, 2.10s/it]
523
  12%|█▏ | 330/2838 [11:37<1:28:06, 2.11s/it]
524
  12%|█▏ | 331/2838 [11:39<1:27:59, 2.11s/it]
525
  12%|█▏ | 332/2838 [11:41<1:27:21, 2.09s/it]
526
  12%|█▏ | 333/2838 [11:43<1:27:40, 2.10s/it]
527
  12%|█▏ | 334/2838 [11:45<1:27:39, 2.10s/it]
528
  12%|█▏ | 335/2838 [11:47<1:28:19, 2.12s/it]
529
  12%|█▏ | 336/2838 [11:49<1:28:39, 2.13s/it]
530
  12%|█▏ | 337/2838 [11:51<1:28:38, 2.13s/it]
531
  12%|█▏ | 338/2838 [11:53<1:28:31, 2.12s/it]
532
  12%|█▏ | 339/2838 [11:56<1:28:42, 2.13s/it]
533
  12%|█▏ | 340/2838 [11:58<1:28:10, 2.12s/it]
534
 
535
+
536
  12%|█▏ | 340/2838 [11:58<1:28:10, 2.12s/it]
537
  12%|█▏ | 341/2838 [12:00<1:28:15, 2.12s/it]
538
  12%|█▏ | 342/2838 [12:02<1:28:03, 2.12s/it]
539
  12%|█▏ | 343/2838 [12:04<1:28:57, 2.14s/it]
540
  12%|█▏ | 344/2838 [12:06<1:28:30, 2.13s/it]
541
  12%|█▏ | 345/2838 [12:08<1:27:58, 2.12s/it]
542
  12%|█▏ | 346/2838 [12:10<1:27:34, 2.11s/it]
543
  12%|█▏ | 347/2838 [12:13<1:27:59, 2.12s/it]
544
  12%|█▏ | 348/2838 [12:15<1:27:45, 2.11s/it]
545
  12%|█▏ | 349/2838 [12:17<1:27:15, 2.10s/it]
546
  12%|█▏ | 350/2838 [12:19<1:29:50, 2.17s/it]
547
  12%|█▏ | 351/2838 [12:21<1:31:36, 2.21s/it]
548
  12%|█▏ | 352/2838 [12:23<1:30:18, 2.18s/it]
549
  12%|█▏ | 353/2838 [12:26<1:29:06, 2.15s/it]
550
  12%|█▏ | 354/2838 [12:28<1:28:01, 2.13s/it]
551
  13%|█▎ | 355/2838 [12:30<1:27:51, 2.12s/it]
552
  13%|█▎ | 356/2838 [12:32<1:28:10, 2.13s/it]
553
  13%|█▎ | 357/2838 [12:34<1:28:01, 2.13s/it]
554
  13%|█▎ | 358/2838 [12:36<1:27:44, 2.12s/it]
555
  13%|█▎ | 359/2838 [12:38<1:28:26, 2.14s/it]
556
  13%|█▎ | 360/2838 [12:40<1:27:41, 2.12s/it]
557
 
558
+
559
  13%|█▎ | 360/2838 [12:40<1:27:41, 2.12s/it]
560
  13%|█▎ | 361/2838 [12:43<1:28:08, 2.13s/it]
561
  13%|█▎ | 362/2838 [12:45<1:28:18, 2.14s/it]
562
  13%|█▎ | 363/2838 [12:47<1:27:42, 2.13s/it]
563
  13%|█▎ | 364/2838 [12:49<1:27:20, 2.12s/it]
564
  13%|█▎ | 365/2838 [12:51<1:27:31, 2.12s/it]
565
  13%|█▎ | 366/2838 [12:53<1:27:07, 2.11s/it]
566
  13%|█▎ | 367/2838 [12:55<1:27:20, 2.12s/it]
567
  13%|█▎ | 368/2838 [12:57<1:27:48, 2.13s/it]
568
  13%|█▎ | 369/2838 [13:00<1:27:10, 2.12s/it]
569
  13%|█▎ | 370/2838 [13:02<1:27:21, 2.12s/it]
570
  13%|█▎ | 371/2838 [13:04<1:27:39, 2.13s/it]
571
  13%|█▎ | 372/2838 [13:06<1:26:50, 2.11s/it]
572
  13%|█▎ | 373/2838 [13:08<1:27:21, 2.13s/it]
573
  13%|█▎ | 374/2838 [13:10<1:27:03, 2.12s/it]
574
  13%|█▎ | 375/2838 [13:12<1:26:20, 2.10s/it]
575
  13%|█▎ | 376/2838 [13:14<1:25:45, 2.09s/it]
576
  13%|█▎ | 377/2838 [13:16<1:25:49, 2.09s/it]
577
  13%|█▎ | 378/2838 [13:18<1:26:19, 2.11s/it]
578
  13%|█▎ | 379/2838 [13:21<1:26:37, 2.11s/it]
579
  13%|█▎ | 380/2838 [13:23<1:26:15, 2.11s/it]
580
 
581
+
582
  13%|█▎ | 380/2838 [13:23<1:26:15, 2.11s/it]
583
  13%|█▎ | 381/2838 [13:25<1:26:02, 2.10s/it]
584
  13%|█▎ | 382/2838 [13:27<1:25:53, 2.10s/it]
585
  13%|█▎ | 383/2838 [13:29<1:25:50, 2.10s/it]
586
  14%|█▎ | 384/2838 [13:31<1:25:51, 2.10s/it]
587
  14%|█▎ | 385/2838 [13:33<1:25:49, 2.10s/it]
588
  14%|█▎ | 386/2838 [13:35<1:25:48, 2.10s/it]
589
  14%|█▎ | 387/2838 [13:37<1:26:19, 2.11s/it]
590
  14%|█▎ | 388/2838 [13:40<1:26:01, 2.11s/it]
591
  14%|█▎ | 389/2838 [13:42<1:25:34, 2.10s/it]
592
  14%|█▎ | 390/2838 [13:44<1:25:31, 2.10s/it]
593
  14%|█▍ | 391/2838 [13:46<1:26:04, 2.11s/it]
594
  14%|█▍ | 392/2838 [13:48<1:26:11, 2.11s/it]
595
  14%|█▍ | 393/2838 [13:50<1:25:39, 2.10s/it]
596
  14%|█▍ | 394/2838 [13:52<1:26:04, 2.11s/it]
597
  14%|█▍ | 395/2838 [13:54<1:25:31, 2.10s/it]
598
  14%|█▍ | 396/2838 [13:56<1:25:37, 2.10s/it]
599
  14%|█▍ | 397/2838 [13:59<1:26:25, 2.12s/it]
600
  14%|█▍ | 398/2838 [14:01<1:25:50, 2.11s/it]
601
  14%|█▍ | 399/2838 [14:03<1:25:31, 2.10s/it]
602
  14%|█▍ | 400/2838 [14:05<1:25:48, 2.11s/it]
603
 
604
+
605
  14%|█▍ | 400/2838 [14:05<1:25:48, 2.11s/it]
606
  14%|█▍ | 401/2838 [14:07<1:26:24, 2.13s/it]
607
  14%|█▍ | 402/2838 [14:09<1:26:05, 2.12s/it]
608
  14%|█▍ | 403/2838 [14:11<1:25:53, 2.12s/it]
609
  14%|█▍ | 404/2838 [14:13<1:25:34, 2.11s/it]
610
  14%|█▍ | 405/2838 [14:15<1:26:20, 2.13s/it]
611
  14%|█▍ | 406/2838 [14:18<1:26:38, 2.14s/it]
612
  14%|█▍ | 407/2838 [14:20<1:27:48, 2.17s/it]
613
  14%|█▍ | 408/2838 [14:22<1:26:56, 2.15s/it]
614
  14%|█▍ | 409/2838 [14:24<1:26:57, 2.15s/it]
615
  14%|█▍ | 410/2838 [14:26<1:26:25, 2.14s/it]
616
  14%|█▍ | 411/2838 [14:28<1:26:22, 2.14s/it]
617
  15%|█▍ | 412/2838 [14:31<1:26:20, 2.14s/it]
618
  15%|█▍ | 413/2838 [14:33<1:26:32, 2.14s/it]
619
  15%|█▍ | 414/2838 [14:35<1:26:30, 2.14s/it]
620
  15%|█▍ | 415/2838 [14:37<1:26:01, 2.13s/it]
621
  15%|█▍ | 416/2838 [14:39<1:25:53, 2.13s/it]
622
  15%|█▍ | 417/2838 [14:41<1:25:53, 2.13s/it]
623
  15%|█▍ | 418/2838 [14:43<1:25:27, 2.12s/it]
624
  15%|█▍ | 419/2838 [14:45<1:25:50, 2.13s/it]
625
  15%|█▍ | 420/2838 [14:47<1:25:05, 2.11s/it]
626
 
627
+
628
  15%|█▍ | 420/2838 [14:48<1:25:05, 2.11s/it]
629
  15%|█▍ | 421/2838 [14:50<1:25:40, 2.13s/it]
630
  15%|█▍ | 422/2838 [14:52<1:25:27, 2.12s/it]
631
  15%|█▍ | 423/2838 [14:54<1:25:04, 2.11s/it]
632
  15%|█▍ | 424/2838 [14:56<1:24:47, 2.11s/it]
633
  15%|█▍ | 425/2838 [14:58<1:24:25, 2.10s/it]
634
  15%|█▌ | 426/2838 [15:00<1:24:45, 2.11s/it]
635
  15%|█▌ | 427/2838 [15:02<1:25:37, 2.13s/it]
636
  15%|█▌ | 428/2838 [15:04<1:25:41, 2.13s/it]
637
  15%|█▌ | 429/2838 [15:07<1:25:20, 2.13s/it]
638
  15%|█▌ | 430/2838 [15:09<1:25:21, 2.13s/it]
639
  15%|█▌ | 431/2838 [15:11<1:24:38, 2.11s/it]
640
  15%|█▌ | 432/2838 [15:13<1:25:13, 2.13s/it]
641
  15%|█▌ | 433/2838 [15:15<1:24:43, 2.11s/it]
642
  15%|█▌ | 434/2838 [15:17<1:24:53, 2.12s/it]
643
  15%|█▌ | 435/2838 [15:19<1:24:42, 2.11s/it]
644
  15%|█▌ | 436/2838 [15:21<1:24:09, 2.10s/it]
645
  15%|█▌ | 437/2838 [15:23<1:24:53, 2.12s/it]
646
  15%|█▌ | 438/2838 [15:26<1:24:18, 2.11s/it]
647
  15%|█▌ | 439/2838 [15:28<1:24:11, 2.11s/it]
648
  16%|█▌ | 440/2838 [15:30<1:24:45, 2.12s/it]
649
 
650
+
651
  16%|█▌ | 440/2838 [15:30<1:24:45, 2.12s/it]
652
  16%|█▌ | 441/2838 [15:32<1:24:53, 2.12s/it]
653
  16%|█▌ | 442/2838 [15:34<1:25:14, 2.13s/it]
654
  16%|█▌ | 443/2838 [15:36<1:24:46, 2.12s/it]
655
  16%|█▌ | 444/2838 [15:38<1:24:15, 2.11s/it]
656
  16%|█▌ | 445/2838 [15:40<1:24:07, 2.11s/it]
657
  16%|█▌ | 446/2838 [15:43<1:24:28, 2.12s/it]
658
  16%|█▌ | 447/2838 [15:45<1:24:12, 2.11s/it]
659
  16%|█▌ | 448/2838 [15:47<1:24:31, 2.12s/it]
660
  16%|█▌ | 449/2838 [15:49<1:24:08, 2.11s/it]
661
  16%|█▌ | 450/2838 [15:51<1:24:54, 2.13s/it]
662
  16%|█▌ | 451/2838 [15:53<1:24:55, 2.13s/it]
663
  16%|█▌ | 452/2838 [15:55<1:24:20, 2.12s/it]
664
  16%|█▌ | 453/2838 [15:57<1:24:27, 2.12s/it]
665
  16%|█▌ | 454/2838 [16:00<1:24:02, 2.12s/it]
666
  16%|█▌ | 455/2838 [16:02<1:23:59, 2.11s/it]
667
  16%|█▌ | 456/2838 [16:04<1:23:52, 2.11s/it]
668
  16%|█▌ | 457/2838 [16:06<1:23:57, 2.12s/it]
669
  16%|█▌ | 458/2838 [16:08<1:23:38, 2.11s/it]
670
  16%|█▌ | 459/2838 [16:10<1:24:22, 2.13s/it]
671
  16%|█▌ | 460/2838 [16:12<1:23:38, 2.11s/it]
672
 
673
+
674
  16%|█▌ | 460/2838 [16:12<1:23:38, 2.11s/it]
675
  16%|█▌ | 461/2838 [16:14<1:24:22, 2.13s/it]
676
  16%|█▋ | 462/2838 [16:17<1:24:51, 2.14s/it]
677
  16%|█▋ | 463/2838 [16:19<1:25:15, 2.15s/it]
678
  16%|█▋ | 464/2838 [16:21<1:24:28, 2.14s/it]
679
  16%|█▋ | 465/2838 [16:23<1:23:26, 2.11s/it]
680
  16%|█▋ | 466/2838 [16:25<1:23:23, 2.11s/it]
681
  16%|█▋ | 467/2838 [16:27<1:25:11, 2.16s/it]
682
  16%|█▋ | 468/2838 [16:29<1:24:26, 2.14s/it]
683
  17%|█▋ | 469/2838 [16:31<1:23:56, 2.13s/it]
684
  17%|█▋ | 470/2838 [16:34<1:24:01, 2.13s/it]
685
  17%|█▋ | 471/2838 [16:36<1:24:22, 2.14s/it]
686
  17%|█▋ | 472/2838 [16:38<1:23:28, 2.12s/it]
687
  17%|█▋ | 473/2838 [16:40<1:23:39, 2.12s/it]
688
  17%|█▋ | 474/2838 [16:42<1:23:05, 2.11s/it]
689
  17%|█▋ | 475/2838 [16:44<1:23:19, 2.12s/it]
690
  17%|█▋ | 476/2838 [16:46<1:22:56, 2.11s/it]
691
  17%|█▋ | 477/2838 [16:48<1:23:03, 2.11s/it]
692
  17%|█▋ | 478/2838 [16:50<1:22:25, 2.10s/it]
693
  17%|█▋ | 479/2838 [16:53<1:22:40, 2.10s/it]
694
  17%|█▋ | 480/2838 [16:55<1:23:00, 2.11s/it]
695
 
696
+
697
  17%|█▋ | 480/2838 [16:55<1:23:00, 2.11s/it]
698
  17%|█▋ | 481/2838 [16:57<1:23:43, 2.13s/it]
699
  17%|█▋ | 482/2838 [16:59<1:24:13, 2.14s/it]
700
  17%|█▋ | 483/2838 [17:01<1:23:53, 2.14s/it]
701
  17%|█▋ | 484/2838 [17:03<1:23:26, 2.13s/it]
702
  17%|█▋ | 485/2838 [17:05<1:23:13, 2.12s/it]
703
  17%|█▋ | 486/2838 [17:07<1:23:12, 2.12s/it]
704
  17%|█▋ | 487/2838 [17:10<1:22:53, 2.12s/it]
705
  17%|█▋ | 488/2838 [17:12<1:22:37, 2.11s/it]
706
  17%|█▋ | 489/2838 [17:14<1:22:35, 2.11s/it]
707
  17%|█▋ | 490/2838 [17:16<1:22:18, 2.10s/it]
708
  17%|█▋ | 491/2838 [17:18<1:22:34, 2.11s/it]
709
  17%|█▋ | 492/2838 [17:20<1:22:24, 2.11s/it]
710
  17%|█▋ | 493/2838 [17:22<1:22:26, 2.11s/it]
711
  17%|█▋ | 494/2838 [17:24<1:22:14, 2.11s/it]
712
  17%|█▋ | 495/2838 [17:26<1:22:38, 2.12s/it]
713
  17%|█▋ | 496/2838 [17:29<1:22:31, 2.11s/it]
714
  18%|█▊ | 497/2838 [17:31<1:22:56, 2.13s/it]
715
  18%|█▊ | 498/2838 [17:33<1:22:21, 2.11s/it]
716
  18%|█▊ | 499/2838 [17:35<1:22:49, 2.12s/it]
717
  18%|█▊ | 500/2838 [17:37<1:22:41, 2.12s/it]
718
 
719
+
720
  18%|█▊ | 500/2838 [17:37<1:22:41, 2.12s/it]Saving model checkpoint to save/sft_rats40k_20260608_165938/checkpoint-500
721
+ Configuration saved in save/sft_rats40k_20260608_165938/checkpoint-500/config.json
722
+ Configuration saved in save/sft_rats40k_20260608_165938/checkpoint-500/generation_config.json
723
+ Model weights saved in save/sft_rats40k_20260608_165938/checkpoint-500/model.safetensors
724
+ Saving Trainer.data_collator.tokenizer by default as Trainer.processing_class is `None`
725
+ chat template saved in save/sft_rats40k_20260608_165938/checkpoint-500/chat_template.jinja
726
+ tokenizer config file saved in save/sft_rats40k_20260608_165938/checkpoint-500/tokenizer_config.json
727
+ Special tokens file saved in save/sft_rats40k_20260608_165938/checkpoint-500/special_tokens_map.json
728
+
729
  18%|█▊ | 501/2838 [19:10<19:03:47, 29.37s/it]
730
  18%|█▊ | 502/2838 [19:12<13:44:20, 21.17s/it]
731
  18%|█▊ | 503/2838 [19:14<10:00:37, 15.43s/it]
732
  18%|█▊ | 504/2838 [19:16<7:24:04, 11.42s/it]
733
  18%|█▊ | 505/2838 [19:18<5:34:52, 8.61s/it]
734
  18%|█▊ | 506/2838 [19:20<4:18:08, 6.64s/it]
735
  18%|█▊ | 507/2838 [19:22<3:25:03, 5.28s/it]
736
  18%|█▊ | 508/2838 [19:24<2:47:47, 4.32s/it]
737
  18%|█▊ | 509/2838 [19:26<2:21:15, 3.64s/it]
738
  18%|█▊ | 510/2838 [19:29<2:03:22, 3.18s/it]
739
  18%|█▊ | 511/2838 [19:31<1:50:12, 2.84s/it]
740
  18%|█▊ | 512/2838 [19:33<1:40:50, 2.60s/it]
741
  18%|█▊ | 513/2838 [19:35<1:34:01, 2.43s/it]
742
  18%|█▊ | 514/2838 [19:37<1:29:29, 2.31s/it]
743
  18%|█�� | 515/2838 [19:39<1:26:13, 2.23s/it]
744
  18%|█▊ | 516/2838 [19:41<1:24:41, 2.19s/it]
745
  18%|█▊ | 517/2838 [19:43<1:24:27, 2.18s/it]
746
  18%|█▊ | 518/2838 [19:45<1:23:11, 2.15s/it]
747
  18%|█▊ | 519/2838 [19:47<1:22:07, 2.12s/it]
748
  18%|█▊ | 520/2838 [19:49<1:21:46, 2.12s/it]
749
 
750
+
751
  18%|█▊ | 520/2838 [19:49<1:21:46, 2.12s/it]
752
  18%|█▊ | 521/2838 [19:51<1:21:24, 2.11s/it]
753
  18%|█▊ | 522/2838 [19:53<1:21:23, 2.11s/it]
754
  18%|█▊ | 523/2838 [19:56<1:20:35, 2.09s/it]
755
  18%|█▊ | 524/2838 [19:58<1:20:48, 2.10s/it]
756
  18%|█▊ | 525/2838 [20:00<1:21:11, 2.11s/it]
757
  19%|█▊ | 526/2838 [20:02<1:20:34, 2.09s/it]
758
  19%|█▊ | 527/2838 [20:04<1:19:49, 2.07s/it]
759
  19%|█▊ | 528/2838 [20:06<1:20:09, 2.08s/it]
760
  19%|█▊ | 529/2838 [20:08<1:20:19, 2.09s/it]
761
  19%|█▊ | 530/2838 [20:10<1:20:09, 2.08s/it]
762
  19%|█▊ | 531/2838 [20:12<1:20:46, 2.10s/it]
763
  19%|█▊ | 532/2838 [20:14<1:21:18, 2.12s/it]
764
  19%|█▉ | 533/2838 [20:17<1:21:16, 2.12s/it]
765
  19%|█▉ | 534/2838 [20:19<1:20:59, 2.11s/it]
766
  19%|█▉ | 535/2838 [20:21<1:21:00, 2.11s/it]
767
  19%|█▉ | 536/2838 [20:23<1:21:14, 2.12s/it]
768
  19%|█▉ | 537/2838 [20:25<1:21:07, 2.12s/it]
769
  19%|█▉ | 538/2838 [20:27<1:20:33, 2.10s/it]
770
  19%|█▉ | 539/2838 [20:29<1:20:13, 2.09s/it]
771
  19%|█▉ | 540/2838 [20:31<1:20:00, 2.09s/it]
772
 
773
+
774
  19%|█▉ | 540/2838 [20:31<1:20:00, 2.09s/it]
775
  19%|█▉ | 541/2838 [20:33<1:20:07, 2.09s/it]
776
  19%|█▉ | 542/2838 [20:35<1:20:45, 2.11s/it]
777
  19%|█▉ | 543/2838 [20:38<1:20:17, 2.10s/it]
778
  19%|█▉ | 544/2838 [20:40<1:20:01, 2.09s/it]
779
  19%|█▉ | 545/2838 [20:42<1:20:25, 2.10s/it]
780
  19%|█▉ | 546/2838 [20:44<1:20:11, 2.10s/it]
781
  19%|█▉ | 547/2838 [20:46<1:20:05, 2.10s/it]
782
  19%|█▉ | 548/2838 [20:48<1:20:27, 2.11s/it]
783
  19%|█▉ | 549/2838 [20:50<1:20:44, 2.12s/it]
784
  19%|█▉ | 550/2838 [20:52<1:21:03, 2.13s/it]
785
  19%|█▉ | 551/2838 [20:54<1:20:46, 2.12s/it]
786
  19%|█▉ | 552/2838 [20:57<1:20:48, 2.12s/it]
787
  19%|█▉ | 553/2838 [20:59<1:20:25, 2.11s/it]
788
  20%|█▉ | 554/2838 [21:01<1:20:14, 2.11s/it]
789
  20%|█▉ | 555/2838 [21:03<1:20:10, 2.11s/it]
790
  20%|█▉ | 556/2838 [21:05<1:20:28, 2.12s/it]
791
  20%|█▉ | 557/2838 [21:07<1:19:58, 2.10s/it]
792
  20%|█▉ | 558/2838 [21:09<1:19:45, 2.10s/it]
793
  20%|█▉ | 559/2838 [21:11<1:20:28, 2.12s/it]
794
  20%|█▉ | 560/2838 [21:13<1:20:39, 2.12s/it]
795
 
796
+
797
  20%|█▉ | 560/2838 [21:14<1:20:39, 2.12s/it]
798
  20%|█▉ | 561/2838 [21:16<1:20:30, 2.12s/it]
799
  20%|█▉ | 562/2838 [21:18<1:20:42, 2.13s/it]
800
  20%|█▉ | 563/2838 [21:20<1:20:14, 2.12s/it]
801
  20%|█▉ | 564/2838 [21:22<1:19:58, 2.11s/it]
802
  20%|█▉ | 565/2838 [21:24<1:20:08, 2.12s/it]
803
  20%|█▉ | 566/2838 [21:26<1:20:11, 2.12s/it]
804
  20%|█▉ | 567/2838 [21:28<1:19:52, 2.11s/it]
805
  20%|██ | 568/2838 [21:30<1:20:20, 2.12s/it]
806
  20%|██ | 569/2838 [21:33<1:20:10, 2.12s/it]
807
  20%|██ | 570/2838 [21:35<1:20:27, 2.13s/it]
808
  20%|██ | 571/2838 [21:37<1:19:58, 2.12s/it]
809
  20%|██ | 572/2838 [21:39<1:19:40, 2.11s/it]
810
  20%|██ | 573/2838 [21:41<1:19:20, 2.10s/it]
811
  20%|██ | 574/2838 [21:43<1:19:05, 2.10s/it]
812
  20%|██ | 575/2838 [21:45<1:18:58, 2.09s/it]
813
  20%|██ | 576/2838 [21:47<1:19:05, 2.10s/it]
814
  20%|██ | 577/2838 [21:49<1:18:52, 2.09s/it]
815
  20%|██ | 578/2838 [21:51<1:19:19, 2.11s/it]
816
  20%|██ | 579/2838 [21:54<1:19:32, 2.11s/it]
817
  20%|██ | 580/2838 [21:56<1:19:15, 2.11s/it]
818
 
819
+
820
  20%|██ | 580/2838 [21:56<1:19:15, 2.11s/it]
821
  20%|██ | 581/2838 [21:58<1:19:23, 2.11s/it]
822
  21%|██ | 582/2838 [22:00<1:19:52, 2.12s/it]
823
  21%|██ | 583/2838 [22:02<1:22:26, 2.19s/it]
824
  21%|██ | 584/2838 [22:05<1:23:29, 2.22s/it]
825
  21%|██ | 585/2838 [22:07<1:22:02, 2.18s/it]
826
  21%|██ | 586/2838 [22:09<1:21:01, 2.16s/it]
827
  21%|██ | 587/2838 [22:11<1:20:19, 2.14s/it]
828
  21%|██ | 588/2838 [22:13<1:19:36, 2.12s/it]
829
  21%|██ | 589/2838 [22:15<1:20:31, 2.15s/it]
830
  21%|██ | 590/2838 [22:17<1:20:04, 2.14s/it]
831
  21%|██ | 591/2838 [22:19<1:19:57, 2.13s/it]
832
  21%|██ | 592/2838 [22:22<1:19:54, 2.13s/it]
833
  21%|██ | 593/2838 [22:24<1:19:23, 2.12s/it]
834
  21%|██ | 594/2838 [22:26<1:20:05, 2.14s/it]
835
  21%|██ | 595/2838 [22:28<1:19:31, 2.13s/it]
836
  21%|██ | 596/2838 [22:30<1:19:00, 2.11s/it]
837
  21%|██ | 597/2838 [22:32<1:19:31, 2.13s/it]
838
  21%|██ | 598/2838 [22:34<1:18:55, 2.11s/it]
839
  21%|██ | 599/2838 [22:36<1:18:49, 2.11s/it]
840
  21%|██ | 600/2838 [22:38<1:18:50, 2.11s/it]
841
 
842
+
843
  21%|██ | 600/2838 [22:39<1:18:50, 2.11s/it]
844
  21%|██ | 601/2838 [22:41<1:20:22, 2.16s/it]
845
  21%|██ | 602/2838 [22:43<1:19:24, 2.13s/it]
846
  21%|██ | 603/2838 [22:45<1:19:08, 2.12s/it]
847
  21%|██▏ | 604/2838 [22:47<1:19:16, 2.13s/it]
848
  21%|██▏ | 605/2838 [22:49<1:18:43, 2.12s/it]
849
  21%|██▏ | 606/2838 [22:51<1:18:36, 2.11s/it]
850
  21%|██▏ | 607/2838 [22:53<1:18:40, 2.12s/it]
851
  21%|██▏ | 608/2838 [22:55<1:18:41, 2.12s/it]
852
  21%|██▏ | 609/2838 [22:58<1:19:14, 2.13s/it]
853
  21%|██▏ | 610/2838 [23:00<1:19:02, 2.13s/it]
854
  22%|██▏ | 611/2838 [23:02<1:18:40, 2.12s/it]
855
  22%|██▏ | 612/2838 [23:04<1:19:19, 2.14s/it]
856
  22%|██▏ | 613/2838 [23:06<1:18:21, 2.11s/it]
857
  22%|██▏ | 614/2838 [23:08<1:18:25, 2.12s/it]
858
  22%|██▏ | 615/2838 [23:10<1:19:04, 2.13s/it]
859
  22%|██▏ | 616/2838 [23:13<1:19:10, 2.14s/it]
860
  22%|██▏ | 617/2838 [23:15<1:19:29, 2.15s/it]
861
  22%|██▏ | 618/2838 [23:17<1:19:06, 2.14s/it]
862
  22%|██▏ | 619/2838 [23:19<1:19:41, 2.15s/it]
863
  22%|██▏ | 620/2838 [23:21<1:19:35, 2.15s/it]
864
 
865
+
866
  22%|██▏ | 620/2838 [23:21<1:19:35, 2.15s/it]
867
  22%|██▏ | 621/2838 [23:23<1:19:26, 2.15s/it]
868
  22%|██▏ | 622/2838 [23:25<1:19:14, 2.15s/it]
869
  22%|██▏ | 623/2838 [23:28<1:18:39, 2.13s/it]
870
  22%|██▏ | 624/2838 [23:30<1:18:22, 2.12s/it]
871
  22%|██▏ | 625/2838 [23:32<1:18:23, 2.13s/it]
872
  22%|██▏ | 626/2838 [23:34<1:19:02, 2.14s/it]
873
  22%|██▏ | 627/2838 [23:36<1:18:40, 2.14s/it]
874
  22%|██▏ | 628/2838 [23:38<1:18:32, 2.13s/it]
875
  22%|██▏ | 629/2838 [23:41<1:21:33, 2.22s/it]
876
  22%|██▏ | 630/2838 [23:43<1:20:14, 2.18s/it]
877
  22%|██▏ | 631/2838 [23:45<1:20:35, 2.19s/it]
878
  22%|██▏ | 632/2838 [23:47<1:19:52, 2.17s/it]
879
  22%|██▏ | 633/2838 [23:49<1:19:03, 2.15s/it]
880
  22%|██▏ | 634/2838 [23:51<1:19:36, 2.17s/it]
881
  22%|██▏ | 635/2838 [23:54<1:19:57, 2.18s/it]
882
  22%|██▏ | 636/2838 [23:56<1:18:53, 2.15s/it]
883
  22%|██▏ | 637/2838 [23:58<1:19:06, 2.16s/it]
884
  22%|██▏ | 638/2838 [24:00<1:18:02, 2.13s/it]
885
  23%|██▎ | 639/2838 [24:02<1:18:39, 2.15s/it]
886
  23%|██▎ | 640/2838 [24:04<1:18:28, 2.14s/it]
887
 
888
+
889
  23%|██▎ | 640/2838 [24:04<1:18:28, 2.14s/it]
890
  23%|██▎ | 641/2838 [24:06<1:18:21, 2.14s/it]
891
  23%|██▎ | 642/2838 [24:08<1:17:42, 2.12s/it]
892
  23%|██▎ | 643/2838 [24:10<1:17:13, 2.11s/it]
893
  23%|██▎ | 644/2838 [24:13<1:17:42, 2.13s/it]
894
  23%|██▎ | 645/2838 [24:15<1:17:40, 2.13s/it]
895
  23%|██▎ | 646/2838 [24:17<1:17:37, 2.12s/it]
896
  23%|██▎ | 647/2838 [24:19<1:18:19, 2.14s/it]
897
  23%|██▎ | 648/2838 [24:21<1:17:48, 2.13s/it]
898
  23%|██▎ | 649/2838 [24:23<1:18:27, 2.15s/it]
899
  23%|██▎ | 650/2838 [24:26<1:19:47, 2.19s/it]
900
  23%|██▎ | 651/2838 [24:28<1:19:10, 2.17s/it]
901
  23%|██▎ | 652/2838 [24:30<1:19:40, 2.19s/it]
902
  23%|██▎ | 653/2838 [24:32<1:20:04, 2.20s/it]
903
  23%|██▎ | 654/2838 [24:34<1:20:29, 2.21s/it]
904
  23%|██▎ | 655/2838 [24:37<1:20:05, 2.20s/it]
905
  23%|██▎ | 656/2838 [24:39<1:18:35, 2.16s/it]
906
  23%|██▎ | 657/2838 [24:41<1:17:54, 2.14s/it]
907
  23%|██▎ | 658/2838 [24:43<1:17:39, 2.14s/it]
908
  23%|██▎ | 659/2838 [24:45<1:17:11, 2.13s/it]
909
  23%|██▎ | 660/2838 [24:47<1:17:05, 2.12s/it]
910
 
911
+
912
  23%|██▎ | 660/2838 [24:47<1:17:05, 2.12s/it]
913
  23%|██▎ | 661/2838 [24:49<1:17:19, 2.13s/it]
914
  23%|█���▎ | 662/2838 [24:51<1:16:57, 2.12s/it]
915
  23%|██▎ | 663/2838 [24:54<1:16:55, 2.12s/it]
916
  23%|██▎ | 664/2838 [24:56<1:16:42, 2.12s/it]
917
  23%|██▎ | 665/2838 [24:58<1:17:01, 2.13s/it]
918
  23%|██▎ | 666/2838 [25:00<1:16:33, 2.11s/it]
919
  24%|██▎ | 667/2838 [25:02<1:16:20, 2.11s/it]
920
  24%|██▎ | 668/2838 [25:04<1:15:45, 2.09s/it]
921
  24%|██▎ | 669/2838 [25:06<1:16:42, 2.12s/it]
922
  24%|██▎ | 670/2838 [25:08<1:16:54, 2.13s/it]
923
  24%|██▎ | 671/2838 [25:11<1:17:07, 2.14s/it]
924
  24%|██▎ | 672/2838 [25:13<1:17:04, 2.13s/it]
925
  24%|██▎ | 673/2838 [25:15<1:16:29, 2.12s/it]
926
  24%|██▎ | 674/2838 [25:17<1:16:18, 2.12s/it]
927
  24%|██▍ | 675/2838 [25:19<1:16:15, 2.12s/it]
928
  24%|██▍ | 676/2838 [25:21<1:16:11, 2.11s/it]
929
  24%|██▍ | 677/2838 [25:23<1:16:32, 2.13s/it]
930
  24%|██▍ | 678/2838 [25:25<1:16:20, 2.12s/it]
931
  24%|██▍ | 679/2838 [25:27<1:16:09, 2.12s/it]
932
  24%|██▍ | 680/2838 [25:30<1:16:23, 2.12s/it]
933
 
934
+
935
  24%|██▍ | 680/2838 [25:30<1:16:23, 2.12s/it]
936
  24%|██▍ | 681/2838 [25:32<1:16:08, 2.12s/it]
937
  24%|██▍ | 682/2838 [25:34<1:16:10, 2.12s/it]
938
  24%|██▍ | 683/2838 [25:36<1:16:12, 2.12s/it]
939
  24%|██▍ | 684/2838 [25:38<1:16:07, 2.12s/it]
940
  24%|██▍ | 685/2838 [25:40<1:15:26, 2.10s/it]
941
  24%|██▍ | 686/2838 [25:42<1:15:00, 2.09s/it]
942
  24%|██▍ | 687/2838 [25:44<1:14:45, 2.09s/it]
943
  24%|██▍ | 688/2838 [25:46<1:14:37, 2.08s/it]
944
  24%|██▍ | 689/2838 [25:48<1:15:10, 2.10s/it]
945
  24%|██▍ | 690/2838 [25:51<1:15:25, 2.11s/it]
946
  24%|██▍ | 691/2838 [25:53<1:14:56, 2.09s/it]
947
  24%|██▍ | 692/2838 [25:55<1:15:11, 2.10s/it]
948
  24%|██▍ | 693/2838 [25:57<1:15:12, 2.10s/it]
949
  24%|██▍ | 694/2838 [25:59<1:14:41, 2.09s/it]
950
  24%|██▍ | 695/2838 [26:01<1:14:44, 2.09s/it]
951
  25%|██▍ | 696/2838 [26:03<1:14:33, 2.09s/it]
952
  25%|██▍ | 697/2838 [26:05<1:14:53, 2.10s/it]
953
  25%|██▍ | 698/2838 [26:07<1:15:09, 2.11s/it]
954
  25%|██▍ | 699/2838 [26:09<1:15:10, 2.11s/it]
955
  25%|██▍ | 700/2838 [26:12<1:16:01, 2.13s/it]
956
 
957
+
958
  25%|██▍ | 700/2838 [26:12<1:16:01, 2.13s/it]
959
  25%|██▍ | 701/2838 [26:14<1:15:18, 2.11s/it]
960
  25%|██▍ | 702/2838 [26:16<1:15:19, 2.12s/it]
961
  25%|██▍ | 703/2838 [26:18<1:17:58, 2.19s/it]
962
  25%|██▍ | 704/2838 [26:21<1:19:26, 2.23s/it]
963
  25%|██▍ | 705/2838 [26:23<1:17:49, 2.19s/it]
964
  25%|██▍ | 706/2838 [26:25<1:17:08, 2.17s/it]
965
  25%|██▍ | 707/2838 [26:27<1:17:47, 2.19s/it]
966
  25%|██▍ | 708/2838 [26:29<1:17:14, 2.18s/it]
967
  25%|██▍ | 709/2838 [26:31<1:16:44, 2.16s/it]
968
  25%|██▌ | 710/2838 [26:33<1:16:05, 2.15s/it]
969
  25%|██▌ | 711/2838 [26:35<1:15:35, 2.13s/it]
970
  25%|██▌ | 712/2838 [26:38<1:15:25, 2.13s/it]
971
  25%|██▌ | 713/2838 [26:40<1:15:05, 2.12s/it]
972
  25%|██▌ | 714/2838 [26:42<1:15:00, 2.12s/it]
973
  25%|██▌ | 715/2838 [26:44<1:15:18, 2.13s/it]
974
  25%|██▌ | 716/2838 [26:46<1:14:44, 2.11s/it]
975
  25%|██▌ | 717/2838 [26:48<1:14:49, 2.12s/it]
976
  25%|██▌ | 718/2838 [26:50<1:14:37, 2.11s/it]
977
  25%|██▌ | 719/2838 [26:52<1:14:44, 2.12s/it]
978
  25%|██▌ | 720/2838 [26:55<1:15:01, 2.13s/it]
979
 
980
+
981
  25%|██▌ | 720/2838 [26:55<1:15:01, 2.13s/it]
982
  25%|██▌ | 721/2838 [26:57<1:15:32, 2.14s/it]
983
  25%|██▌ | 722/2838 [26:59<1:14:52, 2.12s/it]
984
  25%|██▌ | 723/2838 [27:01<1:15:05, 2.13s/it]
985
  26%|██▌ | 724/2838 [27:03<1:14:38, 2.12s/it]
986
  26%|██▌ | 725/2838 [27:05<1:14:38, 2.12s/it]
987
  26%|██▌ | 726/2838 [27:07<1:14:41, 2.12s/it]
988
  26%|██▌ | 727/2838 [27:09<1:14:14, 2.11s/it]
989
  26%|██▌ | 728/2838 [27:12<1:14:55, 2.13s/it]
990
  26%|██▌ | 729/2838 [27:14<1:15:17, 2.14s/it]
991
  26%|██▌ | 730/2838 [27:16<1:14:56, 2.13s/it]
992
  26%|██▌ | 731/2838 [27:18<1:15:19, 2.14s/it]
993
  26%|██▌ | 732/2838 [27:20<1:14:35, 2.12s/it]
994
  26%|██▌ | 733/2838 [27:22<1:14:11, 2.11s/it]
995
  26%|██▌ | 734/2838 [27:24<1:14:01, 2.11s/it]
996
  26%|██▌ | 735/2838 [27:26<1:14:20, 2.12s/it]
997
  26%|██▌ | 736/2838 [27:29<1:14:51, 2.14s/it]
998
  26%|██▌ | 737/2838 [27:31<1:14:32, 2.13s/it]
999
  26%|██▌ | 738/2838 [27:33<1:14:18, 2.12s/it]
1000
  26%|██▌ | 739/2838 [27:35<1:14:24, 2.13s/it]
1001
  26%|██▌ | 740/2838 [27:37<1:14:48, 2.14s/it]
1002
 
1003
+
1004
  26%|██▌ | 740/2838 [27:37<1:14:48, 2.14s/it]
1005
  26%|██▌ | 741/2838 [27:39<1:14:06, 2.12s/it]
1006
  26%|██▌ | 742/2838 [27:41<1:14:11, 2.12s/it]
1007
  26%|██▌ | 743/2838 [27:44<1:14:38, 2.14s/it]
1008
  26%|██▌ | 744/2838 [27:46<1:14:31, 2.14s/it]
1009
  26%|██▋ | 745/2838 [27:48<1:14:14, 2.13s/it]
1010
  26%|██▋ | 746/2838 [27:50<1:14:06, 2.13s/it]
1011
  26%|██▋ | 747/2838 [27:52<1:14:06, 2.13s/it]
1012
  26%|██▋ | 748/2838 [27:54<1:14:31, 2.14s/it]
1013
  26%|██▋ | 749/2838 [27:56<1:14:07, 2.13s/it]
1014
  26%|██▋ | 750/2838 [27:58<1:13:41, 2.12s/it]
1015
  26%|██▋ | 751/2838 [28:00<1:13:43, 2.12s/it]
1016
  26%|██▋ | 752/2838 [28:03<1:13:18, 2.11s/it]
1017
  27%|██▋ | 753/2838 [28:05<1:13:14, 2.11s/it]
1018
  27%|██▋ | 754/2838 [28:07<1:13:33, 2.12s/it]
1019
  27%|██▋ | 755/2838 [28:09<1:13:34, 2.12s/it]
1020
  27%|██▋ | 756/2838 [28:11<1:13:22, 2.11s/it]
1021
  27%|██▋ | 757/2838 [28:13<1:13:20, 2.11s/it]
1022
  27%|██▋ | 758/2838 [28:15<1:13:21, 2.12s/it]
1023
  27%|██▋ | 759/2838 [28:17<1:13:59, 2.14s/it]
1024
  27%|██▋ | 760/2838 [28:20<1:14:31, 2.15s/it]
1025
 
1026
+
1027
  27%|██▋ | 760/2838 [28:20<1:14:31, 2.15s/it]
1028
  27%|██▋ | 761/2838 [28:22<1:13:31, 2.12s/it]
1029
  27%|██▋ | 762/2838 [28:24<1:13:07, 2.11s/it]
1030
  27%|██▋ | 763/2838 [28:26<1:12:24, 2.09s/it]
1031
  27%|██▋ | 764/2838 [28:28<1:11:43, 2.07s/it]
1032
  27%|██▋ | 765/2838 [28:30<1:11:43, 2.08s/it]
1033
  27%|██▋ | 766/2838 [28:32<1:12:46, 2.11s/it]
1034
  27%|██▋ | 767/2838 [28:34<1:13:03, 2.12s/it]
1035
  27%|██▋ | 768/2838 [28:36<1:12:58, 2.12s/it]
1036
  27%|██▋ | 769/2838 [28:39<1:13:27, 2.13s/it]
1037
  27%|██▋ | 770/2838 [28:41<1:12:56, 2.12s/it]
1038
  27%|██▋ | 771/2838 [28:43<1:13:36, 2.14s/it]
1039
  27%|██▋ | 772/2838 [28:45<1:13:42, 2.14s/it]
1040
  27%|██▋ | 773/2838 [28:47<1:13:36, 2.14s/it]
1041
  27%|██▋ | 774/2838 [28:49<1:13:06, 2.13s/it]
1042
  27%|██▋ | 775/2838 [28:51<1:13:45, 2.14s/it]
1043
  27%|██▋ | 776/2838 [28:53<1:13:16, 2.13s/it]
1044
  27%|██▋ | 777/2838 [28:56<1:12:57, 2.12s/it]
1045
  27%|██▋ | 778/2838 [28:58<1:12:43, 2.12s/it]
1046
  27%|██▋ | 779/2838 [29:00<1:12:33, 2.11s/it]
1047
  27%|██▋ | 780/2838 [29:02<1:13:00, 2.13s/it]
1048
 
1049
+
1050
  27%|██▋ | 780/2838 [29:02<1:13:00, 2.13s/it]
1051
  28%|██▊ | 781/2838 [29:04<1:12:32, 2.12s/it]
1052
  28%|██▊ | 782/2838 [29:06<1:12:39, 2.12s/it]
1053
  28%|██▊ | 783/2838 [29:08<1:12:48, 2.13s/it]
1054
  28%|██▊ | 784/2838 [29:10<1:12:18, 2.11s/it]
1055
  28%|██▊ | 785/2838 [29:13<1:12:11, 2.11s/it]
1056
  28%|██▊ | 786/2838 [29:15<1:12:15, 2.11s/it]
1057
  28%|██▊ | 787/2838 [29:17<1:12:01, 2.11s/it]
1058
  28%|██▊ | 788/2838 [29:19<1:12:25, 2.12s/it]
1059
  28%|██▊ | 789/2838 [29:21<1:12:36, 2.13s/it]
1060
  28%|██▊ | 790/2838 [29:23<1:11:57, 2.11s/it]
1061
  28%|██▊ | 791/2838 [29:25<1:11:57, 2.11s/it]
1062
  28%|██▊ | 792/2838 [29:27<1:11:57, 2.11s/it]
1063
  28%|██▊ | 793/2838 [29:29<1:11:40, 2.10s/it]
1064
  28%|██▊ | 794/2838 [29:32<1:11:46, 2.11s/it]
1065
  28%|██▊ | 795/2838 [29:34<1:11:33, 2.10s/it]
1066
  28%|██▊ | 796/2838 [29:36<1:11:17, 2.09s/it]
1067
  28%|██▊ | 797/2838 [29:38<1:11:14, 2.09s/it]
1068
  28%|██▊ | 798/2838 [29:40<1:11:54, 2.11s/it]
1069
  28%|██▊ | 799/2838 [29:42<1:11:50, 2.11s/it]
1070
  28%|██▊ | 800/2838 [29:44<1:11:28, 2.10s/it]
1071
 
1072
+
1073
  28%|██▊ | 800/2838 [29:44<1:11:28, 2.10s/it]
1074
  28%|██▊ | 801/2838 [29:46<1:11:10, 2.10s/it]
1075
  28%|██▊ | 802/2838 [29:48<1:11:26, 2.11s/it]
1076
  28%|██▊ | 803/2838 [29:50<1:11:36, 2.11s/it]
1077
  28%|██▊ | 804/2838 [29:53<1:11:33, 2.11s/it]
1078
  28%|██▊ | 805/2838 [29:55<1:11:18, 2.10s/it]
1079
  28%|██▊ | 806/2838 [29:57<1:11:34, 2.11s/it]
1080
  28%|██▊ | 807/2838 [29:59<1:11:13, 2.10s/it]
1081
  28%|██▊ | 808/2838 [30:01<1:11:47, 2.12s/it]
1082
  29%|██▊ | 809/2838 [30:03<1:11:39, 2.12s/it]
1083
  29%|██▊ | 810/2838 [30:05<1:12:18, 2.14s/it]
1084
  29%|██▊ | 811/2838 [30:07<1:12:05, 2.13s/it]
1085
  29%|██▊ | 812/2838 [30:10<1:11:48, 2.13s/it]
1086
  29%|██▊ | 813/2838 [30:12<1:11:21, 2.11s/it]
1087
  29%|██▊ | 814/2838 [30:14<1:11:51, 2.13s/it]
1088
  29%|██▊ | 815/2838 [30:16<1:11:39, 2.13s/it]
1089
  29%|██▉ | 816/2838 [30:18<1:12:17, 2.15s/it]
1090
  29%|██▉ | 817/2838 [30:20<1:12:39, 2.16s/it]
1091
  29%|██▉ | 818/2838 [30:22<1:12:43, 2.16s/it]
1092
  29%|██▉ | 819/2838 [30:25<1:14:14, 2.21s/it]
1093
  29%|██▉ | 820/2838 [30:27<1:15:54, 2.26s/it]
1094
 
1095
+
1096
  29%|██▉ | 820/2838 [30:27<1:15:54, 2.26s/it]
1097
  29%|██▉ | 821/2838 [30:29<1:14:44, 2.22s/it]
1098
  29%|██▉ | 822/2838 [30:31<1:13:01, 2.17s/it]
1099
  29%|██▉ | 823/2838 [30:33<1:12:11, 2.15s/it]
1100
  29%|██▉ | 824/2838 [30:36<1:11:29, 2.13s/it]
1101
  29%|██▉ | 825/2838 [30:38<1:11:19, 2.13s/it]
1102
  29%|██▉ | 826/2838 [30:40<1:10:57, 2.12s/it]
1103
  29%|██▉ | 827/2838 [30:42<1:10:53, 2.11s/it]
1104
  29%|██▉ | 828/2838 [30:44<1:11:10, 2.12s/it]
1105
  29%|██▉ | 829/2838 [30:46<1:10:45, 2.11s/it]
1106
  29%|██▉ | 830/2838 [30:48<1:11:39, 2.14s/it]
1107
  29%|██▉ | 831/2838 [30:50<1:11:17, 2.13s/it]
1108
  29%|██▉ | 832/2838 [30:53<1:11:08, 2.13s/it]
1109
  29%|██▉ | 833/2838 [30:55<1:11:06, 2.13s/it]
1110
  29%|██▉ | 834/2838 [30:57<1:11:20, 2.14s/it]
1111
  29%|██▉ | 835/2838 [30:59<1:11:01, 2.13s/it]
1112
  29%|██▉ | 836/2838 [31:01<1:10:31, 2.11s/it]
1113
  29%|██▉ | 837/2838 [31:03<1:10:17, 2.11s/it]
1114
  30%|██▉ | 838/2838 [31:05<1:10:43, 2.12s/it]
1115
  30%|██▉ | 839/2838 [31:07<1:09:53, 2.10s/it]
1116
  30%|██▉ | 840/2838 [31:09<1:10:17, 2.11s/it]
1117
 
1118
+
1119
  30%|██▉ | 840/2838 [31:10<1:10:17, 2.11s/it]
1120
  30%|██▉ | 841/2838 [31:11<1:09:30, 2.09s/it]
1121
  30%|██▉ | 842/2838 [31:14<1:09:52, 2.10s/it]
1122
  30%|██▉ | 843/2838 [31:16<1:10:17, 2.11s/it]
1123
  30%|██▉ | 844/2838 [31:18<1:09:53, 2.10s/it]
1124
  30%|██▉ | 845/2838 [31:20<1:09:59, 2.11s/it]
1125
  30%|██▉ | 846/2838 [31:22<1:09:58, 2.11s/it]
1126
  30%|██▉ | 847/2838 [31:24<1:09:43, 2.10s/it]
1127
  30%|██▉ | 848/2838 [31:26<1:10:01, 2.11s/it]
1128
  30%|██▉ | 849/2838 [31:28<1:10:18, 2.12s/it]
1129
  30%|██▉ | 850/2838 [31:31<1:10:07, 2.12s/it]
1130
  30%|██▉ | 851/2838 [31:33<1:09:36, 2.10s/it]
1131
  30%|███ | 852/2838 [31:35<1:10:35, 2.13s/it]
1132
  30%|███ | 853/2838 [31:37<1:10:01, 2.12s/it]
1133
  30%|███ | 854/2838 [31:39<1:09:50, 2.11s/it]
1134
  30%|███ | 855/2838 [31:41<1:09:54, 2.12s/it]
1135
  30%|███ | 856/2838 [31:43<1:09:47, 2.11s/it]
1136
  30%|███ | 857/2838 [31:45<1:09:57, 2.12s/it]
1137
  30%|███ | 858/2838 [31:47<1:09:14, 2.10s/it]
1138
  30%|███ | 859/2838 [31:50<1:09:27, 2.11s/it]
1139
  30%|███ | 860/2838 [31:52<1:09:53, 2.12s/it]
1140
 
1141
+
1142
  30%|███ | 860/2838 [31:52<1:09:53, 2.12s/it]
1143
  30%|███ | 861/2838 [31:54<1:09:29, 2.11s/it]
1144
  30%|███ | 862/2838 [31:56<1:09:34, 2.11s/it]
1145
  30%|███ | 863/2838 [31:58<1:09:28, 2.11s/it]
1146
  30%|███ | 864/2838 [32:00<1:09:32, 2.11s/it]
1147
  30%|███ | 865/2838 [32:02<1:09:38, 2.12s/it]
1148
  31%|███ | 866/2838 [32:04<1:09:33, 2.12s/it]
1149
  31%|███ | 867/2838 [32:06<1:09:01, 2.10s/it]
1150
  31%|███ | 868/2838 [32:09<1:08:59, 2.10s/it]
1151
  31%|███ | 869/2838 [32:11<1:08:43, 2.09s/it]
1152
  31%|███ | 870/2838 [32:13<1:08:57, 2.10s/it]
1153
  31%|███ | 871/2838 [32:15<1:09:18, 2.11s/it]
1154
  31%|███ | 872/2838 [32:17<1:09:44, 2.13s/it]
1155
  31%|███ | 873/2838 [32:19<1:09:38, 2.13s/it]
1156
  31%|███ | 874/2838 [32:21<1:09:33, 2.13s/it]
1157
  31%|███ | 875/2838 [32:23<1:09:22, 2.12s/it]
1158
  31%|███ | 876/2838 [32:26<1:10:12, 2.15s/it]
1159
  31%|███ | 877/2838 [32:28<1:09:57, 2.14s/it]
1160
  31%|███ | 878/2838 [32:30<1:09:45, 2.14s/it]
1161
  31%|███ | 879/2838 [32:32<1:09:35, 2.13s/it]
1162
  31%|███ | 880/2838 [32:34<1:09:45, 2.14s/it]
1163
 
1164
+
1165
  31%|███ | 880/2838 [32:34<1:09:45, 2.14s/it]
1166
  31%|███ | 881/2838 [32:36<1:09:03, 2.12s/it]
1167
  31%|███ | 882/2838 [32:38<1:08:54, 2.11s/it]
1168
  31%|███ | 883/2838 [32:40<1:09:08, 2.12s/it]
1169
  31%|███ | 884/2838 [32:43<1:09:24, 2.13s/it]
1170
  31%|███ | 885/2838 [32:45<1:09:27, 2.13s/it]
1171
  31%|███ | 886/2838 [32:47<1:08:59, 2.12s/it]
1172
  31%|███▏ | 887/2838 [32:49<1:09:24, 2.13s/it]
1173
  31%|███▏ | 888/2838 [32:51<1:09:58, 2.15s/it]
1174
  31%|███▏ | 889/2838 [32:53<1:09:35, 2.14s/it]
1175
  31%|███▏ | 890/2838 [32:55<1:09:37, 2.14s/it]
1176
  31%|███▏ | 891/2838 [32:58<1:09:00, 2.13s/it]
1177
  31%|███▏ | 892/2838 [33:00<1:08:41, 2.12s/it]
1178
  31%|███▏ | 893/2838 [33:02<1:08:37, 2.12s/it]
1179
  32%|███▏ | 894/2838 [33:04<1:08:17, 2.11s/it]
1180
  32%|███▏ | 895/2838 [33:06<1:08:01, 2.10s/it]
1181
  32%|███▏ | 896/2838 [33:08<1:08:05, 2.10s/it]
1182
  32%|███▏ | 897/2838 [33:10<1:07:37, 2.09s/it]
1183
  32%|███▏ | 898/2838 [33:12<1:07:52, 2.10s/it]
1184
  32%|███▏ | 899/2838 [33:14<1:08:14, 2.11s/it]
1185
  32%|███▏ | 900/2838 [33:16<1:07:51, 2.10s/it]
1186
 
1187
+
1188
  32%|███▏ | 900/2838 [33:16<1:07:51, 2.10s/it]
1189
  32%|███▏ | 901/2838 [33:18<1:07:52, 2.10s/it]
1190
  32%|███▏ | 902/2838 [33:21<1:08:09, 2.11s/it]
1191
  32%|███▏ | 903/2838 [33:23<1:08:10, 2.11s/it]
1192
  32%|███▏ | 904/2838 [33:25<1:08:35, 2.13s/it]
1193
  32%|███▏ | 905/2838 [33:27<1:08:00, 2.11s/it]
1194
  32%|███▏ | 906/2838 [33:29<1:07:44, 2.10s/it]
1195
  32%|███▏ | 907/2838 [33:31<1:08:29, 2.13s/it]
1196
  32%|███▏ | 908/2838 [33:33<1:08:56, 2.14s/it]
1197
  32%|███▏ | 909/2838 [33:36<1:08:30, 2.13s/it]
1198
  32%|███▏ | 910/2838 [33:38<1:08:29, 2.13s/it]
1199
  32%|███▏ | 911/2838 [33:40<1:08:03, 2.12s/it]
1200
  32%|███▏ | 912/2838 [33:42<1:07:52, 2.11s/it]
1201
  32%|███▏ | 913/2838 [33:44<1:07:33, 2.11s/it]
1202
  32%|███▏ | 914/2838 [33:46<1:07:20, 2.10s/it]
1203
  32%|███▏ | 915/2838 [33:48<1:07:36, 2.11s/it]
1204
  32%|███▏ | 916/2838 [33:50<1:07:19, 2.10s/it]
1205
  32%|███▏ | 917/2838 [33:52<1:07:08, 2.10s/it]
1206
  32%|███▏ | 918/2838 [33:54<1:06:59, 2.09s/it]
1207
  32%|███▏ | 919/2838 [33:57<1:07:24, 2.11s/it]
1208
  32%|███▏ | 920/2838 [33:59<1:07:24, 2.11s/it]
1209
 
1210
+
1211
  32%|███▏ | 920/2838 [33:59<1:07:24, 2.11s/it]
1212
  32%|███▏ | 921/2838 [34:01<1:07:38, 2.12s/it]
1213
  32%|███▏ | 922/2838 [34:03<1:08:09, 2.13s/it]
1214
  33%|███▎ | 923/2838 [34:05<1:08:38, 2.15s/it]
1215
  33%|███▎ | 924/2838 [34:07<1:08:28, 2.15s/it]
1216
  33%|███▎ | 925/2838 [34:09<1:08:03, 2.13s/it]
1217
  33%|███▎ | 926/2838 [34:11<1:07:27, 2.12s/it]
1218
  33%|███▎ | 927/2838 [34:14<1:07:04, 2.11s/it]
1219
  33%|███▎ | 928/2838 [34:16<1:07:30, 2.12s/it]
1220
  33%|███▎ | 929/2838 [34:18<1:07:32, 2.12s/it]
1221
  33%|███▎ | 930/2838 [34:20<1:07:34, 2.13s/it]
1222
  33%|███▎ | 931/2838 [34:22<1:06:54, 2.11s/it]
1223
  33%|███▎ | 932/2838 [34:24<1:06:55, 2.11s/it]
1224
  33%|███▎ | 933/2838 [34:26<1:06:36, 2.10s/it]
1225
  33%|███▎ | 934/2838 [34:28<1:06:49, 2.11s/it]
1226
  33%|███▎ | 935/2838 [34:30<1:06:45, 2.10s/it]
1227
  33%|███▎ | 936/2838 [34:33<1:09:26, 2.19s/it]
1228
  33%|███▎ | 937/2838 [34:35<1:08:36, 2.17s/it]
1229
  33%|███▎ | 938/2838 [34:37<1:08:01, 2.15s/it]
1230
  33%|███▎ | 939/2838 [34:39<1:07:19, 2.13s/it]
1231
  33%|███▎ | 940/2838 [34:41<1:07:12, 2.12s/it]
1232
 
1233
+
1234
  33%|███▎ | 940/2838 [34:41<1:07:12, 2.12s/it]
1235
  33%|███▎ | 941/2838 [34:43<1:06:44, 2.11s/it]
1236
  33%|███▎ | 942/2838 [34:45<1:06:39, 2.11s/it]
1237
  33%|███▎ | 943/2838 [34:48<1:07:01, 2.12s/it]
1238
  33%|███▎ | 944/2838 [34:50<1:06:45, 2.11s/it]
1239
  33%|███▎ | 945/2838 [34:52<1:06:45, 2.12s/it]
1240
  33%|███▎ | 946/2838 [34:54<1:03:47, 2.02s/it]
1241
  33%|███▎ | 947/2838 [34:56<1:06:07, 2.10s/it]
1242
  33%|███▎ | 948/2838 [34:58<1:06:03, 2.10s/it]
1243
  33%|███▎ | 949/2838 [35:00<1:05:58, 2.10s/it]
1244
  33%|███▎ | 950/2838 [35:02<1:06:14, 2.11s/it]
1245
  34%|███▎ | 951/2838 [35:04<1:06:05, 2.10s/it]
1246
  34%|███▎ | 952/2838 [35:06<1:05:53, 2.10s/it]
1247
  34%|███▎ | 953/2838 [35:09<1:06:15, 2.11s/it]
1248
  34%|███▎ | 954/2838 [35:11<1:06:29, 2.12s/it]
1249
  34%|███▎ | 955/2838 [35:13<1:06:40, 2.12s/it]
1250
  34%|███▎ | 956/2838 [35:15<1:06:47, 2.13s/it]
1251
  34%|███▎ | 957/2838 [35:17<1:06:22, 2.12s/it]
1252
  34%|███▍ | 958/2838 [35:19<1:06:43, 2.13s/it]
1253
  34%|███▍ | 959/2838 [35:21<1:07:06, 2.14s/it]
1254
  34%|███▍ | 960/2838 [35:23<1:06:37, 2.13s/it]
1255
 
1256
+
1257
  34%|███▍ | 960/2838 [35:24<1:06:37, 2.13s/it]
1258
  34%|███▍ | 961/2838 [35:26<1:05:50, 2.10s/it]
1259
  34%|███▍ | 962/2838 [35:28<1:05:53, 2.11s/it]
1260
  34%|███▍ | 963/2838 [35:30<1:06:08, 2.12s/it]
1261
  34%|███▍ | 964/2838 [35:32<1:05:33, 2.10s/it]
1262
  34%|███▍ | 965/2838 [35:34<1:05:12, 2.09s/it]
1263
  34%|███▍ | 966/2838 [35:36<1:05:43, 2.11s/it]
1264
  34%|███▍ | 967/2838 [35:38<1:06:08, 2.12s/it]
1265
  34%|███▍ | 968/2838 [35:40<1:06:01, 2.12s/it]
1266
  34%|███▍ | 969/2838 [35:42<1:06:07, 2.12s/it]
1267
  34%|███▍ | 970/2838 [35:45<1:06:08, 2.12s/it]
1268
  34%|███▍ | 971/2838 [35:47<1:06:06, 2.12s/it]
1269
  34%|███▍ | 972/2838 [35:49<1:05:30, 2.11s/it]
1270
  34%|███▍ | 973/2838 [35:51<1:05:44, 2.11s/it]
1271
  34%|███▍ | 974/2838 [35:53<1:05:51, 2.12s/it]
1272
  34%|███▍ | 975/2838 [35:55<1:06:55, 2.16s/it]
1273
  34%|███▍ | 976/2838 [35:57<1:06:01, 2.13s/it]
1274
  34%|███▍ | 977/2838 [35:59<1:06:08, 2.13s/it]
1275
  34%|███▍ | 978/2838 [36:02<1:06:44, 2.15s/it]
1276
  34%|███▍ | 979/2838 [36:04<1:05:56, 2.13s/it]
1277
  35%|███▍ | 980/2838 [36:06<1:06:17, 2.14s/it]
1278
 
1279
+
1280
  35%|███▍ | 980/2838 [36:06<1:06:17, 2.14s/it]
1281
  35%|███▍ | 981/2838 [36:08<1:05:59, 2.13s/it]
1282
  35%|███▍ | 982/2838 [36:10<1:06:35, 2.15s/it]
1283
  35%|███▍ | 983/2838 [36:12<1:06:03, 2.14s/it]
1284
  35%|███▍ | 984/2838 [36:14<1:06:20, 2.15s/it]
1285
  35%|███▍ | 985/2838 [36:17<1:06:51, 2.16s/it]
1286
  35%|███▍ | 986/2838 [36:19<1:06:36, 2.16s/it]
1287
  35%|███▍ | 987/2838 [36:21<1:06:03, 2.14s/it]
1288
  35%|███▍ | 988/2838 [36:23<1:05:40, 2.13s/it]
1289
  35%|███▍ | 989/2838 [36:25<1:07:09, 2.18s/it]
1290
  35%|███▍ | 990/2838 [36:27<1:06:32, 2.16s/it]
1291
  35%|███▍ | 991/2838 [36:30<1:06:17, 2.15s/it]
1292
  35%|███▍ | 992/2838 [36:32<1:05:50, 2.14s/it]
1293
  35%|███▍ | 993/2838 [36:34<1:06:30, 2.16s/it]
1294
  35%|███▌ | 994/2838 [36:36<1:07:07, 2.18s/it]
1295
  35%|███▌ | 995/2838 [36:38<1:07:09, 2.19s/it]
1296
  35%|███▌ | 996/2838 [36:41<1:07:45, 2.21s/it]
1297
  35%|███▌ | 997/2838 [36:43<1:07:52, 2.21s/it]
1298
  35%|███▌ | 998/2838 [36:45<1:07:28, 2.20s/it]
1299
  35%|███▌ | 999/2838 [36:47<1:06:56, 2.18s/it]
1300
  35%|███▌ | 1000/2838 [36:49<1:06:19, 2.17s/it]
1301
 
1302
+
1303
  35%|███▌ | 1000/2838 [36:49<1:06:19, 2.17s/it]Saving model checkpoint to save/sft_rats40k_20260608_165938/checkpoint-1000
1304
+ Configuration saved in save/sft_rats40k_20260608_165938/checkpoint-1000/config.json
1305
+ Configuration saved in save/sft_rats40k_20260608_165938/checkpoint-1000/generation_config.json
1306
+ Model weights saved in save/sft_rats40k_20260608_165938/checkpoint-1000/model.safetensors
1307
+ Saving Trainer.data_collator.tokenizer by default as Trainer.processing_class is `None`
1308
+ chat template saved in save/sft_rats40k_20260608_165938/checkpoint-1000/chat_template.jinja
1309
+ tokenizer config file saved in save/sft_rats40k_20260608_165938/checkpoint-1000/tokenizer_config.json
1310
+ Special tokens file saved in save/sft_rats40k_20260608_165938/checkpoint-1000/special_tokens_map.json
1311
+
1312
  35%|███▌ | 1001/2838 [39:19<23:45:25, 46.56s/it]
1313
  35%|███▌ | 1002/2838 [39:21<16:55:43, 33.19s/it]
1314
  35%|███▌ | 1003/2838 [39:23<12:09:08, 23.84s/it]
1315
  35%|███▌ | 1004/2838 [39:25<8:48:10, 17.28s/it]
1316
  35%|███▌ | 1005/2838 [39:28<6:29:42, 12.76s/it]
1317
  35%|███▌ | 1006/2838 [39:30<4:50:48, 9.52s/it]
1318
  35%|███▌ | 1007/2838 [39:32<3:41:34, 7.26s/it]
1319
  36%|███▌ | 1008/2838 [39:34<2:53:56, 5.70s/it]
1320
  36%|███▌ | 1009/2838 [39:36<2:20:55, 4.62s/it]
1321
  36%|███▌ | 1010/2838 [39:38<1:57:39, 3.86s/it]
1322
  36%|███▌ | 1011/2838 [39:40<1:42:07, 3.35s/it]
1323
  36%|███▌ | 1012/2838 [39:42<1:30:37, 2.98s/it]
1324
  36%|███▌ | 1013/2838 [39:44<1:22:44, 2.72s/it]
1325
  36%|███▌ | 1014/2838 [39:46<1:16:56, 2.53s/it]
1326
  36%|███▌ | 1015/2838 [39:48<1:12:39, 2.39s/it]
1327
  36%|███▌ | 1016/2838 [39:51<1:10:43, 2.33s/it]
1328
  36%|███▌ | 1017/2838 [39:53<1:08:30, 2.26s/it]
1329
  36%|███▌ | 1018/2838 [39:55<1:07:05, 2.21s/it]
1330
  36%|███▌ | 1019/2838 [39:57<1:05:58, 2.18s/it]
1331
  36%|███▌ | 1020/2838 [39:59<1:05:55, 2.18s/it]
1332
 
1333
+
1334
  36%|███▌ | 1020/2838 [39:59<1:05:55, 2.18s/it]
1335
  36%|███▌ | 1021/2838 [40:01<1:05:49, 2.17s/it]
1336
  36%|███▌ | 1022/2838 [40:03<1:05:49, 2.17s/it]
1337
  36%|███▌ | 1023/2838 [40:05<1:05:24, 2.16s/it]
1338
  36%|███▌ | 1024/2838 [40:08<1:06:24, 2.20s/it]
1339
  36%|███▌ | 1025/2838 [40:10<1:05:58, 2.18s/it]
1340
  36%|███▌ | 1026/2838 [40:12<1:05:30, 2.17s/it]
1341
  36%|███▌ | 1027/2838 [40:14<1:06:13, 2.19s/it]
1342
  36%|███▌ | 1028/2838 [40:16<1:06:04, 2.19s/it]
1343
  36%|███▋ | 1029/2838 [40:19<1:05:25, 2.17s/it]
1344
  36%|███▋ | 1030/2838 [40:21<1:04:58, 2.16s/it]
1345
  36%|███▋ | 1031/2838 [40:23<1:04:44, 2.15s/it]
1346
  36%|███▋ | 1032/2838 [40:25<1:04:57, 2.16s/it]
1347
  36%|███▋ | 1033/2838 [40:27<1:04:37, 2.15s/it]
1348
  36%|███▋ | 1034/2838 [40:29<1:04:26, 2.14s/it]
1349
  36%|███▋ | 1035/2838 [40:31<1:03:42, 2.12s/it]
1350
  37%|███▋ | 1036/2838 [40:33<1:03:42, 2.12s/it]
1351
  37%|███▋ | 1037/2838 [40:36<1:03:32, 2.12s/it]
1352
  37%|███▋ | 1038/2838 [40:38<1:03:28, 2.12s/it]
1353
  37%|███▋ | 1039/2838 [40:40<1:03:26, 2.12s/it]
1354
  37%|███▋ | 1040/2838 [40:42<1:02:56, 2.10s/it]
1355
 
1356
+
1357
  37%|███▋ | 1040/2838 [40:42<1:02:56, 2.10s/it]
1358
  37%|███▋ | 1041/2838 [40:44<1:02:58, 2.10s/it]
1359
  37%|███▋ | 1042/2838 [40:46<1:03:17, 2.11s/it]
1360
  37%|███▋ | 1043/2838 [40:48<1:03:30, 2.12s/it]
1361
  37%|███▋ | 1044/2838 [40:50<1:03:07, 2.11s/it]
1362
  37%|███▋ | 1045/2838 [40:52<1:02:54, 2.11s/it]
1363
  37%|███▋ | 1046/2838 [40:55<1:02:49, 2.10s/it]
1364
  37%|███▋ | 1047/2838 [40:57<1:02:55, 2.11s/it]
1365
  37%|███▋ | 1048/2838 [40:59<1:02:43, 2.10s/it]
1366
  37%|███▋ | 1049/2838 [41:01<1:02:35, 2.10s/it]
1367
  37%|███▋ | 1050/2838 [41:03<1:02:34, 2.10s/it]
1368
  37%|███▋ | 1051/2838 [41:05<1:05:08, 2.19s/it]
1369
  37%|███▋ | 1052/2838 [41:08<1:05:20, 2.20s/it]
1370
  37%|███▋ | 1053/2838 [41:10<1:04:31, 2.17s/it]
1371
  37%|███▋ | 1054/2838 [41:12<1:03:53, 2.15s/it]
1372
  37%|███▋ | 1055/2838 [41:14<1:03:37, 2.14s/it]
1373
  37%|███▋ | 1056/2838 [41:16<1:04:05, 2.16s/it]
1374
  37%|███▋ | 1057/2838 [41:18<1:03:26, 2.14s/it]
1375
  37%|███▋ | 1058/2838 [41:20<1:02:55, 2.12s/it]
1376
  37%|███▋ | 1059/2838 [41:22<1:02:26, 2.11s/it]
1377
  37%|███▋ | 1060/2838 [41:24<1:01:50, 2.09s/it]
1378
 
1379
+
1380
  37%|███▋ | 1060/2838 [41:24<1:01:50, 2.09s/it]
1381
  37%|███▋ | 1061/2838 [41:26<1:01:42, 2.08s/it]
1382
  37%|███▋ | 1062/2838 [41:28<1:01:17, 2.07s/it]
1383
  37%|███▋ | 1063/2838 [41:31<1:01:26, 2.08s/it]
1384
  37%|███▋ | 1064/2838 [41:33<1:01:39, 2.09s/it]
1385
  38%|███▊ | 1065/2838 [41:35<1:01:20, 2.08s/it]
1386
  38%|███▊ | 1066/2838 [41:37<1:01:38, 2.09s/it]
1387
  38%|███▊ | 1067/2838 [41:39<1:01:22, 2.08s/it]
1388
  38%|███▊ | 1068/2838 [41:41<1:01:53, 2.10s/it]
1389
  38%|███▊ | 1069/2838 [41:43<1:01:59, 2.10s/it]
1390
  38%|███▊ | 1070/2838 [41:45<1:02:01, 2.10s/it]
1391
  38%|███▊ | 1071/2838 [41:47<1:02:17, 2.12s/it]
1392
  38%|███▊ | 1072/2838 [41:50<1:02:07, 2.11s/it]
1393
  38%|███▊ | 1073/2838 [41:52<1:01:58, 2.11s/it]
1394
  38%|███▊ | 1074/2838 [41:54<1:01:42, 2.10s/it]
1395
  38%|███▊ | 1075/2838 [41:56<1:01:33, 2.09s/it]
1396
  38%|███▊ | 1076/2838 [41:58<1:01:19, 2.09s/it]
1397
  38%|███▊ | 1077/2838 [42:00<1:01:22, 2.09s/it]
1398
  38%|███▊ | 1078/2838 [42:02<1:01:45, 2.11s/it]
1399
  38%|███▊ | 1079/2838 [42:04<1:02:08, 2.12s/it]
1400
  38%|███▊ | 1080/2838 [42:06<1:02:16, 2.13s/it]
1401
 
1402
+
1403
  38%|███▊ | 1080/2838 [42:06<1:02:16, 2.13s/it]
1404
  38%|███▊ | 1081/2838 [42:08<1:01:53, 2.11s/it]
1405
  38%|███▊ | 1082/2838 [42:11<1:01:49, 2.11s/it]
1406
  38%|███▊ | 1083/2838 [42:13<1:02:28, 2.14s/it]
1407
  38%|███▊ | 1084/2838 [42:15<1:02:22, 2.13s/it]
1408
  38%|███▊ | 1085/2838 [42:17<1:02:35, 2.14s/it]
1409
  38%|███▊ | 1086/2838 [42:19<1:02:18, 2.13s/it]
1410
  38%|███▊ | 1087/2838 [42:21<1:02:22, 2.14s/it]
1411
  38%|███▊ | 1088/2838 [42:23<1:02:06, 2.13s/it]
1412
  38%|███▊ | 1089/2838 [42:26<1:01:45, 2.12s/it]
1413
  38%|███▊ | 1090/2838 [42:28<1:01:45, 2.12s/it]
1414
  38%|███▊ | 1091/2838 [42:30<1:01:17, 2.10s/it]
1415
  38%|███▊ | 1092/2838 [42:32<1:00:58, 2.10s/it]
1416
  39%|███▊ | 1093/2838 [42:34<1:01:14, 2.11s/it]
1417
  39%|███▊ | 1094/2838 [42:36<1:01:54, 2.13s/it]
1418
  39%|███▊ | 1095/2838 [42:38<1:02:16, 2.14s/it]
1419
  39%|███▊ | 1096/2838 [42:40<1:01:35, 2.12s/it]
1420
  39%|███▊ | 1097/2838 [42:42<1:01:01, 2.10s/it]
1421
  39%|███▊ | 1098/2838 [42:45<1:01:11, 2.11s/it]
1422
  39%|███▊ | 1099/2838 [42:47<1:01:13, 2.11s/it]
1423
  39%|███▉ | 1100/2838 [42:49<1:01:17, 2.12s/it]
1424
 
1425
+
1426
  39%|███▉ | 1100/2838 [42:49<1:01:17, 2.12s/it]
1427
  39%|███▉ | 1101/2838 [42:51<1:01:00, 2.11s/it]
1428
  39%|███▉ | 1102/2838 [42:53<1:00:49, 2.10s/it]
1429
  39%|███▉ | 1103/2838 [42:55<1:01:30, 2.13s/it]
1430
  39%|███▉ | 1104/2838 [42:57<1:00:57, 2.11s/it]
1431
  39%|███▉ | 1105/2838 [42:59<1:01:02, 2.11s/it]
1432
  39%|███▉ | 1106/2838 [43:01<1:00:43, 2.10s/it]
1433
  39%|███▉ | 1107/2838 [43:04<1:00:57, 2.11s/it]
1434
  39%|███▉ | 1108/2838 [43:06<1:00:46, 2.11s/it]
1435
  39%|███▉ | 1109/2838 [43:08<1:00:48, 2.11s/it]
1436
  39%|███▉ | 1110/2838 [43:10<1:01:23, 2.13s/it]
1437
  39%|███▉ | 1111/2838 [43:12<1:01:28, 2.14s/it]
1438
  39%|███▉ | 1112/2838 [43:14<1:01:36, 2.14s/it]
1439
  39%|███▉ | 1113/2838 [43:16<1:01:04, 2.12s/it]
1440
  39%|███▉ | 1114/2838 [43:18<1:00:40, 2.11s/it]
1441
  39%|███▉ | 1115/2838 [43:21<1:00:59, 2.12s/it]
1442
  39%|███▉ | 1116/2838 [43:23<1:00:39, 2.11s/it]
1443
  39%|███▉ | 1117/2838 [43:25<1:00:51, 2.12s/it]
1444
  39%|███▉ | 1118/2838 [43:27<1:00:32, 2.11s/it]
1445
  39%|███▉ | 1119/2838 [43:29<1:00:45, 2.12s/it]
1446
  39%|███▉ | 1120/2838 [43:31<1:00:56, 2.13s/it]
1447
 
1448
+
1449
  39%|███▉ | 1120/2838 [43:31<1:00:56, 2.13s/it]
1450
  39%|███▉ | 1121/2838 [43:33<1:01:30, 2.15s/it]
1451
  40%|███▉ | 1122/2838 [43:35<1:01:02, 2.13s/it]
1452
  40%|███▉ | 1123/2838 [43:38<1:00:28, 2.12s/it]
1453
  40%|███▉ | 1124/2838 [43:40<1:00:15, 2.11s/it]
1454
  40%|███▉ | 1125/2838 [43:42<1:00:28, 2.12s/it]
1455
  40%|███▉ | 1126/2838 [43:44<1:00:53, 2.13s/it]
1456
  40%|███▉ | 1127/2838 [43:46<1:00:28, 2.12s/it]
1457
  40%|███▉ | 1128/2838 [43:48<1:00:48, 2.13s/it]
1458
  40%|███▉ | 1129/2838 [43:50<1:00:19, 2.12s/it]
1459
  40%|███▉ | 1130/2838 [43:52<1:00:31, 2.13s/it]
1460
  40%|███▉ | 1131/2838 [43:55<1:00:16, 2.12s/it]
1461
  40%|███▉ | 1132/2838 [43:57<1:00:22, 2.12s/it]
1462
  40%|███▉ | 1133/2838 [43:59<59:57, 2.11s/it]
1463
  40%|███▉ | 1134/2838 [44:01<1:00:03, 2.12s/it]
1464
  40%|███▉ | 1135/2838 [44:03<59:53, 2.11s/it]
1465
  40%|████ | 1136/2838 [44:05<59:43, 2.11s/it]
1466
  40%|████ | 1137/2838 [44:07<59:34, 2.10s/it]
1467
  40%|████ | 1138/2838 [44:09<59:19, 2.09s/it]
1468
  40%|████ | 1139/2838 [44:11<1:00:37, 2.14s/it]
1469
  40%|████ | 1140/2838 [44:14<1:00:19, 2.13s/it]
1470
 
1471
+
1472
  40%|████ | 1140/2838 [44:14<1:00:19, 2.13s/it]
1473
  40%|████ | 1141/2838 [44:16<1:00:31, 2.14s/it]
1474
  40%|████ | 1142/2838 [44:18<1:00:26, 2.14s/it]
1475
  40%|████ | 1143/2838 [44:20<1:00:32, 2.14s/it]
1476
  40%|████ | 1144/2838 [44:22<1:00:16, 2.13s/it]
1477
  40%|████ | 1145/2838 [44:24<1:00:11, 2.13s/it]
1478
  40%|████ | 1146/2838 [44:26<59:52, 2.12s/it]
1479
  40%|████ | 1147/2838 [44:28<59:38, 2.12s/it]
1480
  40%|████ | 1148/2838 [44:31<59:44, 2.12s/it]
1481
  40%|████ | 1149/2838 [44:33<59:30, 2.11s/it]
1482
  41%|████ | 1150/2838 [44:35<59:09, 2.10s/it]
1483
  41%|████ | 1151/2838 [44:37<59:01, 2.10s/it]
1484
  41%|████ | 1152/2838 [44:39<58:38, 2.09s/it]
1485
  41%|████ | 1153/2838 [44:41<58:44, 2.09s/it]
1486
  41%|████ | 1154/2838 [44:43<58:58, 2.10s/it]
1487
  41%|████ | 1155/2838 [44:45<59:49, 2.13s/it]
1488
  41%|████ | 1156/2838 [44:48<59:55, 2.14s/it]
1489
  41%|████ | 1157/2838 [44:50<1:00:25, 2.16s/it]
1490
  41%|████ | 1158/2838 [44:52<1:00:17, 2.15s/it]
1491
  41%|████ | 1159/2838 [44:54<59:42, 2.13s/it]
1492
  41%|████ | 1160/2838 [44:56<59:39, 2.13s/it]
1493
 
1494
+
1495
  41%|████ | 1160/2838 [44:56<59:39, 2.13s/it]
1496
  41%|████ | 1161/2838 [44:58<59:28, 2.13s/it]
1497
  41%|████ | 1162/2838 [45:00<59:03, 2.11s/it]
1498
  41%|████ | 1163/2838 [45:02<59:05, 2.12s/it]
1499
  41%|████ | 1164/2838 [45:05<59:07, 2.12s/it]
1500
  41%|████ | 1165/2838 [45:07<58:53, 2.11s/it]
1501
  41%|████ | 1166/2838 [45:09<1:00:16, 2.16s/it]
1502
  41%|████ | 1167/2838 [45:11<59:48, 2.15s/it]
1503
  41%|████ | 1168/2838 [45:13<59:31, 2.14s/it]
1504
  41%|████ | 1169/2838 [45:15<59:08, 2.13s/it]
1505
  41%|████ | 1170/2838 [45:18<1:00:42, 2.18s/it]
1506
  41%|████▏ | 1171/2838 [45:20<1:00:09, 2.17s/it]
1507
  41%|████▏ | 1172/2838 [45:22<59:41, 2.15s/it]
1508
  41%|████▏ | 1173/2838 [45:24<59:17, 2.14s/it]
1509
  41%|████▏ | 1174/2838 [45:26<58:59, 2.13s/it]
1510
  41%|████▏ | 1175/2838 [45:28<58:27, 2.11s/it]
1511
  41%|████▏ | 1176/2838 [45:30<58:50, 2.12s/it]
1512
  41%|████▏ | 1177/2838 [45:32<59:08, 2.14s/it]
1513
  42%|████▏ | 1178/2838 [45:35<59:07, 2.14s/it]
1514
  42%|████▏ | 1179/2838 [45:37<59:17, 2.14s/it]
1515
  42%|████▏ | 1180/2838 [45:39<59:22, 2.15s/it]
1516
 
1517
+
1518
  42%|████▏ | 1180/2838 [45:39<59:22, 2.15s/it]
1519
  42%|████▏ | 1181/2838 [45:41<59:38, 2.16s/it]
1520
  42%|████▏ | 1182/2838 [45:43<59:30, 2.16s/it]
1521
  42%|████▏ | 1183/2838 [45:45<59:17, 2.15s/it]
1522
  42%|████▏ | 1184/2838 [45:47<59:01, 2.14s/it]
1523
  42%|████▏ | 1185/2838 [45:50<58:28, 2.12s/it]
1524
  42%|████▏ | 1186/2838 [45:52<58:00, 2.11s/it]
1525
  42%|████▏ | 1187/2838 [45:54<58:28, 2.12s/it]
1526
  42%|████▏ | 1188/2838 [45:56<58:33, 2.13s/it]
1527
  42%|████▏ | 1189/2838 [45:58<58:58, 2.15s/it]
1528
  42%|████▏ | 1190/2838 [46:00<58:59, 2.15s/it]
1529
  42%|████▏ | 1191/2838 [46:02<58:13, 2.12s/it]
1530
  42%|████▏ | 1192/2838 [46:04<58:04, 2.12s/it]
1531
  42%|████▏ | 1193/2838 [46:07<57:57, 2.11s/it]
1532
  42%|████▏ | 1194/2838 [46:09<57:38, 2.10s/it]
1533
  42%|████▏ | 1195/2838 [46:11<57:38, 2.10s/it]
1534
  42%|████▏ | 1196/2838 [46:13<58:18, 2.13s/it]
1535
  42%|████▏ | 1197/2838 [46:15<58:18, 2.13s/it]
1536
  42%|████▏ | 1198/2838 [46:17<58:18, 2.13s/it]
1537
  42%|████▏ | 1199/2838 [46:19<58:09, 2.13s/it]
1538
  42%|████▏ | 1200/2838 [46:21<57:40, 2.11s/it]
1539
 
1540
+
1541
  42%|████▏ | 1200/2838 [46:21<57:40, 2.11s/it]
1542
  42%|████▏ | 1201/2838 [46:23<57:32, 2.11s/it]
1543
  42%|████▏ | 1202/2838 [46:26<57:22, 2.10s/it]
1544
  42%|████▏ | 1203/2838 [46:28<57:06, 2.10s/it]
1545
  42%|████▏ | 1204/2838 [46:30<57:25, 2.11s/it]
1546
  42%|████▏ | 1205/2838 [46:32<57:43, 2.12s/it]
1547
  42%|████▏ | 1206/2838 [46:34<57:13, 2.10s/it]
1548
  43%|████▎ | 1207/2838 [46:36<57:27, 2.11s/it]
1549
  43%|████▎ | 1208/2838 [46:38<57:17, 2.11s/it]
1550
  43%|████▎ | 1209/2838 [46:40<58:10, 2.14s/it]
1551
  43%|████▎ | 1210/2838 [46:43<57:41, 2.13s/it]
1552
  43%|████▎ | 1211/2838 [46:45<57:29, 2.12s/it]
1553
  43%|████▎ | 1212/2838 [46:47<58:10, 2.15s/it]
1554
  43%|████▎ | 1213/2838 [46:49<58:16, 2.15s/it]
1555
  43%|████▎ | 1214/2838 [46:51<57:50, 2.14s/it]
1556
  43%|████▎ | 1215/2838 [46:53<57:46, 2.14s/it]
1557
  43%|████▎ | 1216/2838 [46:55<58:12, 2.15s/it]
1558
  43%|████▎ | 1217/2838 [46:58<58:05, 2.15s/it]
1559
  43%|████▎ | 1218/2838 [47:00<57:42, 2.14s/it]
1560
  43%|████▎ | 1219/2838 [47:02<57:16, 2.12s/it]
1561
  43%|████▎ | 1220/2838 [47:04<57:11, 2.12s/it]
1562
 
1563
+
1564
  43%|████▎ | 1220/2838 [47:04<57:11, 2.12s/it]
1565
  43%|████▎ | 1221/2838 [47:06<57:30, 2.13s/it]
1566
  43%|████▎ | 1222/2838 [47:08<57:38, 2.14s/it]
1567
  43%|████▎ | 1223/2838 [47:10<57:08, 2.12s/it]
1568
  43%|████��� | 1224/2838 [47:12<56:56, 2.12s/it]
1569
  43%|████▎ | 1225/2838 [47:14<56:41, 2.11s/it]
1570
  43%|████▎ | 1226/2838 [47:17<56:34, 2.11s/it]
1571
  43%|████▎ | 1227/2838 [47:19<56:26, 2.10s/it]
1572
  43%|████▎ | 1228/2838 [47:21<56:35, 2.11s/it]
1573
  43%|████▎ | 1229/2838 [47:23<56:12, 2.10s/it]
1574
  43%|████▎ | 1230/2838 [47:25<56:22, 2.10s/it]
1575
  43%|████▎ | 1231/2838 [47:27<56:40, 2.12s/it]
1576
  43%|████▎ | 1232/2838 [47:29<56:24, 2.11s/it]
1577
  43%|████▎ | 1233/2838 [47:31<56:37, 2.12s/it]
1578
  43%|████▎ | 1234/2838 [47:33<56:34, 2.12s/it]
1579
  44%|████▎ | 1235/2838 [47:36<56:18, 2.11s/it]
1580
  44%|████▎ | 1236/2838 [47:38<56:46, 2.13s/it]
1581
  44%|████▎ | 1237/2838 [47:40<57:18, 2.15s/it]
1582
  44%|████▎ | 1238/2838 [47:42<57:06, 2.14s/it]
1583
  44%|████▎ | 1239/2838 [47:44<57:02, 2.14s/it]
1584
  44%|████▎ | 1240/2838 [47:46<56:47, 2.13s/it]
1585
 
1586
+
1587
  44%|████▎ | 1240/2838 [47:46<56:47, 2.13s/it]
1588
  44%|████▎ | 1241/2838 [47:48<56:09, 2.11s/it]
1589
  44%|████▍ | 1242/2838 [47:50<56:12, 2.11s/it]
1590
  44%|████▍ | 1243/2838 [47:53<56:03, 2.11s/it]
1591
  44%|████▍ | 1244/2838 [47:55<55:57, 2.11s/it]
1592
  44%|████▍ | 1245/2838 [47:57<56:06, 2.11s/it]
1593
  44%|████▍ | 1246/2838 [47:59<56:06, 2.11s/it]
1594
  44%|████▍ | 1247/2838 [48:01<55:47, 2.10s/it]
1595
  44%|████▍ | 1248/2838 [48:03<55:56, 2.11s/it]
1596
  44%|████▍ | 1249/2838 [48:05<56:22, 2.13s/it]
1597
  44%|████▍ | 1250/2838 [48:07<56:50, 2.15s/it]
1598
  44%|████▍ | 1251/2838 [48:10<56:01, 2.12s/it]
1599
  44%|████▍ | 1252/2838 [48:12<56:00, 2.12s/it]
1600
  44%|████▍ | 1253/2838 [48:14<56:11, 2.13s/it]
1601
  44%|████▍ | 1254/2838 [48:16<56:27, 2.14s/it]
1602
  44%|████▍ | 1255/2838 [48:18<56:24, 2.14s/it]
1603
  44%|████▍ | 1256/2838 [48:20<56:28, 2.14s/it]
1604
  44%|████▍ | 1257/2838 [48:22<56:17, 2.14s/it]
1605
  44%|████▍ | 1258/2838 [48:24<55:56, 2.12s/it]
1606
  44%|████▍ | 1259/2838 [48:27<56:03, 2.13s/it]
1607
  44%|████▍ | 1260/2838 [48:29<55:44, 2.12s/it]
1608
 
1609
+
1610
  44%|████▍ | 1260/2838 [48:29<55:44, 2.12s/it]
1611
  44%|████▍ | 1261/2838 [48:31<55:29, 2.11s/it]
1612
  44%|████▍ | 1262/2838 [48:33<55:14, 2.10s/it]
1613
  45%|████▍ | 1263/2838 [48:35<55:03, 2.10s/it]
1614
  45%|████▍ | 1264/2838 [48:37<55:36, 2.12s/it]
1615
  45%|████▍ | 1265/2838 [48:39<55:31, 2.12s/it]
1616
  45%|████▍ | 1266/2838 [48:41<55:37, 2.12s/it]
1617
  45%|████▍ | 1267/2838 [48:44<55:27, 2.12s/it]
1618
  45%|████▍ | 1268/2838 [48:46<55:41, 2.13s/it]
1619
  45%|████▍ | 1269/2838 [48:48<55:19, 2.12s/it]
1620
  45%|████▍ | 1270/2838 [48:50<55:15, 2.11s/it]
1621
  45%|████▍ | 1271/2838 [48:52<55:06, 2.11s/it]
1622
  45%|████▍ | 1272/2838 [48:54<55:23, 2.12s/it]
1623
  45%|████▍ | 1273/2838 [48:56<55:04, 2.11s/it]
1624
  45%|████▍ | 1274/2838 [48:58<55:00, 2.11s/it]
1625
  45%|████▍ | 1275/2838 [49:00<54:59, 2.11s/it]
1626
  45%|████▍ | 1276/2838 [49:03<55:23, 2.13s/it]
1627
  45%|████▍ | 1277/2838 [49:05<55:04, 2.12s/it]
1628
  45%|████▌ | 1278/2838 [49:07<55:09, 2.12s/it]
1629
  45%|████▌ | 1279/2838 [49:09<55:29, 2.14s/it]
1630
  45%|████▌ | 1280/2838 [49:11<56:10, 2.16s/it]
1631
 
1632
+
1633
  45%|████▌ | 1280/2838 [49:11<56:10, 2.16s/it]
1634
  45%|████▌ | 1281/2838 [49:13<55:49, 2.15s/it]
1635
  45%|████▌ | 1282/2838 [49:15<55:32, 2.14s/it]
1636
  45%|████▌ | 1283/2838 [49:18<55:29, 2.14s/it]
1637
  45%|████▌ | 1284/2838 [49:20<56:46, 2.19s/it]
1638
  45%|████▌ | 1285/2838 [49:22<57:34, 2.22s/it]
1639
  45%|████▌ | 1286/2838 [49:24<56:33, 2.19s/it]
1640
  45%|████▌ | 1287/2838 [49:26<55:56, 2.16s/it]
1641
  45%|████▌ | 1288/2838 [49:29<55:24, 2.14s/it]
1642
  45%|████▌ | 1289/2838 [49:31<55:15, 2.14s/it]
1643
  45%|████▌ | 1290/2838 [49:33<54:44, 2.12s/it]
1644
  45%|████▌ | 1291/2838 [49:35<55:13, 2.14s/it]
1645
  46%|████▌ | 1292/2838 [49:37<54:53, 2.13s/it]
1646
  46%|████▌ | 1293/2838 [49:39<54:23, 2.11s/it]
1647
  46%|████▌ | 1294/2838 [49:41<54:31, 2.12s/it]
1648
  46%|████▌ | 1295/2838 [49:43<54:25, 2.12s/it]
1649
  46%|���███▌ | 1296/2838 [49:45<54:16, 2.11s/it]
1650
  46%|████▌ | 1297/2838 [49:48<54:36, 2.13s/it]
1651
  46%|████▌ | 1298/2838 [49:50<54:41, 2.13s/it]
1652
  46%|████▌ | 1299/2838 [49:52<54:15, 2.12s/it]
1653
  46%|████▌ | 1300/2838 [49:54<54:48, 2.14s/it]
1654
 
1655
+
1656
  46%|████▌ | 1300/2838 [49:54<54:48, 2.14s/it]
1657
  46%|████▌ | 1301/2838 [49:56<54:19, 2.12s/it]
1658
  46%|████▌ | 1302/2838 [49:58<54:19, 2.12s/it]
1659
  46%|████▌ | 1303/2838 [50:00<54:34, 2.13s/it]
1660
  46%|████▌ | 1304/2838 [50:02<54:11, 2.12s/it]
1661
  46%|████▌ | 1305/2838 [50:05<54:40, 2.14s/it]
1662
  46%|████▌ | 1306/2838 [50:07<54:28, 2.13s/it]
1663
  46%|████▌ | 1307/2838 [50:09<53:49, 2.11s/it]
1664
  46%|████▌ | 1308/2838 [50:11<53:57, 2.12s/it]
1665
  46%|████▌ | 1309/2838 [50:13<53:47, 2.11s/it]
1666
  46%|████▌ | 1310/2838 [50:15<54:27, 2.14s/it]
1667
  46%|████▌ | 1311/2838 [50:17<54:22, 2.14s/it]
1668
  46%|████▌ | 1312/2838 [50:20<54:28, 2.14s/it]
1669
  46%|████▋ | 1313/2838 [50:22<54:01, 2.13s/it]
1670
  46%|████▋ | 1314/2838 [50:24<53:43, 2.12s/it]
1671
  46%|████▋ | 1315/2838 [50:26<53:55, 2.12s/it]
1672
  46%|████▋ | 1316/2838 [50:28<53:35, 2.11s/it]
1673
  46%|████▋ | 1317/2838 [50:30<54:03, 2.13s/it]
1674
  46%|████▋ | 1318/2838 [50:32<53:52, 2.13s/it]
1675
  46%|████▋ | 1319/2838 [50:34<53:40, 2.12s/it]
1676
  47%|████▋ | 1320/2838 [50:36<53:52, 2.13s/it]
1677
 
1678
+
1679
  47%|████▋ | 1320/2838 [50:37<53:52, 2.13s/it]
1680
  47%|████▋ | 1321/2838 [50:39<53:25, 2.11s/it]
1681
  47%|████▋ | 1322/2838 [50:41<53:53, 2.13s/it]
1682
  47%|████▋ | 1323/2838 [50:43<53:36, 2.12s/it]
1683
  47%|████▋ | 1324/2838 [50:45<53:07, 2.11s/it]
1684
  47%|████▋ | 1325/2838 [50:47<53:09, 2.11s/it]
1685
  47%|████▋ | 1326/2838 [50:49<53:09, 2.11s/it]
1686
  47%|████▋ | 1327/2838 [50:51<52:56, 2.10s/it]
1687
  47%|████▋ | 1328/2838 [50:53<52:41, 2.09s/it]
1688
  47%|████▋ | 1329/2838 [50:55<53:06, 2.11s/it]
1689
  47%|████▋ | 1330/2838 [50:58<53:27, 2.13s/it]
logs/rats40k_2gpu_20260608_184010.log ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ torch: 2.6.0+cu124
2
+ accelerate: 0.34.2
3
+ cuda devices: 2
4
+ flash_attn installed: True
5
+ ================================================================
6
+ ITFormer × RATs40K | Run ID: 20260608_184010
7
+ CUDA_VISIBLE_DEVICES: 0,1
8
+ Data: /mnt/share01/sqk/datasets/RATs40K/RATs-Uni-TSImage_Reason.json
9
+ LLM: /mnt/share01/sqk/models/qwen2.5-7b-instruct
10
+ patch_len=16, input_len=128, prefix_num=8
11
+ it_d_model=3584, it_n_heads=28
12
+ ================================================================
13
+ Stage A: skipped (TS encoder exists: save/pretrain_rats40k/model.safetensors)
14
+
15
+ ── Stage B: SFT (ITFormer + LLM) ───────────────────────────────
16
+ LLM attention: flash_attention_2
17
+ ⚙️ Running in WANDB offline mode
18
+ ⚙️ Running in WANDB offline mode
19
+ loading file vocab.json
20
+ loading file merges.txt
21
+ loading file tokenizer.json
22
+ loading file added_tokens.json
23
+ loading file special_tokens_map.json
24
+ loading file tokenizer_config.json
25
+ loading file chat_template.jinja
26
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
27
+ Train: 30266 samples | Eval: 6034 samples
28
+ swanlab not installed; running without logging.
29
+ Generate config GenerationConfig {}
30
+
31
+ ⚡ LLM attention implementation: flash_attention_2
32
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-7b-instruct/config.json
33
+ Model config Qwen2Config {
34
+ "architectures": [
35
+ "Qwen2ForCausalLM"
36
+ ],
37
+ "attention_dropout": 0.0,
38
+ "bos_token_id": 151643,
39
+ "eos_token_id": 151645,
40
+ "hidden_act": "silu",
41
+ "hidden_size": 3584,
42
+ "initializer_range": 0.02,
43
+ "intermediate_size": 18944,
44
+ "layer_types": [
45
+ "full_attention",
46
+ "full_attention",
47
+ "full_attention",
48
+ "full_attention",
49
+ "full_attention",
50
+ "full_attention",
51
+ "full_attention",
52
+ "full_attention",
53
+ "full_attention",
54
+ "full_attention",
55
+ "full_attention",
56
+ "full_attention",
57
+ "full_attention",
58
+ "full_attention",
59
+ "full_attention",
60
+ "full_attention",
61
+ "full_attention",
62
+ "full_attention",
63
+ "full_attention",
64
+ "full_attention",
65
+ "full_attention",
66
+ "full_attention",
67
+ "full_attention",
68
+ "full_attention",
69
+ "full_attention",
70
+ "full_attention",
71
+ "full_attention",
72
+ "full_attention"
73
+ ],
74
+ "max_position_embeddings": 32768,
75
+ "max_window_layers": 28,
76
+ "model_type": "qwen2",
77
+ "num_attention_heads": 28,
78
+ "num_hidden_layers": 28,
79
+ "num_key_value_heads": 4,
80
+ "rms_norm_eps": 1e-06,
81
+ "rope_scaling": null,
82
+ "rope_theta": 1000000.0,
83
+ "sliding_window": null,
84
+ "tie_word_embeddings": false,
85
+ "torch_dtype": "bfloat16",
86
+ "transformers_version": "4.54.1",
87
+ "use_cache": true,
88
+ "use_sliding_window": false,
89
+ "vocab_size": 152064
90
+ }
91
+
92
+ loading weights file /mnt/share01/sqk/models/qwen2.5-7b-instruct/model.safetensors.index.json
93
+ Instantiating Qwen2ForCausalLM model under default dtype torch.bfloat16.
94
+ Generate config GenerationConfig {
95
+ "bos_token_id": 151643,
96
+ "eos_token_id": 151645
97
+ }
98
+
99
+
100
+ All model checkpoint weights were used when initializing Qwen2ForCausalLM.
101
+
102
+
103
+ All the weights of Qwen2ForCausalLM were initialized from the model checkpoint at /mnt/share01/sqk/models/qwen2.5-7b-instruct.
104
+ If your task is similar to the task the model of the checkpoint was trained on, you can already use Qwen2ForCausalLM for predictions without further training.
105
+ loading configuration file /mnt/share01/sqk/models/qwen2.5-7b-instruct/generation_config.json
106
+ Generate config GenerationConfig {
107
+ "bos_token_id": 151643,
108
+ "do_sample": true,
109
+ "eos_token_id": [
110
+ 151645,
111
+ 151643
112
+ ],
113
+ "pad_token_id": 151643,
114
+ "repetition_penalty": 1.05,
115
+ "temperature": 0.7,
116
+ "top_k": 20,
117
+ "top_p": 0.8
118
+ }
119
+
120
+ loading file vocab.json
121
+ loading file merges.txt
122
+ loading file tokenizer.json
123
+ loading file added_tokens.json
124
+ loading file special_tokens_map.json
125
+ loading file tokenizer_config.json
126
+ loading file chat_template.jinja
127
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
128
+ ✅ Loaded LLM model from: /mnt/share01/sqk/models/qwen2.5-7b-instruct
129
+ 📥 Loading pre-trained TimeSeries Encoder from: save/pretrain_rats40k/model.safetensors
130
+ ✅ TS Encoder weights loaded. Missing: 0, Unexpected: 0
131
+ 🔌 Using adapter: itformer
logs/rats40k_2gpu_20260608_184144.log ADDED
The diff for this file is too large to render. See raw diff
 
logs/rats40k_ckpt2838_eval_2gpu_20260609_184233.log ADDED
The diff for this file is too large to render. See raw diff
 
models/ITFormer.py ADDED
@@ -0,0 +1,555 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ ITFormer (Instruction-aware Time Series Transformer)
3
+ """
4
+ import math
5
+ import torch
6
+ import torch.nn.functional as F
7
+ from torch import nn
8
+ from timm.layers import Mlp, DropPath
9
+ from timm.layers.helpers import to_2tuple
10
+ from transformers.modeling_outputs import CausalLMOutputWithPast
11
+ from utils.position_coding import LearnablePositionalEmbedding, SinusoidalPositionalEncoding,RotaryPositionalEncoding
12
+ from models.layers.attention import InstructTimeAttention
13
+ from utils.log_util import adaptive_print
14
+
15
+ class SeqCrossAttention(nn.Module):
16
+ def __init__(
17
+ self,
18
+ dim,
19
+ num_heads=8,
20
+ qkv_bias=False,
21
+ qk_norm=False,
22
+ attn_drop=0.,
23
+ proj_drop=0.,
24
+ norm_layer=nn.LayerNorm,
25
+ ):
26
+ super().__init__()
27
+ assert dim % num_heads == 0, 'dim should be divisible by num_heads'
28
+ self.num_heads = num_heads
29
+ self.head_dim = dim // num_heads
30
+ self.scale = self.head_dim ** -0.5
31
+
32
+ self.q_proj = nn.Linear(dim, dim, bias=qkv_bias)
33
+ self.kv_proj = nn.Linear(dim, dim * 2, bias=qkv_bias)
34
+ self.q_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
35
+ self.k_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
36
+ self.attn_drop = nn.Dropout(attn_drop)
37
+ self.proj = nn.Linear(dim, dim)
38
+ self.proj_drop = nn.Dropout(proj_drop)
39
+
40
+ def forward(self, query, key_value, attn_mask=None):
41
+ B, N, C = query.shape
42
+ _, V, L, _ = key_value.shape
43
+
44
+ # Reshape Key and Value to focus only on L (time) dimension
45
+ key_value = key_value.view(B * V, L, C)
46
+
47
+ # Compute Query, Key, and Value projections
48
+ q = self.q_proj(query).reshape(B, N, self.num_heads, self.head_dim).permute(0, 2, 1, 3)
49
+ kv = self.kv_proj(key_value).reshape(B * V, L, 2, self.num_heads, self.head_dim).permute(2, 0, 3, 1, 4)
50
+ k, v = kv.unbind(0)
51
+
52
+ # Adjust batch size for Key and Value
53
+ k = k.view(B, V, self.num_heads, L, self.head_dim).permute(0, 2, 1, 3, 4).reshape(B * self.num_heads, V * L, self.head_dim)
54
+ v = v.view(B, V, self.num_heads, L, self.head_dim).permute(0, 2, 1, 3, 4).reshape(B * self.num_heads, V * L, self.head_dim)
55
+
56
+ # Apply normalization (if any)
57
+ q = self.q_norm(q).reshape(B * self.num_heads, N, self.head_dim)
58
+ k = self.k_norm(k)
59
+
60
+ # Scaled Dot-Product Attention over L dimension
61
+ x = F.scaled_dot_product_attention(
62
+ q, k, v,
63
+ attn_mask=attn_mask,
64
+ dropout_p=self.attn_drop.p if self.training else 0.
65
+ )
66
+
67
+ # Reshape and project output
68
+ x = x.view(B, self.num_heads, N, self.head_dim).permute(0, 2, 1, 3).reshape(B, N, C)
69
+ x = self.proj(x)
70
+ x = self.proj_drop(x)
71
+ return x
72
+
73
+ class SeqAttBlock(nn.Module):
74
+
75
+ def __init__(
76
+ self,
77
+ dim,
78
+ num_heads,
79
+ qkv_bias=False,
80
+ qk_norm=False,
81
+ proj_drop=0.,
82
+ attn_drop=0.,
83
+ init_values=None,
84
+ drop_path=0.,
85
+ norm_layer=nn.LayerNorm,
86
+ ):
87
+ super().__init__()
88
+ self.norm1 = norm_layer(dim)
89
+ self.attn_seq = SeqCrossAttention(
90
+ dim,
91
+ num_heads=num_heads,
92
+ qkv_bias=qkv_bias,
93
+ qk_norm=qk_norm,
94
+ attn_drop=attn_drop,
95
+ proj_drop=proj_drop,
96
+ norm_layer=norm_layer,
97
+ )
98
+
99
+ self.drop_path1 = DropPath(
100
+ drop_path) if drop_path > 0. else nn.Identity()
101
+ self.proj = nn.Linear(dim, dim)
102
+
103
+ def forward(self, x, key_value, attn_mask):
104
+ x_input = x
105
+ x = self.norm1(x)
106
+ key_value = self.norm1(key_value)
107
+
108
+ # key_value = torch.reshape(
109
+ # key_value, (-1, key_value.shape[-2], key_value.shape[-1]))
110
+ x = self.attn_seq(x, key_value, attn_mask)
111
+ x = x_input + self.drop_path1(x)
112
+ return x
113
+
114
+ class VarCrossAttention(nn.Module):
115
+
116
+ def __init__(
117
+ self,
118
+ dim,
119
+ num_heads=8,
120
+ qkv_bias=False,
121
+ qk_norm=False,
122
+ attn_drop=0.,
123
+ proj_drop=0.,
124
+ norm_layer=nn.LayerNorm,
125
+ ):
126
+ super().__init__()
127
+ assert dim % num_heads == 0, 'dim should be divisible by num_heads'
128
+ self.num_heads = num_heads
129
+ self.head_dim = dim // num_heads
130
+ self.scale = self.head_dim ** -0.5
131
+
132
+ self.q_proj = nn.Linear(dim, dim, bias=qkv_bias)
133
+ self.kv_proj = nn.Linear(dim, dim * 2, bias=qkv_bias)
134
+ self.q_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
135
+ self.k_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
136
+ self.attn_drop = nn.Dropout(attn_drop)
137
+ self.proj = nn.Linear(dim, dim)
138
+ self.proj_drop = nn.Dropout(proj_drop)
139
+
140
+ def forward(self, query, key_value, attn_mask=None):
141
+ B, N, C = query.shape
142
+ _, V, L, _ = key_value.shape
143
+
144
+ # Reshape Key and Value to focus only on V (variable) dimension
145
+ key_value = key_value.view(B * L, V, C)
146
+
147
+ # Compute Query, Key, and Value projections
148
+ q = self.q_proj(query).reshape(B, N, self.num_heads, self.head_dim).permute(0, 2, 1, 3)
149
+ kv = self.kv_proj(key_value).reshape(B * L, V, 2, self.num_heads, self.head_dim).permute(2, 0, 3, 1, 4)
150
+ k, v = kv.unbind(0)
151
+
152
+ # Adjust batch size for Key and Value
153
+ k = k.view(B, L, self.num_heads, V, self.head_dim).permute(0, 2, 1, 3, 4).reshape(B * self.num_heads, L * V, self.head_dim)
154
+ v = v.view(B, L, self.num_heads, V, self.head_dim).permute(0, 2, 1, 3, 4).reshape(B * self.num_heads, L * V, self.head_dim)
155
+
156
+ # Apply normalization (if any)
157
+ q = self.q_norm(q).reshape(B * self.num_heads, N, self.head_dim)
158
+ k = self.k_norm(k)
159
+
160
+ # Scaled Dot-Product Attention over V dimension
161
+ x = F.scaled_dot_product_attention(
162
+ q, k, v,
163
+ attn_mask=attn_mask,
164
+ dropout_p=self.attn_drop.p if self.training else 0.
165
+ )
166
+
167
+ # Reshape and project output
168
+ x = x.view(B, self.num_heads, N, self.head_dim).permute(0, 2, 1, 3).reshape(B, N, C)
169
+ x = self.proj(x)
170
+ x = self.proj_drop(x)
171
+ return x
172
+
173
+ class VarAttBlock(nn.Module):
174
+
175
+ def __init__(
176
+ self,
177
+ dim,
178
+ num_heads,
179
+ qkv_bias=False,
180
+ qk_norm=False,
181
+ proj_drop=0.,
182
+ attn_drop=0.,
183
+ init_values=None,
184
+ drop_path=0.,
185
+ norm_layer=nn.LayerNorm,
186
+ ):
187
+ super().__init__()
188
+ self.norm1 = norm_layer(dim)
189
+ self.attn_var = VarCrossAttention(
190
+ dim,
191
+ num_heads=num_heads,
192
+ qkv_bias=qkv_bias,
193
+ qk_norm=qk_norm,
194
+ attn_drop=attn_drop,
195
+ proj_drop=proj_drop,
196
+ norm_layer=norm_layer,
197
+ )
198
+
199
+ self.drop_path1 = DropPath(
200
+ drop_path) if drop_path > 0. else nn.Identity()
201
+ self.proj = nn.Linear(dim, dim)
202
+
203
+ def forward(self, x, key_value, attn_mask):
204
+ x_input = x
205
+ x = self.norm1(x)
206
+ key_value = self.norm1(key_value)
207
+
208
+ x = self.attn_var(x, key_value, attn_mask)
209
+ x = x_input + self.drop_path1(x)
210
+ return x
211
+
212
+ class SeqAttention(nn.Module):
213
+
214
+ def __init__(
215
+ self,
216
+ dim,
217
+ num_heads=8,
218
+ qkv_bias=False,
219
+ qk_norm=False,
220
+ attn_drop=0.,
221
+ proj_drop=0.,
222
+ norm_layer=nn.LayerNorm,
223
+ ):
224
+ super().__init__()
225
+ assert dim % num_heads == 0, 'dim should be divisible by num_heads'
226
+ self.num_heads = num_heads
227
+ self.head_dim = dim // num_heads
228
+ self.scale = self.head_dim ** -0.5
229
+
230
+ self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
231
+ self.q_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
232
+ self.k_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
233
+ self.attn_drop = nn.Dropout(attn_drop)
234
+ self.proj = nn.Linear(dim, dim)
235
+ self.proj_drop = nn.Dropout(proj_drop)
236
+
237
+ def forward(self, x, attn_mask=None):
238
+ B, N, C = x.shape
239
+ qkv = self.qkv(x).reshape(B, N, 3, self.num_heads,
240
+ self.head_dim).permute(2, 0, 3, 1, 4)
241
+ q, k, v = qkv.unbind(0)
242
+ q, k = self.q_norm(q), self.k_norm(k)
243
+ x = F.scaled_dot_product_attention(
244
+ q, k, v, attn_mask=attn_mask,
245
+ dropout_p=self.attn_drop.p if self.training else 0.,
246
+ )
247
+
248
+ x = x.transpose(1, 2).reshape(B, N, C)
249
+ x = self.proj(x)
250
+ x = self.proj_drop(x)
251
+ return x
252
+
253
+ class SelfAttBlock(nn.Module):
254
+
255
+ def __init__(
256
+ self,
257
+ dim,
258
+ num_heads,
259
+ qkv_bias=False,
260
+ qk_norm=False,
261
+ proj_drop=0.,
262
+ attn_drop=0.,
263
+ init_values=None,
264
+ drop_path=0.,
265
+ norm_layer=nn.LayerNorm,
266
+ ):
267
+ super().__init__()
268
+ self.norm1 = norm_layer(dim)
269
+ self.attn_seq = SeqAttention(
270
+ dim,
271
+ num_heads=num_heads,
272
+ qkv_bias=qkv_bias,
273
+ qk_norm=qk_norm,
274
+ attn_drop=attn_drop,
275
+ proj_drop=proj_drop,
276
+ norm_layer=norm_layer,
277
+ )
278
+
279
+ self.drop_path1 = DropPath(
280
+ drop_path) if drop_path > 0. else nn.Identity()
281
+
282
+ def forward(self, x, attn_mask=None):
283
+ x_input = x
284
+ x = self.norm1(x)
285
+ x = self.attn_seq(x, attn_mask)
286
+ x = x_input + self.drop_path1(x)
287
+ return x
288
+
289
+
290
+ class ITAttBlock(nn.Module):
291
+
292
+ def __init__(
293
+ self,
294
+ dim,
295
+ num_heads,
296
+ qkv_bias=False,
297
+ qk_norm=False,
298
+ proj_drop=0.,
299
+ attn_drop=0.,
300
+ init_values=None,
301
+ drop_path=0.,
302
+ norm_layer=nn.LayerNorm,
303
+ ):
304
+ super().__init__()
305
+ self.norm1 = norm_layer(dim)
306
+ self.attn_it = InstructTimeAttention(
307
+ dim,
308
+ num_heads=num_heads,
309
+ qkv_bias=qkv_bias,
310
+ qk_norm=qk_norm,
311
+ attn_drop=attn_drop,
312
+ proj_drop=proj_drop,
313
+ norm_layer=norm_layer,
314
+
315
+ )
316
+ self.drop_path1 = DropPath(
317
+ drop_path) if drop_path > 0. else nn.Identity()
318
+
319
+ def forward(self, x,memory, attn_mask=None):
320
+ x_input = x
321
+ x = self.attn_it(x, memory,attn_mask)
322
+ x = x_input + self.norm1(self.drop_path1(x))
323
+ return x
324
+
325
+ class DecoderBasicBlock(nn.Module):
326
+
327
+ def __init__(
328
+ self,
329
+ dim,
330
+ num_heads,
331
+ mlp_ratio=4.0,
332
+ qkv_bias=False,
333
+ qk_norm=False,
334
+ proj_drop=0.,
335
+ attn_drop=0.,
336
+ drop_path=0.,
337
+ act_layer=nn.GELU,
338
+ norm_layer=nn.LayerNorm,
339
+ prefix_num=10,
340
+ legacy_double_residual=True,
341
+ ):
342
+ super().__init__()
343
+
344
+ self.prefix_num = prefix_num
345
+ self.legacy_double_residual = legacy_double_residual
346
+
347
+ self.self_attn = SelfAttBlock(
348
+ dim=dim, num_heads=num_heads, qkv_bias=qkv_bias, qk_norm=qk_norm,
349
+ attn_drop=attn_drop, proj_drop=proj_drop, drop_path=drop_path, norm_layer=norm_layer
350
+ )
351
+
352
+ self.it_attn = ITAttBlock(
353
+ dim=dim, num_heads=num_heads, qkv_bias=qkv_bias, qk_norm=qk_norm,
354
+ attn_drop=attn_drop, proj_drop=proj_drop, drop_path=drop_path, norm_layer=norm_layer
355
+ )
356
+
357
+
358
+ self.feed_forward_prefix = nn.Sequential(
359
+ norm_layer(dim),
360
+ nn.Linear(dim, int(dim * mlp_ratio)),
361
+ act_layer(),
362
+ nn.Dropout(proj_drop),
363
+ nn.Linear(int(dim * mlp_ratio), dim),
364
+ )
365
+
366
+ self.feed_forward_instruct = nn.Sequential(
367
+ norm_layer(dim),
368
+ nn.Linear(dim, int(dim * mlp_ratio)),
369
+ act_layer(),
370
+ nn.Dropout(proj_drop),
371
+ nn.Linear(int(dim * mlp_ratio), dim),
372
+ )
373
+
374
+
375
+ self.drop_path = DropPath(drop_path) if drop_path > 0. else nn.Identity()
376
+
377
+ def forward(self, x, memory, attn_mask=None):
378
+
379
+ # Self-attention block
380
+ self_attended = self.self_attn(x, attn_mask)
381
+ x = x + self_attended if self.legacy_double_residual else self_attended
382
+ prefix =x[:, :self.prefix_num, :]
383
+ x = self.feed_forward_instruct(x)+x
384
+ # Cross-attention block 10token vs b,n,c,d中的n
385
+ time_attended = self.it_attn(prefix, memory, attn_mask)
386
+ prefix = (
387
+ prefix + time_attended
388
+ if self.legacy_double_residual
389
+ else time_attended
390
+ )
391
+ # 10token vs b,n,c,d中的c
392
+ # Feed forward block
393
+ prefix = prefix + self.feed_forward_prefix(prefix)
394
+ # Concatenate prefix and x
395
+ x = torch.cat([prefix, x[:, self.prefix_num:, :]], dim=1)
396
+ return x
397
+
398
+
399
+ class ITFormer(nn.Module):
400
+ def __init__(self, args):
401
+ super(ITFormer, self).__init__()
402
+ self.layers = nn.ModuleList([
403
+ DecoderBasicBlock(
404
+ dim=args.it_d_model,
405
+ num_heads=args.it_n_heads,
406
+ mlp_ratio=4.,
407
+ qkv_bias=True,
408
+ qk_norm=False,
409
+ proj_drop=args.it_dropout,
410
+ attn_drop=args.it_dropout,
411
+ drop_path=0.,
412
+ act_layer=nn.GELU,
413
+ norm_layer=nn.LayerNorm,
414
+ prefix_num=args.prefix_num,
415
+ legacy_double_residual=getattr(
416
+ args, "itformer_legacy_double_residual", True
417
+ ),
418
+ ) for _ in range(args.it_layers)
419
+ ])
420
+ self.norm = nn.LayerNorm(args.it_d_model)
421
+
422
+
423
+ #time posi
424
+ self.time_pos = SinusoidalPositionalEncoding(args.it_d_model)
425
+ #variable posi
426
+ self.var_pos = LearnablePositionalEmbedding(args.it_d_model)
427
+ #instruction posi
428
+ self.instruc_pos = SinusoidalPositionalEncoding(args.it_d_model)
429
+ # cycle posi
430
+ self.cycle_pos = RotaryPositionalEncoding(args.it_d_model)
431
+
432
+ #prefix num
433
+ self.prefix_num = args.prefix_num
434
+ self.prefix_token = nn.Parameter(
435
+ torch.empty(1, args.prefix_num, args.it_d_model)
436
+ )
437
+ nn.init.normal_(self.prefix_token, std=0.02)
438
+ def forward(self, x, memory, stage=None,attn_mask=None):
439
+ # Add prefix token to x
440
+ x = torch.cat([self.prefix_token.repeat(x.shape[0], 1, 1), x], dim=1)
441
+ # Positional encoding
442
+ # Apply positional encoding to x
443
+ x = x + self.instruc_pos(x)
444
+
445
+ # Stage 处理逻辑改进
446
+ if torch.is_tensor(stage):
447
+ stage_list = stage.tolist()
448
+ else:
449
+ stage_list = stage
450
+
451
+ # 找出不同 stage 的索引
452
+ cycle_index = [i for i, s in enumerate(stage_list) if s != 3 and s != 4]
453
+ cross_cycle_index = [i for i, s in enumerate(stage_list) if s == 3 or s == 4]
454
+
455
+ # 记录原始顺序以便恢复,确保与 x 对齐
456
+ original_indices = cycle_index + cross_cycle_index
457
+ reorder_map = {idx: i for i, idx in enumerate(original_indices)}
458
+ reverse_indices = [reorder_map[i] for i in range(len(stage_list))]
459
+
460
+ processed_memories = []
461
+
462
+ if len(cycle_index) > 0:
463
+ sub_memory = memory[cycle_index]
464
+ b, l, v, d = sub_memory.shape
465
+ sub_memory = sub_memory.view(b * l, v, d)
466
+ sub_memory = sub_memory + self.time_pos(sub_memory)
467
+ sub_memory = sub_memory.view(b, l, v, d)
468
+ processed_memories.append((cycle_index, sub_memory))
469
+
470
+ if len(cross_cycle_index) > 0:
471
+ sub_memory = memory[cross_cycle_index]
472
+ b, l, v, d = sub_memory.shape
473
+ sub_memory = sub_memory.view(b * v, l, d)
474
+ sub_memory = sub_memory + self.cycle_pos(sub_memory)
475
+ sub_memory = sub_memory.view(b, l, v, d)
476
+ processed_memories.append((cross_cycle_index, sub_memory))
477
+
478
+ # 按照拼接后的顺序排列
479
+ all_processed = torch.cat([m for _, m in processed_memories], dim=0)
480
+ # 关键步骤:恢复原始 batch 顺序以匹配 x
481
+ memory = all_processed[reverse_indices]
482
+
483
+ # 再次处理变量维度
484
+ b, l, v, d = memory.shape
485
+ memory = memory.view(b * l, v, d)
486
+ memory = memory + self.var_pos(memory)
487
+ memory = memory.view(b, l, v, d)
488
+
489
+ for i, layer in enumerate(self.layers):
490
+ x = layer(x, memory, attn_mask)
491
+
492
+ x = self.norm(x)
493
+ return x[:, :self.prefix_num, :]
494
+
495
+ def count_parameters(model):
496
+ """统计模型中可训练参数的总数"""
497
+ return sum(p.numel() for p in model.parameters() if p.requires_grad)
498
+
499
+
500
+
501
+ if __name__ == "__main__":
502
+
503
+ # dim = 64
504
+ # num_heads = 8
505
+ # seq_len = 20
506
+ # var_num = 5
507
+ # memory_len = 30
508
+ # batch_size = 2
509
+
510
+ # x = torch.randn(batch_size, seq_len, dim)
511
+ # memory = torch.randn(batch_size, var_num,memory_len, dim)
512
+ # attn_mask = None
513
+
514
+ # decoder_block = DecoderBasicBlock(
515
+ # dim=dim, num_heads=num_heads, qkv_bias=True, proj_drop=0.1, attn_drop=0.1
516
+ # )
517
+ # output = decoder_block(x, memory, attn_mask)
518
+ # print("DecoderBasicBlock Output Shape:", output.shape)
519
+ # class Args:
520
+ # def __init__(self):
521
+ # self.it_d_model = 64
522
+ # self.it_n_heads = 8
523
+ # self.it_layers = 6
524
+ # self.it_dropout = 0.1
525
+ # self.prefix_num = 10
526
+
527
+ # args = Args()
528
+ # model = ITformer(args)
529
+
530
+ # x = torch.randn(batch_size, seq_len, dim)
531
+ # memory = torch.randn(batch_size, var_num, memory_len, dim)
532
+ # attn_mask = None
533
+ # stage = [1,2]
534
+ # output = model(x, memory,stage, attn_mask)
535
+ # print("Model Output Shape:", output.shape)
536
+ class Args:
537
+ def __init__(self):
538
+ self.it_d_model = 512
539
+ self.it_n_heads = 8
540
+ self.it_layers = 4
541
+ self.it_dropout = 0.1
542
+ self.prefix_num = 10
543
+
544
+ args = Args()
545
+ model = ITFormer(args)
546
+
547
+ # 打印可训练参数量
548
+ total_trainable_params = count_parameters(model)
549
+ print(f"Total Trainable Parameters: {total_trainable_params:,}")
550
+
551
+ # # 可选:打印每一层的参数量
552
+ # print("\nLayer-wise Parameters:")
553
+ # for name, param in model.named_parameters():
554
+ # if param.requires_grad:
555
+ # print(f"{name}: {param.numel():,}")
models/QFormerAdapter.py ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from torch import nn
3
+ from utils.position_coding import (
4
+ LearnablePositionalEmbedding,
5
+ RotaryPositionalEncoding,
6
+ SinusoidalPositionalEncoding,
7
+ )
8
+
9
+
10
+ class QFormerBlock(nn.Module):
11
+ def __init__(self, dim, num_heads, dropout=0.1, mlp_ratio=4.0):
12
+ super().__init__()
13
+ self.query_norm = nn.LayerNorm(dim)
14
+ self.self_attn = nn.MultiheadAttention(
15
+ embed_dim=dim,
16
+ num_heads=num_heads,
17
+ dropout=dropout,
18
+ batch_first=True,
19
+ )
20
+
21
+ self.cross_query_norm = nn.LayerNorm(dim)
22
+ self.memory_norm = nn.LayerNorm(dim)
23
+ self.cross_attn = nn.MultiheadAttention(
24
+ embed_dim=dim,
25
+ num_heads=num_heads,
26
+ dropout=dropout,
27
+ batch_first=True,
28
+ )
29
+
30
+ hidden_dim = int(dim * mlp_ratio)
31
+ self.ffn = nn.Sequential(
32
+ nn.LayerNorm(dim),
33
+ nn.Linear(dim, hidden_dim),
34
+ nn.GELU(),
35
+ nn.Dropout(dropout),
36
+ nn.Linear(hidden_dim, dim),
37
+ nn.Dropout(dropout),
38
+ )
39
+
40
+ def forward(self, queries, memory):
41
+ query_residual = queries
42
+ norm_queries = self.query_norm(queries)
43
+ queries = query_residual + self.self_attn(
44
+ norm_queries,
45
+ norm_queries,
46
+ norm_queries,
47
+ need_weights=False,
48
+ )[0]
49
+
50
+ query_residual = queries
51
+ queries = query_residual + self.cross_attn(
52
+ self.cross_query_norm(queries),
53
+ self.memory_norm(memory),
54
+ self.memory_norm(memory),
55
+ need_weights=False,
56
+ )[0]
57
+
58
+ queries = queries + self.ffn(queries)
59
+ return queries
60
+
61
+
62
+ class QFormerAdapter(nn.Module):
63
+ """Stage-aware Q-Former adapter baseline.
64
+
65
+ It keeps the Q-Former learnable query tokens, but preserves the time-series
66
+ structure before flattening memory for cross-attention. Stage 3 and 4 use
67
+ cycle positional encoding so cross-cycle degradation trends remain visible.
68
+ """
69
+
70
+ def __init__(self, args):
71
+ super().__init__()
72
+ self.prefix_num = args.prefix_num
73
+ self.prefix_token = nn.Parameter(torch.randn(1, args.prefix_num, args.it_d_model))
74
+ self.instruction_norm = nn.LayerNorm(args.it_d_model)
75
+ self.stage_embedding = nn.Embedding(5, args.it_d_model)
76
+ self.memory_norm = nn.LayerNorm(args.it_d_model)
77
+ self.time_pos = SinusoidalPositionalEncoding(args.it_d_model)
78
+ self.var_pos = LearnablePositionalEmbedding(args.it_d_model)
79
+ self.cycle_pos = RotaryPositionalEncoding(args.it_d_model)
80
+ self.layers = nn.ModuleList(
81
+ [
82
+ QFormerBlock(
83
+ dim=args.it_d_model,
84
+ num_heads=args.it_n_heads,
85
+ dropout=args.it_dropout,
86
+ mlp_ratio=4.0,
87
+ )
88
+ for _ in range(args.it_layers)
89
+ ]
90
+ )
91
+ self.norm = nn.LayerNorm(args.it_d_model)
92
+
93
+ def _stage_list(self, stage, batch_size, device):
94
+ if stage is None:
95
+ return [0] * batch_size
96
+ if torch.is_tensor(stage):
97
+ values = stage.detach().to(device=device, dtype=torch.long).view(-1).tolist()
98
+ elif isinstance(stage, (int, float)):
99
+ values = [int(stage)]
100
+ else:
101
+ values = [int(s) for s in stage]
102
+
103
+ if len(values) == 1 and batch_size > 1:
104
+ return values * batch_size
105
+ if len(values) != batch_size:
106
+ raise ValueError(f"Expected {batch_size} stage values, got {len(values)}.")
107
+ return values
108
+
109
+ def _encode_memory(self, memory, stage):
110
+ batch_size = memory.shape[0]
111
+ stage_list = self._stage_list(stage, batch_size, memory.device)
112
+
113
+ cycle_index = [i for i, s in enumerate(stage_list) if s not in (3, 4)]
114
+ cross_cycle_index = [i for i, s in enumerate(stage_list) if s in (3, 4)]
115
+ original_indices = cycle_index + cross_cycle_index
116
+ reorder_map = {idx: i for i, idx in enumerate(original_indices)}
117
+ reverse_indices = [reorder_map[i] for i in range(batch_size)]
118
+
119
+ processed_memories = []
120
+
121
+ if cycle_index:
122
+ sub_memory = memory[cycle_index]
123
+ b, l, v, d = sub_memory.shape
124
+ sub_memory = sub_memory.view(b * l, v, d)
125
+ sub_memory = sub_memory + self.time_pos(sub_memory)
126
+ sub_memory = sub_memory.view(b, l, v, d)
127
+ processed_memories.append(sub_memory)
128
+
129
+ if cross_cycle_index:
130
+ sub_memory = memory[cross_cycle_index]
131
+ b, l, v, d = sub_memory.shape
132
+ sub_memory = sub_memory.view(b * v, l, d)
133
+ sub_memory = sub_memory + self.cycle_pos(sub_memory)
134
+ sub_memory = sub_memory.view(b, l, v, d)
135
+ processed_memories.append(sub_memory)
136
+
137
+ memory = torch.cat(processed_memories, dim=0)[reverse_indices]
138
+
139
+ b, l, v, d = memory.shape
140
+ memory = memory.view(b * l, v, d)
141
+ memory = memory + self.var_pos(memory)
142
+ memory = memory.view(b, l * v, d)
143
+ return self.memory_norm(memory)
144
+
145
+ def forward(self, x, memory, stage=None, attn_mask=None):
146
+ batch_size = x.shape[0]
147
+ queries = self.prefix_token.repeat(batch_size, 1, 1)
148
+
149
+ if x is not None and x.numel() > 0:
150
+ instruction_bias = self.instruction_norm(x).mean(dim=1, keepdim=True)
151
+ queries = queries + instruction_bias
152
+
153
+ stage_ids = torch.tensor(
154
+ self._stage_list(stage, batch_size, queries.device),
155
+ device=queries.device,
156
+ dtype=torch.long,
157
+ ).clamp(min=0, max=self.stage_embedding.num_embeddings - 1)
158
+ queries = queries + self.stage_embedding(stage_ids).unsqueeze(1)
159
+
160
+ memory = self._encode_memory(memory, stage)
161
+
162
+ for layer in self.layers:
163
+ queries = layer(queries, memory)
164
+
165
+ return self.norm(queries)
models/TimeLanguageModel.py ADDED
@@ -0,0 +1,543 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+ """
4
+ Time Language Model (TLM) for inference.
5
+ A multimodal model that combines time series data with language model for time series question answering.
6
+ """
7
+ import os
8
+ import json
9
+ import torch
10
+ import torch.nn as nn
11
+ from transformers import PreTrainedModel, PretrainedConfig, AutoTokenizer, AutoModelForCausalLM, GenerationMixin
12
+ from transformers.modeling_outputs import CausalLMOutputWithPast
13
+ from safetensors.torch import load_file
14
+ from models.TimeSeriesEncoder import Model
15
+ from models.ITFormer import ITFormer
16
+ from models.QFormerAdapter import QFormerAdapter
17
+ from accelerate import Accelerator
18
+
19
+ accelerator = Accelerator()
20
+
21
+ LORA_STATE_MARKERS = (
22
+ ".lora_A.",
23
+ ".lora_B.",
24
+ ".lora_embedding_A.",
25
+ ".lora_embedding_B.",
26
+ )
27
+
28
+
29
+ class TLMConfig(PretrainedConfig):
30
+ """Configuration class for Time Language Model."""
31
+ model_type = "vlm_model"
32
+
33
+ def __init__(self, llm_model_path='LLM/Qwen2.5-0.5B-Instruct',
34
+ freeze_ts_model=True,
35
+ ts_pad_num=25,
36
+ llm_attn_implementation=None,
37
+ llm_torch_dtype=None,
38
+ use_lora=False,
39
+ lora_r=16,
40
+ lora_alpha=32,
41
+ lora_dropout=0.05,
42
+ lora_target_modules=None,
43
+ gradient_checkpointing=False,
44
+ **kwargs):
45
+ """Initialize TLM configuration.
46
+
47
+ Args:
48
+ llm_model_path: Path to the language model
49
+ freeze_ts_model: Whether to freeze time series model parameters
50
+ ts_pad_num: Number of time series padding tokens
51
+ **kwargs: Additional configuration parameters
52
+ """
53
+ self.llm_model_path = llm_model_path
54
+ self.freeze_ts_model = freeze_ts_model
55
+ self.ts_pad_num = ts_pad_num
56
+ self.llm_attn_implementation = llm_attn_implementation
57
+ self.llm_torch_dtype = llm_torch_dtype
58
+ self.use_lora = use_lora
59
+ self.lora_r = lora_r
60
+ self.lora_alpha = lora_alpha
61
+ self.lora_dropout = lora_dropout
62
+ self.lora_target_modules = lora_target_modules or [
63
+ "q_proj",
64
+ "k_proj",
65
+ "v_proj",
66
+ "o_proj",
67
+ "gate_proj",
68
+ "up_proj",
69
+ "down_proj",
70
+ ]
71
+ self.gradient_checkpointing = gradient_checkpointing
72
+ super().__init__(**kwargs)
73
+
74
+
75
+ class TLM(PreTrainedModel, GenerationMixin):
76
+ """Time Language Model for inference."""
77
+ config_class = TLMConfig
78
+
79
+ def state_dict(self, *args, **kwargs):
80
+ """Return checkpoint weights without the frozen base LLM.
81
+
82
+ The frozen base Qwen weights are reloaded from config.llm_model_path.
83
+ Keep only the trainable LoRA matrices under llm_model.*.
84
+ """
85
+ state_dict = super().state_dict(*args, **kwargs)
86
+ return {
87
+ key: value
88
+ for key, value in state_dict.items()
89
+ if not key.startswith("llm_model.")
90
+ or any(marker in key for marker in LORA_STATE_MARKERS)
91
+ }
92
+
93
+ @classmethod
94
+ def from_pretrained(cls, pretrained_model_name_or_path, config=None, **kwargs):
95
+ """Load model from pretrained checkpoint.
96
+
97
+ Args:
98
+ pretrained_model_name_or_path: Path to the checkpoint
99
+ config: Model configuration
100
+ **kwargs: Additional arguments, including ts_config
101
+
102
+ Returns:
103
+ TLM: Loaded model instance
104
+ """
105
+ if not os.path.exists(pretrained_model_name_or_path):
106
+ raise ValueError(f"Checkpoint path does not exist: {pretrained_model_name_or_path}")
107
+
108
+ # Load config.json
109
+ config_path = os.path.join(pretrained_model_name_or_path, "config.json")
110
+ if os.path.exists(config_path):
111
+ with open(config_path, 'r') as f:
112
+ config_dict = json.load(f)
113
+ if config is None:
114
+ config = TLMConfig(**config_dict)
115
+ else:
116
+ if config is None:
117
+ config = TLMConfig()
118
+
119
+ # Create model instance with potential ts_config from kwargs
120
+ model = cls(config, **kwargs)
121
+
122
+ # Load model weights
123
+ model_path = os.path.join(pretrained_model_name_or_path, "pytorch_model.bin")
124
+ if not os.path.exists(model_path):
125
+ model_path = os.path.join(pretrained_model_name_or_path, "model.safetensors")
126
+
127
+ state_dict = None
128
+ # 1. Try normal files
129
+ if os.path.exists(model_path):
130
+ if accelerator.is_main_process:
131
+ print(f"Loading model weights from: {model_path}")
132
+ if model_path.endswith('.safetensors'):
133
+ state_dict = load_file(model_path)
134
+ else:
135
+ state_dict = torch.load(model_path, map_location='cpu')
136
+ else:
137
+ # 2. Try split safetensors in the same directory
138
+ all_files = os.listdir(pretrained_model_name_or_path)
139
+ safetensors_files = [f for f in all_files if f.startswith('model-') and f.endswith('.safetensors')]
140
+ safetensors_files.sort() # Ensure order
141
+ if safetensors_files:
142
+ if accelerator.is_main_process:
143
+ print(f"Loading split safetensors from: {pretrained_model_name_or_path}")
144
+ state_dict = {}
145
+ for fname in safetensors_files:
146
+ fpath = os.path.join(pretrained_model_name_or_path, fname)
147
+ part = load_file(fpath)
148
+ state_dict.update(part)
149
+ if accelerator.is_main_process:
150
+ print(f"Successfully loaded {len(safetensors_files)} split safetensors files.")
151
+ if state_dict is not None:
152
+ # Ignore frozen base-LLM weights but retain LoRA matrices.
153
+ ignored_llm_weights = {}
154
+ other_weights = {}
155
+ for k, v in state_dict.items():
156
+ is_lora_weight = any(marker in k for marker in LORA_STATE_MARKERS)
157
+ if k.startswith('llm_model.') and not is_lora_weight:
158
+ ignored_llm_weights[k] = v
159
+ else:
160
+ other_weights[k] = v
161
+ if accelerator.is_main_process:
162
+ lora_count = sum(
163
+ any(marker in key for marker in LORA_STATE_MARKERS)
164
+ for key in other_weights
165
+ )
166
+ print(f"Found {len(ignored_llm_weights)} frozen LLM weights (will be ignored)")
167
+ print(f"Found {lora_count} LoRA tensors")
168
+ print(f"Found {len(other_weights) - lora_count} non-LLM tensors")
169
+ checkpoint_has_lora = any(
170
+ any(marker in key for marker in LORA_STATE_MARKERS)
171
+ for key in other_weights
172
+ )
173
+ model_has_lora = any(
174
+ "lora_" in name for name, _ in model.llm_model.named_parameters()
175
+ )
176
+ if checkpoint_has_lora and not model_has_lora:
177
+ raise ValueError(
178
+ "The checkpoint contains LoRA matrices, but the model was "
179
+ "constructed with use_lora=False."
180
+ )
181
+ if getattr(model.config, "use_lora", False) and not checkpoint_has_lora:
182
+ raise ValueError(
183
+ "The model was constructed with use_lora=True, but the "
184
+ "checkpoint does not contain LoRA matrices."
185
+ )
186
+ missing_keys, unexpected_keys = model.load_state_dict(other_weights, strict=False)
187
+ # Filter out LLM-related missing keys since we're not loading LLM weights
188
+ llm_missing_keys = [
189
+ k
190
+ for k in missing_keys
191
+ if k.startswith('llm_model.')
192
+ and not any(marker in k for marker in LORA_STATE_MARKERS)
193
+ ]
194
+ non_llm_missing_keys = [k for k in missing_keys if not k.startswith('llm_model.')]
195
+ missing_lora_keys = [
196
+ k
197
+ for k in missing_keys
198
+ if any(marker in k for marker in LORA_STATE_MARKERS)
199
+ ]
200
+ if llm_missing_keys and accelerator.is_main_process:
201
+ print(f"LLM missing keys (ignored): {len(llm_missing_keys)} keys")
202
+ if missing_lora_keys:
203
+ raise ValueError(f"Missing LoRA checkpoint keys: {missing_lora_keys}")
204
+ if non_llm_missing_keys and accelerator.is_main_process:
205
+ print(f"Non-LLM missing keys: {non_llm_missing_keys}")
206
+ if unexpected_keys and accelerator.is_main_process:
207
+ print(f"Unexpected keys: {unexpected_keys}")
208
+ else:
209
+ if accelerator.is_main_process:
210
+ print(f"Warning: No model weights found at {model_path} or in split safetensors.")
211
+
212
+ return model
213
+
214
+ def __init__(self, config, ts_config=None):
215
+ """Initialize TLM model.
216
+
217
+ Args:
218
+ config: TLM configuration
219
+ ts_config: Optional time series configuration (args)
220
+ """
221
+ super().__init__(config)
222
+ self.config = config
223
+
224
+ if ts_config is None:
225
+ # Create default ts_config if not provided
226
+ class DefaultTSConfig:
227
+ def __init__(self):
228
+ self.model = 'TimeSeriesEncoder'
229
+ self.d_model = 512
230
+ self.n_heads = 8
231
+ self.e_layers = 4
232
+ self.patch_len = 60
233
+ self.stride = 60
234
+ self.input_len = 600
235
+ self.dropout = 0.1
236
+ self.it_d_model = 896
237
+ self.it_n_heads = 16
238
+ self.it_layers = 2
239
+ self.it_dropout = 0.1
240
+ self.prefix_num = 25
241
+ self.adapter_type = 'itformer'
242
+ ts_config = DefaultTSConfig()
243
+
244
+ self.ts_config = ts_config
245
+
246
+ # 统一属性名对齐���辑:确保 ts_pad_num 和 prefix_num 存在且一致
247
+ if hasattr(self.ts_config, 'ts_pad_num') and not hasattr(self.ts_config, 'prefix_num'):
248
+ setattr(self.ts_config, 'prefix_num', self.ts_config.ts_pad_num)
249
+ elif hasattr(self.ts_config, 'prefix_num') and not hasattr(self.ts_config, 'ts_pad_num'):
250
+ setattr(self.ts_config, 'ts_pad_num', self.ts_config.prefix_num)
251
+
252
+ # Initialize LLM model from external path
253
+ try:
254
+ llm_load_kwargs = {}
255
+ attn_impl = getattr(self.config, 'llm_attn_implementation', None)
256
+ dtype_name = getattr(self.config, 'llm_torch_dtype', None)
257
+ dtype_map = {
258
+ "float16": torch.float16,
259
+ "fp16": torch.float16,
260
+ "bfloat16": torch.bfloat16,
261
+ "bf16": torch.bfloat16,
262
+ "float32": torch.float32,
263
+ "fp32": torch.float32,
264
+ }
265
+ if dtype_name:
266
+ normalized_dtype = str(dtype_name).lower()
267
+ if normalized_dtype not in dtype_map:
268
+ raise ValueError(f"Unsupported llm_torch_dtype: {dtype_name}")
269
+ llm_load_kwargs['torch_dtype'] = dtype_map[normalized_dtype]
270
+ if attn_impl:
271
+ llm_load_kwargs['attn_implementation'] = attn_impl
272
+ # flash_attention_2 / sdpa require fp16/bf16 weights; fp32 errors out.
273
+ if attn_impl in ('flash_attention_2', 'sdpa') and 'torch_dtype' not in llm_load_kwargs:
274
+ llm_load_kwargs['torch_dtype'] = torch.bfloat16
275
+ if accelerator.is_main_process:
276
+ print(f"⚡ LLM attention implementation: {attn_impl}")
277
+ llm_load_kwargs['low_cpu_mem_usage'] = True
278
+ self.llm_model = AutoModelForCausalLM.from_pretrained(
279
+ self.config.llm_model_path,
280
+ **llm_load_kwargs,
281
+ )
282
+ self.tokenizer = AutoTokenizer.from_pretrained(self.config.llm_model_path)
283
+ if accelerator.is_main_process:
284
+ print(f"✅ Loaded LLM model from: {self.config.llm_model_path}")
285
+ except Exception as e:
286
+ if accelerator.is_main_process:
287
+ print(f"❌ Failed to load LLM model from {self.config.llm_model_path}: {e}")
288
+ raise e
289
+
290
+ if self.llm_model is not None:
291
+ self.llm_model.config.pad_token_id = self.tokenizer.pad_token_id
292
+
293
+ self._configure_lora()
294
+
295
+ # Set LLM hidden layer dimension
296
+ ts_config.llm_d_model = self.llm_model.config.hidden_size
297
+
298
+ # Initialize components
299
+ self.ts_encoder = Model(ts_config)
300
+
301
+ # 加载预训练的 TS Encoder 权重
302
+ load_path = getattr(ts_config, 'load_ts_encoder', None)
303
+ if load_path and os.path.exists(load_path):
304
+ if accelerator.is_main_process:
305
+ from utils.log_util import adaptive_print
306
+ adaptive_print(f"📥 Loading pre-trained TimeSeries Encoder from: {load_path}")
307
+
308
+ try:
309
+ if load_path.endswith('.safetensors'):
310
+ from safetensors.torch import load_file
311
+ ts_state_dict = load_file(load_path)
312
+ else:
313
+ ts_state_dict = torch.load(load_path, map_location='cpu')
314
+
315
+ # 兼容性处理:如果权重包含前缀,进行移除
316
+ new_state_dict = {}
317
+ for k, v in ts_state_dict.items():
318
+ if k.startswith('model.'):
319
+ new_state_dict[k[6:]] = v
320
+ else:
321
+ new_state_dict[k] = v
322
+
323
+ msg = self.ts_encoder.load_state_dict(new_state_dict, strict=False)
324
+ if accelerator.is_main_process:
325
+ adaptive_print(f"✅ TS Encoder weights loaded. Missing: {len(msg.missing_keys)}, Unexpected: {len(msg.unexpected_keys)}")
326
+ except Exception as e:
327
+ if accelerator.is_main_process:
328
+ adaptive_print(f"❌ Failed to load TS Encoder weights: {e}")
329
+ elif load_path:
330
+ if accelerator.is_main_process:
331
+ from utils.log_util import adaptive_print
332
+ adaptive_print(f"⚠️ Warning: TS Encoder load path '{load_path}' does not exist. Using random initialization.")
333
+
334
+ adapter_type = getattr(ts_config, 'adapter_type', 'itformer').lower()
335
+ if adapter_type == 'itformer':
336
+ self.itformer = ITFormer(ts_config)
337
+ elif adapter_type == 'qformer':
338
+ self.itformer = QFormerAdapter(ts_config)
339
+ else:
340
+ raise ValueError(f"Unsupported adapter_type: {adapter_type}")
341
+ if accelerator.is_main_process:
342
+ print(f"🔌 Using adapter: {adapter_type}")
343
+
344
+ # Projection layers
345
+ self.ts_project = nn.Linear(ts_config.d_model, ts_config.it_d_model)
346
+ self.query_project = nn.Linear(ts_config.llm_d_model, ts_config.it_d_model)
347
+ self.fusion_project = nn.Linear(ts_config.it_d_model, ts_config.llm_d_model)
348
+
349
+ # 根据配置冻结参数
350
+ self._freeze_layers()
351
+
352
+ def _configure_lora(self):
353
+ if not getattr(self.config, "use_lora", False):
354
+ return
355
+
356
+ try:
357
+ from peft import LoraConfig, TaskType, get_peft_model
358
+ except ImportError as exc:
359
+ raise RuntimeError("PEFT is required when use_lora=True.") from exc
360
+
361
+ target_modules = getattr(self.config, "lora_target_modules", None)
362
+ if isinstance(target_modules, str):
363
+ target_modules = [
364
+ item.strip() for item in target_modules.split(",") if item.strip()
365
+ ]
366
+ if not target_modules:
367
+ raise ValueError("lora_target_modules must not be empty.")
368
+
369
+ lora_config = LoraConfig(
370
+ r=int(self.config.lora_r),
371
+ lora_alpha=int(self.config.lora_alpha),
372
+ lora_dropout=float(self.config.lora_dropout),
373
+ bias="none",
374
+ task_type=TaskType.CAUSAL_LM,
375
+ target_modules=list(target_modules),
376
+ )
377
+ self.llm_model = get_peft_model(self.llm_model, lora_config)
378
+ self.llm_model.config.use_cache = False
379
+
380
+ if getattr(self.config, "gradient_checkpointing", False):
381
+ self.llm_model.gradient_checkpointing_enable(
382
+ gradient_checkpointing_kwargs={"use_reentrant": False}
383
+ )
384
+ self.llm_model.enable_input_require_grads()
385
+
386
+ if accelerator.is_main_process:
387
+ self.llm_model.print_trainable_parameters()
388
+
389
+ def _freeze_layers(self):
390
+ """根据配置冻结特定层,保留中间件的可训练性。"""
391
+ # Freeze the base LLM. PEFT has already marked only LoRA matrices as
392
+ # trainable, so preserve those flags when LoRA is enabled.
393
+ if self.llm_model is not None:
394
+ use_lora = bool(getattr(self.config, "use_lora", False))
395
+ for name, param in self.llm_model.named_parameters():
396
+ param.requires_grad = use_lora and "lora_" in name
397
+
398
+ # 2. 根据配置冻结 TS Encoder
399
+ if self.config.freeze_ts_model:
400
+ for param in self.ts_encoder.parameters():
401
+ param.requires_grad = False
402
+ else:
403
+ pass
404
+
405
+ # 3. 确保中间件是可训练的 (ITFormer 和 Projections)
406
+ # 这些层默认 requires_grad=True,所以不需要额外操作,
407
+ # 除非之前调用了 _setup_inference_mode()
408
+
409
+ def _setup_inference_mode(self):
410
+ """Set inference mode, freeze all parameters."""
411
+ for param in self.parameters():
412
+ param.requires_grad = False
413
+ self.eval()
414
+ if accelerator.is_main_process:
415
+ print('🧊 Model set to inference mode - all parameters frozen')
416
+
417
+ def eval(self):
418
+ """Set model to evaluation mode."""
419
+ super().eval()
420
+ if self.llm_model is not None:
421
+ self.llm_model.eval()
422
+ if self.ts_encoder is not None:
423
+ self.ts_encoder.eval()
424
+ if self.itformer is not None:
425
+ self.itformer.eval()
426
+ if self.ts_project is not None:
427
+ self.ts_project.eval()
428
+ if self.query_project is not None:
429
+ self.query_project.eval()
430
+ if self.fusion_project is not None:
431
+ self.fusion_project.eval()
432
+
433
+ def prepare_inputs_for_generation(self, input_ids, query_ids, past_key_values=None, attention_mask=None, **kwargs):
434
+ """Prepare inputs for text generation.
435
+
436
+ Args:
437
+ input_ids: Input token IDs
438
+ query_ids: Query token IDs
439
+ past_key_values: Past key values for caching
440
+ attention_mask: Attention mask
441
+ **kwargs: Additional arguments
442
+
443
+ Returns:
444
+ dict: Prepared inputs for generation
445
+ """
446
+ ts_values = kwargs.get("ts_values", None)
447
+ stage = kwargs.get("stage", None)
448
+
449
+ if input_ids is None or input_ids.numel() == 0 or ts_values is None or ts_values.numel() == 0:
450
+ return {
451
+ "inputs_embeds": torch.empty(0, self.llm_model.config.hidden_size, device=input_ids.device),
452
+ "attention_mask": attention_mask,
453
+ }
454
+
455
+ device = next(self.llm_model.parameters()).device
456
+ input_ids = input_ids.to(device)
457
+ ts_values = ts_values.to(device)
458
+ attention_mask = attention_mask.to(device)
459
+
460
+ if ts_values is None:
461
+ raise ValueError("`ts_values` must be provided for generation.")
462
+
463
+ # Process time series and query
464
+ query_embeds = self.llm_model.get_input_embeddings()(query_ids)
465
+ ts_embeds = self.ts_encoder(ts_values).logits
466
+ ts_embeds = self.ts_project(ts_embeds)
467
+ query_embeds_f = self.query_project(query_embeds)
468
+ it_embeds = self.itformer(query_embeds_f, ts_embeds, stage)
469
+ it_embeds = self.fusion_project(it_embeds)
470
+
471
+ # Generate inputs_embeds
472
+ inputs_embeds = self.llm_model.get_input_embeddings()(input_ids)
473
+ inputs_embeds = self.merge_input_ids_with_ts_features(it_embeds, inputs_embeds, input_ids)
474
+
475
+ return {
476
+ "inputs_embeds": inputs_embeds,
477
+ "attention_mask": attention_mask,
478
+ }
479
+
480
+ def forward(self, input_ids=None, query_ids=None,
481
+ ts_values=None, inputs_embeds=None, stage=None, index=None,
482
+ attention_mask=None, past_key_values=None, labels=None, **kwargs):
483
+ """Forward pass of the model.
484
+
485
+ Args:
486
+ input_ids: Input token IDs
487
+ query_ids: Query token IDs
488
+ ts_values: Time series values
489
+ inputs_embeds: Pre-computed input embeddings
490
+ stage: Processing stage
491
+ index: Sample index
492
+ attention_mask: Attention mask
493
+ past_key_values: Past key values for caching
494
+ labels: Ground truth labels for loss calculation
495
+ **kwargs: Additional arguments
496
+
497
+ Returns:
498
+ CausalLMOutputWithPast: Model output
499
+ """
500
+ if inputs_embeds is None:
501
+ # Get query embedding
502
+ query_embeds = self.llm_model.get_input_embeddings()(query_ids)
503
+ # Time series encoding
504
+ ts_embeds = self.ts_encoder(ts_values).logits
505
+ ts_embeds = self.ts_project(ts_embeds)
506
+ query_embeds_f = self.query_project(query_embeds)
507
+ it_embeds = self.itformer(query_embeds_f, ts_embeds, stage)
508
+ it_embeds = self.fusion_project(it_embeds)
509
+ inputs_embeds = self.llm_model.get_input_embeddings()(input_ids)
510
+ inputs_embeds = self.merge_input_ids_with_ts_features(it_embeds, inputs_embeds, input_ids)
511
+
512
+ # Forward through LLM
513
+ use_cache = not self.training
514
+ outputs = self.llm_model(
515
+ inputs_embeds=inputs_embeds,
516
+ attention_mask=attention_mask,
517
+ use_cache=use_cache,
518
+ )
519
+
520
+ logits = outputs.logits
521
+ return CausalLMOutputWithPast(
522
+ logits=logits,
523
+ past_key_values=outputs.past_key_values if use_cache else None,
524
+ )
525
+
526
+ def merge_input_ids_with_ts_features(self, ts_features, inputs_embeds, input_ids):
527
+ batch_size, seq_len, embed_dim = inputs_embeds.shape
528
+ num_tss, num_ts_patches, embed_dim_ = ts_features.shape
529
+ assert embed_dim == embed_dim_, "Embedding dimensions must match."
530
+
531
+ pad_token_id = self.tokenizer('<|image_pad|>')['input_ids'][0]
532
+ batch_indices, seq_indices = torch.where(input_ids == pad_token_id)
533
+
534
+ if len(batch_indices) != num_tss * num_ts_patches:
535
+ raise ValueError(f"Mismatch: found {len(batch_indices)} pad positions but got {num_tss * num_ts_patches} ts_features.")
536
+ ts_features_flat = ts_features.view(-1, embed_dim).to(
537
+ dtype=inputs_embeds.dtype,
538
+ device=inputs_embeds.device
539
+ )
540
+ inputs_embeds = inputs_embeds.clone()
541
+ inputs_embeds[batch_indices, seq_indices] = ts_features_flat
542
+
543
+ return inputs_embeds
models/TimeSeriesEncoder.py ADDED
@@ -0,0 +1,610 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Time Series Encoder
3
+ """
4
+ import math
5
+ import torch
6
+ import torch.nn.functional as F
7
+ from torch import nn
8
+ from timm.layers import Mlp, DropPath
9
+ from timm.layers.helpers import to_2tuple
10
+ from transformers.modeling_outputs import CausalLMOutputWithPast
11
+
12
+
13
+
14
+ def calculate_unfold_output_length(input_length, size, step):
15
+ # Calculate the number of windows
16
+ num_windows = (input_length - size) // step + 1
17
+ return num_windows
18
+
19
+
20
+ class CrossAttention(nn.Module):
21
+ def __init__(
22
+ self,
23
+ dim,
24
+ num_heads=8,
25
+ qkv_bias=False,
26
+ qk_norm=False,
27
+ attn_drop=0.,
28
+ proj_drop=0.,
29
+ norm_layer=nn.LayerNorm,
30
+ var_num=None,
31
+ ):
32
+ super().__init__()
33
+ assert dim % num_heads == 0, 'dim should be divisible by num_heads'
34
+ self.num_heads = num_heads
35
+ self.head_dim = dim // num_heads
36
+ self.scale = self.head_dim ** -0.5
37
+
38
+ self.q = nn.Linear(dim, dim, bias=qkv_bias)
39
+ self.kv = nn.Linear(dim, dim * 2, bias=qkv_bias)
40
+ self.q_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
41
+ self.k_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
42
+ self.attn_drop = nn.Dropout(attn_drop)
43
+ self.proj = nn.Linear(dim, dim)
44
+ self.proj_drop = nn.Dropout(proj_drop)
45
+ if var_num is not None:
46
+ self.template = nn.Parameter(
47
+ torch.zeros(var_num, dim), requires_grad=True)
48
+ torch.nn.init.normal_(self.template, std=.02)
49
+ self.var_num = var_num
50
+
51
+ def forward(self, x, query=None):
52
+ B, N, C = x.shape
53
+ if query is not None:
54
+ q = self.q(query).reshape(
55
+ B, query.shape[1], self.num_heads, self.head_dim).permute(0, 2, 1, 3)
56
+ q = self.q_norm(q)
57
+ var_num = query.shape[1]
58
+ else:
59
+ q = self.q(self.template).reshape(1, self.var_num,
60
+ self.num_heads, self.head_dim).permute(0, 2, 1, 3)
61
+ q = self.q_norm(q)
62
+ q = q.repeat(B, 1, 1, 1)
63
+ var_num = self.var_num
64
+ kv = self.kv(x).reshape(B, N, 2, self.num_heads,
65
+ self.head_dim).permute(2, 0, 3, 1, 4)
66
+ k, v = kv.unbind(0)
67
+ k = self.k_norm(k)
68
+
69
+ # Ensure memory continuity and use stable attention backend to prevent CUDA illegal memory access
70
+ q, k, v = q.contiguous(), k.contiguous(), v.contiguous()
71
+ with torch.backends.cuda.sdp_kernel(enable_flash=False, enable_mem_efficient=False, enable_math=True):
72
+ x = F.scaled_dot_product_attention(
73
+ q, k, v,
74
+ dropout_p=self.attn_drop.p if self.training else 0.,
75
+ )
76
+
77
+ x = x.transpose(1, 2).reshape(B, var_num, C)
78
+ x = self.proj(x)
79
+ x = self.proj_drop(x)
80
+ return x
81
+
82
+
83
+
84
+
85
+ class FeedFoward(nn.Module):
86
+ def __init__(
87
+ self,
88
+ dim,
89
+ hidden_features=None,
90
+ out_features=None,
91
+ act_layer=nn.GELU,
92
+ norm_layer=None,
93
+ bias=True,
94
+ drop=0.,
95
+ prefix_token_length=None,
96
+ group=1,
97
+ ):
98
+ super().__init__()
99
+ dim = dim
100
+ hidden_features = hidden_features or 4*dim
101
+ out_features = out_features or dim
102
+ bias = to_2tuple(bias)
103
+ drop_probs = to_2tuple(drop)
104
+
105
+ self.fc1 = nn.Linear(dim, hidden_features,
106
+ bias=bias[0])
107
+ self.act = act_layer()
108
+ self.drop1 = nn.Dropout(drop_probs[0])
109
+
110
+ self.norm = norm_layer(
111
+ hidden_features) if norm_layer is not None else nn.Identity()
112
+
113
+ self.fc2 = nn.Linear(hidden_features, out_features, bias=bias[1])
114
+ self.drop2 = nn.Dropout(drop_probs[1])
115
+ self.hidden_features = hidden_features
116
+ self.prefix_token_length = prefix_token_length
117
+
118
+ def forward(self, x):
119
+ n, var, l, d = x.shape
120
+ # x = x.view(-1, d) # (n*var, l, c)
121
+ # x = x.transpose(-1, -2) # (n*var, c, l)
122
+ x = self.fc1(x)
123
+ x = self.act(x)
124
+ x = self.drop1(x)
125
+ x = self.fc2(x)
126
+ x = self.norm(x)
127
+ x = self.drop2(x)+x
128
+ return x
129
+
130
+
131
+
132
+ class LearnablePositionalEmbedding(nn.Module):
133
+ def __init__(self, d_model, max_len=5000):
134
+ super(LearnablePositionalEmbedding, self).__init__()
135
+ # Compute the positional encodings once in log space.
136
+ self.pe = nn.Parameter(torch.zeros(
137
+ 1, 1, max_len, d_model), requires_grad=True)
138
+
139
+ pe = torch.zeros(max_len, d_model).float()
140
+ position = torch.arange(0, max_len).float().unsqueeze(1)
141
+ div_term = (torch.arange(0, d_model, 2).float()
142
+ * -(math.log(10000.0) / d_model)).exp()
143
+
144
+ pe[:, 0::2] = torch.sin(position * div_term)
145
+ pe[:, 1::2] = torch.cos(position * div_term)
146
+
147
+ pe = pe.unsqueeze(0).unsqueeze(0)
148
+ self.pe.data.copy_(pe.float())
149
+ del pe
150
+
151
+ def forward(self, x, offset=0):
152
+ return self.pe[:, :, offset:offset+x.size(2)]
153
+
154
+
155
+ class SeqAttention(nn.Module):
156
+
157
+ def __init__(
158
+ self,
159
+ dim,
160
+ num_heads=8,
161
+ qkv_bias=False,
162
+ qk_norm=False,
163
+ attn_drop=0.,
164
+ proj_drop=0.,
165
+ norm_layer=nn.LayerNorm,
166
+ ):
167
+ super().__init__()
168
+ assert dim % num_heads == 0, 'dim should be divisible by num_heads'
169
+ self.num_heads = num_heads
170
+ self.head_dim = dim // num_heads
171
+ self.scale = self.head_dim ** -0.5
172
+
173
+ self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
174
+ self.q_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
175
+ self.k_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
176
+ self.attn_drop = nn.Dropout(attn_drop)
177
+ self.proj = nn.Linear(dim, dim)
178
+ self.proj_drop = nn.Dropout(proj_drop)
179
+
180
+ def forward(self, x, attn_mask=None):
181
+ B, N, C = x.shape
182
+ qkv = self.qkv(x).reshape(B, N, 3, self.num_heads,
183
+ self.head_dim).permute(2, 0, 3, 1, 4)
184
+ q, k, v = qkv.unbind(0)
185
+ q, k = self.q_norm(q), self.k_norm(k)
186
+
187
+ # Ensure memory continuity and use stable attention backend to prevent CUDA illegal memory access
188
+ q, k, v = q.contiguous(), k.contiguous(), v.contiguous()
189
+ with torch.backends.cuda.sdp_kernel(enable_flash=False, enable_mem_efficient=False, enable_math=True):
190
+ x = F.scaled_dot_product_attention(
191
+ q, k, v, # attn_mask=attn_mask,
192
+ dropout_p=self.attn_drop.p if self.training else 0.,
193
+ )
194
+
195
+ x = x.transpose(1, 2).reshape(B, N, C)
196
+ x = self.proj(x)
197
+ x = self.proj_drop(x)
198
+ return x
199
+
200
+
201
+ class VarAttention(nn.Module):
202
+
203
+ def __init__(
204
+ self,
205
+ dim,
206
+ num_heads=8,
207
+ qkv_bias=False,
208
+ qk_norm=False,
209
+ attn_drop=0.,
210
+ proj_drop=0.,
211
+ norm_layer=nn.LayerNorm,
212
+ ):
213
+ super().__init__()
214
+ assert dim % num_heads == 0, 'dim should be divisible by num_heads'
215
+ self.num_heads = num_heads
216
+ self.head_dim = dim // num_heads
217
+ self.scale = self.head_dim ** -0.5
218
+ self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
219
+ self.q_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
220
+ self.k_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
221
+ self.attn_drop = nn.Dropout(attn_drop)
222
+ self.proj = nn.Linear(dim, dim)
223
+ self.proj_drop = nn.Dropout(proj_drop)
224
+
225
+ def forward(self, x):
226
+ B, N, P, C = x.shape
227
+
228
+ qkv = self.qkv(x).reshape(B, N, P, 3, self.num_heads,
229
+ self.head_dim).permute(3, 0, 2, 4, 1, 5)
230
+ q, k, v = qkv.unbind(0)
231
+ q, k = self.q_norm(q), self.k_norm(k)
232
+
233
+ q = q.mean(dim=1, keepdim=False)
234
+ k = k.mean(dim=1, keepdim=False)
235
+ v = v.permute(0, 2, 3, 4, 1).reshape(B, self.num_heads, N, -1)
236
+
237
+ # Ensure memory continuity and use stable attention backend to prevent CUDA illegal memory access
238
+ q, k, v = q.contiguous(), k.contiguous(), v.contiguous()
239
+ with torch.backends.cuda.sdp_kernel(enable_flash=False, enable_mem_efficient=False, enable_math=True):
240
+ x = F.scaled_dot_product_attention(
241
+ q, k, v,
242
+ dropout_p=self.attn_drop.p if self.training else 0.,
243
+ )
244
+
245
+ # Robust reshape to handle dimension mismatches
246
+ # Expected: x has shape [B, num_heads, N, P * head_dim]
247
+ # Target: [B, N, P, C] where C = num_heads * head_dim
248
+ expected_last_dim = P * self.head_dim
249
+ actual_last_dim = x.shape[-1]
250
+
251
+ if actual_last_dim == expected_last_dim:
252
+ # Standard case: reshape back to separate P dimension
253
+ x = x.view(B, self.num_heads, N, self.head_dim, P).permute(0, 2, 4, 1, 3).reshape(B, N, P, -1)
254
+ else:
255
+ # Handle dimension mismatch case
256
+ # When attention produces unexpected dimensions, we adapt by using a simpler reshape
257
+ # This preserves the total information while ensuring dimensional consistency
258
+ x = x.transpose(1, 2) # [B, N, num_heads, actual_last_dim]
259
+
260
+ # Flatten the last two dimensions and then reshape to target
261
+ flattened_dim = self.num_heads * actual_last_dim
262
+ x = x.reshape(B, N, flattened_dim) # [B, N, flattened_dim]
263
+
264
+ # Now we reshape to [B, N, P, remaining_dim] where remaining_dim = flattened_dim / P
265
+ if flattened_dim % P == 0:
266
+ remaining_dim = flattened_dim // P
267
+ x = x.reshape(B, N, P, remaining_dim)
268
+ else:
269
+ # If not evenly divisible, we keep P=1 and adjust accordingly
270
+ # This is a fallback that preserves all information
271
+ x = x.reshape(B, N, 1, flattened_dim)
272
+ # Expand to P patches by repeating (not ideal but prevents crash)
273
+ x = x.expand(B, N, P, flattened_dim)
274
+ x = self.proj(x)
275
+ x = self.proj_drop(x)
276
+ return x
277
+
278
+
279
+ class GateLayer(nn.Module):
280
+ def __init__(self, dim, init_values=1e-5, inplace=False):
281
+ super().__init__()
282
+ self.inplace = inplace
283
+ self.gate = nn.Linear(dim, 1)
284
+
285
+ def forward(self, x):
286
+ gate_value = self.gate(x)
287
+ return gate_value.sigmoid() * x
288
+
289
+
290
+ class SeqAttBlock(nn.Module):
291
+
292
+ def __init__(
293
+ self,
294
+ dim,
295
+ num_heads,
296
+ qkv_bias=False,
297
+ qk_norm=False,
298
+ proj_drop=0.,
299
+ attn_drop=0.,
300
+ init_values=None,
301
+ drop_path=0.,
302
+ norm_layer=nn.LayerNorm,
303
+ ):
304
+ super().__init__()
305
+ self.norm1 = norm_layer(dim)
306
+ self.attn_seq = SeqAttention(
307
+ dim,
308
+ num_heads=num_heads,
309
+ qkv_bias=qkv_bias,
310
+ qk_norm=qk_norm,
311
+ attn_drop=attn_drop,
312
+ proj_drop=proj_drop,
313
+ norm_layer=norm_layer,
314
+ )
315
+
316
+ self.drop_path1 = DropPath(
317
+ drop_path) if drop_path > 0. else nn.Identity()
318
+ # self.proj = nn.Linear(dim, dim)
319
+
320
+ def forward(self, x, attn_mask):
321
+ x_input = x
322
+ x = self.norm1(x)
323
+ n_vars, n_seqs = x.shape[1], x.shape[2]
324
+ x = torch.reshape(
325
+ x, (-1, x.shape[-2], x.shape[-1]))
326
+ x = self.attn_seq(x, attn_mask)
327
+ x = torch.reshape(
328
+ x, (-1, n_vars, n_seqs, x.shape[-1]))
329
+ x = x_input + self.drop_path1(x)
330
+ return x
331
+
332
+
333
+ class VarAttBlock(nn.Module):
334
+
335
+ def __init__(
336
+ self,
337
+ dim,
338
+ num_heads,
339
+ qkv_bias=False,
340
+ qk_norm=False,
341
+ proj_drop=0.,
342
+ attn_drop=0.,
343
+ init_values=None,
344
+ drop_path=0.,
345
+ norm_layer=nn.LayerNorm,
346
+ ):
347
+ super().__init__()
348
+ self.norm1 = norm_layer(dim)
349
+ self.attn_var = VarAttention(
350
+ dim,
351
+ num_heads=num_heads,
352
+ qkv_bias=qkv_bias,
353
+ qk_norm=qk_norm,
354
+ attn_drop=attn_drop,
355
+ proj_drop=proj_drop,
356
+ norm_layer=norm_layer,
357
+ )
358
+ # self.ls1 = GateLayer(dim, init_values=init_values)
359
+ self.drop_path1 = DropPath(
360
+ drop_path) if drop_path > 0. else nn.Identity()
361
+ # self.proj = nn.Linear(dim, dim)
362
+
363
+ def forward(self, x):
364
+ x = x + self.drop_path1(self.attn_var(self.norm1(x)))
365
+ return x
366
+
367
+
368
+ class MLPBlock(nn.Module):
369
+
370
+ def __init__(
371
+ self,
372
+ dim,
373
+ mlp_ratio=4.,
374
+ proj_drop=0.,
375
+ init_values=None,
376
+ drop_path=0.,
377
+ act_layer=nn.GELU,
378
+ norm_layer=nn.LayerNorm,
379
+ mlp_layer=None,
380
+ prefix_token_length=0,
381
+ ):
382
+ super().__init__()
383
+ self.norm2 = norm_layer(dim)
384
+ if mlp_layer is FeedFoward:
385
+ self.mlp = mlp_layer(
386
+ in_features=dim,
387
+ hidden_features=int(dim * mlp_ratio),
388
+ act_layer=act_layer,
389
+ drop=proj_drop,
390
+ prefix_token_length=prefix_token_length,
391
+ )
392
+ else:
393
+ self.mlp = mlp_layer(
394
+ in_features=dim,
395
+ hidden_features=int(dim * mlp_ratio),
396
+ act_layer=act_layer,
397
+ drop=proj_drop,
398
+ )
399
+ self.ls2 = GateLayer(dim, init_values=init_values)
400
+ self.drop_path2 = DropPath(
401
+ drop_path) if drop_path > 0. else nn.Identity()
402
+
403
+ def forward(self, x, prefix_seq_len=None):
404
+ if prefix_seq_len is not None:
405
+ x = x + \
406
+ self.drop_path2(
407
+ self.ls2(self.mlp(self.norm2(x), prefix_seq_len=prefix_seq_len)))
408
+ else:
409
+ x = x + self.drop_path2(self.ls2(self.mlp(self.norm2(x))))
410
+ return x
411
+
412
+
413
+ class BasicBlock(nn.Module):
414
+ def __init__(
415
+ self,
416
+ dim,
417
+ num_heads,
418
+ mlp_ratio=8.,
419
+ qkv_bias=False,
420
+ qk_norm=False,
421
+ proj_drop=0.,
422
+ attn_drop=0.,
423
+ init_values=None,
424
+ drop_path=0.,
425
+ act_layer=nn.GELU,
426
+ norm_layer=nn.LayerNorm,
427
+ prefix_token_length=0,
428
+ ):
429
+ super().__init__()
430
+ self.seq_att_block = SeqAttBlock(dim=dim, num_heads=num_heads,
431
+ qkv_bias=qkv_bias, qk_norm=qk_norm,
432
+ attn_drop=attn_drop, init_values=init_values, proj_drop=proj_drop,
433
+ drop_path=drop_path, norm_layer=norm_layer)
434
+
435
+ self.var_att_block = VarAttBlock(dim=dim, num_heads=num_heads,
436
+ qkv_bias=qkv_bias, qk_norm=qk_norm,
437
+ attn_drop=attn_drop, init_values=init_values, proj_drop=proj_drop,
438
+ drop_path=drop_path, norm_layer=norm_layer)
439
+
440
+
441
+ self.feed_forward = FeedFoward(dim=dim, hidden_features=dim*4, act_layer=act_layer, drop=proj_drop)
442
+
443
+ def forward(self, x, prefix_seq_len, attn_mask):
444
+ x = self.var_att_block(x)
445
+ x = self.seq_att_block(x, attn_mask)
446
+ x = self.feed_forward(x)
447
+ return x
448
+
449
+
450
+ class Patchfy(nn.Module):
451
+ def __init__(self, patch_len, stride):
452
+ super(Patchfy, self).__init__()
453
+ self.patch_len = patch_len
454
+ self.stride = stride
455
+ assert self.patch_len == self.stride, "non-overlap"
456
+ def forward(self, x):
457
+ x = x.transpose(1, 2)
458
+ x = x.unfold(dimension=-1, size=self.patch_len, step=self.stride)
459
+ # x = x.transpose(1, 2)
460
+ return x
461
+
462
+
463
+ class Model(nn.Module):
464
+ def __init__(self, args):
465
+ super(Model, self).__init__()
466
+ self.patchfy = Patchfy(args.patch_len, args.stride)
467
+ self.layers = nn.ModuleList([
468
+ BasicBlock(
469
+ dim=args.d_model,
470
+ num_heads=args.n_heads,
471
+ mlp_ratio=4.,
472
+ qkv_bias=True,
473
+ qk_norm=False,
474
+ proj_drop=args.dropout,
475
+ attn_drop=args.dropout,
476
+ init_values=None,
477
+ drop_path=0.,
478
+ act_layer=nn.GELU,
479
+ norm_layer=nn.LayerNorm,
480
+ prefix_token_length=0
481
+ ) for _ in range(args.e_layers)
482
+ ])
483
+ self.norm = nn.LayerNorm(args.d_model)
484
+ self.patch_embedding = nn.Sequential(
485
+ nn.Linear(args.patch_len, args.d_model, bias=False),
486
+ nn.Dropout(args.dropout)
487
+ )
488
+ self.pretrain = getattr(args, 'pretrain', False)
489
+ self.min_mask_ratio = getattr(args, 'min_mask_ratio', 0.7)
490
+ self.max_mask_ratio = getattr(args, 'max_mask_ratio', 0.8)
491
+ self.proj_head = nn.Linear(args.d_model, args.patch_len)
492
+ # self.times_project = nn.Linear(6*args.d_model, args.d_model)
493
+ def choose_masking(self, x, min_mask_ratio, max_mask_ratio):
494
+ # Generate a random number to decide which masking function to use
495
+ # if torch.rand(1).item() > right_prob:
496
+ # return self.random_masking(x, min_mask_ratio, max_mask_ratio)
497
+ # else:
498
+ # return self.right_masking(x, min_mask_ratio, max_mask_ratio)
499
+ return self.random_masking(x,min_mask_ratio,max_mask_ratio)
500
+
501
+ def random_masking(self, x, min_mask_ratio, max_mask_ratio):
502
+ """
503
+ Perform random masking where a specified ratio of the total V*L blocks are masked.
504
+ """
505
+ N, V, L, D = x.shape # batch, var, length, dim
506
+ total_elements = V * L
507
+
508
+ mask_ratio = (min_mask_ratio+max_mask_ratio)/2
509
+ # Calculate the number of elements to keep based on the mask ratio
510
+ total_keeps = int((1 - mask_ratio) * total_elements)
511
+
512
+ # Generate a random noise array for each sample in the batch
513
+ noise = torch.rand(N, V, L, device=x.device) # noise in [0, 1] for V*L blocks
514
+
515
+ # Flatten noise for easier processing
516
+ noise_flat = noise.view(N, V * L)
517
+
518
+ # Get indices to sort and restore noise
519
+ ids_shuffle = torch.argsort(noise_flat, dim=1)
520
+ ids_restore = torch.argsort(ids_shuffle, dim=1)
521
+
522
+ # Create the binary mask: 0 is keep, 1 is remove
523
+ # We create a range tensor and compare it with total_keeps to generate the mask
524
+ range_tensor = torch.arange(V * L, device=x.device).repeat(N, 1)
525
+ mask_flat = range_tensor >= total_keeps
526
+
527
+ # Unshuffle to get the binary mask in original order
528
+ mask_flat = mask_flat.gather(dim=1, index=ids_restore)
529
+
530
+ # Reshape mask back to the original V, L dimensions
531
+ mask = mask_flat.view(N, V, L)
532
+
533
+
534
+ return mask
535
+
536
+ def encode(self, x):
537
+ B,n_vars,N,C = x.shape
538
+ for layer in self.layers:
539
+ x = layer(x, prefix_seq_len=None, attn_mask=None)
540
+ x = self.norm(x)
541
+ # x = x.view(B // n_vars, n_vars , N* C)
542
+ # x = self.vars_project(x)
543
+ return x
544
+
545
+
546
+ def forward(self, ts_values):
547
+ #X_enc [B,L,D]
548
+ x = ts_values
549
+ x = self.patchfy(x)
550
+ if self.pretrain:
551
+ orin_x = x
552
+ mask = self.choose_masking(x,self.min_mask_ratio, self.max_mask_ratio)
553
+ mask_repeat = mask.unsqueeze(dim=-1) #[B,D,N,1]
554
+ mask_repeat = mask_repeat.repeat(1, 1, 1, x.shape[-1])#[B,D,N,d]
555
+ #进行掩码
556
+ x = x.masked_fill(mask_repeat, 0)
557
+ x = self.patch_embedding(x)
558
+ x = self.encode(x)
559
+ if self.pretrain:
560
+ predict_x = self.proj_head(x)
561
+ loss = F.mse_loss(predict_x, orin_x, reduction='mean')
562
+ return CausalLMOutputWithPast(loss=loss, logits=x)
563
+ return CausalLMOutputWithPast(logits=x,loss=None)
564
+
565
+
566
+
567
+
568
+ def test_model():
569
+ import yaml
570
+ import argparse
571
+
572
+
573
+ #读取args
574
+ parser = argparse.ArgumentParser(description='TsEncoder Pretrain')
575
+ parser.add_argument('--fix_seed', type=int, default=None, help='seed')
576
+
577
+ # model settings
578
+ parser.add_argument('--d_model', type=int, default=512,
579
+ help='dimension of model')
580
+ parser.add_argument('--n_heads', type=int, default=8, help='num of heads')
581
+ parser.add_argument('--e_layers', type=int, default=4,
582
+ help='num of encoder layers')
583
+ parser.add_argument("--patch_len", type=int, default=100)
584
+ parser.add_argument("--stride", type=int, default=100)
585
+ parser.add_argument("--input_len", type=int, default=600)
586
+ parser.add_argument('--dropout', type=float, default=0.1, help='dropout')
587
+ parser.add_argument('--pretrain', type=bool, default=True, help='pretrain mode')
588
+ parser.add_argument('--min_mask_ratio', type=float, default=0.1, help='minimum mask ratio')
589
+ parser.add_argument('--max_mask_ratio', type=float, default=0.3, help='maximum mask ratio')
590
+
591
+ args = parser.parse_args()
592
+ # 创建一个Model实例
593
+
594
+ model = Model(args)
595
+
596
+ # 创建一些假的输入数据
597
+ x_enc = torch.randn(10, 600, 33) # 假设有10个样本,每个样本有50个时间步,每个时间步有100个特征
598
+
599
+ # 调用forward方法
600
+ dec_out = model.forward(x_enc)
601
+
602
+ if 'loss' in dec_out:
603
+ print(f"Loss: {dec_out['loss']}")
604
+ print(f"Logits Shape: {dec_out['logits'].shape}")
605
+ else:
606
+ print(f"Logits Shape: {dec_out['logits'].shape}")
607
+
608
+ # 在脚本的最后调用测试函数
609
+ if __name__ == '__main__':
610
+ test_model()
models/__init__.py ADDED
File without changes
models/layers/attention.py ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import torch.nn as nn
3
+ import torch.nn.functional as F
4
+
5
+ class InstructTimeAttention(nn.Module):
6
+ def __init__(
7
+ self,
8
+ dim,
9
+ num_heads=8,
10
+ qkv_bias=False,
11
+ qk_norm=False,
12
+ attn_drop=0.,
13
+ proj_drop=0.,
14
+ norm_layer=nn.LayerNorm
15
+ ):
16
+ super().__init__()
17
+ assert dim % num_heads == 0, 'dim should be divisible by num_heads'
18
+ self.num_heads = num_heads
19
+ self.head_dim = dim // num_heads
20
+ self.scale = self.head_dim ** -0.5 # Scale factor for dot-product attention
21
+ self.q_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
22
+ self.k_norm = norm_layer(self.head_dim) if qk_norm else nn.Identity()
23
+ # Query, Key, Value projections
24
+ self.query_proj = nn.Linear(dim, dim, bias=qkv_bias)
25
+ self.key_proj = nn.Linear(dim, dim, bias=qkv_bias)
26
+ self.value_proj = nn.Linear(dim, dim, bias=qkv_bias)
27
+ self.channel_query_proj = nn.Linear(dim, dim, bias=qkv_bias) # Projection for channel attention query
28
+ self.channel_key_proj = nn.Linear(dim, dim, bias=qkv_bias) # Projection for channel attention key
29
+ self.channel_value_proj = nn.Linear(dim, dim, bias=qkv_bias) # Projection for channel attention value
30
+
31
+ # Dropout layers
32
+ self.attn_drop = nn.Dropout(attn_drop)
33
+ self.proj = nn.Linear(dim, dim)
34
+
35
+ def forward(self, query, memory, mask=None):
36
+ """
37
+ Args:
38
+ query (torch.Tensor): Query tensor of shape (batch_size, L_q, d).
39
+ memory (torch.Tensor): Memory tensor of shape (batch_size, L_p, V, d).
40
+ Returns:
41
+ torch.Tensor: Output tensor of shape (batch_size, L_q, d).
42
+ """
43
+ batch_size, L_q, d = query.size()
44
+ _, L_p, V, _ = memory.size()
45
+
46
+ # Step 1: Compute attention over channels (V) guided by query
47
+ query_channel = self.channel_query_proj(query) # Shape: (batch_size, L_q, d)
48
+ key_channel = self.channel_key_proj(memory).mean(dim=1) # Shape: (batch_size, V, d)
49
+ value_channel = self.channel_value_proj(memory) # Shape: (batch_size, L_p, V, d)
50
+
51
+ # Reshape for multi-head attention
52
+ query_channel = self.q_norm(query_channel.view(batch_size, self.num_heads, L_q, self.head_dim)) # (batch_size, num_heads, L_q, head_dim)
53
+ key_channel = self.k_norm(key_channel.view(batch_size, self.num_heads, V, self.head_dim)) # (batch_size, num_heads, V, head_dim)
54
+ value_channel = value_channel.view(batch_size, self.num_heads, L_p, V, self.head_dim) # (batch_size, num_heads, L_p, V, head_dim)
55
+
56
+
57
+ # Compute scaled dot-product attention for channels
58
+ channel_scores = torch.matmul(query_channel, key_channel.transpose(-2, -1)) / self.scale # (batch_size, num_heads, L_q, V)
59
+ channel_weights = F.softmax(channel_scores, dim=-1) # Normalize across channels
60
+ channel_output = torch.einsum('bnqv,bnlvd->bnld', channel_weights, value_channel) # (batch_size, num_heads, L_p, head_dim)
61
+
62
+ # Reshape channel output back to memory dimension
63
+ channel_output = channel_output.transpose(1, 2).contiguous() # (batch_size, L_p, num_heads, head_dim)
64
+ memory_aggregated = channel_output.view(batch_size, L_p, d) # (batch_size, L_p, d)
65
+
66
+ # Step 2: Compute Query, Key, and Value projections for time-step attention
67
+ Q = self.query_proj(query) # Shape: (batch_size, L_q, d)
68
+ K = self.key_proj(memory_aggregated) # Shape: (batch_size, L_p, d)
69
+ V = self.value_proj(memory_aggregated) # Shape: (batch_size, L_p, d)
70
+
71
+ # Step 3: Reshape for multi-head attention
72
+ Q = self.q_norm(Q.view(batch_size, L_q, self.num_heads, self.head_dim).transpose(1, 2)) # (batch_size, num_heads, L_q, head_dim)
73
+ K = self.k_norm(K.view(batch_size, L_p, self.num_heads, self.head_dim).transpose(1, 2)) # (batch_size, num_heads, L_p, head_dim)
74
+ V = V.view(batch_size, L_p, self.num_heads, self.head_dim).transpose(1, 2) # (batch_size, num_heads, L_p, head_dim)
75
+
76
+ # Step 4: Scaled Dot-Product Attention
77
+ attention_scores = torch.matmul(Q, K.transpose(-2, -1)) / self.scale # (batch_size, num_heads, L_q, L_p)
78
+ attention_weights = F.softmax(attention_scores, dim=-1) # (batch_size, num_heads, L_q, L_p)
79
+ attention_output = torch.matmul(attention_weights, V) # (batch_size, num_heads, L_q, head_dim)
80
+
81
+ # Step 5: Combine multi-head outputs
82
+ attention_output = attention_output.transpose(1, 2).contiguous() # (batch_size, L_q, num_heads, head_dim)
83
+ output = attention_output.view(batch_size, L_q, d) # (batch_size, L_q, d)
84
+
85
+ # Final linear projection
86
+ output = self.proj(output)
87
+
88
+ return output
89
+
90
+ if __name__ == '__main__':
91
+ # Example usage
92
+ batch_size = 8
93
+ seq_len = 10 # Length of the query sequence
94
+ mem_len = 20 # Length of the memory sequence
95
+ mem_channels = 5 # Number of memory channels
96
+ dim = 64 # Feature dimension
97
+ num_heads = 4 # Number of attention heads
98
+
99
+ # Query and Memory tensors
100
+ query = torch.rand(batch_size, seq_len, dim) # Shape: (batch_size, L_q, d)
101
+ memory = torch.rand(batch_size, mem_len, mem_channels, dim) # Shape: (batch_size, L_p, V, d)
102
+
103
+ # Initialize the InstructTimeAttention module
104
+ model = InstructTimeAttention(dim=dim, num_heads=num_heads, qkv_bias=True)
105
+
106
+ # Compute the output
107
+ output = model(query, memory) # Shape: (batch_size, L_q, d)
108
+
109
+ # Print output shape
110
+ print("Output shape:", output.shape)
runs/itformer_tsqa_full_20260615_162441/logs/train.log ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
0
  0%| | 0/500 [00:00<?, ?it/s]
1
  0%| | 1/500 [00:06<50:24, 6.06s/it]
2
 
 
3
  0%| | 1/500 [00:06<50:24, 6.06s/it]
4
  0%| | 2/500 [00:10<40:00, 4.82s/it]
5
 
 
6
  0%| | 2/500 [00:10<40:00, 4.82s/it]
7
  1%| | 3/500 [00:14<39:10, 4.73s/it]
8
 
 
9
  1%| | 3/500 [00:14<39:10, 4.73s/it]
10
  1%| | 4/500 [00:18<36:37, 4.43s/it]
11
 
 
12
  1%| | 4/500 [00:18<36:37, 4.43s/it]
13
  1%| | 5/500 [00:22<35:44, 4.33s/it]
14
 
 
15
  1%| | 5/500 [00:22<35:44, 4.33s/it]
16
  1%| | 6/500 [00:28<40:00, 4.86s/it]
17
 
 
18
  1%| | 6/500 [00:28<40:00, 4.86s/it]
19
  1%|▏ | 7/500 [00:32<38:22, 4.67s/it]
20
 
 
21
  1%|▏ | 7/500 [00:32<38:22, 4.67s/it]
22
  2%|▏ | 8/500 [00:37<36:59, 4.51s/it]
23
 
 
24
  2%|▏ | 8/500 [00:37<36:59, 4.51s/it]
25
  2%|▏ | 9/500 [00:41<36:39, 4.48s/it]
26
 
 
27
  2%|▏ | 9/500 [00:41<36:39, 4.48s/it]
28
  2%|▏ | 10/500 [00:45<35:14, 4.31s/it]
29
 
 
30
  2%|▏ | 10/500 [00:45<35:14, 4.31s/it]
31
  2%|▏ | 11/500 [00:49<35:04, 4.30s/it]
32
 
 
33
  2%|▏ | 11/500 [00:49<35:04, 4.30s/it]
34
  2%|▏ | 12/500 [00:54<34:57, 4.30s/it]
35
 
 
36
  2%|▏ | 12/500 [00:54<34:57, 4.30s/it]
37
  3%|▎ | 13/500 [00:58<34:07, 4.20s/it]
38
 
 
39
  3%|▎ | 13/500 [00:58<34:07, 4.20s/it]
40
  3%|▎ | 14/500 [01:03<36:29, 4.51s/it]
41
 
 
42
  3%|▎ | 14/500 [01:03<36:29, 4.51s/it]
43
  3%|▎ | 15/500 [01:06<34:18, 4.24s/it]
44
 
 
45
  3%|▎ | 15/500 [01:06<34:18, 4.24s/it]
46
  3%|▎ | 16/500 [01:10<33:25, 4.14s/it]
47
 
 
48
  3%|▎ | 16/500 [01:10<33:25, 4.14s/it]
49
  3%|▎ | 17/500 [01:14<32:48, 4.08s/it]
50
 
 
51
  3%|▎ | 17/500 [01:14<32:48, 4.08s/it]
52
  4%|▎ | 18/500 [01:18<31:38, 3.94s/it]
53
 
 
54
  4%|▎ | 18/500 [01:18<31:38, 3.94s/it]
55
  4%|▍ | 19/500 [01:22<31:26, 3.92s/it]
56
 
 
57
  4%|▍ | 19/500 [01:22<31:26, 3.92s/it]
58
  4%|▍ | 20/500 [01:26<31:37, 3.95s/it]
59
 
 
60
  4%|▍ | 20/500 [01:26<31:37, 3.95s/it]
61
  4%|▍ | 21/500 [01:32<38:07, 4.77s/it]
62
 
 
63
  4%|▍ | 21/500 [01:32<38:07, 4.77s/it]
64
  4%|▍ | 22/500 [01:36<36:12, 4.55s/it]
65
 
 
66
  4%|▍ | 22/500 [01:36<36:12, 4.55s/it]
67
  5%|▍ | 23/500 [01:41<35:05, 4.41s/it]
68
 
 
69
  5%|▍ | 23/500 [01:41<35:05, 4.41s/it]
70
  5%|▍ | 24/500 [01:44<33:40, 4.24s/it]
71
 
 
72
  5%|▍ | 24/500 [01:44<33:40, 4.24s/it]
73
  5%|▌ | 25/500 [01:48<32:47, 4.14s/it]
74
 
 
75
  5%|▌ | 25/500 [01:48<32:47, 4.14s/it]
76
  5%|▌ | 26/500 [01:52<32:03, 4.06s/it]
77
 
 
78
  5%|▌ | 26/500 [01:52<32:03, 4.06s/it]
79
  5%|▌ | 27/500 [01:56<31:30, 4.00s/it]
80
 
 
81
  5%|▌ | 27/500 [01:56<31:30, 4.00s/it]
82
  6%|▌ | 28/500 [02:02<36:00, 4.58s/it]
83
 
 
84
  6%|▌ | 28/500 [02:02<36:00, 4.58s/it]
85
  6%|▌ | 29/500 [02:07<37:48, 4.82s/it]
86
 
 
87
  6%|▌ | 29/500 [02:07<37:48, 4.82s/it]
88
  6%|▌ | 30/500 [02:12<38:31, 4.92s/it]
89
 
 
90
  6%|▌ | 30/500 [02:13<38:31, 4.92s/it]
91
  6%|▌ | 31/500 [02:16<36:10, 4.63s/it]
92
 
 
93
  6%|▌ | 31/500 [02:16<36:10, 4.63s/it]
94
  6%|▋ | 32/500 [02:20<33:46, 4.33s/it]
95
 
 
96
  6%|▋ | 32/500 [02:20<33:46, 4.33s/it]
97
  7%|▋ | 33/500 [02:24<32:58, 4.24s/it]
98
 
 
99
  7%|▋ | 33/500 [02:24<32:58, 4.24s/it][rank0]: Traceback (most recent call last):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  7%|▋ | 33/500 [02:31<35:47, 4.60s/it]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ⚙️ Running in WANDB offline mode
2
+ ⚙️ Running in WANDB offline mode
3
+ TSQA train samples: 8000
4
+ TSQA eval samples reserved for post-training eval: 800
5
+
6
+ ✅ Loaded LLM model from: /mnt/share01/sqk/models/qwen2.5-7b-instruct
7
+ trainable params: 40,370,176 || all params: 7,655,986,688 || trainable%: 0.5273
8
+ 📥 Loading pre-trained TimeSeries Encoder from: /mnt/share01/sqk/ITFormer/save/pretrain/model.safetensors
9
+ ✅ TS Encoder weights loaded. Missing: 0, Unexpected: 0
10
+ 🔌 Using adapter: itformer
11
+
12
+ ITFormer + LoRA trainable parameters: 779,763,712 / 8,409,394,748 (9.2725%)
13
+
14
  0%| | 0/500 [00:00<?, ?it/s]
15
  0%| | 1/500 [00:06<50:24, 6.06s/it]
16
 
17
+
18
  0%| | 1/500 [00:06<50:24, 6.06s/it]
19
  0%| | 2/500 [00:10<40:00, 4.82s/it]
20
 
21
+
22
  0%| | 2/500 [00:10<40:00, 4.82s/it]
23
  1%| | 3/500 [00:14<39:10, 4.73s/it]
24
 
25
+
26
  1%| | 3/500 [00:14<39:10, 4.73s/it]
27
  1%| | 4/500 [00:18<36:37, 4.43s/it]
28
 
29
+
30
  1%| | 4/500 [00:18<36:37, 4.43s/it]
31
  1%| | 5/500 [00:22<35:44, 4.33s/it]
32
 
33
+
34
  1%| | 5/500 [00:22<35:44, 4.33s/it]
35
  1%| | 6/500 [00:28<40:00, 4.86s/it]
36
 
37
+
38
  1%| | 6/500 [00:28<40:00, 4.86s/it]
39
  1%|▏ | 7/500 [00:32<38:22, 4.67s/it]
40
 
41
+
42
  1%|▏ | 7/500 [00:32<38:22, 4.67s/it]
43
  2%|▏ | 8/500 [00:37<36:59, 4.51s/it]
44
 
45
+
46
  2%|▏ | 8/500 [00:37<36:59, 4.51s/it]
47
  2%|▏ | 9/500 [00:41<36:39, 4.48s/it]
48
 
49
+
50
  2%|▏ | 9/500 [00:41<36:39, 4.48s/it]
51
  2%|▏ | 10/500 [00:45<35:14, 4.31s/it]
52
 
53
+
54
  2%|▏ | 10/500 [00:45<35:14, 4.31s/it]
55
  2%|▏ | 11/500 [00:49<35:04, 4.30s/it]
56
 
57
+
58
  2%|▏ | 11/500 [00:49<35:04, 4.30s/it]
59
  2%|▏ | 12/500 [00:54<34:57, 4.30s/it]
60
 
61
+
62
  2%|▏ | 12/500 [00:54<34:57, 4.30s/it]
63
  3%|▎ | 13/500 [00:58<34:07, 4.20s/it]
64
 
65
+
66
  3%|▎ | 13/500 [00:58<34:07, 4.20s/it]
67
  3%|▎ | 14/500 [01:03<36:29, 4.51s/it]
68
 
69
+
70
  3%|▎ | 14/500 [01:03<36:29, 4.51s/it]
71
  3%|▎ | 15/500 [01:06<34:18, 4.24s/it]
72
 
73
+
74
  3%|▎ | 15/500 [01:06<34:18, 4.24s/it]
75
  3%|▎ | 16/500 [01:10<33:25, 4.14s/it]
76
 
77
+
78
  3%|▎ | 16/500 [01:10<33:25, 4.14s/it]
79
  3%|▎ | 17/500 [01:14<32:48, 4.08s/it]
80
 
81
+
82
  3%|▎ | 17/500 [01:14<32:48, 4.08s/it]
83
  4%|▎ | 18/500 [01:18<31:38, 3.94s/it]
84
 
85
+
86
  4%|▎ | 18/500 [01:18<31:38, 3.94s/it]
87
  4%|▍ | 19/500 [01:22<31:26, 3.92s/it]
88
 
89
+
90
  4%|▍ | 19/500 [01:22<31:26, 3.92s/it]
91
  4%|▍ | 20/500 [01:26<31:37, 3.95s/it]
92
 
93
+
94
  4%|▍ | 20/500 [01:26<31:37, 3.95s/it]
95
  4%|▍ | 21/500 [01:32<38:07, 4.77s/it]
96
 
97
+
98
  4%|▍ | 21/500 [01:32<38:07, 4.77s/it]
99
  4%|▍ | 22/500 [01:36<36:12, 4.55s/it]
100
 
101
+
102
  4%|▍ | 22/500 [01:36<36:12, 4.55s/it]
103
  5%|▍ | 23/500 [01:41<35:05, 4.41s/it]
104
 
105
+
106
  5%|▍ | 23/500 [01:41<35:05, 4.41s/it]
107
  5%|▍ | 24/500 [01:44<33:40, 4.24s/it]
108
 
109
+
110
  5%|▍ | 24/500 [01:44<33:40, 4.24s/it]
111
  5%|▌ | 25/500 [01:48<32:47, 4.14s/it]
112
 
113
+
114
  5%|▌ | 25/500 [01:48<32:47, 4.14s/it]
115
  5%|▌ | 26/500 [01:52<32:03, 4.06s/it]
116
 
117
+
118
  5%|▌ | 26/500 [01:52<32:03, 4.06s/it]
119
  5%|▌ | 27/500 [01:56<31:30, 4.00s/it]
120
 
121
+
122
  5%|▌ | 27/500 [01:56<31:30, 4.00s/it]
123
  6%|▌ | 28/500 [02:02<36:00, 4.58s/it]
124
 
125
+
126
  6%|▌ | 28/500 [02:02<36:00, 4.58s/it]
127
  6%|▌ | 29/500 [02:07<37:48, 4.82s/it]
128
 
129
+
130
  6%|▌ | 29/500 [02:07<37:48, 4.82s/it]
131
  6%|▌ | 30/500 [02:12<38:31, 4.92s/it]
132
 
133
+
134
  6%|▌ | 30/500 [02:13<38:31, 4.92s/it]
135
  6%|▌ | 31/500 [02:16<36:10, 4.63s/it]
136
 
137
+
138
  6%|▌ | 31/500 [02:16<36:10, 4.63s/it]
139
  6%|▋ | 32/500 [02:20<33:46, 4.33s/it]
140
 
141
+
142
  6%|▋ | 32/500 [02:20<33:46, 4.33s/it]
143
  7%|▋ | 33/500 [02:24<32:58, 4.24s/it]
144
 
145
+
146
  7%|▋ | 33/500 [02:24<32:58, 4.24s/it][rank0]: Traceback (most recent call last):
147
+ [rank0]: File "/mnt/share01/sqk/ITFormer/train_sft_tsqa.py", line 204, in <module>
148
+ [rank0]: main()
149
+ [rank0]: File "/mnt/share01/sqk/ITFormer/train_sft_tsqa.py", line 185, in main
150
+ [rank0]: trainer.train(resume_from_checkpoint=False)
151
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2237, in train
152
+ [rank0]: return inner_training_loop(
153
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^
154
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 2578, in _inner_training_loop
155
+ [rank0]: tr_loss_step = self.training_step(model, inputs, num_items_in_batch)
156
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
157
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/transformers/trainer.py", line 3792, in training_step
158
+ [rank0]: loss = self.compute_loss(model, inputs, num_items_in_batch=num_items_in_batch)
159
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
160
+ [rank0]: File "/mnt/share01/sqk/ITFormer/EXP/exp_instruct.py", line 380, in compute_loss
161
+ [rank0]: outputs = model(
162
+ [rank0]: ^^^^^^
163
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
164
+ [rank0]: return self._call_impl(*args, **kwargs)
165
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
166
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
167
+ [rank0]: return forward_call(*args, **kwargs)
168
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
169
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1643, in forward
170
+ [rank0]: else self._run_ddp_forward(*inputs, **kwargs)
171
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/parallel/distributed.py", line 1459, in _run_ddp_forward
173
+ [rank0]: return self.module(*inputs, **kwargs) # type: ignore[index]
174
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
176
+ [rank0]: return self._call_impl(*args, **kwargs)
177
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
178
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
179
+ [rank0]: return forward_call(*args, **kwargs)
180
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
181
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 820, in forward
182
+ [rank0]: return model_forward(*args, **kwargs)
183
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
184
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/utils/operations.py", line 808, in __call__
185
+ [rank0]: return convert_to_fp32(self.model_forward(*args, **kwargs))
186
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
187
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/amp/autocast_mode.py", line 44, in decorate_autocast
188
+ [rank0]: return func(*args, **kwargs)
189
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^
190
+ [rank0]: File "/mnt/share01/sqk/ITFormer/models/TimeLanguageModel.py", line 507, in forward
191
+ [rank0]: it_embeds = self.itformer(query_embeds_f, ts_embeds, stage)
192
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
193
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
194
+ [rank0]: return self._call_impl(*args, **kwargs)
195
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
196
+ [rank0]: File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
197
+ [rank0]: return forward_call(*args, **kwargs)
198
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199
+ [rank0]: File "/mnt/share01/sqk/ITFormer/models/ITFormer.py", line 429, in forward
200
+ [rank0]: x = x + self.instruc_pos(x)
201
+ [rank0]: ~~^~~~~~~~~~~~~~~~~~~~~
202
+ [rank0]: RuntimeError: The size of tensor a (5824) must match the size of tensor b (5000) at non-singleton dimension 1
203
+
204
  7%|▋ | 33/500 [02:31<35:47, 4.60s/it]
205
+ [rank0]:[W615 16:36:08.941194037 ProcessGroupNCCL.cpp:1496] Warning: WARNING: destroy_process_group() was not called before program exit, which can leak resources. For more info, please see https://pytorch.org/docs/stable/distributed.html#shutdown (function operator())
206
+ W0615 16:36:09.710000 2981855 site-packages/torch/distributed/elastic/multiprocessing/api.py:897] Sending process 2982305 closing signal SIGTERM
207
+ E0615 16:36:09.976000 2981855 site-packages/torch/distributed/elastic/multiprocessing/api.py:869] failed (exitcode: 1) local_rank: 0 (pid: 2982304) of binary: /home/suiqk/anaconda3/envs/scalerag-ts-v4/bin/python
208
+ Traceback (most recent call last):
209
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/bin/accelerate", line 6, in <module>
210
+ sys.exit(main())
211
+ ^^^^^^
212
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/commands/accelerate_cli.py", line 48, in main
213
+ args.func(args)
214
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/commands/launch.py", line 1165, in launch_command
215
+ multi_gpu_launcher(args)
216
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/accelerate/commands/launch.py", line 799, in multi_gpu_launcher
217
+ distrib_run.run(args)
218
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/distributed/run.py", line 909, in run
219
+ elastic_launch(
220
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 138, in __call__
221
+ return launch_agent(self._config, self._entrypoint, list(args))
222
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
223
+ File "/home/suiqk/anaconda3/envs/scalerag-ts-v4/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 269, in launch_agent
224
+ raise ChildFailedError(
225
+ torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
226
+ ============================================================
227
+ /mnt/share01/sqk/ITFormer/train_sft_tsqa.py FAILED
228
+ ------------------------------------------------------------
229
+ Failures:
230
+ <NO_OTHER_FAILURES>
231
+ ------------------------------------------------------------
232
+ Root Cause (first observed failure):
233
+ [0]:
234
+ time : 2026-06-15_16:36:09
235
+ host : GPUWorkstation
236
+ rank : 0 (local_rank: 0)
237
+ exitcode : 1 (pid: 2982304)
238
+ error_file: <N/A>
239
+ traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
240
+ ============================================================
runs/itformer_tsqa_full_20260615_164812/checkpoint_final/checkpoint-400/added_tokens.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|box_end|>": 151649,
5
+ "<|box_start|>": 151648,
6
+ "<|endoftext|>": 151643,
7
+ "<|file_sep|>": 151664,
8
+ "<|fim_middle|>": 151660,
9
+ "<|fim_pad|>": 151662,
10
+ "<|fim_prefix|>": 151659,
11
+ "<|fim_suffix|>": 151661,
12
+ "<|im_end|>": 151645,
13
+ "<|im_start|>": 151644,
14
+ "<|image_pad|>": 151655,
15
+ "<|object_ref_end|>": 151647,
16
+ "<|object_ref_start|>": 151646,
17
+ "<|quad_end|>": 151651,
18
+ "<|quad_start|>": 151650,
19
+ "<|repo_name|>": 151663,
20
+ "<|video_pad|>": 151656,
21
+ "<|vision_end|>": 151653,
22
+ "<|vision_pad|>": 151654,
23
+ "<|vision_start|>": 151652
24
+ }
runs/itformer_tsqa_full_20260615_164812/checkpoint_final/checkpoint-400/chat_template.jinja ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
19
+ {%- endif %}
20
+ {%- endif %}
21
+ {%- for message in messages %}
22
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + message.role }}
26
+ {%- if message.content %}
27
+ {{- '\n' + message.content }}
28
+ {%- endif %}
29
+ {%- for tool_call in message.tool_calls %}
30
+ {%- if tool_call.function is defined %}
31
+ {%- set tool_call = tool_call.function %}
32
+ {%- endif %}
33
+ {{- '\n<tool_call>\n{"name": "' }}
34
+ {{- tool_call.name }}
35
+ {{- '", "arguments": ' }}
36
+ {{- tool_call.arguments | tojson }}
37
+ {{- '}\n</tool_call>' }}
38
+ {%- endfor %}
39
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
42
+ {{- '<|im_start|>user' }}
43
+ {%- endif %}
44
+ {{- '\n<tool_response>\n' }}
45
+ {{- message.content }}
46
+ {{- '\n</tool_response>' }}
47
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
48
+ {{- '<|im_end|>\n' }}
49
+ {%- endif %}
50
+ {%- endif %}
51
+ {%- endfor %}
52
+ {%- if add_generation_prompt %}
53
+ {{- '<|im_start|>assistant\n' }}
54
+ {%- endif %}
runs/itformer_tsqa_full_20260615_164812/checkpoint_final/checkpoint-400/config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "TLM"
4
+ ],
5
+ "freeze_ts_model": true,
6
+ "gradient_checkpointing": true,
7
+ "llm_attn_implementation": null,
8
+ "llm_model_path": "/mnt/share01/sqk/models/qwen2.5-7b-instruct",
9
+ "llm_torch_dtype": "bfloat16",
10
+ "lora_alpha": 32,
11
+ "lora_dropout": 0.05,
12
+ "lora_r": 16,
13
+ "lora_target_modules": [
14
+ "q_proj",
15
+ "k_proj",
16
+ "v_proj",
17
+ "o_proj",
18
+ "gate_proj",
19
+ "up_proj",
20
+ "down_proj"
21
+ ],
22
+ "model_type": "vlm_model",
23
+ "torch_dtype": "bfloat16",
24
+ "transformers_version": "4.54.1",
25
+ "ts_pad_num": 25,
26
+ "use_lora": true
27
+ }
runs/itformer_tsqa_full_20260615_164812/checkpoint_final/checkpoint-400/generation_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "transformers_version": "4.54.1"
4
+ }
runs/itformer_tsqa_full_20260615_164812/checkpoint_final/checkpoint-400/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
runs/itformer_tsqa_full_20260615_164812/checkpoint_final/checkpoint-400/special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }