원클릭으로
compile
Hidden stage for magnetar. Compile static ONNX to AXMODEL with Pulsar2 and record compile artifacts.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Hidden stage for magnetar. Compile static ONNX to AXMODEL with Pulsar2 and record compile artifacts.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Hidden stage for magnetar. Assemble validated AXMODEL, SDKs, reports, and usage documentation into a customer delivery directory.
Convert remote or local AI models into AXera AXMODEL packages with Python and C++ SDKs for customer delivery. Use when Codex must acquire a model from Git/HuggingFace/URL/local path, export ONNX, compile with Pulsar2, simulate/validate AXMODEL accuracy, optionally run on AX hardware, generate SDKs, or package deployment artifacts.
Hidden stage for magnetar. Export the acquired model to static-shape ONNX, validate it against the source model, and generate model_meta.json plus calibration data.
Hidden stage for magnetar. Acquire a remote or local model into TASK_DIR/origin without modifying the source.
Hidden stage for magnetar. Generate customer-facing Python and C++ inference SDKs from model_meta.json and AXMODEL artifacts.
Hidden stage for magnetar. Ensure Pulsar2 and the chip-specific C++ BSP/cross-compilation toolchain are available for compile and SDK validation.
| name | compile |
| description | Hidden stage for magnetar. Compile static ONNX to AXMODEL with Pulsar2 and record compile artifacts. |
目标:用 Pulsar2 把 export/model.onnx 编译为 compile/model.axmodel,并采集编译效率指标。
进入 COMPILE 前必须确认 export/model.onnx 已为静态 shape。Pulsar2 不接受动态维度——input_shapes 配置无法覆盖 ONNX 图中定义的动态维度名。若模型仍含动态维度,必须退回 EXPORT 阶段完成静态化。
export/model_meta.json 和校准集。compile/pulsar2_config.json,至少明确:
inputoutput_diroutput_nametarget_hardwareinput_shapesquant.input_configsinput_processors"highest_mix_precision": true。
"precision_analysis": true 获取逐层量化精度分布,结果写入 compile/ 目录并引用到 compile_report.md。pulsar2 build 或 Docker 等价命令。
date +%s 差值。compile/compile.log。compile.log 或 build_context.json 提取性能数据:
macs、total macs 关键词或解析 build_context.json 中的 macs 字段。build_context.json 的 build_time 字段读取,无此字段时使用命令计时。du -b compile/model.axmodel 或 stat --format=%s。export/model_meta.json 的 onnx_size_bytes,计算压缩比 = ONNX 大小 / AXMODEL 大小。compile/compile_report.md,至少包含:compile/model.axmodel 存在且非空。compile/compile_report.md 包含 MACs、文件大小、压缩比、编译耗时。