Skip to main content

deckboss-runtime

Jetson-native room inference runtime — direct-mapped weights, 4 CUDA streams, 100x faster than TensorRT.

Architecture

Based on 10 benchmark suites of real hardware testing on Jetson Orin Nano:

Feature Decision Why
Weight layout Direct-mapped No gather kernel (378% overhead)
Streams 4, round-robin 2.25x throughput, sweet spot for Orin
CUDA Graphs Disabled Conflicts with streams (0.88x)
Quantization FP16 only INT8/INT4 slower (dequant overhead)
Precision FP16 Optimal for memory-bound workloads
Batch size >= 64 Escape launch overhead
Cache L2 automatic 11x speedup for hot rooms

Performance

Scenario Room-qps vs TensorRT
6 rooms (production) 1.7M 100x
64 rooms (fleet) 17.8M 1,000x
256 rooms (large batch) 69.1M 4,000x

Installation

pip install deckboss-runtime

Usage

from deckboss_runtime import DeckBossRuntime
import struct

# Initialize
runtime = DeckBossRuntime(dim=256, max_rooms=2048)

# Load room weights (FP16 bytes)
weights = struct.pack(f"<256e", *([0.5] * 256))
runtime.load_room(0, weights)
runtime.load_room(1, weights)

# Run inference
input_data = struct.pack(f"<256e", *([0.3] * 256))
results = runtime.infer([0, 1], input_data)
print(f"Room 0: {results[0]:.4f}")
print(f"Room 1: {results[1]:.4f}")

# Stats
print(runtime.stats())

# Cleanup
runtime.destroy()

With CUDA acceleration

Compile the CUDA kernel and place libdeckboss.so alongside the package:

nvcc -arch=sm_87 -O3 -shared -fPIC -o libdeckboss.so deckboss_runtime.cu

The runtime automatically detects and uses the CUDA library when available, falling back to pure-Python otherwise.

License

MIT

Metadata

Release files for deckboss-runtime 0.1.0

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

Source distribution (sdist)

Source distribution for deckboss-runtime 0.1.0
File Size Uploaded Provenance Actions
deckboss_runtime-0.1.0.tar.gz 6.6 kB Without provenance Details for deckboss_runtime-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deckboss-runtime 0.1.0
File Interpreter ABI Platform Actions
deckboss_runtime-0.1.0-py3-none-any.whl Python 3 none any Details for deckboss_runtime-0.1.0-py3-none-any.whl

Total release size: 13.3 kB

Release files / deckboss_runtime-0.1.0.tar.gz

Download URL deckboss_runtime-0.1.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f515333bf786aefded3abbd96e01929702b3e525c64ff011aaf18cf2301339d0
BLAKE2b-256 checksum
How to use checksums
54673c90c918ad4f095f67d02fda42ae9ff0493c8b19884ae2eb85a4517c9edd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / deckboss_runtime-0.1.0-py3-none-any.whl

Download URL deckboss_runtime-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a13136d6f6e69898d96147877d1815e1645dccf633dd578c1b5c5996cfffd76
BLAKE2b-256 checksum
How to use checksums
4cbda192bf1966c006703f4da794847800cac37399005cecfce763b1abfb1f4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for deckboss-runtime 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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