pytrio
OfficialGuide Claude Code to master PyTRIO remote training
Software Engineering#api-reference#lora#llm-inference#checkpoint-management#sampling-client#pytrio#remote-training
AuthorSwanHubX
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Claude Code and other assistants generate invalid PyTRIO usage because they do not know the remote training and inference flow, credential requirements, or naming differences from HuggingFace APIs, so the same mistakes keep recurring.
Core Features & Use Cases
- Credential and concept checklist: Covers trio login, ServiceClient creation, PyTorch-to-PyTRIO concept mapping, and how loss functions, ModelInput wrapping, and AdamParams differ from local training.
- API quick references: Details the training, sampling, and rest clients plus Datum/SamplingParams structures so you can construct correct pipelines, save checkpoints, and resume or sample from LoRA weights.
- Trap list and best practices: Explains issues such as max_tokens vs max_new_tokens, weights masking, prompt autoshift rules, and the requirement to use Qwen/Qwen3-4B-Instruct-2507 for training, with runnable examples stored under examples/ and best-practices/.
Quick Start
Ask Claude Code to plan how to log in via trio login, wrap training samples with ModelInput, call forward_backward and optim_step, and save sampler weights for inference.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: pytrio Download link: https://github.com/SwanHubX/pytrio-skill/archive/main.zip#pytrio Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.