Skip to content

Instantly share code, notes, and snippets.

@cfahlgren1
Last active January 2, 2024 23:45
Show Gist options
  • Save cfahlgren1/1aa8a34a5f4593d8d9df509c6e2901c9 to your computer and use it in GitHub Desktop.
Save cfahlgren1/1aa8a34a5f4593d8d9df509c6e2901c9 to your computer and use it in GitHub Desktop.
base_model: openlm-research/open_llama_3b_v2
model_type: LlamaForCausalLM
tokenizer_type: LlamaTokenizer
load_in_8bit: false
load_in_4bit: true
strict: false
push_dataset_to_hub:
datasets:
- path: cfahlgren1/openhermes-2k
type: alpaca
data_files:
- openhermes-2k.json
- path: cfahlgren1/Capybara-Converted
type: sharegpt
conversation: chatml
- path: cfahlgren1/DevSpecCode
type: alpaca
data_files:
- data.json
dataset_prepared_path:
val_set_size: 0.05
adapter: qlora
lora_model_dir:
sequence_len: 2048
sample_packing: true
lora_r: 8
lora_alpha: 32
lora_dropout: 0.05
lora_target_modules:
lora_target_linear: true
lora_fan_in_fan_out:
wandb_project: axolotl
wandb_entity:
wandb_watch:
wandb_name:
wandb_log_model:
output_dir: ./qlora-out-2
gradient_accumulation_steps: 1
micro_batch_size: 10
num_epochs: 4
optimizer: paged_adamw_32bit
torchdistx_path:
lr_scheduler: cosine
learning_rate: 2e-5
train_on_inputs: false
group_by_length: false
bf16: false
fp16: true
tf32: false
gradient_checkpointing: true
early_stopping_patience:
resume_from_checkpoint:
local_rank:
logging_steps: 1
xformers_attention:
flash_attention: true
gptq_groupsize:
gptq_model_v1:
warmup_steps: 20
evals_per_epoch: 4
saves_per_epoch: 1
debug:
deepspeed:
weight_decay: 0.1
fsdp:
fsdp_config:
special_tokens:
bos_token: "<s>"
eos_token: "</s>"
unk_token: "<unk>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment