ml-intern

Automate ML post-training research, code generation, and experiment orchestration.

2|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/AlexiosBluffMara/mercury --skill ml-intern
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ml-intern
Source: https://github.com/AlexiosBluffMara/mercury/tree/main/skills/self-evolution/ml-intern
Command: npx skills add https://github.com/AlexiosBluffMara/mercury --skill ml-intern

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ml-intern is an open-source AI agent that autonomously researches, writes, and ships ML related code using the HuggingFace ecosystem to conduct post-training experiments, literature review, dataset discovery, training scripts, and iterative evaluation. It enables automated Cortex Gemma-4-e4b fine-tuning, ablation studies, and hyperparameter sweeps without writing a bespoke harness.

Core Features & Use Cases

  • Single-agent loop with a max 300 iterations, ToolRouter covering HF docs/papers/datasets/repos and GitHub search, sandbox execution, MCP server tools
  • ContextManager with auto-compaction at 170k tokens
  • Doom-loop detector to inject corrective prompts on repeated patterns
  • Provider-agnostic backends via litellm
  • Outputs: final session uploaded to HF Hub with trace, trained artifacts, and model cards
  • Use cases: Cortex fine-tunes, overnight ablations, literature synthesis, and dataset discovery

Quick Start

Run ml-intern to start an autonomous post-training experiment workflow.

Frequently Asked Questions about ml-intern

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate HuggingFace fine-tuning and ablation studies without writing a custom training harness?

Autonomous ML post-training uses a single-agent loop to orchestrate HuggingFace fine-tuning and ablation studies automatically. It researches datasets, generates training scripts, and executes experiments on hosted compute without requiring a bespoke harness.

What API keys do I need to run autonomous ML post-training experiments with litellm backends?

Running autonomous ML post-training experiments requires HF_TOKEN, ANTHROPIC_API_KEY, GITHUB_TOKEN, and OPENAI_API_KEY. These environment variables authenticate provider-agnostic backends via litellm, HuggingFace Hub access, and GitHub repository search.

How does context management work during long autonomous hyperparameter sweeps?

Context management during long hyperparameter sweeps uses auto-compaction at 170k tokens to preserve relevant context. A doom-loop detector also monitors repeated patterns and injects corrective prompts to prevent the agent from getting stuck.

What is the maximum duration or iteration limit for an autonomous ML post-training session?

The maximum duration for an autonomous ML post-training session is capped at 300 iterations within a single-agent loop. This limit ensures controlled experiment orchestration while allowing sufficient time for literature review, training, and evaluation.

Does autonomous ML post-training work with Gemma models on HuggingFace?

Autonomous ML post-training supports automated Cortex Gemma-4-e4b fine-tuning directly within the HuggingFace ecosystem. It handles dataset discovery, training script generation, and iterative evaluation specifically for these model architectures.

What outputs are generated after completing an autonomous ablation study?

Completing an autonomous ablation study uploads a final session to the HuggingFace Hub containing the full execution trace, trained model artifacts, and generated model cards. This ensures all experimental results are reproducible and shareable.