J6 Plugin Set March logo

J6 Plugin Set March

Organization
HorizonRobotics
j6-plugin-set-march

在适配 horizon_plugin_pytorch 的过程中,为脚本或入口添加 march 设置逻辑。

Overview

PublisherHorizonRobotics
RepositoryOE-Skills
Skill namej6-plugin-set-march
Stars
28
Forks
4
Bundled files
1
LicenseApache-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.

  • 1 bundled files

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

  • Open source

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

Installation

Install the J6 Plugin Set March 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/HorizonRobotics/OE-Skills/tree/main/horizon/skills/plugin/j6-plugin-adaptation/j6-plugin-set-march
  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/HorizonRobotics/OE-Skills.git /tmp/OE-Skills
mkdir -p .claude/skills
cp -r /tmp/OE-Skills/horizon/skills/plugin/j6-plugin-adaptation/j6-plugin-set-march .claude/skills/j6-plugin-set-march
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable J6 Plugin Set March 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 J6 Plugin Set March 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 J6 Plugin Set March 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.

为 Horizon 量化/部署流程设置 march(先询问用户版)

目标

在接入 horizon_plugin_pytorch 的训练、推理、校准、导出或编译流程中,显式设置当前使用的 BPU march。

本 Skill 强约束:

  • 先询问用户想用哪个 march:只有在用户明确给出 march 后,才插入对应的 set_march(...) 代码。
  • 不擅自猜具体 march:如果用户没有说明,只能提示可选值并请求确认;不能默认写死成 NASH_E / NASH_M 等。
  • 只做 march 设置相关改动:不顺带改 prepare、qconfig、fake quantize、dynamic block 或其他量化逻辑。
  • 优先放在脚本入口或模型构建前:通常应在模型构建、prepare、train/predict/export 之前调用。

理解 march.py 的核心用法

1) march 枚举值

python
horizon.march.March.NASH_E
horizon.march.March.NASH_M
horizon.march.March.NASH_P
horizon.march.March.NASH_B

2) 设置 march

python
horizon.march.set_march(horizon.march.March.NASH_E)

标准改法(通用模板)

1) 先向用户确认 march

在执行改动前,必须询问:

  • 你想使用哪个 march?

推荐给用户的可选项表达:

  • horizon.march.March.NASH_E
  • horizon.march.March.NASH_P
  • horizon.march.March.NASH_B

如果用户没有给出明确 march:

  • 不要直接修改代码。
  • 先停在方案说明阶段,等待用户确认具体 march。

2) 增加 import

如果文件里还没有 horizon_plugin_pytorch 导入,先补:

python
import horizon_plugin_pytorch as horizon

如果文件已经导入 horizon_plugin_pytorch,则直接复用,不重复导入。

3) 在合适位置插入 set_march

通常插入位置优先级:

  1. 脚本 main() / if __name__ == "__main__": 中,且在模型构建前
  2. 推理/训练/导出入口函数开头
  3. 若工程统一从配置读取,则在读取完 config 后、build model 前
python
import horizon_plugin_pytorch as horizon


def main():
    horizon.march.set_march(horizon.march.March.NASH_E)
    model = build_model()
    ...

适用场景

这个 Skill 适合以下需求:

  • 适配 horizon_plugin_pytorch 时,需要补 march 设置
  • 训练/校准/验证/导出脚本里缺少 horizon.march.set_march(...)
  • 需要把用户指定的 march 显式写进入口逻辑
  • 需要统一脚本行为,避免依赖进程中的全局残留 march

不适用场景

以下情况不属于本 Skill 的直接处理范围:

  • 给模型做 prepare(...)
  • 调整 fake quantize 状态
  • 插入 QuantStub / DeQuantStub
  • 处理动态控制流 / dynamic block
  • 根据不同 march 大规模改模型实现细节

如果用户同时提这些需求,应分步处理,march 设置仅负责其中一环。

常见插入位置建议

训练/推理/导出脚本

典型结构:

python
def main():
    args = parse_args()
    cfg = Config.fromfile(args.config)
    horizon.march.set_march(horizon.march.March.NASH_E)
    model = build_from_registry(cfg.model)

注意:

  • set_march(...) 一般应在 build_model() / prepare() / export() 之前。
  • 如果后续代码依赖 get_march() 或 with_march,更要提前设置。

单元测试/最小复现脚本

典型结构:

python
import horizon_plugin_pytorch as horizon

horizon.march.set_march(horizon.march.March.NASH_E)

用于保证测试环境稳定。

注意事项

1) 不要重复设置多个互相矛盾的 march

如果文件里已经存在:

python
horizon.march.set_march(...)

先判断是否需要修改已有逻辑,而不是再追加一条新的。

2) 不要把 skill 变成“自动选 march”

本 Skill 的要求是:询问用户想用哪个 march。

因此 agent 在实际使用该 Skill 时,应该:

  • 先向用户确认 march
  • 再执行代码改动

而不是擅自从上下文猜一个。

快速自检清单

  • 已确认用户期望的 march。
  • 文件中存在 import horizon_plugin_pytorch as horizon。
  • 在模型构建/prepare/export 前调用了 horizon.march.set_march(...)。
  • 没有新增重复或冲突的 set_march(...)。
  • 如果使用默认值,该默认值是用户明确接受的,而不是 agent 擅自决定的。

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 J6 Plugin Set March AI skill do?

在适配 horizon_plugin_pytorch 的过程中,为脚本或入口添加 march 设置逻辑。

Why use J6 Plugin Set March on TypingMind?

Because you install it once and use it with any model. J6 Plugin Set March 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 J6 Plugin Set March in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/HorizonRobotics/OE-Skills/tree/main/horizon/skills/plugin/j6-plugin-adaptation/j6-plugin-set-march. 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 J6 Plugin Set March?

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 J6 Plugin Set March?

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

Is the J6 Plugin Set March AI skill free?

Yes. It is published on GitHub by HorizonRobotics under the Apache-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 👇