Skip to content
L

Llama TRL

LLaMA-TRL: Fine-tuning LLaMA with PPO and LoRA

by jasonvanfFree

#4792in AI
0In stores

Description

llama-trl is a code repository for fine-tuning LLaMA language models in three steps: supervised fine-tuning, training a reward model, and tu…

Highlights

  • Supervised fine-tuning with LoRA or full weights
  • Reward model training
  • PPO tuning of the language model
  • Uses TRL and PEFT libraries
  • DeepSpeed stage 3 option with offload

Ratings & Reviews

No ratings yet

Be the first to rate Llama TRL.

People also visit

H

huggingface-llm-trainer

Train or fine-tune language and vision models using TRL

AI Skills
Get
L

LLamaTuner

Easy and Efficient Finetuning LLMs

AI
Launch
L

Llamactl

Unified management and routing for llama.cpp, MLX and vLLM models

AI
Launch
M

MLX-LoRA-Studio

A native Mac App for LLM fine-tuning on Apple Silicon

AI
Launch
L

lora-qlora-recipes

Configure LoRA and QLoRA supervised fine-tuning

AI Skills
Get
T

TrainLoop

Reasoning Fine-Tuning

AI
Launch

Llama TRL FAQ

What does llama-trl do?

It is a training pipeline for LLaMA models: supervised fine-tuning, reward model training and PPO tuning.

Does it use LoRA?

Yes. The README says LoRA is implemented with the PEFT library for the fine-tuning steps.

Where does the training data come from?

The README says the instruction-following data is collected from the GPT-4-LLM repository.

Can it train the full model?

Yes. The README also gives a full-weight supervised option using DeepSpeed stage 3 with offload.

How do I start?

Install the dependencies listed in the repository, then run the commands for each step in the How to use section.

What are the best Llama TRL alternatives?

Popular alternatives to Llama TRL include LLamaTuner, Llamactl and MLX-LoRA-Studio. See all Llama TRL alternatives

Developer Stuff

Badges