external-gitcode-ascend-mindspeed-fsdp2-data-migration

Skill for migrating data preprocessing and data-loading contracts to MindSpeed-MM FSDP2. Used to implement dataset registration, preprocessing reuse, collate behavior, and input-field compatibility during migration, ensuring data processing and loading contracts conform to MindSpeed-MM FSDP2 requirements.

Last repository push
GitHub Stars
187
Forks
67
Issues / PRs
15

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "external-gitcode-ascend-mindspeed-fsdp2-data-migration" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b93f6c9196f9f0a3530ba5f4e63b04303f4c68fb80ae1f23a99f3f459e068252. Verify the upstream source and version against https://github.com/ascend-ai-coding/awesome-ascend-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Skill for migrating data preprocessing and data-loading contracts to MindSpeed-MM FSDP2. Used to implement dataset registration, preprocessing reuse, collate behavior, and input-field compatibility during migration, ensuring data processing and loading contracts conform to MindSpeed-MM FSDP2 requirements.

0 Downloads

Introduction source: third_party · ascend-ai-coding · 0.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: external-gitcode-ascend-mindspeed-fsdp2-data-migration
description: 用于将数据预处理与数据加载契约迁移到 MindSpeed-MM FSDP2。适用于实现数据集注册、预处理复用、collate 行为与输入字段兼容时。
original-name: mindspeed-fsdp2-data-migration
synced-from: https://gitcode.com/Ascend/agent-skills
synced-date: '2026-05-26'
synced-commit: 1f7666e7768a0ceb21bb1d40ce4b5179fcb6f1d6
license: UNKNOWN

MindSpeed FSDP2 数据迁移

目标

将源数据集逻辑迁移到 MindSpeed-MM FSDP2 数据插件结构中,保持预处理语义并确保 trainer/模型输入兼容。

适用场景

  • 迁移任务需要在 mindspeed_mm/fsdp/data/ 下创建数据插件。
  • 需要复用源预处理函数或进行最小化适配。
  • 需要实现 dataset_type 注册、__getitem__ 与 collate_fn。

不适用场景

  • 任务是模型加载或模型注册。
  • 任务仅做配置映射且不涉及数据行为变更。
  • 任务是最终验证门禁执行。

输入

  • 源数据集入口文件
  • 目标 dataset_type
  • 预期模型输入字段
  • 数据与路径格式假设
  • runtime_assets.dataset_path

输出

  • 数据插件实现
  • 带通过/失败状态的数据迁移检查清单
  • 对“非直接拷贝改动”的适配理由

必检项

  1. 注册契约:
    • @data_register.register("<dataset_type>")
  2. 数据契约:
    • __getitem__ 返回模型前向所需字段
    • collate_fn 能安全处理变长 batch
  3. 复用契约:
    • 兼容时应优先复用源预处理函数
  4. 稳健性契约:
    • 安全处理路径类型变体(str、list[str])
    • 对无效 schema 假设抛出清晰错误

防偏差执行协议

  1. 实施前必须完成:
    • 校验 runtime_assets.dataset_path 存在且可读
    • 抽样读取前 N 条样本,确认 schema 字段存在
  2. 实施后必须产出:
    • dataset_schema_report.md
    • fields_contract_report.md
  3. 失败即停止:
    • __getitem__ 字段不全或 collate 崩溃时,禁止进入配置/验证阶段

禁止行为

  • 禁止把路径类型假设为仅 str
  • 禁止静默吞掉 schema 错误
  • 禁止删除模态关键字段(pixel_values、image_flags 等)而不声明
  • 禁止以“样例数据通过”替代“真实路径抽样验证”

实施规则

  • 先拷贝源仓核心预处理逻辑。
  • 适配范围仅限导入、注册、字段映射和契约对齐。
  • 不得静默丢弃模态关键字段。
  • 明确记录每个函数不能直接复用的原因。

退出标准

  • 数据集可通过 build_mm_dataset 构建。
  • 数据字段与 collate 输出符合模型预期。
  • 数据侧清单结论均有证据支撑。

渐进式资源

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

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

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value62/100

Highlights

  • 针对 MindSpeed-MM FSDP2 数据迁移提供完整契约规范,功能闭环清晰
  • 明确区分适用与不适用场景,边界定义良好
Trigger Precision85/100

Highlights

  • 触发词覆盖数据集注册、预处理复用、collate 行为兼容等核心场景
  • 不适用场景列举清晰,减少误触风险
Structure and Standards78/100

Areas to improve

  • 缺少 When to Use/示例章节 Reported severity: Minor

    文档结构完整但未显式命名 When to Use 章节,且未提供具体代码示例

    Recommendation: 建议补充 When to Use 章节命名,并在主文档或 examples 目录下提供端到端迁移示例

Highlights

  • Phase/步骤清晰,包含防偏差协议与退出标准
  • frontmatter 完整,单文件长度合规
Execution Reliability82/100

Areas to improve

  • 极端异常未覆盖 Reported severity: Minor

    未明确说明源预处理函数不存在或目标路径不可写等极端异常的处理方式

    Recommendation: 建议在防偏差协议中补充对源文件可读性和目标路径可写性的前置校验

Highlights

  • 工具来源明确,参数与契约定义清晰
  • 覆盖主要异常场景,具备失败即停止机制
Evidence Verifiability (mean of the first four)77/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • gitcode.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.