|
--- |
|
library_name: transformers |
|
tags: |
|
- axolotl |
|
- generated_from_trainer |
|
datasets: |
|
- chargoddard/reddit-writing-prompts-reprompted |
|
- chargoddard/reddit-writing-advice-r1-messages |
|
- chargoddard/persona-evolve-v0-sft |
|
model-index: |
|
- name: mistral-24b-writing-v1 |
|
results: [] |
|
license: cc-by-nc-4.0 |
|
base_model: |
|
- mistralai/Mistral-Small-3.1-24B-Instruct-2503 |
|
--- |
|
|
|
<!-- This model card has been generated automatically according to the information the Trainer had access to. You |
|
should probably proofread and complete it, then remove this comment. --> |
|
|
|
[<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) |
|
<details><summary>See axolotl config</summary> |
|
|
|
axolotl version: `0.8.0` |
|
```yaml |
|
base_model: /workspace/models/mistral3p1-24b-textonly |
|
tokenizer_config: IntervitensInc/Mistral-Small-24B-Instruct-2501-chatml |
|
|
|
load_in_8bit: false |
|
load_in_4bit: false |
|
strict: false |
|
|
|
plugins: |
|
- axolotl.integrations.liger.LigerPlugin |
|
liger_rope: true |
|
liger_rms_norm: true |
|
liger_glu_activation: true |
|
liger_fused_linear_cross_entropy: true |
|
|
|
datasets: |
|
- path: chargoddard/reddit-writing-prompts-reprompted |
|
type: chat_template |
|
field_messages: messages |
|
message_field_role: role |
|
message_field_content: content |
|
roles: |
|
system: |
|
- system |
|
user: |
|
- human |
|
- user |
|
assistant: |
|
- gpt |
|
- assistant |
|
- path: chargoddard/reddit-writing-advice-r1-messages |
|
type: chat_template |
|
field_messages: messages |
|
message_field_role: role |
|
message_field_content: content |
|
roles: |
|
system: |
|
- system |
|
user: |
|
- human |
|
- user |
|
assistant: |
|
- gpt |
|
- assistant |
|
- path: chargoddard/persona-evolve-v0-sft |
|
type: chat_template |
|
field_messages: messages |
|
message_field_role: role |
|
message_field_content: content |
|
roles: |
|
system: |
|
- system |
|
user: |
|
- human |
|
- user |
|
assistant: |
|
- gpt |
|
- assistant |
|
dataset_prepared_path: /workspace/data/prepared_datasets |
|
|
|
chat_template: chatml |
|
shuffle_merged_datasets: true |
|
val_set_size: 0.02 |
|
output_dir: /workspace/models/mistral-24b-writing |
|
|
|
sequence_len: 16384 |
|
sample_packing: true |
|
eval_sample_packing: false |
|
pad_to_sequence_len: true |
|
|
|
wandb_project: mistral-24b-writing |
|
wandb_entity: |
|
wandb_watch: |
|
wandb_name: |
|
wandb_log_model: |
|
|
|
gradient_accumulation_steps: 4 |
|
micro_batch_size: 2 |
|
num_epochs: 2 |
|
optimizer: paged_adamw_8bit |
|
lr_scheduler: cosine |
|
learning_rate: 0.00002 |
|
max_grad_norm: 3 |
|
|
|
train_on_inputs: true |
|
group_by_length: false |
|
bf16: auto |
|
fp16: |
|
tf32: false |
|
|
|
gradient_checkpointing: true |
|
gradient_checkpointing_kwargs: |
|
use_reentrant: false |
|
early_stopping_patience: |
|
resume_from_checkpoint: |
|
local_rank: |
|
logging_steps: 1 |
|
xformers_attention: |
|
flash_attention: true |
|
|
|
warmup_ratio: 0.02 |
|
saves_per_epoch: 8 |
|
evals_per_epoch: 4 |
|
save_total_limit: 5 |
|
save_safetensors: true |
|
hub_model_id: chargoddard/mistral-24b-writing-v1 |
|
hub_strategy: every_save |
|
debug: |
|
deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json |
|
weight_decay: 0.01 |
|
|
|
seed: 64939 |
|
|
|
|
|
``` |
|
|
|
</details><br> |
|
|
|
# mistral-24b-writing-v1 |
|
|
|
This model was trained from scratch on the chargoddard/reddit-writing-prompts-reprompted, the chargoddard/reddit-writing-advice-r1-messages and the arcee-train/persona-evolve-v1-sft datasets. |
|
It achieves the following results on the evaluation set: |
|
- Loss: 1.7083 |
|
|
|
## Model description |
|
|
|
More information needed |
|
|
|
## Intended uses & limitations |
|
|
|
More information needed |
|
|
|
## Training and evaluation data |
|
|
|
More information needed |
|
|
|
## Training procedure |
|
|
|
### Training hyperparameters |
|
|
|
The following hyperparameters were used during training: |
|
- learning_rate: 2e-05 |
|
- train_batch_size: 2 |
|
- eval_batch_size: 2 |
|
- seed: 64939 |
|
- distributed_type: multi-GPU |
|
- num_devices: 8 |
|
- gradient_accumulation_steps: 4 |
|
- total_train_batch_size: 64 |
|
- total_eval_batch_size: 16 |
|
- optimizer: Use paged_adamw_8bit with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments |
|
- lr_scheduler_type: cosine |
|
- lr_scheduler_warmup_steps: 6 |
|
- num_epochs: 2.0 |
|
|
|
### Training results |
|
|
|
| Training Loss | Epoch | Step | Validation Loss | |
|
|:-------------:|:------:|:----:|:---------------:| |
|
| 2.5064 | 0.0060 | 1 | 2.5349 | |
|
| 1.9334 | 0.2530 | 42 | 1.8756 | |
|
| 1.7816 | 0.5060 | 84 | 1.7640 | |
|
| 1.7553 | 0.7590 | 126 | 1.7354 | |
|
| 1.5043 | 1.0120 | 168 | 1.7856 | |
|
| 1.3543 | 1.2651 | 210 | 1.7375 | |
|
| 1.3497 | 1.5181 | 252 | 1.7169 | |
|
| 1.3095 | 1.7711 | 294 | 1.7083 | |
|
|
|
|
|
### Framework versions |
|
|
|
- Transformers 4.51.1 |
|
- Pytorch 2.5.1+cu124 |
|
- Datasets 3.5.0 |
|
- Tokenizers 0.21.1 |