cd /news/ai-tools/trloom-run-trl-trainers-sft-dpo-grpo… · home › topics › ai-tools › article
[ARTICLE · art-151378] src=discuss.huggingface.co ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Trloom: run TRL trainers (SFT, DPO, GRPO) from one YAML config

Developer saqlain2204 released Trloom v0.1.3, an open-source tool that reads a single YAML config and builds the matching Hugging Face TRL trainer for SFT, DPO, or GRPO, mapping the `training` block to SFTConfig, DPOConfig, or GRPOConfig. Trloom is installed via `pip install trloom` and run with `trloom validate grpo.yaml` and `trloom run grpo.yaml`, with a `--modal` flag to execute on a Modal GPU such as an A100. The tool supports LoRA (lora_r 16, lora_alpha 32), reward functions like accuracy_reward, and W&B reporting, and the author is soliciting feedback on the config format and recipe requests.

read1 min views2 publishedOct 16, 2026

Hi all, I built Trloom, an open-source tool built on top of TRL. It reads one YAML file and builds the matching TRL trainer, so the training block maps to SFTConfig / DPOConfig / GRPOConfig.

Here is GRPO on Qwen2.5-0.5B with LoRA and accuracy_reward:

method: grpo
model:
  model_name_or_path: Qwen/Qwen2.5-0.5B-Instruct
  dtype: bfloat16
  use_peft: true
  lora_r: 16
  lora_alpha: 32
dataset:
  path: HuggingFaceH4/Polaris-Dataset-53K
  train_split: train
reward_funcs:
  - accuracy_reward
training:
  output_dir: ./outputs/grpo-modal
  learning_rate: 1.0e-5
  per_device_train_batch_size: 1
  gradient_accumulation_steps: 4
  bf16: true
  report_to: wandb
wandb:
  enabled: true
  project: trloom-grpo
modal:
  enabled: true
  gpu: A100
  secrets: [huggingface, wandb]

pip install trloom, then trloom validate grpo.yaml and trloom run grpo.yaml (add --modal to run on a Modal GPU).

Repo: GitHub - saqlain2204/trloom: YAML-driven end-to-end fine-tuning on Hugging Face TRL — one config for model, dataset, W&B, and Modal GPUs. · GitHub

Docs: TRLoom

It’s early (v0.1.3). Happy to add recipes people ask for, and feedback on the config format is very welcome.

── more in #ai-tools 4 stories · sorted by recency
── more on @trloom 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/trloom-run-trl-train…] indexed:0 read:1min 2026-10-16 · —