Text Generation
Transformers
Safetensors
qwen3_5_moe
image-text-to-text
Mixture of Experts
agentic
machine-learning-engineering
code
tool-use
reinforcement-learning
conversational
Run this model with HF Jobs
Run InternScience/MLExpert on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/InternScience/MLExpert. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/InternScience/MLExpert on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/InternScience/MLExpert. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/InternScience/MLExpert. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use InternScience/MLExpert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InternScience/MLExpert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="InternScience/MLExpert") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("InternScience/MLExpert") model = AutoModelForMultimodalLM.from_pretrained("InternScience/MLExpert", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use InternScience/MLExpert with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "InternScience/MLExpert" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InternScience/MLExpert", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/InternScience/MLExpert
- SGLang
How to use InternScience/MLExpert with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "InternScience/MLExpert" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InternScience/MLExpert", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "InternScience/MLExpert" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InternScience/MLExpert", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use InternScience/MLExpert with Docker Model Runner:
docker model run hf.co/InternScience/MLExpert
Update README.md
Browse files9 unmodified lines101112131415161718192021222324253 unmodified lines293031323334353637383940411 unmodified line43444546474849505152539 unmodified lines636465666768696 unmodified lines7677787980818216 unmodified lines991001011021031041055 unmodified lines1111121131141151161176 unmodified lines1241251261271281291301311321331341351369 unmodified lines- tool-use- reinforcement-learning---# M1: Towards a Generalist Agentic Model for Autonomous Machine Learning Engineering[💻 GitHub](https://github.com/InternScience/M1) · [🤗 Hugging Face](https://huggingface.co/InternScience/M1)**M1** is a 35B Mixture-of-Experts agentic model for autonomous machine learning engineering. It organizes experiments, writes and revises code, and improves solutions through sustained interaction with execution environments. Hierarchical agentic SFT develops general tool-use and domain-specific optimization skills, while **Windowed Interaction Reinforcement Learning (WIRL)** trains multi-turn decisions using feedback from completed experiments.## Highlights- **Long-horizon optimization:** Plans experiments, interprets execution feedback, revisits previous solutions, and selects submission candidates within a persistent workspace.- **Strong MLE performance:** Achieves a **72.7% medal rate on MLE-Bench Lite**, matching GLM-5.3 and Kimi-K3 under the M1 Harness.- **General-purpose harness compatibility:** Achieves a **69.7% medal rate with Claude Code**, compared with 42.4% for its base model.- **Scientific task optimization:** Matches published scientific results on seven of ten NatureBench Lite tasks and surpasses them on five.3 unmodified linesWe primarily evaluate our trained models on MLE-Bench Lite, a 22-task subset of MLE-Bench consisting of historical Kaggle competitions for end-to-end machine learning engineering. We report the percentage of tasks awarded each medal tier (Gold, Silver, and Bronze), the percentage receiving any medal (Any Medal), and the percentage exceeding the median human score (Med+), with Any Medal as the primary metric. All five metrics are computed over the 22 tasks and reported as percentages.The first five metric columns use the M1 Harness; the last two columns report the general-purpose harness and its medal rate. All values are percentages.**M1 achieves the highest medal rate among same-scale models and reaches the performance level of larger frontier models.** Under the unified M1 Harness, M1 raises the medal rate of its Qwen3.6-35B-A3B base model from 37.9% to 72.7%, achieving the highest rate among the same-scale models evaluated and performance comparable to GLM-5.3 and Kimi-K3. These results show that long-horizon agentic post-training substantially improves the base model's MLE capability, bringing a 35B model to a performance level comparable to larger frontier models.**M1 retains its advantage over the base model under a general-purpose coding harness.** With Claude Code, M1 achieves a 69.7% medal rate, compared with 42.4% for its base model, and exceeds the strongest evaluated same-scale baseline by 22.7 percentage points. The consistent advantage over the base model across both harnesses suggests that the improvement from post-training is not specific to the M1-Harness and remains effective in a general-purpose agentic coding environment.### NatureBench Lite1 unmodified line**On NatureBench Lite, M1 improves scientific task performance over the base model.** With Claude Code, M1 raises the Surpass-SOTA rate from 0.0% to 50.0%, exceeding Nex-N2.5-mini at 20.0% and matching GLM-5.3 at 50.0%. Its Match-SOTA rate also improves from 40.0% to 70.0%. These results show that post-training improves scientific task optimization, enabling M1 to match or exceed published reference results on more tasks.## UsageThe commands below load `InternScience/M1` and serve an API endpoint at `http://localhost:8000/v1`.### SGLang9 unmodified lines```shellpython -m sglang.launch_server \--model-path InternScience/M1 \--host 127.0.0.1 \--port 8000 \--tp-size 2 \6 unmodified lines```shellpython -m sglang.launch_server \--model-path InternScience/M1 \--host 127.0.0.1 \--port 8000 \--tp-size 2 \16 unmodified lines**Text Generation**```shellvllm serve InternScience/M1 \--host 127.0.0.1 \--port 8000 \--tensor-parallel-size 2 \5 unmodified lines**Tool Calling**```shellvllm serve InternScience/M1 \--host 127.0.0.1 \--port 8000 \--tensor-parallel-size 2 \6 unmodified lines### Recommended Sampling Parameters| Parameter | Value || :--------------------- | ----: || `temperature` | 1.0 || `top_p` | 0.95 || `top_k` | 20 || `min_p` | 0.0 || `presence_penalty` | 1.5 || `repetition_penalty` | 1.0 |These parameters apply to both thinking and non-thinking modes. Set `chat_template_kwargs.enable_thinking` to `true` to enable thinking or `false` to disable it. Machine-readable profiles are provided in [inference_profiles.json](./inference_profiles.json).9 unmodified lines10111213141516171819202122232425263 unmodified lines303132333435363738394041421 unmodified line44454647484950515253549 unmodified lines646566676869706 unmodified lines7778798081828316 unmodified lines1001011021031041051065 unmodified lines1121131141151161171186 unmodified lines1251261271281291301311321331341351361379 unmodified lines- tool-use- reinforcement-learning---# MLExpert: Towards a Generalist Agentic Model for Autonomous Machine Learning Engineering[💻 GitHub](https://github.com/InternScience/MLExpert) · [🤗 Hugging Face](https://huggingface.co/InternScience/MLExpert)**MLExpert** is a 35B Mixture-of-Experts agentic model for autonomous machine learning engineering. It organizes experiments, writes and revises code, and improves solutions through sustained interaction with execution environments. Hierarchical agentic SFT develops general tool-use and domain-specific optimization skills, while **Windowed Interaction Reinforcement Learning (WIRL)** trains multi-turn decisions using feedback from completed experiments.## Highlights- **Long-horizon optimization:** Plans experiments, interprets execution feedback, revisits previous solutions, and selects submission candidates within a persistent workspace.- **Strong MLE performance:** Achieves a **72.7% medal rate on MLE-Bench Lite**, matching GLM-5.3 and Kimi-K3 under the MLExpert Harness.- **General-purpose harness compatibility:** Achieves a **69.7% medal rate with Claude Code**, compared with 42.4% for its base model.- **Scientific task optimization:** Matches published scientific results on seven of ten NatureBench Lite tasks and surpasses them on five.3 unmodified linesWe primarily evaluate our trained models on MLE-Bench Lite, a 22-task subset of MLE-Bench consisting of historical Kaggle competitions for end-to-end machine learning engineering. We report the percentage of tasks awarded each medal tier (Gold, Silver, and Bronze), the percentage receiving any medal (Any Medal), and the percentage exceeding the median human score (Med+), with Any Medal as the primary metric. All five metrics are computed over the 22 tasks and reported as percentages.The first five metric columns use the MLExpert Harness; the last two columns report the general-purpose harness and its medal rate. All values are percentages.**MLExpert achieves the highest medal rate among same-scale models and reaches the performance level of larger frontier models.** Under the unified MLExpert Harness, MLExpert raises the medal rate of its Qwen3.6-35B-A3B base model from 37.9% to 72.7%, achieving the highest rate among the same-scale models evaluated and performance comparable to GLM-5.3 and Kimi-K3. These results show that long-horizon agentic post-training substantially improves the base model's MLE capability, bringing a 35B model to a performance level comparable to larger frontier models.**MLExpert retains its advantage over the base model under a general-purpose coding harness.** With Claude Code, MLExpert achieves a 69.7% medal rate, compared with 42.4% for its base model, and exceeds the strongest evaluated same-scale baseline by 22.7 percentage points. The consistent advantage over the base model across both harnesses suggests that the improvement from post-training is not specific to the MLExpert-Harness and remains effective in a general-purpose agentic coding environment.### NatureBench Lite1 unmodified line**On NatureBench Lite, MLExpert improves scientific task performance over the base model.** With Claude Code, MLExpert raises the Surpass-SOTA rate from 0.0% to 50.0%, exceeding Nex-N2.5-mini at 20.0% and matching GLM-5.3 at 50.0%. Its Match-SOTA rate also improves from 40.0% to 70.0%. These results show that post-training improves scientific task optimization, enabling MLExpert to match or exceed published reference results on more tasks.## UsageThe commands below load `InternScience/MLExpert` and serve an API endpoint at `http://localhost:8000/v1`.### SGLang9 unmodified lines```shellpython -m sglang.launch_server \--model-path InternScience/MLExpert \--host 127.0.0.1 \--port 8000 \--tp-size 2 \6 unmodified lines```shellpython -m sglang.launch_server \--model-path InternScience/MLExpert \--host 127.0.0.1 \--port 8000 \--tp-size 2 \16 unmodified lines**Text Generation**```shellvllm serve InternScience/MLExpert \--host 127.0.0.1 \--port 8000 \--tensor-parallel-size 2 \5 unmodified lines**Tool Calling**```shellvllm serve InternScience/MLExpert \--host 127.0.0.1 \--port 8000 \--tensor-parallel-size 2 \6 unmodified lines### Recommended Sampling Parameters| Parameter | Value || :--- | ---: || `temperature` | 1.0 || `top_p` | 0.95 || `top_k` | 20 || `min_p` | 0.0 || `presence_penalty` | 1.5 || `repetition_penalty` | 1.0 |These parameters apply to both thinking and non-thinking modes. Set `chat_template_kwargs.enable_thinking` to `true` to enable thinking or `false` to disable it. Machine-readable profiles are provided in [inference_profiles.json](./inference_profiles.json).
README.md+22-21