ms-swift
AGENTS.md16k starsChanged 10 months agoApache-2.0View on GitHub
These instructions apply to all AI-assisted contributions to modelscope/ms-swift. Breaching these guidelines may result in your PR being closed. Read CONTRIBUTING.md (Chinese: CONTRIBUTING_CN.md) first. Before proposing a PR, check whether an open PR already addresses the same fix: Adapted from the vLLM project's AGENTS.md.
- Installs packages
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about modelscope/ms-swift
- Morgans Code“Qwen 3.8 35B-A3B: The Local Model Everyone Wants?”YouTube · Aug 19, 2026 · 11k views
- Fahd Mirza“Install ModelScope Swift Locally: Train, Fine-Tune, Evaluate, Deploy LLMs Easily”YouTube · Jul 6, 2025 · 1.8k views
- QwenLM/Qwen3-VL-Embedding“🚀 Finetuning support”GitHub · Jan 9, 2026 · 36 reactions
- fla-org/flash-linear-attention“[RFC] Roadmap: NPU support for flash-linear-attention”GitHub · Jun 9, 2026 · 17 reactions
- linkedin/Liger-Kernel“[NPU Roadmap, Updated to 2026-Q4] NPU support for Liger-Kernel”GitHub · Dec 8, 2025 · 17 reactions
The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 53
Talked about on GitHub and YouTube (53 times).
On GitHub · 50
- Jan 9, 2026🚀 Finetuning support — QwenLM/Qwen3-VL-Embedding36 reactions · 3 comments
- Jun 9, 2026[RFC] Roadmap: NPU support for flash-linear-attention — fla-org/flash-linear-attention17 reactions · 13 comments
- Dec 8, 2025[NPU Roadmap, Updated to 2026-Q4] NPU support for Liger-Kernel — linkedin/Liger-Kernel17 reactions · 33 comments
- Oct 30, 2024PaddleMIX 快乐开源活动 (2024 Q4) — PaddlePaddle/PaddleMIX12 reactions · 64 comments
- Oct 21, 2025Deepseek-OCR 微调支持 — deepseek-ai/DeepSeek-OCR8 reactions · 3 comments
45 more on GitHub
- Oct 24, 2025💡 ms-swift has supported inference, deployment, and fine-tuning of the PaddleOCR-VL model — PaddlePaddle/PaddleOCR5 reactions · 2 comments
- Jul 2, 2025🚀[Fine-tuning] ERNIE-4.5-MoE Megatron Training Implementation and Best Practices👋 — PaddlePaddle/ERNIE4 reactions · 2 comments
- Apr 30, 2026[model] Support gemma4 — modelscope/mcore-bridge3 reactions · 6 comments
- Feb 16, 2025Support GRPO — InternLM/lmdeploy3 reactions · 12 comments
- Jul 29, 2025👋 使用megatron-swift微调GLM4.5最佳实践 — zai-org/GLM-4.52 reactions · 3 comments
- Sep 7, 2024🍭Fine-tuning support for mPLUG-Owl3 — X-PLUG/mPLUG-Owl2 reactions · 1 comment
- May 20, 2026[model] Support deepseek-v4 — modelscope/mcore-bridge1 reaction · 4 comments
- May 12, 2026[BUG] peft 0.19 target_modules (str) use `set` — huggingface/peft1 reaction · 3 comments
- Dec 23, 2025ms-swift已适配MiniMind2 — jingyaogong/minimind1 reaction · 6 comments
- Aug 12, 2025[Bugfix] CUDA pluggable allocator callback lifetime in CuMem (“deallocating None”) — vllm-project/vllm1 reaction · 8 comments
- Apr 29, 2025🚀[Fine-tuning] Qwen3-MoE Megatron Training Implementation and Best Practices👋 — QwenLM/Qwen31 reaction · 6 comments
- Nov 11, 2026[v5] 修复流式 rollout 控制阻塞并限制训练批次交接 — modelscope/twinkle0 reactions
- Nov 9, 2026[v5] 优化 log-prob、colocated vLLM 权重发布与采样开销 — modelscope/twinkle0 reactions
- Nov 8, 2026§C: strictly free manual Qwen3-VL weight-training groundwork — kaministrator999-ui/Swrlzkamico0 reactions
- Nov 7, 2026fix: preserve trained letter bias in decision readouts — StartLuxLabs/StartLux-Decision0 reactions
- Nov 3, 2026[NPU] Support DeepSeek-V4.1 with shared Engram/PLE CPU offload — modelscope/mcore-bridge0 reactions
- Nov 2, 2026[v5] 修复 Qwen3.5 显存估算、自适应采样准入和扩容负载计数 — modelscope/twinkle0 reactions
- Oct 28, 2026[v5] Fix checkpoint writes and RL logging — modelscope/twinkle0 reactions
- Oct 18, 2026Review candidate: github.com/modelscope/ms-swift — reacher-z/Awesome-CUA0 reactions
- Oct 17, 2026Reduce peak memory in unfused absorbed DSA — NVIDIA/Megatron-LM0 reactions · 1 comment
- Sep 11, 2026[Fix] Handle CMYK and other PNG-incompatible base64 image modes — open-compass/VLMEvalKit0 reactions
- Sep 9, 2026[NPU] Adapt LoRA and expert handling to Megatron Core 0.18 and TENPU — modelscope/mcore-bridge0 reactions
- Sep 9, 2026[gkd recipe] jsd mode silently clamps beta to (1e-6, 1-1e-6): beta: 1.0 yields a ~0 loss with no warning — verl-project/verl-recipe0 reactions
- Sep 1, 2026[Feature Request] Add text-only GRPO support for Qwen3.8-Flash-Next (qwen4_exp) — verl-project/verl0 reactions
- Aug 10, 2026[bugfix] fix GDN sequence parallel and CP-aware cu_seqlens resolution — modelscope/mcore-bridge0 reactions · 1 comment
- Aug 6, 2026Support local and unfused transformer paths and LoRA — modelscope/mcore-bridge0 reactions
- Aug 1, 2026fix(hm-swift): update dependency ms-swift to v4.3.2 — hongbo-miao/hongbomiao.com0 reactions · 4 comments
- Jul 22, 2026Minor changes to work with PyTorch 2.12 — facebookresearch/spidr-adapt0 reactions · 2 comments
- Jul 7, 2026Model accuracy alignment — PFCCLab/ms-swift0 reactions · 1 comment
- Jun 30, 2026docs: Add community standards and fix documentation links — iflytek/domux0 reactions
- Jun 20, 2026Research Update Enhanced src/pentesting-web/deserialization/... — HackTricks-wiki/hacktricks0 reactions · 1 comment
- Jun 17, 2026fix(hm-swift): update dependency ms-swift to v4.3.0 — hongbo-miao/hongbomiao.com0 reactions · 2 comments
- Jun 7, 2026fix(hm-swift): update dependency ms-swift to v4.2.3 — hongbo-miao/hongbomiao.com0 reactions · 2 comments
- Jun 5, 2026fix(hm-swift): update dependency ms-swift to v4.2.2 — hongbo-miao/hongbomiao.com0 reactions · 2 comments
- Jun 5, 2026[Add] ms-swift (modelscope/ms-swift) — PyTorchKR/landscape0 reactions
- May 14, 2026Add OpenRLHF, ms-swift, and Typesense to catalog — nimit2801/Agentic-AI-For-Good0 reactions · 2 comments
- May 10, 2026fix(hm-swift): update dependency ms-swift to v4.1.3 — hongbo-miao/hongbomiao.com0 reactions · 2 comments
- Apr 26, 2026fix(hm-swift): update dependency ms-swift to v4.1.2 — hongbo-miao/hongbomiao.com0 reactions · 2 comments
- Apr 21, 2026fix(hm-swift): update dependency ms-swift to v4.1.1 — hongbo-miao/hongbomiao.com0 reactions · 2 comments
- Apr 7, 2026fix(hm-swift): update dependency ms-swift to v4.1.0 — hongbo-miao/hongbomiao.com0 reactions · 2 comments
- Apr 5, 2026fix(hm-swift): update dependency ms-swift to v4.0.4 — hongbo-miao/hongbomiao.com0 reactions · 2 comments
- Mar 29, 2026fix(hm-swift): update dependency ms-swift to v4.0.3 — hongbo-miao/hongbomiao.com0 reactions · 2 comments
- Mar 26, 2026update env to use pytorch 2.8 — mvp-ai-lab/mvp-engine0 reactions · 1 comment
- Mar 15, 2026fix(hm-swift): update dependency ms-swift to v4.0.2 — hongbo-miao/hongbomiao.com0 reactions · 3 comments
- Mar 10, 2026fix(hm-swift): update dependency ms-swift to v4.0.1 — hongbo-miao/hongbomiao.com0 reactions · 3 comments
On YouTube · 3
- Aug 19, 2026Qwen 3.8 35B-A3B: The Local Model Everyone Wants? — Morgans Code11k views · 51 comments
- Jul 6, 2025Install ModelScope Swift Locally: Train, Fine-Tune, Evaluate, Deploy LLMs Easily — Fahd Mirza1.8k views · 4 comments
- Oct 16, 2026SWIFT Scalable lightWeight Infrastructure for Fine Tuning — RandomTechAce7 views
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,542 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
If this is a first-time contribution to ms-swift, open an issue first (using the issue templates).
- Distinctive: line 22
Before proposing a PR, check whether an open PR already addresses the same fix:
- Distinctive: line 30
If an open PR already addresses the issue, do not open another one.
- Distinctive: line 31
If your approach is materially different, explain the difference in the issue first.
- Distinctive: line 35
Do not open one-off PRs for tiny edits (single typo, isolated style change, "theoretical bug" without a real usage path).
- Very specific: line 41
Test commands run and results.
- Distinctive: line 43
If you cannot explain how the change works and why it is correct, do not submit it — maintainers may ask.
- Distinctive: line 47
If the work is duplicate or trivial busywork, do not proceed.
- Very specific: line 53
Docs: when user-facing behavior or APIs change, update both docs trees (English docs/source_en/, Chinese docs/source/) and keep paired …
- Distinctive: line 54
Commit attribution: when an AI tool contributed non-trivially, add attribution trailers such as:
- Very specific: line 63
Editing these instructions: if a requested task conflicts with these rules, stop and explain the conflict — do not edit this file, …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Instructions for ms-swift
These instructions apply to all AI-assisted contributions to
modelscope/ms-swift. Breaching these guidelines may result in your PR being closed. ReadCONTRIBUTING.md(Chinese:CONTRIBUTING_CN.md) first.
1. Contribution Policy (Mandatory)
Human-submitted PRs
- Pure code-agent PRs are not allowed. A human submitter must understand and defend the change end-to-end.
- The pull request must be created and submitted by a human — never by an agent or an automated tool. The submission step always requires human involvement.
- The submitting human must review every changed line and run the relevant tests before submitting.
Issue first, then PR
- Link the related issue in the PR description if there is one (e.g.
Fixes #123for bug fixes,Refs #123for features/RFCs). - If this is a first-time contribution to ms-swift, open an issue first (using the issue templates). PRs from first-time contributors that do not link an issue may be closed directly.
Duplicate-work checks
Before proposing a PR, check whether an open PR already addresses the same fix:
gh issue view <issue-number> --repo modelscope/ms-swift --comments
gh pr list --repo modelscope/ms-swift --state open --search "<issue-number> in:body"
gh pr list --repo modelscope/ms-swift --state open --search "<short area keywords>"- If an open PR already addresses the issue, do not open another one.
- If your approach is materially different, explain the difference in the issue first.
No low-value busywork PRs
- Do not open one-off PRs for tiny edits (single typo, isolated style change, "theoretical bug" without a real usage path). Bundle mechanical cleanups into a systematic change, or open an issue to discuss first.
Accountability
- PR descriptions for AI-assisted work must include:
- The repository's PR template, filled in (
.github/PULL_REQUEST_TEMPLATE.md: PR type, linked issue, checklist). - Test commands run and results; reproduction or experiment results when behavior changes (see
## Experiment resultsin the template). - A clear statement that AI assistance was used.
- The repository's PR template, filled in (
- If you cannot explain how the change works and why it is correct, do not submit it — maintainers may ask.
Fail-closed behavior
- If the work is duplicate or trivial busywork, do not proceed. Return a short explanation of what is missing instead of opening a PR.
2. Development Workflow
- Environment: develop against the repository checkout, not the released package — from the repo root run
pip install -e .(oruv pip install -e . --torch-backend=auto), then install the test and lint dependencies:pip install -r requirements/tests.txt. - Lint (required):
pre-commit run --all-files— fix any reported errors until all checks pass (the CI lint job runs the same command). - Docs: when user-facing behavior or APIs change, update both docs trees (English
docs/source_en/, Chinesedocs/source/) and keep paired top-level files in sync (README.md/README_CN.md). Commit attribution: when an AI tool contributed non-trivially, add attribution trailers such as:
Co-authored-by: GitHub Copilot Co-authored-by: Claude
3. Policy Maintenance
- Editing these instructions: if a requested task conflicts with these rules, stop and explain the conflict — do not edit this file,
CONTRIBUTING.md/CONTRIBUTING_CN.md, or the PR template to work around them. Changes to these files must go through normal human PR review.
Acknowledgements
Adapted from the vLLM project's AGENTS.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

