Skip to main content

kaggle-vllm 0.2.1 — Python 3.13 SDK for Kaggle dual T4

kaggle-vllm is a pure-Python compatibility and runtime-delivery SDK for Kaggle Linux x86_64 with two NVIDIA Tesla T4 GPUs (compute capability 7.5 / SM75), a CUDA 12.8 environment, and tensor parallel sizes 1 or 2. Version 0.2.1 supports CPython 3.13 only (>=3.13,<3.14).

The SDK provides environment checks, dependency diagnostics, native-wheel checksum and ABI validation, explicit runtime staging, a lazy KaggleLLM wrapper, sharded-state inspection, and an OpenAI-compatible server command. The Python distribution contains no native vLLM runtime, CUDA libraries, PyTorch, model weights, or NVIDIA binaries. Inference and serving require a separately installed compatible upstream vLLM runtime.

Install

python3.13 -m pip install "kaggle-vllm[hub]==0.2.1"

The normal SDK dependency is packaging>=23; the optional hub extra adds huggingface_hub. The package does not install or replace Kaggle's PyTorch or CUDA stack.

CLI and environment checks

kaggle-vllm --help
kaggle-vllm fingerprint
kaggle-vllm doctor --json
kaggle-vllm bootstrap --dry-run --json
kaggle-vllm verify-gpus --tensor-parallel-size 2

fingerprint reports the current host. doctor compares it with the packaged Kaggle T4 profile and returns a failure status when a required condition is unmet. bootstrap --dry-run is read-only; actual staging requires a validated runtime identity in the profile. verify-wheel and stage-wheel check a native wheel before staging it. See the CLI and installation guide.

Python API

With a compatible upstream vLLM runtime available in the process environment:

from kaggle_vllm import KaggleLLM, inspect_sharded_model, load_profile
from vllm import SamplingParams

profile = load_profile()
print(profile.name, profile.python_abi)

llm = KaggleLLM(
    model="facebook/opt-125m",
    tensor_parallel_size=2,
    max_model_len=512,
    gpu_memory_utilization=0.40,
)
outputs = llm.generate(
    ["Hello from Kaggle"], SamplingParams(temperature=0.0, max_tokens=32)
)

# For an existing vLLM sharded_state directory:
# inspection = inspect_sharded_model("/kaggle/input/my-sharded-model")

The API also accepts tensor_parallel_size=1. Importing kaggle_vllm alone does not initialize a GPU, access the network, or install packages.

Compatibility and provenance

The active package profile is kaggle-t4x2-cu128. It records the Python 3.13, dual-T4, SM75 and CUDA 12.8 target and preserves strict wheel ABI validation. The compatibility guide distinguishes this SDK target from the historical Python 3.12 GPU results.

The original v0.2.0 acceptance, benchmark, native-wheel checksums, and model provenance remain in artifacts/, compat/historical-py312-v0.2.0/, and release/. Those records do not establish Python 3.13 native imports, NCCL, inference, serving, or benchmark performance. See the documentation index and changelog.

This project is not an official Kaggle or upstream vLLM distribution. The SDK is Apache-2.0; upstream vLLM and model materials retain their own licenses.

Metadata

Release files for kaggle-vllm 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 kaggle-vllm 0.2.1
File Size Uploaded Provenance Actions
kaggle_vllm-0.2.1.tar.gz 40.2 kB Without provenance Details for kaggle_vllm-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kaggle-vllm 0.2.1
File Interpreter ABI Platform Actions
kaggle_vllm-0.2.1-py3-none-any.whl Python 3 none any Details for kaggle_vllm-0.2.1-py3-none-any.whl

Total release size: 74.5 kB

Release files / kaggle_vllm-0.2.1.tar.gz

Download URL kaggle_vllm-0.2.1.tar.gz
Size 40.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aeb2016fa98007bd7789846682a0636533d5541a54fc17876e49558472ea3f16
BLAKE2b-256 checksum
How to use checksums
f0d59c9e566309da48a4a710063288c4a969f6b49ddef774069d01aa81645a77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

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

Download URL kaggle_vllm-0.2.1-py3-none-any.whl
Size 34.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39506ea8a5b077f7ce85c319fed3988962d8f36bec3483681e91afe96a395c25
BLAKE2b-256 checksum
How to use checksums
d709d03faaaeaab2c378c57cb2b13955c071d940902016ada81ac77a7c8a38f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for kaggle-vllm 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.

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