Skip to content
Back to skills

Tvm

ASecurity

"Guides Apache TVM install/build, Relax compilation, TIRx kernel

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
devopspythonbashapidatabasefrontendbackend

Works with

  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill tvm --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tvm?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tvm
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-tvm/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-tvm)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tvm
description: "Guides Apache TVM install/build, Relax compilation, TIRx kernel
  authoring, S-TIR tuning, and RPC deployment workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Apache TVM Repo Skill

Use this skill when a task involves Apache TVM as a machine-learning compiler
stack: installing or building TVM, compiling Relax/TIR modules, authoring TIRx
kernels, scheduling/tuning tensor programs, or deploying through TVM RPC.

This is a router. Read the focused sub-skill before making detailed API,
configuration, backend, or verification decisions.

## Fast routing

| User task signal | Read |
|---|---|
| Build from source, validate import, choose CMake/LLVM/RPC/CUDA flags, fix `libtvm` or `tvm-ffi` import failures | [`sub-skills/install-build/SKILL.md`](sub-skills/install-build/SKILL.md) |
| Create or import Relax IR, apply optimization pipelines, call `tvm.compile`, export/load executables, decide target/pipeline boundaries | [`sub-skills/relax-compile/SKILL.md`](sub-skills/relax-compile/SKILL.md) |
| Write TIRx TVMScript kernels, reason about execution scope, layouts, tile primitives, lowering, CUDA/Blackwell prerequisites, or TIRx GPU tests | [`sub-skills/tirx-kernels/SKILL.md`](sub-skills/tirx-kernels/SKILL.md) |
| Use `tvm.s_tir.Schedule`, transformations, dlight, meta-schedule, `tune_tir`, builders/runners/databases, or tune CPU/GPU TIR | [`sub-skills/s-tir-tuning/SKILL.md`](sub-skills/s-tir-tuning/SKILL.md) |
| Start/query TVM RPC tracker/server/proxy, cross-compile, upload/load remote modules, debug keys/timeouts/target-host issues | [`sub-skills/rpc-deployment/SKILL.md`](sub-skills/rpc-deployment/SKILL.md) |

## Minimal install/import orientation

- Distribution name: `apache-tvm`; import name: `tvm`.
- A package install starts with `python -m pip install apache-tvm`; add optional
  dependencies only for the selected workflow, such as meta-schedule, RPC,
  Torch frontend, or CUDA helper packages.
- Core runtime dependencies from package metadata include `apache-tvm-ffi`,
  `numpy`, `ml_dtypes`, and `typing_extensions`.
- Optional extras are workflow-specific: `meta-schedule` adds `xgboost`, `rpc`
  adds `tornado`, `psutil`, and `cloudpickle`, `popen-pool` adds `psutil` and
  `cloudpickle`, `torch` adds `torch`, and `cuda` adds `cuda-bindings`.
- For a source checkout, prefer a built `build/` directory plus `PYTHONPATH`
  pointing at the checkout's `python/` tree. Avoid editable installs when
  working with multiple TVM checkouts because they can silently import a
  different checkout's Python package.

Minimal verification from this skill directory:

```bash
python scripts/check_tvm_runtime.py --expect-backend llvm
```

Use [`scripts/check_tvm_runtime.py`](scripts/check_tvm_runtime.py) for a safe
import/backend probe against an installed package or a caller-provided checkout.
Read [`references/troubleshooting.md`](references/troubleshooting.md) when an
import, runtime library, backend, or optional dependency mismatch appears.

## Backend truthfulness rules

- A CPU/LLVM import check proves only CPU/LLVM readiness. It does not prove CUDA,
  ROCm, Metal, Vulkan, RPC device execution, TIRx GPU execution, or Blackwell
  kernel-library correctness.
- TVM can compile for a target without a matching local device in some cases, but
  execution and timing require the target runtime/device to exist.
- TIRx Blackwell and external `tirx-kernels` workflows require compute capability
  10.0-class NVIDIA hardware and additional packages. Do not present them as
  verified from an A100/CPU-only environment.

## Verify before relying on this skill

Read [`references/repo-provenance.md`](references/repo-provenance.md) before
assuming this skill matches a different checkout or release. Refresh the skill
when the commit, major package metadata, public API shape, or TIRx/S-TIR/RPC
workflow evidence changes.

Structured router metadata lives in
[`references/repo-routing-metadata.json`](references/repo-routing-metadata.json).

Files in this skill

  • SKILL.md4 KB
  • references/repo-provenance.md2.2 KB
  • references/repo-routing-metadata.json422 B
  • references/troubleshooting.md4.9 KB
  • scripts/check_tvm_runtime.py7.2 KB
  • sub-skills/install-build/SKILL.md2.4 KB
  • sub-skills/install-build/references/build-and-test.md3.8 KB
  • sub-skills/install-build/references/troubleshooting.md3.1 KB
  • sub-skills/install-build/scripts/README.md279 B
  • sub-skills/install-build/scripts/check_tvm_install.py3.3 KB
  • sub-skills/relax-compile/SKILL.md2.7 KB
  • sub-skills/relax-compile/references/api-reference.md2.4 KB
  • sub-skills/relax-compile/references/troubleshooting.md2.1 KB
  • sub-skills/relax-compile/references/workflows.md3.4 KB
  • sub-skills/relax-compile/scripts/relax_compile_smoke.py2.6 KB
  • sub-skills/rpc-deployment/SKILL.md2.4 KB
  • sub-skills/rpc-deployment/references/cli-and-runtime.md2.1 KB
  • sub-skills/rpc-deployment/references/cross-compilation.md2.4 KB
  • sub-skills/rpc-deployment/references/troubleshooting.md1.9 KB
  • sub-skills/rpc-deployment/scripts/rpc_cli_help_probe.py2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.