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|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: Qwen/Qwen3-0.6B
|
| 5 |
+
tags:
|
| 6 |
+
- axolotl
|
| 7 |
+
- generated_from_trainer
|
| 8 |
+
datasets:
|
| 9 |
+
- Rexhaif/wmt23-pairs-sft
|
| 10 |
+
model-index:
|
| 11 |
+
- name: Qwen3-0.6B-MTEval-SFT
|
| 12 |
+
results: []
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 16 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 17 |
+
|
| 18 |
+
[<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
|
| 19 |
+
<details><summary>See axolotl config</summary>
|
| 20 |
+
|
| 21 |
+
axolotl version: `0.9.2`
|
| 22 |
+
```yaml
|
| 23 |
+
base_model: Qwen/Qwen3-0.6B
|
| 24 |
+
# Automatically upload checkpoint and final model to HF
|
| 25 |
+
hub_model_id: Rexhaif/Qwen3-0.6B-MTEval-SFT
|
| 26 |
+
hub_private_repo: false
|
| 27 |
+
|
| 28 |
+
load_in_8bit: false
|
| 29 |
+
load_in_4bit: false
|
| 30 |
+
strict: false
|
| 31 |
+
|
| 32 |
+
chat_template: tokenizer_default
|
| 33 |
+
datasets:
|
| 34 |
+
- path: Rexhaif/wmt23-pairs-sft
|
| 35 |
+
split: "train"
|
| 36 |
+
type: chat_template
|
| 37 |
+
field_messages: messages
|
| 38 |
+
roles_to_train: ["assistant"]
|
| 39 |
+
|
| 40 |
+
shuffle_merged_datasets: true
|
| 41 |
+
|
| 42 |
+
skip_prepare_dataset: false
|
| 43 |
+
dataset_prepared_path: ./data/wmt23-pairs-sft
|
| 44 |
+
output_dir: /hnvme/workspace/v106be28-outputs/sft-0.6b
|
| 45 |
+
|
| 46 |
+
dataloader_prefetch_factor: 32
|
| 47 |
+
dataloader_num_workers: 2
|
| 48 |
+
dataloader_pin_memory: true
|
| 49 |
+
|
| 50 |
+
gc_steps: 1
|
| 51 |
+
|
| 52 |
+
sequence_len: 512
|
| 53 |
+
sample_packing: false
|
| 54 |
+
eval_sample_packing: false
|
| 55 |
+
pad_to_sequence_len: false
|
| 56 |
+
|
| 57 |
+
wandb_project: llm-reasoning-mt-eval
|
| 58 |
+
wandb_entity:
|
| 59 |
+
wandb_name: qw3-0.6b-sft
|
| 60 |
+
|
| 61 |
+
plugins:
|
| 62 |
+
- axolotl.integrations.liger.LigerPlugin
|
| 63 |
+
liger_rope: true
|
| 64 |
+
liger_rms_norm: true
|
| 65 |
+
liger_glu_activation: true
|
| 66 |
+
liger_layer_norm: true
|
| 67 |
+
liger_fused_linear_cross_entropy: true
|
| 68 |
+
gradient_accumulation_steps: 1
|
| 69 |
+
micro_batch_size: 64 # should match num_generations / num_gpus
|
| 70 |
+
|
| 71 |
+
optimizer: adamw_torch_fused
|
| 72 |
+
lr_scheduler: cosine
|
| 73 |
+
learning_rate: 5.0e-5
|
| 74 |
+
cosine_min_lr_ratio: 1.0e-7
|
| 75 |
+
max_grad_norm: 1.0
|
| 76 |
+
weight_decay: 0.1
|
| 77 |
+
|
| 78 |
+
bf16: true
|
| 79 |
+
tf32: true
|
| 80 |
+
|
| 81 |
+
flash_attention: true
|
| 82 |
+
flash_attn_fuse_qkv: true
|
| 83 |
+
flash_attn_fuse_mlp: true
|
| 84 |
+
auto_resume_from_checkpoints: true
|
| 85 |
+
|
| 86 |
+
n_epochs: 3
|
| 87 |
+
logging_steps: 10
|
| 88 |
+
warmup_ratio: 0.1
|
| 89 |
+
evals_per_epoch: 10
|
| 90 |
+
saves_per_epoch: 10
|
| 91 |
+
save_total_limit: 1
|
| 92 |
+
#max_steps: 5000
|
| 93 |
+
seed: 42
|
| 94 |
+
val_set_size: 0.01
|
| 95 |
+
|
| 96 |
+
gradient_checkpointing: false
|
| 97 |
+
gradient_checkpointing_kwargs:
|
| 98 |
+
use_reentrant: false
|
| 99 |
+
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
</details><br>
|
| 103 |
+
|
| 104 |
+
# Qwen3-0.6B-MTEval-SFT
|
| 105 |
+
|
| 106 |
+
This model is a fine-tuned version of [Qwen/Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B) on the Rexhaif/wmt23-pairs-sft dataset.
|
| 107 |
+
It achieves the following results on the evaluation set:
|
| 108 |
+
- Loss: 0.0486
|
| 109 |
+
|
| 110 |
+
## Model description
|
| 111 |
+
|
| 112 |
+
More information needed
|
| 113 |
+
|
| 114 |
+
## Intended uses & limitations
|
| 115 |
+
|
| 116 |
+
More information needed
|
| 117 |
+
|
| 118 |
+
## Training and evaluation data
|
| 119 |
+
|
| 120 |
+
More information needed
|
| 121 |
+
|
| 122 |
+
## Training procedure
|
| 123 |
+
|
| 124 |
+
### Training hyperparameters
|
| 125 |
+
|
| 126 |
+
The following hyperparameters were used during training:
|
| 127 |
+
- learning_rate: 5e-05
|
| 128 |
+
- train_batch_size: 64
|
| 129 |
+
- eval_batch_size: 64
|
| 130 |
+
- seed: 42
|
| 131 |
+
- distributed_type: multi-GPU
|
| 132 |
+
- num_devices: 4
|
| 133 |
+
- total_train_batch_size: 256
|
| 134 |
+
- total_eval_batch_size: 256
|
| 135 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 136 |
+
- lr_scheduler_type: cosine
|
| 137 |
+
- lr_scheduler_warmup_steps: 101
|
| 138 |
+
- num_epochs: 1.0
|
| 139 |
+
|
| 140 |
+
### Training results
|
| 141 |
+
|
| 142 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 143 |
+
|:-------------:|:------:|:----:|:---------------:|
|
| 144 |
+
| No log | 0.0010 | 1 | 7.5881 |
|
| 145 |
+
| 0.2427 | 0.1003 | 102 | 0.2504 |
|
| 146 |
+
| 0.2062 | 0.2006 | 204 | 0.1936 |
|
| 147 |
+
| 0.1631 | 0.3009 | 306 | 0.1606 |
|
| 148 |
+
| 0.1315 | 0.4012 | 408 | 0.1243 |
|
| 149 |
+
| 0.0999 | 0.5015 | 510 | 0.1098 |
|
| 150 |
+
| 0.0871 | 0.6018 | 612 | 0.0871 |
|
| 151 |
+
| 0.0611 | 0.7021 | 714 | 0.0702 |
|
| 152 |
+
| 0.0586 | 0.8024 | 816 | 0.0564 |
|
| 153 |
+
| 0.0478 | 0.9027 | 918 | 0.0486 |
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
### Framework versions
|
| 157 |
+
|
| 158 |
+
- Transformers 4.51.3
|
| 159 |
+
- Pytorch 2.6.0+cu124
|
| 160 |
+
- Datasets 3.5.1
|
| 161 |
+
- Tokenizers 0.21.1
|
generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 151643,
|
| 9 |
+
"temperature": 0.6,
|
| 10 |
+
"top_k": 20,
|
| 11 |
+
"top_p": 0.95,
|
| 12 |
+
"transformers_version": "4.51.3"
|
| 13 |
+
}
|