vicgalle/alpaca-gpt4
Viewer • Updated • 52k • 5.02k • 325
How to use minpeter/QLoRA-SmolLM2-135M-Instruct-chatml with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM2-135M")
model = PeftModel.from_pretrained(base_model, "minpeter/QLoRA-SmolLM2-135M-Instruct-chatml")axolotl version: 0.6.0
base_model: HuggingFaceTB/SmolLM2-135M
model_type: LlamaForCausalLM
tokenizer_type: GPT2Tokenizer
load_in_4bit: true
load_in_8bit: false
strict: false
save_safetensors: true
flash_attention: true
auto_resume_from_checkpoints: true
save_steps: 100
learning_rate: 5e-4
num_epochs: 2
hub_model_id: minpeter/LoRA-SmolLM2-135M-ChatML-Instruct
micro_batch_size: 8
gradient_accumulation_steps: 4
dataset_processes: 1000
chat_template: chatml
datasets:
- path: vicgalle/alpaca-gpt4
type: alpaca
# - path: shibing624/sharegpt_gpt4
# type: chat_template
# field_messages: conversations
# message_field_role: from
# message_field_content: value
# roles_to_train: ["assistant", "gpt"]
# fraction: 0.1
adapter: qlora
lora_r: 16
lora_alpha: 32
lora_dropout: 0.1
lora_target_linear: true
lora_modules_to_save:
- lm_head
- embed_tokens
special_tokens:
bos_token: <|begin_of_text|>
eos_token: <|end_of_text|>
pad_token: <|custom_pad|>
unk_token: <|custom_unk|>
optimizer: adamw_torch_fused
lr_scheduler: cosine
wandb_project: "axolotl"
wandb_entity: "kasfiekfs-e"
This model is a fine-tuned version of HuggingFaceTB/SmolLM2-135M on the vicgalle/alpaca-gpt4 dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
Base model
HuggingFaceTB/SmolLM2-135M