MinT Migration Assistant

VerifiedSafe

Helps migrate LLM training code from frameworks like verl, TRL, or OpenRLHF to MinT. Maps source framework concepts to MinT equivalents, provides before/after code examples, and highlights key differences such as distributed training handling and loss functions. Useful for developers adopting MinT for reinforcement learning or fine-tuning workflows.

Sby Skills Guide Bot
DevelopmentIntermediate
6/2/2026
Claude Code
#llm-training#mint#migration#code-conversion#training-frameworks

Recommended for

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)
When to use it

Use this skill when you need to adapt an existing LLM training pipeline to the MinT infrastructure.

When not to use it

Do not use it if you are starting from scratch with no pre-existing code to migrate.

Security analysis

Safe
Quality score88/100

The 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 made

Examples

Migrer de TRL vers MinT
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 ?
Adapter du code verl
J'ai un pipeline verl avec RolloutWorker et PPOTrainer. Comment le transformer pour utiliser SamplingClient et TrainingClient de MinT ? Donne un exemple concret.
Configurer une perte personnalisée
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:

  1. Identify the source framework (verl, TRL, OpenRLHF, custom PyTorch)
  2. Map concepts from source framework to MinT equivalents
  3. Provide before/after code examples for the specific migration pattern
  4. Highlight key differences (distributed training, checkpointing, loss functions)
  5. 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

  1. Distributed training: MinT handles sharding server-side. No FSDP/Megatron config needed.

  2. Model loading: Specify model by name, not local path.

    training_client = service_client.create_lora_training_client(base_model="Qwen/Qwen3-8B")
    
  3. Inference: Built-in SamplingClient instead of vLLM workers.

    sampling_client = training_client.save_weights_and_get_sampling_client(name="...")
    
  4. Checkpointing: Named checkpoints with save_state() / save_weights_for_sampler().

  5. 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

  1. Async pattern: Always call .result() on futures.

    training_client.forward_backward(data, loss_fn).result()
    training_client.optim_step(params).result()
    
  2. Token alignment: Next-token prediction format.

    input_tokens = all_tokens[:-1]
    target_tokens = all_tokens[1:]
    weights = weights[1:]  # Aligned with targets
    
  3. LoRA learning rate: 20-100x higher than full fine-tuning.

  4. Gradient accumulation: Multiple forward_backward calls before single optim_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 files

This 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.md

From 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.

Related skills