deepep-to-cam-converter

Migrate DeepEP MoE dispatch and combine implementations to Ascend CAM operators.

2.5k|422|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/openJiuwen-ai/jiuwenswarm --skill deepep-to-cam-converter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deepep-to-cam-converter
Source: https://github.com/openJiuwen-ai/jiuwenswarm/tree/main/jiuwenswarm/resources/agent/workspace/skills/deepep-to-cam-converter
Command: npx skills add https://github.com/openJiuwen-ai/jiuwenswarm --skill deepep-to-cam-converter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

DeepEP-based Mixture-of-Experts (MoE) code is difficult to port to Huawei Ascend CAM operators safely and correctly, especially when communication domains and operator constraints must match real runtime values.

Core Features & Use Cases

  • DeepEP MoE dispatch/combine detection: Scans for DeepEP imports and dispatch/combine patterns to confirm the code path is eligible for migration.
  • Runtime-parameter constraint verification: Enforces that operator constraints are validated using actual runtime values (not argparse defaults).
  • NCCL→HCCL and CUDA→NPU migration: Converts communication backend and device/tensor calls to the target Ascend execution environment.
  • A2/A3 operator targeting with interactive mode selection: Guides environment selection (A2 vs A3) and, in ambiguous A3 cases, forces the user to choose between compatible CAM modes.
  • Safety-first unsupported-feature handling: Produces a feature support report and asks the user whether to stop, partially migrate, or fully delete unsupported code paths.

Quick Start

Use this skill to convert a DeepEP MoE project into Ascend CAM operators by migrating dispatch & combine logic and communication/device handling for NCCL/HCCL and CUDA/NPU.

Frequently Asked Questions about deepep-to-cam-converter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate DeepEP MoE dispatch and combine implementations to Ascend NPU?

To migrate DeepEP MoE to Ascend NPU, convert dispatch and combine implementations to CAM operators while adapting CUDA to NPU and NCCL to HCCL. This process enforces feature support checks and validates operator constraints using actual runtime values to preserve correctness.

Does DeepEP MoE migration to CAM operators support both A2 and A3 environments?

Yes, DeepEP MoE migration to CAM operators supports both A2 and A3 Ascend environments. It guides environment selection interactively and forces the user to choose between compatible CAM modes specifically in ambiguous A3 cases to ensure correct operator targeting.

What is the best way to convert NCCL to HCCL for MoE codebases?

The best way to convert NCCL to HCCL for MoE codebases is to scan for DeepEP dispatch and combine patterns, then transform communication backend calls alongside CUDA to NPU device adaptation while validating operator constraints against real runtime values.

How are operator constraints validated during DeepEP MoE code transformation?

Operator constraints during DeepEP MoE code transformation are validated using actual runtime values rather than argparse defaults. This ensures that communication domain and operator constraint matches reflect the real execution environment, preventing silent correctness failures.

What happens to unsupported DeepEP features when migrating to Ascend CAM?

When unsupported DeepEP features are encountered during Ascend CAM migration, the process generates a feature support report and asks the user whether to stop, partially migrate, or fully delete the unsupported code paths for safety.

Why does my DeepEP MoE code fail correctness checks after porting to Ascend NPU?

DeepEP MoE code fails correctness checks after porting to Ascend NPU if operator constraints are validated against argparse defaults instead of actual runtime values. Correct migration requires enforcing DeepEP feature support checks and matching real runtime parameters.