协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
relax-compile【开发与工程】Guides TVM Relax IR construction/import, optimization pipelines, tvm.compile, executable export/load, and custom codegen boundaries.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task involves high-level TVM Relax IR, model import,
optimization pipelines, tvm.compile, VM execution, or deployable executable
artifacts.
../install-build/SKILL.md.relax.get_pipeline("zero")
is a safe baseline for tutorial-style CPU workflows; larger model and dlight
flows need backend-specific checks.tvm.compile(mod, target, relax_pipeline=..., tir_pipeline=...).relax.VirtualMachine or export/load it for a
deployment workflow.references/troubleshooting.md when the
failure is about target mismatch, optional frontend dependencies, export/load,
or pass/codegen boundaries.llvm. Run scripts/relax_compile_smoke.py
before diagnosing a larger model.../s-tir-tuning/SKILL.md.../rpc-deployment/SKILL.md for upload/load/run
and tracker/server details.The verified top-level compile entry point is:
tvm.compile(
mod,
target=None,
*,
relax_pipeline="default",
tir_pipeline="default",
)
It accepts a Relax/TIR IRModule or TIRx PrimFunc and returns a runtime
Executable. The pipeline arguments accept a named pipeline, pass object, or
callable depending on the workflow.