Skip to main content

mjolnir-cli

Serve, benchmark and document LLMs on the NVIDIA Jetson AGX Thor with Mjolnir — a decode-attention kernel built for Thor (sm_110), a 6-bit KV-cache format for vLLM and a patched vLLM image that runs them. This package is the mjolnir command that drives all of it; the kernel itself ships separately as mjolnir-kernel.

uv tool install mjolnir-cli      # or: pipx install mjolnir-cli
mjolnir hw setup                 # one-time Thor host setup (clocks, power mode, fans, swap)
mjolnir serve up                 # serve the default model on the Mjolnir image, port 6001

What it does

  • Models as config dirs — every served model config is a config.yaml of vllm serve flags (plus an optional .env of switches inside its dir; the model's calibration files sit next to the config dirs). The default configs ship inside this package; add your own under ~/.local/share/mjolnir/configs/. mjolnir model picks the active one.
  • Serve — mjolnir serve up|down|status|logs runs the narandill/mjolnir-vllm container with the active config, clears the page cache around it, and never touches a server it did not start.
  • Calibrate — mjolnir calibrate measures per-channel KV-cache scales (for the 6-bit e2m3 cache) and, with --draft-vocab, the drafter's vocabulary.
  • Benchmark — mjolnir verify <stage> (kernel correctness and Nsight Compute benchmarks), mjolnir bench e2e|ab|perf (end-to-end serving with llama-benchy), mjolnir bench accuracy (tool-calling, GSM8K, MMLU, IFEval via tool-eval-bench). Every run waits for a clean GPU window and saves raw JSON.
  • Document — mjolnir plot --readme renders every chart, table and the README from those raw results; --site builds the interactive page.
  • Research — mjolnir autoresearch runs an agent loop that proposes, tests and logs kernel experiments.

Every command, with options and defaults: the CLI reference (generated from the commands; mjolnir <command> --help prints the same).

Requirements

A Jetson AGX Thor (JetPack 7.x) with Docker and the NVIDIA Container Toolkit for anything that touches the GPU; Python ≥ 3.10. Charts need the plot extra (uv tool install 'mjolnir-cli[plot]').

Versions

mjolnir-cli and mjolnir-kernel version independently; the Docker image is tagged after the upstream vLLM it is built on (v0.31.0). Release notes: GitHub Releases.

Metadata

Release files for mjolnir-cli 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mjolnir-cli 0.2.1
File Size Uploaded Provenance Actions
mjolnir_cli-0.2.1.tar.gz 2.2 MB With provenance Details for mjolnir_cli-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mjolnir-cli 0.2.1
File Interpreter ABI Platform Actions
mjolnir_cli-0.2.1-py3-none-any.whl Python 3 none any Details for mjolnir_cli-0.2.1-py3-none-any.whl

Total release size: 4.4 MB

Release files / mjolnir_cli-0.2.1.tar.gz

Download URL mjolnir_cli-0.2.1.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
0d0fc35dcb2112c99f1abd12deb2cfcab3e998af7d139f9acdf8161ae4db1723
BLAKE2b-256 checksum
How to use checksums
bb1ed656d10022994b3921c9d00af27024cf9161d4c9ea9a52b6c9e46ce3ad9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 18, 2026.

Transparency log

Release files / mjolnir_cli-0.2.1-py3-none-any.whl

Download URL mjolnir_cli-0.2.1-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c87750b1e2460cd492c3764799144d88bdb72a79851d94581e5461c1d3534fe9
BLAKE2b-256 checksum
How to use checksums
2dd3c1660fef6635259efc0af8a4f7151fbdb8eb5c3a3e2cdf2db54c0ea9a822
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 18, 2026.

Transparency log

Security for mjolnir-cli 0.2.1

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.

Select from 2 files

Attestation for mjolnir_cli-0.2.1.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 18, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page