Views
No views yet
0.8.0.dev01base_model: meta-llama/Llama-3.1-8B-Instruct
2# optionally might have model_type or tokenizer_type
3model_type: LlamaForCausalLM
4tokenizer_type: AutoTokenizer
5# Automatically upload checkpoint and final model to HF
6hub_model_id: seacorn/llama3.1-8b-reasoning-summarizer
7
8load_in_8bit: true
9load_in_4bit: false
10strict: false
11
12seed: 42
13
14datasets:
15 - path: output.jsonl
16 type: chat_template
17dataset_prepared_path:
18val_set_size: 0.05
19output_dir: ./lora-out
20
21sequence_len: 8192
22sample_packing: true
23eval_sample_packing: false
24pad_to_sequence_len: true
25
26adapter: lora
27lora_model_dir:
28lora_r: 16
29lora_alpha: 32
30lora_dropout: 0.05
31lora_target_linear: true
32lora_fan_in_fan_out:
33lora_modules_to_save:
34 - embed_tokens
35 - lm_head
36
37wandb_project: huggingface
38wandb_entity:
39wandb_watch:
40wandb_name: llama3.1-8b-reasoning-summarizer
41wandb_log_model:
42
43gradient_accumulation_steps: 4
44micro_batch_size: 2
45num_epochs: 2
46optimizer: adamw_bnb_8bit
47lr_scheduler: cosine
48learning_rate: 0.0002
49
50train_on_inputs: false
51group_by_length: false
52bf16: auto
53fp16:
54tf32: false
55
56gradient_checkpointing: true
57early_stopping_patience:
58resume_from_checkpoint:
59local_rank:
60logging_steps: 1
61xformers_attention:
62flash_attention: true
63s2_attention:
64
65warmup_ratio: 0.05
66evals_per_epoch: 4
67eval_table_size:
68eval_max_new_tokens: 128
69saves_per_epoch: 5
70debug:
71deepspeed:
72weight_decay: 0.0
73fsdp:
74fsdp_config:
75special_tokens:
76 pad_token: <|end_of_text|>
771messages = [
2 {"role": "system", "content": "reasoning off"},
3 {"role": "user", "content": "Summarize the following into 5 bullet points, each with 20 words max.\n\nMarch 28 (Reuters) -..."}
4]
5
6# output
7- Elon Musk's xAI acquires X ...1messages = [
2 {"role": "system", "content": "reasoning on"},
3 {"role": "user", "content": "Summarize the following into 5 bullet points, each with 20 words max.\n\nMarch 28 (Reuters) -..."}
4]
5
6# output
7<think>
8Okay, I need to summarize this article into 5 bullet points, each with a maximum of 20 words. ...
9</think>
10
11- Musk's xAI acquires X ...| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.0396 | 0.0018 | 1 | 1.7982 |
| 1.3908 | 0.2506 | 141 | 1.2241 |
| 1.8534 | 0.5011 | 282 | 1.1842 |
| 1.5745 | 0.7517 | 423 | 1.1560 |
| 0.9261 | 1.0018 | 564 | 1.1288 |
| 1.2359 | 1.2523 | 705 | 1.1344 |
| 1.1835 | 1.5029 | 846 | 1.1223 |
| 0.9898 | 1.7534 | 987 | 1.1173 |