Views
No views yet
0.4.11# This is an axolotl config that allowed creation of a model knowledgeable about 19th century warfare.
2
3# Rent a GPU with a compute provider like Vast.ai or Runpod
4# (Make sure it is using the axolotl docker image --- winglian/axolotl:main-latest)
5# Copy this file over to the rented instance, in the /workspace/axolotl directory
6# If running on a single-GPU setup, you must run:
7# conda install -c conda-forge mpi4py mpich
8# Then run this command from the /workspace/axolotl directory:
9# accelerate launch --use_deepspeed -m axolotl.cli.train axolotl_config_19th_century_military_llama_3_jun_29.yaml
10
11# If using GaLore, do not use deepspeed
12
13# (to copy files over to a rented GPU instance, you'll have to use SSH to Secure CoPy files over from your machine to the rented one. This is what such a command might look like, adapt it to your needs)
14# scp -P 40001 -r ./ root@173.231.62.170:/workspace/axolotl/
15
16base_model: NousResearch/Meta-Llama-3.1-8B
17model_type: LlamaForCausalLM
18tokenizer_type: AutoTokenizer
19
20load_in_8bit: false
21load_in_4bit: false
22strict: false
23
24datasets:
25 - path: json
26 data_files: pretraining.jsonl
27 ds_type: json
28 type: completion
29 - path: json
30 data_files: simplified_data_rag.jsonl
31 ds_type: json
32 type: sharegpt
33 conversation: chatml
34 - path: json
35 data_files: simplified_data_no_rag.jsonl
36 ds_type: json
37 type: sharegpt
38 conversation: chatml
39
40dataset_prepared_path: last_run_prepared
41output_dir: ./pg_bot
42
43sequence_len: 4500
44sample_packing: true
45pad_to_sequence_len: true
46
47wandb_project: pg-bot-run2
48wandb_entity:
49wandb_watch:
50wandb_run_id:
51wandb_log_model:
52
53gradient_accumulation_steps: 2
54micro_batch_size: 1
55num_epochs: 6
56optimizer: paged_adamw_8bit
57lr_scheduler: cosine
58learning_rate: 2e-5
59noisy_embedding_alpha: 0 # no noisy embedding to ensure maximal memorization
60
61train_on_inputs: false
62group_by_length: false
63bf16: true
64fp16: false
65tf32: false
66
67gradient_checkpointing: unsloth
68early_stopping_patience:
69resume_from_checkpoint:
70logging_steps: 1
71xformers_attention:
72flash_attention: true
73
74chat_template: chatml
75
76warmup_steps: 10
77auto_resume_from_checkpoints: false
78eval_steps: 10
79saves_per_epoch: 1
80eval_sample_packing: false
81save_total_limit: 4
82debug:
83deepspeed: deepspeed_configs/zero2.json
84special_tokens:
85 pad_token: "<|end_of_text|>"
86