一键导入
acquire
Hidden stage for magnetar. Acquire a remote or local model into TASK_DIR/origin without modifying the source.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Hidden stage for magnetar. Acquire a remote or local model into TASK_DIR/origin without modifying the source.
用 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. Compile static ONNX to AXMODEL with Pulsar2 and record compile 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. 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 | acquire |
| description | Hidden stage for magnetar. Acquire a remote or local model into TASK_DIR/origin without modifying the source. |
目标:把 SOURCE 获取到 TASK_DIR/origin/,并识别候选模型文件和项目入口。
TASK_DIR/cache/acquire/,记录来源、时间、命令。git clone --depth=1 SOURCE TASK_DIR/originHF_ENDPOINT=https://hf-mirror.co,用 huggingface_hub.snapshot_download() 下载到 origin/,私有模型读取 HF_TOKENorigin/origin/origin/origin/,扫描候选时重点记录:
source_type 为 "local-onnx" 或 "download-onnx"。*.onnx、*.pt、*.pth、*.safetensors、*.bin、*.pdmodelconfig.json、*.yaml、*.ymlexport.py、tools/export*.py、scripts/export*.pycache/acquire/manifest.json:
sourcesource_typeorigin_pathmodel_file_candidatesexport_script_candidatesreadme_fileshf_endpoint(仅 HuggingFace 来源,必须为 https://hf-mirror.co)hf-mirror;不得直接访问 https://huggingface.co 下载模型文件。HF_ENDPOINT、repo id、revision 和下载命令到 task.md 与 analysis.md。候选主模型文件超过一个且无法按 README 或命名规则判断时,列出候选项并等待用户选择。