Axolotl

Axolotl

Axolotl은 대규모 언어 모델(large language model)을 위한 파인튜닝(fine-tuning) 및 후학습(post-training) 프레임워크예요. 어댑터 기반 튜닝, ND-병렬 분산 학습, GRPO, QAT를 지원해요. TRL을 통해 Axolotl은 선호 학습(preference learning), 강화 학습(reinforcement learning), 보상 모델링(reward modeling) 워크플로도 처리해요.

출처: 문서

본문

학습 실행을 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

train 명령으로 학습을 시작해요.

axolotl train my_config.yml

Transformers 통합 (Transformers integration)

Axolotl의 ModelLoader는 Transformers 로드 흐름을 감싸요.

리소스 (Resources)

더 알아보기 (Learn more)