Transformers documentation

Axolotl

You are viewing main version, which requires installation from source. If you'd like regular pip install, checkout the latest stable version (v5.24.0).
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Axolotl

Axolotl adalah kerangka kerja fine-tuning dan post-training untuk large language models. Kerangka kerja ini mendukung adapter-based tuning, pelatihan terdistribusi ND-parallel, GRPO, dan QAT. Melalui TRL, Axolotl juga menangani alur kerja preference learning, reinforcement learning, dan reward modeling.

Definisikan run pelatihan Anda dalam file konfigurasi YAML.

base_model: NousResearch/Nous-Hermes-llama-1b-v1
model_type: AutoModelForCausalLM
tokenizer_type: AutoTokenizer

datasets:
  - path: tatsu-lab/alpaca
    type: alpaca

output_dir: ./outputs
sequence_len: 512
micro_batch_size: 1
gradient_accumulation_steps: 1
num_epochs: 1
learning_rate: 2.0e-5

Luncurkan pelatihan dengan perintah train.

axolotl train my_config.yml

Integrasi Transformers

ModelLoader Axolotl membungkus alur pemuatan Transformers.

Sumber daya

Update on GitHub