triton-hf-builder
Turn a downloaded Hugging Face checkpoint into a Triton model repository.
Use the Python library, CLI or the code-server extension in Triton Control. Generation reads metadata and copies assets; it does not load weights or require a GPU. Allow disk space for a full checkpoint copy. Status: alpha.
Python API · Serving guide · Serving tests · Contributing
Install
Requires Python 3.10+.
git clone https://github.com/ai-lab-tech/triton-hf-builder.git
cd triton-hf-builder
python3 -m venv .venv
source .venv/bin/activate
python -m pip install .
Quick start
Point source to a complete local checkpoint with weights and tokenizer files.
Choose a new output directory outside the checkpoint directory.
from triton_hf_builder import generate_repository
result = generate_repository(
source="/workspace/hf-checkpoint",
output="/workspace/model_repository",
name="my_model",
runtime="transformers",
image="nvcr.io/nvidia/tritonserver:26.06-py3",
device="cpu",
)
print(result.model_directory / "config.pbtxt")
No manual requirements needed: the builder writes runtime defaults into
requirements.txt. Optional overrides, all parameters and return values are
explained in the Python API.
The equivalent CLI:
triton-hf inspect /workspace/hf-checkpoint
triton-hf build /workspace/hf-checkpoint \
--output /workspace/model_repository --name my_model \
--runtime transformers --device cpu \
--image nvcr.io/nvidia/tritonserver:26.06-py3
The output contains the checkpoint assets, config.pbtxt, runtime files,
requirements.txt and serving.json. Deploy this repository to Triton after
preparing its serving dependencies; generation alone does not validate inference.
See the serving guide for deployment and vLLM path preparation.
Adapters and compatibility
Builder adapter (runtime) |
Triton backend | Model execution | Tasks | Device |
|---|---|---|---|---|
transformers |
Python | Hugging Face Transformers with PyTorch | Generation, text-to-text, classification, raw features | CPU or GPU |
vllm |
vLLM | vLLM engine | Text generation | GPU |
tensorrt-llm |
Python | TensorRT-LLM LLM API with PyTorch backend | Text generation | GPU |
The API parameter runtime selects the builder adapter. The Triton backend and
model execution framework are separate layers.
Recognized multimodal checkpoints and custom model Python are outside the current adapter scope. See runtime limitations.
Manufacturer compatibility catalog
Manufacturer-documented text-generation candidates. Full catalog and architecture names.
| Image tag | Engine version | CUDA / reported driver | Architectures |
|---|---|---|---|
26.09-vllm-python-py3 |
0.29.0+3b480f30.nv26.9.68265578 |
13.4.1.012 / 615.71.09 | 118 candidates † |
26.06-vllm-python-py3 |
0.22.1+7b9cb5b7.nv26.6.55098374 |
13.3.0.035 / 610.43.02 | 129 candidates † |
26.07-trtllm-python-py3 |
1.2.1 |
13.1.0.036 / 590.44.01 | 18 candidates |
26.06-trtllm-python-py3 |
1.2.1 |
13.1.0.036 / 590.44.01 | 18 candidates |
Source: NVIDIA image matrix. † Upstream base version; NVIDIA build differs.
These are documentation references, not serving guarantees. Check the linked matrices for quantization, GPU and feature restrictions; the reported driver is not a universal minimum.
The catalog tracks 26.06 and the latest documented image per runtime. A weekly workflow proposes updates as PRs. Maintenance and selection policy.
Development and releases
See CONTRIBUTING.md for local checks and RELEASING.md for package publication and code-server integration. Real GPU serving tests are opt-in; follow the test guide.
Apache-2.0 license · Security policy Model weights and serving engines retain their own licenses.
Metadata
Release files for triton-hf-builder 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| triton_hf_builder-0.1.0.tar.gz | 62.5 kB | With provenance | Details for triton_hf_builder-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| triton_hf_builder-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for triton_hf_builder-0.1.0-py3-none-any.whl |
Total release size: 85.9 kB
Release files / triton_hf_builder-0.1.0.tar.gz
| Download URL | triton_hf_builder-0.1.0.tar.gz |
|---|---|
| Size | 62.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab0237429f538e3594450884394136f65cbe129b4a0dba46e93b46adde335a16
|
|
BLAKE2b-256 checksum How to use checksums |
20f72761247f25f9faea1253334e11e0a70243759ec446e543b61ebbd459fa74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / triton_hf_builder-0.1.0-py3-none-any.whl
| Download URL | triton_hf_builder-0.1.0-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91ce49a4db2f0137d034193d38c5c3bd405d1147fd6f4f690ba9908699067756
|
|
BLAKE2b-256 checksum How to use checksums |
61314c65303b7c37838cc836d02e56ddcfa7bc0bb50be4901ae808376309f800
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for triton-hf-builder 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for triton_hf_builder-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.