Reference docMembers

Unsloth ↔ TRL/PEFT Mapping

Unsloth ↔ TRL/PEFT Mapping is a reference document for Claude Code, from the wshobson agents and plugins collection by wshobson. The full text is about 1,320 words in 8 sections, with 1 code block and 1 table. It is a supporting file that a skill or agent reads while it works, so the main instructions can stay short.

It is most useful for people working in Backend and Data and ML who use Claude Code.

What it covers

  • Config Knob Mapping
  • Current TRL API Notes
  • Known Unsloth 2026.7.x Limitations
  • No messages-shaped path with assistantonlyloss=True
  • attnimplementation kwarg silently dropped
  • paddingfree collision with a plain-TRL SFTConfig
  • TRL's chat-template auto-patch is exact-string-match only
  • The Escape Hatch: When to Drop Back to Plain TRL

The full text is in the members library

Book a call and we will give you access to the full Claude Code library: every entry in full, search by meaning, copy and download.

Source: https://github.com/wshobson/agents/blob/main/plugins/llm-finetuning/skills/lora-qlora-recipes/references/unsloth-trl-mapping.md

Author: wshobson, wshobson agents and plugins. License: MIT.

Related entries