Metadata-Version: 2.4
Name: revolta
Version: 0.2.0rc15.post1
Summary: ReVolta: an NVIDIA Volta / V100 (SM70) inference engine based on 1Cat-vLLM and vLLM
Author: Leon, 1Cat AI, vLLM Team
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/Leonccaa/ReVolta
Project-URL: Documentation, https://github.com/Leonccaa/ReVolta#readme
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Requires-Python: <3.15,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
License-File: flash-attention-v100/LICENSE
License-File: flash_qla/LICENSE
License-File: csrc/attention/sm70_grouped_long/LICENSE
License-File: csrc/libtorch_stable/quantization/gguf_upstream/LICENSE.plugin
License-File: csrc/quantization/gguf_upstream/llama.cpp/LICENSE
License-File: csrc/sm70_turbomind/ops/LICENSE.v100-skinny
License-File: vllm/third_party/gguf_native/LICENSE.llama.cpp
License-File: vllm/third_party/gguf_native/LICENSE.vllm-gguf-plugin
License-File: LICENSES/causal-conv1d-authors.txt
License-File: LICENSES/causal-conv1d.txt
License-File: LICENSES/cutlass-fa2.txt
License-File: LICENSES/cutlass-machete.txt
License-File: LICENSES/cutlass.txt
License-File: LICENSES/deepgemm.txt
License-File: LICENSES/fla-dated.txt
License-File: LICENSES/flash-attention-sm70-authors.txt
License-File: LICENSES/flash-attention-sm70.txt
License-File: LICENSES/flash-attention-sm75-authors.txt
License-File: LICENSES/flash-attention-sm75.txt
License-File: LICENSES/flash-attention-v100.txt
License-File: LICENSES/flashmla.txt
License-File: LICENSES/flashqla-dated.txt
License-File: LICENSES/lmdeploy-dated.txt
License-File: LICENSES/mamba.txt
License-File: LICENSES/marlin.txt
License-File: LICENSES/qutlass.txt
License-File: LICENSES/sglang-kernel.txt
License-File: LICENSES/sglang-notices.txt
License-File: LICENSES/triton.txt
License-File: LICENSES/vllm-flash-attention-authors.txt
License-File: LICENSES/vllm-flash-attention.txt
License-File: LICENSES/README.md
License-File: LICENSES/SOURCES.json
Requires-Dist: regex
Requires-Dist: cachetools
Requires-Dist: psutil
Requires-Dist: sentencepiece
Requires-Dist: numpy
Requires-Dist: requests>=2.34.2
Requires-Dist: tqdm
Requires-Dist: blake3
Requires-Dist: py-cpuinfo
Requires-Dist: transformers>=5.20.0
Requires-Dist: tokenizers>=0.21.1
Requires-Dist: safetensors>=0.8.0
Requires-Dist: protobuf!=6.30.*,!=6.31.*,!=6.32.*,!=6.33.0.*,!=6.33.1.*,!=6.33.2.*,!=6.33.3.*,!=6.33.4.*,>=5.29.6
Requires-Dist: fastapi[standard]<0.142.0,>=0.141.1
Requires-Dist: aiohttp>=3.14.3
Requires-Dist: openai>=2.0.0
Requires-Dist: pydantic<2.14.0,>=2.13.4
Requires-Dist: prometheus_client>=0.26.0
Requires-Dist: pillow
Requires-Dist: prometheus-fastapi-instrumentator<9.0.0,>=8.1.0
Requires-Dist: tiktoken>=0.14.0
Requires-Dist: lm-format-enforcer==0.11.3
Requires-Dist: llguidance<1.8.0,>=1.7.0; platform_machine == "x86_64" or platform_machine == "arm64" or platform_machine == "aarch64" or platform_machine == "ppc64le"
Requires-Dist: outlines_core==0.2.14
Requires-Dist: diskcache==5.6.3
Requires-Dist: lark==1.3.1
Requires-Dist: xgrammar<1.0.0,>=0.2.0; platform_machine == "x86_64" or platform_machine == "aarch64" or platform_machine == "arm64" or platform_machine == "s390x" or platform_machine == "ppc64le"
Requires-Dist: typing_extensions>=4.16.0
Requires-Dist: filelock>=3.32.3
Requires-Dist: partial-json-parser
Requires-Dist: pyzmq>=25.0.0
Requires-Dist: msgspec
Requires-Dist: gguf>=0.17.0
Requires-Dist: mistral_common[image]>=1.11.2
Requires-Dist: opencv-python-headless>=4.13.0
Requires-Dist: pyyaml
Requires-Dist: six>=1.16.0; python_version > "3.11"
Requires-Dist: setuptools<81.0.0,>=77.0.3; python_version > "3.11"
Requires-Dist: einops
Requires-Dist: compressed-tensors==0.15.0.1
Requires-Dist: depyf==0.20.0
Requires-Dist: cloudpickle
Requires-Dist: watchfiles
Requires-Dist: python-json-logger
Requires-Dist: ninja
Requires-Dist: pybase64
Requires-Dist: cbor2
Requires-Dist: ijson
Requires-Dist: setproctitle
Requires-Dist: openai-harmony>=0.0.3
Requires-Dist: anthropic>=0.71.0
Requires-Dist: model-hosting-container-standards<1.0.0,>=0.1.14
Requires-Dist: mcp
Requires-Dist: opentelemetry-sdk>=1.44.0
Requires-Dist: opentelemetry-api>=1.44.0
Requires-Dist: opentelemetry-exporter-otlp>=1.27.0
Requires-Dist: opentelemetry-semantic-conventions-ai>=0.4.1
Requires-Dist: numba==0.67.0
Requires-Dist: torch==2.10.0
Requires-Dist: torchaudio==2.10.0
Requires-Dist: torchvision==0.25.0
Requires-Dist: flashinfer-python==0.6.11.post2
Requires-Dist: flashinfer-cubin==0.6.11.post2
Requires-Dist: apache-tvm-ffi==0.1.10
Requires-Dist: tilelang==0.1.10
Requires-Dist: nvidia-cudnn-frontend<1.19.0,>=1.13.0
Requires-Dist: fastsafetensors>=0.3.3
Requires-Dist: nvidia-cutlass-dsl==4.7.0
Requires-Dist: quack-kernels>=0.3.3
Requires-Dist: humming-kernels[cu12]==0.1.2
Provides-Extra: zen
Requires-Dist: zentorch-weekly==5.2.1.dev20260408; extra == "zen"
Provides-Extra: bench
Requires-Dist: pandas; extra == "bench"
Requires-Dist: matplotlib; extra == "bench"
Requires-Dist: seaborn; extra == "bench"
Requires-Dist: datasets; extra == "bench"
Requires-Dist: scipy; extra == "bench"
Requires-Dist: plotly; extra == "bench"
Provides-Extra: tensorizer
Requires-Dist: tensorizer==2.12.1; extra == "tensorizer"
Provides-Extra: fastsafetensors
Requires-Dist: fastsafetensors>=0.3.3; extra == "fastsafetensors"
Provides-Extra: instanttensor
Requires-Dist: instanttensor>=0.1.5; extra == "instanttensor"
Provides-Extra: runai
Requires-Dist: runai-model-streamer[azure,gcs,s3]>=0.16.1; extra == "runai"
Provides-Extra: audio
Requires-Dist: av; extra == "audio"
Requires-Dist: scipy; extra == "audio"
Requires-Dist: soundfile; extra == "audio"
Requires-Dist: mistral_common[audio]; extra == "audio"
Provides-Extra: image
Requires-Dist: diffusers==0.40.0; extra == "image"
Requires-Dist: accelerate>=1.12; extra == "image"
Requires-Dist: nvidia-ml-py; extra == "image"
Provides-Extra: video
Requires-Dist: diffusers==0.40.0; extra == "video"
Requires-Dist: av>=14; extra == "video"
Requires-Dist: imageio>=2.37.2; extra == "video"
Requires-Dist: imageio-ffmpeg>=0.6; extra == "video"
Requires-Dist: soundfile>=0.13; extra == "video"
Requires-Dist: scipy; extra == "video"
Requires-Dist: einops; extra == "video"
Requires-Dist: omegaconf; extra == "video"
Requires-Dist: accelerate>=1.12; extra == "video"
Requires-Dist: nvidia-ml-py; extra == "video"
Provides-Extra: flashinfer
Provides-Extra: helion
Requires-Dist: helion==1.4.0; extra == "helion"
Provides-Extra: grpc
Requires-Dist: smg-grpc-servicer[vllm]>=0.5.2; extra == "grpc"
Provides-Extra: otel
Requires-Dist: opentelemetry-sdk>=1.26.0; extra == "otel"
Requires-Dist: opentelemetry-api>=1.26.0; extra == "otel"
Requires-Dist: opentelemetry-exporter-otlp>=1.26.0; extra == "otel"
Requires-Dist: opentelemetry-semantic-conventions-ai>=0.4.1; extra == "otel"
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist

# ReVolta

**Stable, fast inference on multi-GPU NVIDIA V100 servers.**

ReVolta turns a server with V100 32 GB GPUs and plenty of system memory into a dependable daily AI service. It runs Qwen3.8 Flash-Next for text, images and video behind an OpenAI-compatible API. ReVolta is built on [1Cat-vLLM](https://github.com/1CatAI/1Cat-vLLM), a V100-focused fork of vLLM, so the `vllm` command, its options and its OpenAI-compatible API work as usual.

It is built for four or more V100 32 GB GPUs and validated on four. We recommend, and test, the two interconnects that give the best speed: NVLink, or all GPUs under one PCIe switch with P2P. Every release passes the same gate on our own server before it ships: single-request greedy output identical to the previous release token for token, 4 and 8 concurrent requests, images and video, CPU cache readback, and 512K-token prompts. That server runs ReVolta every day.

**You need:** four or more V100 32 GB GPUs (validated on four), on NVLink or with all GPUs under one PCIe switch with P2P; at least 32 GiB of system memory with the experimental whole-table PLE disk option (about 23–25% slower single-request decoding), 80 GiB with the default pinned PLE table, 128 GiB recommended; Linux x86-64 with glibc 2.34 or newer; and an NVIDIA driver for CUDA 12.8. Tested hardware and limits: [Support and known limits](docs/known-limits.md).

Current release: [0.1.5](https://github.com/Leonccaa/ReVolta/releases/tag/v0.1.5).

## At a glance

**Context and capacity** (Uncensored AWQ, E4M3 KV cache, 0.1.4)

| | MTP4 (default) | DFlash2 (recommended settings) |
| --- | ---: | ---: |
| Context per request | 512K tokens | 512K tokens |
| GPU KV pool | 1.15 million tokens | **1.37 million tokens** |
| GPU KV pool / 512K tokens (capacity ratio) | 2.20× | **2.61×** |
| Concurrent requests | 8 | 8 |

Prefixes evicted from the GPU stay in CPU memory or on disk: a cached 32K-token document comes back from CPU memory in **0.6 s**, and after an engine restart from a local NVMe disk tier in **1.5 s**, instead of **10.1 s** when recomputed (0.1.4, DFlash2). See [KV offload](docs/kv-offload.md).

**Speed** (total output tokens/s, 512-token responses; best of MTP4 and DFlash2; the PCIe row was measured on 0.1.2 and the NVLink row combines 0.1.2 and 0.1.1)

| System | 1 request | 2 | 4 | 8 | Prefill, 8K / 131K prompt |
| --- | ---: | ---: | ---: | ---: | ---: |
| 4 × V100 32 GB PCIe, one PCIe switch (our server) | 201 | 275 | 370 | **509** | 3,382 / 3,016 |
| 4 × V100-SXM2 32 GB, NVLink ([community result](https://github.com/Leonccaa/ReVolta/issues/2)) | 234 | 260 | 368 | **525** | 4,680 / 4,037 |

Versions, power caps and the per-method breakdown are in [Performance](docs/performance.md).

## Models

| Model | Weights (bits per weight: routed experts / whole model) | Download | PLE table in host memory | GPU KV pool (MTP4) | Quality vs its BF16 parent: KL ↓ / top-1 ↑ | Notes |
| --- | --- | ---: | ---: | ---: | ---: | --- |
| [Uncensored AWQ g32](https://huggingface.co/leoncca/Qwen3.8-Flash-Next-Uncensored-AWQ-g32) **(recommended)** | 4-bit AWQ g32 experts, FP8 PLE, BF16 rest (**4.63 / 5.95**) | 142 GB, MTP draft included | 48 GiB | 1.15 M (1.37 M with DFlash2) | 0.0214 / 97.1% | Uncensored fine-tune; the reference setup |
| [Base AWQ g32](https://huggingface.co/leoncca/Qwen3.8-Flash-Next-AWQ-g32) | 4-bit AWQ g32 experts, FP8 PLE, BF16 rest (**4.63 / 5.95**) | 142 GB, MTP draft included | 48 GiB | Same layout as Uncensored | 0.0207 / 97.1% | The original model |
| [Standard NVFP4](https://huggingface.co/RadixArk/Qwen3.8-Flash-Next-NVFP4) | NVFP4 experts, FP8 PLE, BF16 rest (**4.50 / 5.86**) | 135 GB + 5 GB draft pack | 48 GiB | 1.25 M | 0.0303 / 96.4% | Widely used community format |
| [NVIDIA FP4-Local](https://huggingface.co/nvidia/Qwen3.8-Flash-Next-FP4-Local) | NVFP4 experts and PLE, MXFP8 attention and shared experts (**4.26 / 4.53**) | 102 GB, MTP layer built in | **27 GiB** | **1.47 M** | 0.0380 / 95.9% | NVIDIA's official checkpoint; least host memory |

In the AWQ and standard NVFP4 checkpoints only the routed experts are 4-bit: the PLE tables are FP8, and all other weights (attention, shared experts, embeddings, `lm_head` and the vision tower) stay BF16. NVIDIA FP4-Local is quantized further: its PLE table and parts of the vision tower and MTP layer are NVFP4, and its attention projections and shared experts are MXFP8; its `lm_head` stays BF16. V100 has no BF16 units, so ReVolta runs BF16 weights in FP16 (`--dtype half`). Bits per weight include quantization scales and zero points and exclude the MTP draft; the whole-model figure covers all 177 billion stored parameters, 51 billion of them in the PLE tables.

**Hy4-flash (validation support, 0.2.0rc13):** text-only [tencent/Hy4-flash](https://huggingface.co/tencent/Hy4-flash) runs on four V100 32 GB GPUs with the [AWQ g32 checkpoint](https://huggingface.co/leoncca/Hy4-flash-AWQ-g32), FP8 attention KV and optional decode context parallelism up to 512K tokens. Support is frozen at this release. See [Hy4-flash](docs/hy4-flash.md).

GPU KV pools use the recommended setup for each checkpoint (E4M3 target and draft KV, 512K, 8 sequences). Quality is measured with an E4M3 KV cache on 66 English, Chinese and code records against each checkpoint's own BF16 parent; method and other datasets are in [Quality measurements](docs/performance.md#quality-measurements). Test status, pinned revisions and preparation steps for each checkpoint are in [Checkpoints](docs/checkpoints.md).

## Quick start

Use Linux x86-64 with glibc 2.34 or newer, Python 3.12, and an NVIDIA driver for CUDA 12.8.
The package is `revolta`; the Python import and CLI remain `vllm`.

```bash
python3.12 -m venv /data/revolta/venv
. /data/revolta/venv/bin/activate
pip install revolta==0.1.5
vllm --version          # 0.1.5
```

Or pull the Docker image:

```bash
docker pull ghcr.io/leonccaa/revolta:0.1.5
```

Follow [Getting started](docs/getting-started.md) to download the pinned checkpoint,
make the target and draft views, apply the environment settings, launch and check the API.
It includes the complete reference launch and Docker commands.

For another checkpoint, use its [preparation guide](docs/checkpoints.md) before launching.

## Documentation

| I want to… | Read |
| --- | --- |
| Install and launch the reference configuration | [Getting started](docs/getting-started.md) |
| Select and prepare a checkpoint, KV scales and an MTP draft | [Checkpoints](docs/checkpoints.md) |
| Enable DFlash2 and choose its settings | [DFlash2](docs/dflash2.md) |
| Keep evicted prefixes in CPU memory or on disk | [KV offload](docs/kv-offload.md) |
| Look up deployment settings, sampling and memory budgets | [Configuration](docs/configuration.md) |
| Compare measured speed, KV capacity and quantization quality | [Performance](docs/performance.md) |
| Check support scope and limitations | [Known limits](docs/known-limits.md) |
| Run Hy4-flash (validation support) | [Hy4-flash](docs/hy4-flash.md) |

## Known limits

- V100 16 GB, TP2/TP8, and other models have not been tested.
- This release builds SM70 only; other GPU architectures, ROCm, CPU, XPU, TPU, and GGUF are outside the build.
- Greedy outputs at C2–C8 can change between runs; fresh compiler autotuning can also change outputs.
- The AWQ PLE table needs about 48 GiB of host memory by default. An experimental option keeps the whole table on a local SSD instead: in 0.1.4 it served under 64 GiB and 32 GiB memory limits, also with a 32 GiB CPU KV pool under 64 GiB, and greedy output matched the default path. Single-request decoding is about 23–25% slower, and a cold first token takes 1.6–2.3 times as long. See [Support and known limits](docs/known-limits.md).
- PLE cascade (spilling part of the table to disk, `ple_disk_cascade=true`) is not supported yet and is off by default in the ReVolta profile; full support is planned for 0.2.
- DFlash2 supports INT8 target KV with an FP16 draft. For planar INT8 persistence, use the verified disk tier `revolta_fs`, which stores the scale planes with each page. [KV offload](docs/kv-offload.md)

See [Support and known limits](docs/known-limits.md) for the complete list and test boundaries.

## Project direction

ReVolta focuses on dependable daily service on V100. Releases check output correctness,
long-context retrieval, concurrent use, multimodal input, cache recovery, and speed
on the reference machine.

Next (0.2): faster long-context decoding with several requests (request-segment QSA
scoring, #59), a clean CPU KV offload shutdown (#51), and smaller DFlash2 CPU and disk
cache pages. Also planned: faster INT8 KV decoding, simpler NVFP4 setup and INT8 disk
caching. Longer-term work includes reducing host-memory use and
runtime dependencies.

## Getting help

Use [GitHub Issues](https://github.com/Leonccaa/ReVolta/issues). Include the launch
command, relevant environment, model revision, host/container memory limits,
offload settings, `nvidia-smi topo -m`, and the `ReVolta profile` /
`SM70 interconnect=` log lines. Remove credentials.

Reports from NVLink V100 owners are especially welcome; share measured results with the
[Report](https://github.com/Leonccaa/ReVolta/issues/new?template=test_results.md) template
([`.github/ISSUE_TEMPLATE/test_results.md`](.github/ISSUE_TEMPLATE/test_results.md); agents can fill it in and
open the issue through the API). Thanks to
[@jttdev](https://github.com/jttdev), [@That80-20](https://github.com/That80-20) and
[@vincentyan2023](https://github.com/vincentyan2023) for sharing their results
([#2](https://github.com/Leonccaa/ReVolta/issues/2), [#38](https://github.com/Leonccaa/ReVolta/issues/38),
[#37](https://github.com/Leonccaa/ReVolta/issues/37)). Report security issues
through GitHub private vulnerability reporting.

For project status and development background, read the [pinned overview (#1)](https://github.com/Leonccaa/ReVolta/issues/1).
See [CONTRIBUTING.md](CONTRIBUTING.md) before preparing a contribution.

## Building from source

See [BUILDING.md](BUILDING.md). Builds use Docker BuildKit, CUDA 12.8, and SM70 only.
No GPU is needed to compile. Debug symbols are published separately.
CUDA 13 cannot compile SM70.

## License and acknowledgements

ReVolta's engine code and project changes are licensed under the
[Apache License 2.0](LICENSE), except for third-party files that state another
license. [NOTICE](NOTICE) lists component attributions and known source-history gaps.
[LICENSES/](LICENSES/README.md) contains the upstream license texts with their source
revisions. Model weights have their own licenses. See each model card.

ReVolta is derived from [1Cat-vLLM](https://github.com/1CatAI/1Cat-vLLM), which is
derived from [vLLM](https://github.com/vllm-project/vllm). Thanks to the vLLM and
1Cat-vLLM contributors, and to the authors of the attention, quantization,
communication and GPU kernel components included here (see NOTICE).

NVIDIA, Volta and Tesla are trademarks of NVIDIA Corporation and are used here only
to identify hardware. ReVolta is not affiliated with or endorsed by NVIDIA.

## Moved sections

These headings keep existing README links working; follow each link for the complete section.

### Measurements

See [Measurements](docs/performance.md#measurements).

### Checkpoints, KV scales and MTP drafts

See [Checkpoints, KV scales and MTP drafts](docs/checkpoints.md).

### DFlash2 speculative decoding (optional)

See [DFlash2 speculative decoding (optional)](docs/dflash2.md).

### KV offload modes

See [KV offload modes](docs/kv-offload.md).

### Weight and KV formats

See [Weight and KV formats](docs/checkpoints.md#weight-and-kv-formats).

### Standard NVFP4

See [Standard NVFP4](docs/checkpoints.md#standard-nvfp4).

### Performance

See [Performance](docs/performance.md#performance).

### Quality measurements

See [Quality measurements](docs/performance.md#quality-measurements).

### Support and known limits

See [Support and known limits](docs/known-limits.md).

### Support matrix

See [Support matrix](docs/known-limits.md#support-matrix).

### Reporting issues

See [Reporting issues](#getting-help).
