Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Sets up LLM fine-tuning infrastructure using QLoRA, LoRA, TRL, Axolotl, DeepSpeed, and FSDP.
65% 91%+26 ptsof test cases passed
Passed 21 of 23 test cases with the skill, and 15 of 23 without it.
3 of 3 safety checks passed
80 agent runs
2 forksA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
Train and fine-tune open-source LLMs efficiently — from LoRA on a single GPU to distributed full fine-tuning across multi-node clusters.
Use this skill when:
nvidia-smi workingpipHF_TOKEN for gated modelspip install transformers datasets trl peft bitsandbytes accelerate
python - <<'EOF'
from datasets import load_dataset
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
from peft import LoraConfig, get_peft_model
from trl import SFTTrainer, SFTConfig
import torch
model_id = "meta-llama/Llama-3.1-8B-Instruct"
# 4-bit quantization (QLoRA)
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16,
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus popular skills in the same category.