Automated summary
This skill helps migrate LLM training code from frameworks like verl, TRL, or OpenRLHF to MinT.
Strengths
- Provides detailed concept mappings between source frameworks and MinT
- Includes before/after code examples for common migration patterns
- Warns about common pitfalls like token alignment and LoRA learning rates
Limitations
- Requires the user to already be familiar with the source framework
- Does not cover all possible frameworks (e.g., DeepSpeed, NeMo)
Use this skill when you need to adapt an existing LLM training pipeline to the MinT infrastructure.
Do not use it if you are starting from scratch with no pre-existing code to migrate.
Security analysis
SafeThe skill provides pure guidance for code migration, with no executable tools, network requests, or destructive operations. It does not instruct the AI to run shell commands, alter system files, or exfiltrate data. The Python snippets are illustrative and not harmful.
No concerns found
How this analysis is madeExamples
Je veux migrer mon script d'entraînement TRL PPO vers MinT. Mon code utilise PPOTrainer, AutoModelForCausalLM et un dataset HuggingFace. Peux-tu me montrer la correspondance et un exemple de code avant/après ?J'ai un pipeline verl avec RolloutWorker et PPOTrainer. Comment le transformer pour utiliser SamplingClient et TrainingClient de MinT ? Donne un exemple concret.Dans mon code actuel j'utilise une perte DPO personnalisée. Comment faire la même chose avec forward_backward_custom() dans MinT ?description: Help migrate LLM training code from verl, TRL, or similar frameworks to MinT argument-hint: [framework_name or migration_question]
MinT Migration Assistant
Help users migrate their LLM training code to MinT from verl, TRL, OpenRLHF, or similar frameworks.
Instructions
When invoked:
- Identify the source framework (verl, TRL, OpenRLHF, custom PyTorch)
- Map concepts from source framework to MinT equivalents
- Provide before/after code examples for the specific migration pattern
- Highlight key differences (distributed training, checkpointing, loss functions)
- Warn about common pitfalls (token alignment, learning rate scaling, async patterns)
Reference
Read mint_api_reference.txt in this directory for complete MinT API documentation.
Concept Mapping
verl to MinT
| verl | MinT |
|------|------|
| RolloutWorker | SamplingClient |
| ActorRolloutRefWorker | TrainingClient + SamplingClient |
| RewardManager | User-defined reward function |
| PPOTrainer | forward_backward(loss_fn="ppo") + optim_step() |
| DataProto | types.Datum |
| vllm backend | MinT handles inference internally |
| fsdp/megatron sharding | MinT handles distributed training internally |
TRL to MinT
| TRL | MinT |
|-----|------|
| SFTTrainer | forward_backward(loss_fn="cross_entropy") loop |
| PPOTrainer | forward_backward(loss_fn="ppo") loop |
| DPOTrainer | forward_backward_custom() with DPO loss |
| AutoModelForCausalLM | service_client.create_lora_training_client() |
| HuggingFace dataset | Convert to list[types.Datum] |
Key Differences
-
Distributed training: MinT handles sharding server-side. No FSDP/Megatron config needed.
-
Model loading: Specify model by name, not local path.
training_client = service_client.create_lora_training_client(base_model="Qwen/Qwen3-8B") -
Inference: Built-in
SamplingClientinstead of vLLM workers.sampling_client = training_client.save_weights_and_get_sampling_client(name="...") -
Checkpointing: Named checkpoints with
save_state()/save_weights_for_sampler(). -
Loss functions: String selector for built-in losses.
"cross_entropy"- SFT"importance_sampling"- Basic policy gradient"ppo"- Clipped policy gradient"cispo"- Clipped importance sampling"dro"- Direct reward optimization
Common Pitfalls
-
Async pattern: Always call
.result()on futures.training_client.forward_backward(data, loss_fn).result() training_client.optim_step(params).result() -
Token alignment: Next-token prediction format.
input_tokens = all_tokens[:-1] target_tokens = all_tokens[1:] weights = weights[1:] # Aligned with targets -
LoRA learning rate: 20-100x higher than full fine-tuning.
-
Gradient accumulation: Multiple
forward_backwardcalls before singleoptim_step.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/mint-migration-assistant-mmlj2olm/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/mint-migration-assistant-mmlj2olm' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/mint-migration-assistant-mmlj2olm/download' --output '.skill-downloads/mint-migration-assistant-mmlj2olm/SKILL.md.part' && mv '.skill-downloads/mint-migration-assistant-mmlj2olm/SKILL.md.part' '.skill-downloads/mint-migration-assistant-mmlj2olm/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.
Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/mint-migration-assistant-mmlj2olm/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.