Mindspeed Fsdp2 Model Migration logo

Mindspeed Fsdp2 Model Migration

Organization
Ascend
mindspeed-fsdp2-model-migration

用于模型侧迁移到 MindSpeed-MM FSDP2 注册与加载契约。适用于实现模型插件、加载签名兼容、token/embedding 更新与前向兼容时。

Overview

PublisherAscend
Repositoryagent-skills
Skill namemindspeed-fsdp2-model-migration
Stars
54
Forks
4
Bundled files
5
LicenseMulanPSL-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Ascend on GitHub. Read the source before you install it.

Installation

Install the Mindspeed Fsdp2 Model Migration AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Ascend/agent-skills/tree/master/skills/mindspeed-mm-fsdp2-migration/mindspeed-fsdp2-model-migration
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Ascend/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/mindspeed-mm-fsdp2-migration/mindspeed-fsdp2-model-migration .claude/skills/mindspeed-fsdp2-model-migration
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mindspeed Fsdp2 Model Migration in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mindspeed Fsdp2 Model Migration on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mindspeed Fsdp2 Model Migration is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

MindSpeed FSDP2 模型迁移

目标

在满足框架契约的前提下,将模型层迁移到 MindSpeed-MM FSDP2,并保持源模型语义。

适用场景

  • 迁移任务需要在 mindspeed_mm/fsdp/models/ 下创建模型插件。
  • 需要新增或修复 model_id 注册及 ModelHub 兼容性。
  • 需要适配模型加载签名(from_pretrained、_from_config)。

不适用场景

  • 任务是数据预处理或 dataloader 行为调整。
  • 任务仅涉及 YAML 映射。
  • 任务仅为验证阶段问题分诊。

输入

  • 源模型入口文件
  • 目标 model_id
  • 必需的特殊 token 行为
  • 目标配置中的 FSDP2 约束
  • runtime_assets.model_path

输出

  • 模型插件实现
  • 带通过/失败状态的模型迁移检查清单
  • 每一处“非复用改动”的理由说明

必检项

  1. 注册契约:
    • @model_register.register("<model_id>")
  2. 构建契约:
    • from_pretrained 与 ModelArguments 调用链兼容
    • _from_config 路径有效
  3. 语义契约:
    • 源模型需要特殊 token 时,必须保留其处理流程
    • 仅在必要时进行 embedding resize/init
  4. 训练契约:
    • 前向路径可接收 trainer 输入并返回 .loss

防偏差执行协议

  1. 实施前必须完成:
    • 校验 runtime_assets.model_path 存在且可读
    • 对照最相似案例抽取签名模式
  2. 实施后必须产出:
    • model_contract_checklist.md
    • signature_compat_report.md
  3. 失败即停止:
    • from_pretrained 或 _from_config 任一不兼容,禁止继续后续阶段

禁止行为

  • 禁止把 from_pretrained 写成仅单参数签名
  • 禁止仅靠“代码阅读”判定兼容,必须给调用证据
  • 禁止在未确认 token-id 对齐时修改 token 常量
  • 禁止删除源模型关键后处理逻辑而不给出等价替代

实施规则

  • 优先复用源逻辑;仅在框架契约不兼容时做适配。
  • 修改范围仅限模型插件区域。
  • 不引入对源仓包路径的外部硬依赖。
  • 记录每项适配的精确原因。

退出标准

  • 模型可通过 ModelHub 按目标 model_id 构建。
  • 加载签名冲突已解决。
  • 模型侧清单结论均有证据支撑。

渐进式资源

  • checks/model-acceptance.md
  • checks/model-contract-gates.md
  • errors/model-error-dictionary.md
  • errors/triage-severity.md
  • examples/minimal-io.md

仅在验收或错误分诊需要详细判据时读取这些文件。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Mindspeed Fsdp2 Model Migration AI skill do?

用于模型侧迁移到 MindSpeed-MM FSDP2 注册与加载契约。适用于实现模型插件、加载签名兼容、token/embedding 更新与前向兼容时。

Why use Mindspeed Fsdp2 Model Migration on TypingMind?

Because you install it once and use it with any model. Mindspeed Fsdp2 Model Migration is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mindspeed Fsdp2 Model Migration in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Ascend/agent-skills/tree/master/skills/mindspeed-mm-fsdp2-migration/mindspeed-fsdp2-model-migration. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Mindspeed Fsdp2 Model Migration?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mindspeed Fsdp2 Model Migration?

As many as you like. As long as a model supports skills, you can use Mindspeed Fsdp2 Model Migration with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mindspeed Fsdp2 Model Migration AI skill free?

Yes. It is published on GitHub by Ascend under the MulanPSL-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇