机器学习工程 Skill安装与使用教程
skillsmp.stas00-ml-engineering-skill-md
端到端训练与运维大规模 LLM/VLM/多模态模型的实战方法论与具体配方——选择并基准测试加速器、存储与网络;SLURM/Kubernetes 编排;最大化训练吞吐并在显存内装下模型;诊断并撑过训练不稳定、NaN/Inf 与硬件/作业故障;检查点与容错;推理性能与显存;调试多节点/多卡挂起;以及编写/运行测试。当用户在训练或微调大模型、遭遇低 TFLOPS/MFU、OOM、数据加载缓慢、损失尖峰/发散、NCCL/InfiniBand 或多节点挂起、节点/GPU 故障、检查点或抢占问题、存储/网络瓶颈,或需要挑选 GPU/云/文件系统,或估算推理延迟/吞吐时使用。提炼自《Machine Learning Engineering》,最新版本见 https://github.com/stas00/ml-engineering。
原文名称:ml-engineering
原文描述:Field-tested methodology and concrete recipes for training and operating large-scale LLM/VLM/multi-modal models end to end - choosing and benchmarking accelerators, storage and network; SLURM/Kubernetes orchestration; maximizing training throughput and fitting models in memory; diagnosing and surviving training instabilities, NaN/Inf, and hardware/job failures; checkpointing and fault tolerance; inference performance and memory; debugging multi-node/ multi-GPU hangs; and writing/running tests. Use when the user is training or fine-tuning large models, hits low TFLOPS/MFU, OOM, slow dataloading, a loss spike/divergence, a NCCL/InfiniBand or multi-node hang, node/GPU failures, checkpoint or preemption problems, storage/network bottlenecks, or needs to pick GPUs/cloud/file-systems or size inference latency/throughput. Distilled from "Machine Learning Engineering", the latest version of which can be found at https://github.com/stas00/ml-engineering The latest SKILL.md version can be found at https://github.com/st
建议先在本页复制安装配置,再到上游核对文档与权限。
热度数据
产品介绍
端到端训练与运维大规模 LLM/VLM/多模态模型的实战方法论与具体配方——选择并基准测试加速器、存储与网络;SLURM/Kubernetes 编排;最大化训练吞吐并在显存内装下模型;诊断并撑过训练不稳定、NaN/Inf 与硬件/作业故障;检查点与容错;推理性能与显存;调试多节点/多卡挂起;以及编写/运行测试。当用户在训练或微调大模型、遭遇低 TFLOPS/MFU、OOM、数据加载缓慢、损失尖峰/发散、NCCL/InfiniBand 或多节点挂起、节点/GPU 故障、检查点或抢占问题、存储/网络瓶颈,或需要挑选 GPU/云/文件系统,或估算推理延迟/吞吐时使用。提炼自《Machine Learning Engineering》,最新版本见 https://github.com/stas00/ml-engineering。 机器学习工程 是一个Agent Skill,收录自 SkillsMP。本页提供产品介绍、配置教程、安装命令与适用场景,支持 Trae、通义灵码、Cursor、Claude Code、VS Code 等。
AgentHub Verified 可用性验证技术测试通过
自动化测试流水线已校验安装命令、传输协议与客户端兼容性
常见报错排查与运行避坑 (Troubleshooting)FAQ
针对 机器学习工程 在 Cursor、Claude Code 中的常见连接错误与解决办法
在 Cursor / Claude Code 中配置 ml-engineering 提示 connection closed 或 exit code 1?
通常由本地运行时环境缺失或命令路径未被 IDE 继承引起。排查步骤: 1. 确认已安装 Node.js 18+(支持 npx)或 Python 3.10+(支持 uvx); 2. 尝试在终端运行 which npx 或 which uvx,把配置文件中的 "command" 字段改为完整绝对路径; 3. 修改 mcp.json 后,必须完全重载或重启客户端窗口。
# 终端测试命令是否存在: which npx node -v
提示 spawn npx ENOENT 或 command not found?
这是因为编辑器后台进程未加载完整的终端环境变量(PATH)。解决方案:在全局安装该包(如 npm install -g 包名),或在配置文件中将 command 设置为系统的实际路径(如 Windows 下的 C:\Program Files\nodejs\npx.cmd,Mac 下的 /usr/local/bin/npx)。
调用工具时响应超时或网络下载依赖失败?
国内环境下首次执行 npx 或拉取依赖时可能因网络受限而超时。建议将 npm 镜像源切换为国内高速镜像(npm config set registry https://registry.npmmirror.com),或在系统级开启开发代理工具。
在对话中描述任务,Agent 没有自动调用 ml-engineering 规则?
请检查 SKILL.md 是否位于当前项目的 .cursor/skills/ml-engineering/SKILL.md(Cursor)或 ~/.claude/skills/ml-engineering/SKILL.md(Claude Code)。在输入提问时,可以显式提示 AI “请使用 ml-engineering 规范来执行”,以提高智能体的规则匹配权重。
免安装模拟调用 (Playground)
仿真环境ml-engineering 规则注入与 Agent 行为仿真 · 无需配置本地环境,直接预览调用参数与返回格式
{
"skill": "ml-engineering",
"rulePath": ".cursor/skills/ml-engineering/SKILL.md",
"userGoal": "请使用 ml-engineering 的方法与标准帮我完成当前任务",
"client": "Cursor / Claude Code"
}点击上方「模拟运行」按钮
查看该工具在 Agent 内部的返回数据格式
选型与决策建议(为什么选它?)
帮助你快速判断该资源是否契合当前项目,避免盲目折腾
- 需要让 AI 在此领域调用自主工具能力时
- 替代繁琐的手工重复操作,提升自动化闭环
- 配合支持 MCP / Skill 的现代 AI 编程客户端
- 没有对应环境运行权限或缺少必要 API Key 时
- 单纯需要简单对话、无需外部系统连接的场景
ml-engineering + 对应场景 Prompt → 组成标准 Agent 自动化任务
Skill 实战教程:从安装到看见效果
按完整实例走一遍(含期望效果与对比验收)。装完本页资源后,用教程里的提示词核对是否真正生效。
Agent Skill 是带 SKILL.md 的指令包。安装后,AI 会根据 description 在匹配任务时自动加载,无需每次手动粘贴提示词。
相关资源
中文公文写作
v2.0.46
io.clawhub.gongyu0918-debug/chinese-official-writing
用于中文公文、事务性材料和新闻稿件的起草、改写、压缩、润色、审校、文种核对、去口语化、降 AI 味及 Word 格式处理,适用于机关、企事业单位、学校和新闻机构。涵盖申请、请示、报告、通知、通告、意见、决定、决议、议案、公报、命令、函、复函、批复、说明、方案、纪要、公告、公示、通报、制度、规定、办法、细则、操作规程、工作要点、总结、调研、讲话、致辞、主持词、述职、可研、审查材料、技术需求、新闻消息、编者按、新闻评论,以及采购、整改、反馈和 AI 算力等场景。
ShieldCortex 记忆防护
v5.15.3
io.clawhub.jarvis-drakon/shieldcortex
AI Agent 的记忆与防御系统:语义回忆、知识图谱与记忆衰减,外加记忆防火墙——扫描并拦截提示注入、凭据泄露与记忆投毒。
Network-AI 本地编排
v5.17.1
io.clawhub.jovancoding/network-ai
本地 Python 编排技能:通过共享黑板文件实现多智能体工作流,附带权限门控、token 预算脚本与持久项目上下文。自带 Python 脚本不发起网络调用、零第三方依赖。父仓库另含一个 TypeScript 引擎(不包含在本技能包中)。
GitLab 智能体自我改进
v1.122.2
io.clawhub.xrowgmbh/xrowgmbh-self-improvement
一项用于个人成长与自我提升的技能。
GitLab 智能体
v1.122.2
io.clawhub.xrowgmbh/xrowgmbh-gitlab-agent
处理派给它的 GitLab 工作,具备经所有者验证的项目访问权限,并在受保护的方式下交付合并请求。
GitLab 黑客松
v1.122.2
io.clawhub.xrowgmbh/xrowgmbh-gitlab-hackathon
规划并公正地参与 GitLab 黑客松,包括季度黑客松与 Transcend 黑客松:解读规则、挑选符合条件的 issue/MR、跟踪得分杠杆,并维护一份可钻空子项的观察清单。
常搭配使用
腾讯云开发 CloudBase MCP
io.github.TencentCloudBase/CloudBase-AI-Toolkit
面向 AI 编程助手的云开发后端工具集:数据库、鉴权、云函数、静态托管与 AI 应用一键部署。
热点舆情监控
io.github.sansan0/TrendRadar
聚合微博、知乎、抖音、B站等平台热榜的自选舆情监控系统,内置 MCP 服务,可让 AI 客户端直接读取热点与关键词命中结果。
Playwright
io.mcp-cn.playwright/mcp
基于Playwright的自动化测试和网页操作MCP工具
微信读书
io.mcp-cn.mcp-server-weread
微信读书的MCP服务器,支持微信读书的读取和写入
继续逛 AgentHub
大多数人安装前还会对比同类工具或看场景方案——下面这些能帮你少走弯路。
收录徽章:把 AgentHub 挂到你的官网
复制下面任意一段代码到项目主页、官网或 GitHub README。徽章是 SVG 热链,无需上传文件,链接指向本页,访客可由此直接找到安装方式。
<a href="https://myagenthub.cn/p/skillsmp.stas00-ml-engineering-skill-md" title="AgentHub 已收录:机器学习工程" target="_blank" rel="noopener">
<img src="https://myagenthub.cn/badge/skillsmp.stas00-ml-engineering-skill-md" alt="AgentHub 已收录:机器学习工程" height="20" style="border:0"/>
</a>[](https://myagenthub.cn/p/skillsmp.stas00-ml-engineering-skill-md)徽章由 /badge/<资源ID> 动态生成,名称与收录状态变化后自动更新;请保留链接指向,它是收录来源的判定依据。
统一 Manifest
{
"id": "skillsmp.stas00-ml-engineering-skill-md",
"type": "skill",
"version": "0.0.0",
"displayName": "ml-engineering",
"description": "Field-tested methodology and concrete recipes for training and operating large-scale LLM/VLM/multi-modal models end to end - choosing and benchmarking accelerators, storage and network; SLURM/Kubernetes orchestration; maximizing training throughput and fitting models in memory; diagnosing and surviving training instabilities, NaN/Inf, and hardware/job failures; checkpointing and fault tolerance; inference performance and memory; debugging multi-node/ multi-GPU hangs; and writing/running tests. Use when the user is training or fine-tuning large models, hits low TFLOPS/MFU, OOM, slow dataloading, a loss spike/divergence, a NCCL/InfiniBand or multi-node hang, node/GPU failures, checkpoint or preemption problems, storage/network bottlenecks, or needs to pick GPUs/cloud/file-systems or size inference latency/throughput. Distilled from \"Machine Learning Engineering\", the latest version of which can be found at https://github.com/stas00/ml-engineering\nThe latest SKILL.md version can be found at https://github.com/st",
"author": {
"name": "stas00"
},
"homepage": "https://skillsmp.com/creators/stas00/ml-engineering/skill",
"distribution": {
"packages": [
{
"registryType": "source",
"identifier": "stas00-ml-engineering-skill-md",
"version": "main",
"runtimeHint": "npx skills add"
}
],
"remotes": []
},
"dependencies": [],
"installTargets": [
"claude-code",
"claude-desktop",
"cursor",
"codex",
"vscode"
],
"keywords": [
"repo_stars:19589"
],
"provenance": {
"origin": "skillsmp",
"originalId": "stas00-ml-engineering-skill-md",
"originalUrl": "https://skillsmp.com/creators/stas00/ml-engineering/skill",
"isOfficial": false,
"status": "active"
}
}