lmops
Route LMOps paper-code workflows for prompt optimization, retrieval, adaptation, distillation, experiential learning, RAG, and LLM acceleration.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- lmops
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Route LMOps paper-code workflows for prompt optimization, retrieval, adaptation, distillation, experiential learning, RAG, and LLM acceleration.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/project-index.md4.8 KB
- 参考文档references/repo-provenance.md4.0 KB
- 参考文档references/repo-routing-metadata.json543 B
- 参考文档references/troubleshooting.md4.8 KB
- 脚本scripts/check_lmops_checkout.py6.5 KB
03 SKILL.md 正文
LMOps
Use this repo skill when the user asks about the Microsoft LMOps repository or its paper-code projects for prompt intelligence, in-context learning, LLM adaptation, data selection, distillation/post-training, experiential learning, retrieval-augmented generation, or reference-based acceleration.
This skill is a safe operating map, not a claim that paper-scale GPU training was run during skill creation. It emphasizes routing, command planning, input validation, prerequisites, and troubleshooting before a later Researcher attempts expensive execution.
First routing pass
- Identify the named LMOps project or task shape.
- If the user has a local LMOps checkout, optionally run
scripts/check_lmops_checkout.pyagainst their checkout to verify which project directories are present. The helper is read-only and does not import repo code. - Choose the nearest sub-skill:
sub-skills/prompt-optimization/SKILL.mdfor ProTeGi automatic prompt optimization and Promptist text-to-image prompt rewriting/training planning.sub-skills/example-retrieval/SKILL.mdfor UPRISE, SE2, LLM Retriever, CED-ICL, Structured Prompting, and Understand ICL.sub-skills/adaptation-and-training/SKILL.mdfor AdaptLLM, Instruction Pre-Training, Data Selection via Optimal Control, ResLoRA, and Learning Law.sub-skills/distillation-and-post-training/SKILL.mdfor MiniLLM, DPKD, and Tuna.sub-skills/rl-experiential-learning/SKILL.mdfor OEL, OPCD, LLM-as-a-Coach, GAD, and OPO.sub-skills/rag-and-acceleration/SKILL.mdfor CoRAG and LLMA.
- Read
references/project-index.mdwhen the request names a paper, project acronym, or source area but the task family is unclear. - Read
references/troubleshooting.mdbefore turning a paper workflow into executable commands. Many LMOps workflows require old dependency stacks, large model/data downloads, credentials, Docker/Ray/vLLM services, or multi-GPU hardware.
Root-level facts to preserve
- LMOps is a collection of independent research-code projects, not one installable root Python distribution.
- A single Python environment cannot truthfully validate every subproject. Treat each execution request as a project-specific environment plan.
- Creation-time inspection used static source/API parsing and safe bundled helper checks. End-to-end GPU, model-download, API-scoring, server, and training workflows are documented but not native-executed by this generated skill.
- Do not paste API keys, W&B keys, Hugging Face tokens, OpenAI keys, or private cache paths into commands, logs, config files, or generated plans.
- Do not run shell launchers, Docker setup, Ray clusters, vLLM servers, downloads, or training jobs unless the user explicitly asks and the required environment and budget are present.
Bundled root references and scripts
references/project-index.md: project/acronym-to-sub-skill map and high-level workflow inventory.references/troubleshooting.md: shared install, dependency, credential, hardware, data, service, and staleness troubleshooting.references/repo-provenance.md: source snapshot and evidence paths for refresh decisions.references/repo-routing-metadata.json: structured import metadata for managedrepo-skills-router.scripts/check_lmops_checkout.py: read-only checkout structure checker and sub-skill router.
Safe checkout check
When a user provides a checkout, run the bundled helper rather than assuming every paper directory is present:
python scripts/check_lmops_checkout.py --repo-root /path/to/LMOps --json
The helper only checks names and expected files. It does not import source modules, execute scripts, download data, or modify the checkout.
Verification and import status
This runtime skill is staged as a generated repo skill. Verification artifacts are kept outside the runtime tree. The user explicitly requested not to import, so do not run the managed repo-skill importer unless a later user instruction changes that decision after verification.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).