需先创建项目目录并进入该目录才能运行 mle start;mle report 会在本地启动 Web 服务,需访问 http://localhost:3000/;跑 Kaggle 前必须先自行加入对应竞赛。

MLE-agent
MLSysOpsMIT更新放缓面向机器学习工程与研究的智能体,能对接 arXiv 和 Papers with Code 检索论文,生成代码与研究方案,并支持 OpenAI、Anthropic、Gemini、Ollama 等模型。
🤖 MLE-Agent: Your intelligent companion for seamless AI engineering and research. 🔍 Integrate with arxiv and paper with code to provide better code/research plans 🧰 OpenAI, Anthropic, Gemini, Ollama, etc supported. :fireworks: Code RAG
pip install -U mle-agent
mle new <project name>
cd <project name>
mle startREADME 未说明显存或 GPU 要求,仅提到代码在本地机器或云端执行;模型可走 OpenAI、Anthropic、Gemini、Ollama 等 API 或本地服务。
面向机器学习工程师的 LLM 结对代理,自动搭建基线、跑 Kaggle 并生成周报
面向机器学习工程与研究的智能体,能对接 arXiv 和 Papers with Code 检索论文,生成代码与研究方案,并支持 OpenAI、Anthropic、Gemini、Ollama 等模型。
核心能力
- 根据需求自动构建 ML/AI 基线方案
- 独立参与 Kaggle 竞赛并完成端到端任务
- 集成 Arxiv 与 Papers with Code 检索 SOTA 方法
- 通过调试器与编码器交互自动修复代码错误
- 支持终端交互式聊天与本地代码 RAG
容易踩的坑
- 0.4.2最新正式版2024-10-12 · 2024-10-12 16:45 UTC
What's Changed
- [MRG] build version v0.4.0 by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/208
- [MRG] update readme for 0.4.0 by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/209
- [MRG] deepseek support by @umnooob in https://github.com/MLSysOps/MLE-agent/pull/212
- [MRG] add kaggle requirement summary by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/213
- [MRG] add langfuse by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/214
- [MRG] update README.md with kaggle and report mode by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/215
- [MRG] refactor the github login by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/216
- [MRG] add manual openai base_url by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/217
- [MRG] update web ui icon by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/219
- [MRG] inject the project info into chat system prompt by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/218
- [MRG] add check for config file by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/221
- [MRG] update README.md by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/223
- [MRG] redesign
mle chatby @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/224 - [MRG] fix github integration to fetch
masterbranch by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/225 - Bump next from 14.2.8 to 14.2.10 in /web by @dependabot in https://github.com/MLSysOps/MLE-agent/pull/226
- [MRG] Added the local .git metadata fetchers by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/228
- [MRG] seperate LLM models by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/229
- [MRG] update readme by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/233
- [MRG] 🐛 fix: removed the pr agent by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/235
- [MRG] Update README.md by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/236
- [MRG] Update README.md by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/238
- [MRG] Fixed bugs of Kaggle integration by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/237
- [MRG] Update the advisor to support various modes by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/239
- [MRG] Built version v0.4.2 by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/241
New Contributors
- @umnooob made their first contribution in https://github.com/MLSysOps/MLE-agent/pull/212
- @dependabot made their first contribution in https://github.com/MLSysOps/MLE-agent/pull/226
Full Changelog: https://github.com/MLSysOps/MLE-agent/compare/0.4.0...0.4.2
- 0.4.02024-09-12 · 2024-09-12 17:19 UTC
查看更新说明
What's Changed
- [MRG] 👷 build: 0.3.1 by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/124
- [MRG] add star history by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/125
- [MRG] Improve advisor agent with markdown output by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/132
- [MRG] Github Integration - Information collector by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/134
- [MRG] Upgrade setuptools by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/135
- [MRG] fix typos by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/137
- Update by @U-C4N in https://github.com/MLSysOps/MLE-agent/pull/138
- update by @U-C4N in https://github.com/MLSysOps/MLE-agent/pull/141
- [MRG] Enrich the github apis by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/142
- [MRG] Add RAG for the code analysis by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/136
- [MRG] add google calender integration by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/149
- [MRG] github & google calendar integrate command by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/151
- [MRG] update readme by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/152
- [MRG] docs: update google_calendar.py by @eltociear in https://github.com/MLSysOps/MLE-agent/pull/156
- [MRG] fix typos by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/157
- [MRG] add claude model support by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/154
- [MRG] finish some tasks in README and improve requirement by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/161
- [MRG] Add web documentation framework by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/163
- [MRG] added the summary agent by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/147
- [MRG] Adding trending badge to README.md by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/168
- [MRG] support
mle report <org/repo>command by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/167 - [MRG] Implementation the initial report agent by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/171
- Add CONTRIBUTING.md by @suryavanshi in https://github.com/MLSysOps/MLE-agent/pull/172
- [MRG] fix: generate no code by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/170
- [MRG] updated the docs of contributing by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/175
- [MRG] the local web server to display the MLE suggestions by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/177
- [MRG] Improve the web UI to use the sync backend API by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/179
- [MRG] Fixed the UI bug of no report generation by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/183
- [MRG] suggest datasets if user's input is unclear by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/187
- [MRG] combile pnpm dev and mle serve within
mle reportby @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/184 - [MRG] fix prevewing public dataset errors by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/190
- [MRG] move config file into
.mleby @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/186 - [MRG] add
mle kagglepipeline by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/191 - [MRG] fix ollama output without json format by @JasonRD in https://github.com/MLSysOps/MLE-agent/pull/198
- [MRG] add github setting to the web by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/185
- [MRG] fix UI icons by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/201
- [MRG] Add mistralai support by @suryavanshi in https://github.com/MLSysOps/MLE-agent/pull/192
- [MRG] fix: display report UI after finish the static resouces loading by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/204
- 0.3.12024-08-12 · 2024-08-12 20:31 UTC
查看更新说明
What's Changed
- [MRG] build version v0.3.0 by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/120
- [MRG] add previous step&task resume by @leeeizhang in https://github.com/MLSysOps/MLE-agent/pull/123
Full Changelog: https://github.com/MLSysOps/MLE-agent/compare/0.3.0...0.3.1
- 0.3.02024-07-26 · 2024-07-26 01:51 UTC
查看更新说明
What's Changed
- [MRG] Refactor the baseline mode workflow by @huangyz0918 in https://github.com/MLSysOps/MLE-agent/pull/113
- [MRG] Create pr_agent.yml by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/116
- [MRG] refactor the displayed info, fix small UI issues by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/117
- add new video by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/118
- Update README.md for v030 by @HuaizhengZhang in https://github.com/MLSysOps/MLE-agent/pull/119
Full Changelog: https://github.com/MLSysOps/MLE-agent/compare/0.2.1...0.3.0
- 0.2.12024-07-11 · 2024-07-11 18:03 UTC
查看更新说明
Full Changelog: https://github.com/MLSysOps/MLE-agent/compare/0.2.0...0.2.1
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
📚 Docs | 🐞 Report Issues | 👋 Join us on Discord
Overview
MLE-Agent is designed as a pairing LLM agent for machine learning engineers and researchers. It is featured by:
- 🤖 Autonomous Baseline: Automatically builds ML/AI baselines and solutions based on your requirements.
- 🏅End-to-end ML Task: Participates in Kaggle competitions and completes tasks independently.
- 🔍 Arxiv and Papers with Code Integration: Access best practices and state-of-the-art methods.
- 🐛 Smart Debugging: Ensures high-quality code through automatic debugger-coder interactions.
- 📂 File System Integration: Organizes your project structure efficiently.
- 🧰 Comprehensive Tools Integration: Includes AI/ML functions and MLOps tools for a seamless workflow.
- ☕ Interactive CLI Chat: Enhances your projects with an easy-to-use chat interface.
- 🧠 Smart Advisor: Provides personalized suggestions and recommendations for your ML/AI project.
- 📊 Weekly Report: Automatically generates detailed summaries of your weekly works.
| Workflow | Agent |
|---|---|
Video Demo
https://github.com/user-attachments/assets/dac7be90-c662-4d0d-8d3a-2bc4df9cffb9
Milestones
- :rocket: 09/24/2024: Release the
0.4.2with enhancedAuto-Kagglemode to complete an end-to-end competition with minimal effort. - :rocket: 09/10/2024: Release the
0.4.0with new CLIs likeMLE report,MLE kaggle,MLE integrationand many new models likeMistral. - :rocket: 07/25/2024: Release the
0.3.0with huge refactoring, many integrations, etc. (v0.3.0) - :rocket: 07/11/2024: Release the
0.2.0with multiple agents interaction (v0.2.0) - 👨🍼 07/03/2024: Kaia is born
- :rocket: 06/01/2024: Release the first rule-based version of MLE agent (v0.1.0)
Get started
Installation
From PyPI
# With pip:
pip install -U mle-agent
# With uv:
uv pip install -U mle-agent
From source
git clone https://github.com/MLSysOps/MLE-agent.git
cd MLE-agent
uv venv .venv
source .venv/bin/activate # Linux/macOS
pip install -e . # or: pip install -e .
Usage
mle new <project name>
And a project directory will be created under the current path, you need to start the project under the project directory.
cd <project name>
mle start
You can also start an interactive chat in the terminal under the project directory:
mle chat
Use cases
🧪 Prototype an ML Baseline
MLE agent can help you prototype an ML baseline with the given requirements, and test the model on the local machine. The requirements can be vague, such as "I want to predict the stock price based on the historical data".
cd <project name>
mle start
:bar_chart: Generate Work Report
MLE agent can help you summarize your weekly report, including development progress, communication notes, reference, and to-do lists.
Mode 1: Web Application to Generate Report from GitHub
cd <project name>
mle report
Then, you can visit http://localhost:3000/ to generate your report locally.
Mode 2: CLI Tool to Generate Report from Local Git Repository
cd <project name>
mle report-local --email=<git email> --start-date=YYYY-MM-DD --end-date=YYYY-MM-DD <path_to_git_repo>
--start-dateand--end-dateare optional parameters. If omitted, the command will generate a report for the default date range of the last 7 days.- Replace
<git email>with your Git email and<path_to_git_repo>with the path to your local Git repository.
:trophy: Start with Kaggle Competition
MLE agent can participate in Kaggle competitions and finish coding and debugging from data preparation to model training independently. Here is the basic command to start a Kaggle competition:
cd <project name>
mle kaggle
Or you can let the agents finish the Kaggle task without human interaction if you have the dataset and submission file ready:
cd <project name>
mle kaggle --auto \
--datasets "<path_to_dataset1>,<path_to_dataset2>,..." \
--description "<description_file_path_or_text>" \
--submission "<submission_file_path>" \
--sub_example "<submission_example_file_path>" \
--comp_id "<competition_id>"
Please make sure you have joined the competition before running the command. For more details, see the MLE-Agent Tutorials.
Roadmap
The following is a list of the tasks we plan to do, welcome to propose something new!
- Understand users' requirements to create an end-to-end AI project
- Suggest the SOTA data science solutions by using the web search
- Plan the ML engineering tasks with human interaction
- Execute the code on the local machine/cloud, debug and fix the errors
- Leverage the built-in functions to complete ML engineering tasks
- Interactive chat: A human-in-the-loop mode to help improve the existing ML projects
- Kaggle mode: to finish a Kaggle task without humans
- Summary and reflect the whole ML/AI pipeline
- Integration with Cloud data and testing and debugging platforms
- Local RAG support to make personal ML/AI coding assistant
- Function zoo: generate AI/ML functions and save them for future usage
- Ollama LLama3
- OpenAI GPTs
- Anthropic Claude 3.5 Sonnet
- CLI Application
- Web UI
- Discord
- Local file system
- Local code exectutor
- Arxiv.org search
- Papers with Code search
- General keyword search
- Hugging Face
- SkyPilot cloud deployment
- Snowflake data
- AWS S3 data
- Databricks data catalog
- Wandb experiment monitoring
- MLflow management
- DBT data transform
Contributing
We welcome contributions from the community. We are looking for contributors to help us with the following tasks:
- Benchmark and Evaluate the agent
- Add more features to the agent
- Improve the documentation
- Write tests
Please check the CONTRIBUTING.md file if you want to contribute.
Support and Community
- Discord community. If you have any questions, please ask in the Discord community.
Citation
@misc{zhang2024mleagent,
title = {MLE-Agent: Your Intelligent Companion for Seamless AI Engineering and Research},
author = {Huaizheng Zhang*, Yizheng Huang*, Lei Zhang},
year = {2024},
note = {\url{https://github.com/MLSysOps/MLE-agent}},
}
License
Check MIT License file for more information.