tokenspeed-deepjit
Python packaging for the header-only
deepseek-ai/DeepJIT C++20 library.
The tokenspeed-deepjit distribution vendors the headers from upstream commit
8b3ef868705a3792cc1a14ab570b539f72fd3d94
and provides Python and CMake helpers for locating them.
Installation
pip install tokenspeed-deepjit
The wheel is platform-independent because DeepJIT is header-only. Applications
still need the device toolchain and libraries required by the selected backend.
CUDA consumers need CUDA headers 12.4 or newer, NVCC 12.9 or newer, and PyTorch
with CUDA support. Ascend consumers need the CANN compiler and headers, ACL, and
torch_npu. Pybind11 is also required when exposing DeepJIT through a Python
extension.
Python helpers
import tokenspeed_deepjit
print(tokenspeed_deepjit.include_dir())
print(tokenspeed_deepjit.cmake_prefix_path())
The distribution does not install a deep_jit Python import package. The
upstream import package is empty; omitting it avoids conflicts with extensions
that embed DeepJIT.
CMake usage
find_package(Python COMPONENTS Interpreter REQUIRED)
execute_process(
COMMAND "${Python_EXECUTABLE}" -c
"import tokenspeed_deepjit; print(tokenspeed_deepjit.cmake_prefix_path())"
OUTPUT_VARIABLE tokenspeed_deepjit_ROOT
OUTPUT_STRIP_TRAILING_WHITESPACE
COMMAND_ERROR_IS_FATAL ANY
)
list(PREPEND CMAKE_PREFIX_PATH "${tokenspeed_deepjit_ROOT}")
find_package(deep_jit CONFIG REQUIRED)
target_link_libraries(my_target PRIVATE deep_jit::deep_jit)
The imported target requests C++20 for C++ sources. CUDA projects must also set
CUDA_STANDARD 20 or pass the equivalent standard flag to NVCC.
Local build
Populate the upstream headers before building:
git clone https://github.com/deepseek-ai/DeepJIT.git /tmp/DeepJIT
git -C /tmp/DeepJIT checkout 8b3ef868705a3792cc1a14ab570b539f72fd3d94
./prepare_headers.sh /tmp/DeepJIT
python -m build
See the upstream documentation for the runtime API and backend integration details.
Release files for tokenspeed-deepjit 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 | |
|---|---|---|---|
| tokenspeed_deepjit-0.1.0.tar.gz | 30.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tokenspeed_deepjit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.6 kB
Release files / tokenspeed_deepjit-0.1.0.tar.gz
| Download URL | tokenspeed_deepjit-0.1.0.tar.gz |
|---|---|
| Size | 30.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7a6cafdc5242ec1d355900e60451cc0a12e1ddf4371fbe63c224c5307f2462a
|
|
BLAKE2b-256 checksum How to use checksums |
a6c759dc6754a7fe1a03f9ea2f4f229f0a21662beadad4e0ff1aead9c4e9aec4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / tokenspeed_deepjit-0.1.0-py3-none-any.whl
| Download URL | tokenspeed_deepjit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 40.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
244c7a636ae2df17aaca13ed7dcaa6a82dba8945db9110a68519eda43c0bdb5d
|
|
BLAKE2b-256 checksum How to use checksums |
333b1f688409779f087a08d2e717c4e79fd4cac7e7133a2cba6c0fb9d0409221
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|