mx003/viper
Viewer • Updated • 989 • 52
How to use mx003/viper-llama-3_2-1B with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("unsloth/Llama-3.2-1B-Instruct")
model = PeftModel.from_pretrained(base_model, "mx003/viper-llama-3_2-1B")axolotl version: 0.11.0.dev0
adapter: lora
base_model: unsloth/Llama-3.2-1B-Instruct
bf16: true
fp16: false
load_in_4bit: false
load_in_8bit: false
datasets:
- path: mx003/viper
type: chat_template
field_messages: messages
chat_template: llama3
val_set_size: 0.05
lora_r: 32
lora_alpha: 64
lora_dropout: 0.05
lora_target_modules:
- q_proj
- v_proj
- k_proj
- o_proj
- gate_proj
- down_proj
- up_proj
gradient_accumulation_steps: 8
gradient_checkpointing: true
micro_batch_size: 2
num_epochs: 2
learning_rate: 0.0002
optimizer: adamw_torch_fused
lr_scheduler: cosine
warmup_ratio: 0.03
output_dir: ./outputs/mymodel-1b
sequence_len: 4096
save_steps: 10
logging_steps: 5
flash_attention: false
sample_packing: true
group_by_length: false
train_on_inputs: false
special_tokens:
pad_token: <|end_of_text|>
This model is a fine-tuned version of unsloth/Llama-3.2-1B-Instruct on the mx003/viper dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
Base model
meta-llama/Llama-3.2-1B-Instruct