You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`tests/test_base_model.py`, and 6 additional test modules.
95
+
-**Dockerfile** for easier deployment: build from repo with `docker build -t rabbitllm .`, run with `--gpus all` for GPU inference. Installs RabbitLLM with optional `[gds]` extra. README Docker subsection documents build, run, and env vars (`HF_TOKEN`, `HF_HOME`). Makefile targets `docker-build` and `docker-run`.
96
+
-**Benchmark section** in README: table of benchmark scripts (GDS/long-context, CPU vs CUDA, attention comparison) and link to [docs/BENCHMARK_HISTORY.md](docs/BENCHMARK_HISTORY.md) for detailed 72B results.
95
97
96
98
### Changed
97
99
-**Pipeline extracted to `engine/pipeline.py`**: three strategies — `_no_prefetch_pipeline`,
@@ -106,6 +108,7 @@ All notable changes to RabbitLLM are documented here.
106
108
summary line (e.g. `[offload_small_layers=True, prefetch_pin_memory=False]`).
107
109
- README documents `use_gds`, `kv_cache_dir`, `offload_small_layers`, `cache_layers`, and
108
110
the optional `[gds]` extra.
111
+
-**Documentation and in-repo text translated to English**: `docs/TRANSFORMERS_UPGRADE_PLAN.md`, `docs/BENCHMARK_HISTORY.md`, `docs/COMPATIBILITY.md`, `docs/TROUBLESHOOTING.md`, and `example.py` (docstring and comments).
109
112
110
113
### Fixed
111
114
-**RoPE decode correctness**: prefill `position_embeddings_cache` is no longer reused in decode
Copy file name to clipboardExpand all lines: README.md
+40-2Lines changed: 40 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,21 @@ pip install rabbitllm[flash]
44
44
If the prebuilt wheel is unavailable for your setup, install from
45
45
[flashattn.dev](https://flashattn.dev). Without it, SDPA is used automatically.
46
46
47
+
### Docker
48
+
49
+
Build and run with GPU support (requires [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install.html) on the host):
50
+
51
+
```bash
52
+
docker build -t rabbitllm .
53
+
docker run --gpus all -it rabbitllm python scripts/inference_example.py --model Qwen/Qwen2.5-0.5B-Instruct --max-new-tokens 20
54
+
```
55
+
56
+
Optional env vars: `HF_TOKEN` for gated models, `HF_HOME` for model cache directory. Example:
57
+
58
+
```bash
59
+
docker run --gpus all -e HF_TOKEN=hf_... -it rabbitllm python scripts/inference_example.py --model Qwen/Qwen2.5-7B-Instruct
60
+
```
61
+
47
62
## Quickstart
48
63
49
64
```python
@@ -172,9 +187,17 @@ For 50k+ token contexts, pass `kv_cache_dir` to offload KV cache to SSD:
172
187
model = AutoModel.from_pretrained("Qwen/Qwen2.5-72B-Instruct", kv_cache_dir="./kv_cache")
173
188
```
174
189
175
-
### Benchmarking improvements
190
+
### Benchmark
191
+
192
+
Scripts to measure throughput and compare configurations:
176
193
177
-
To measure GDS and DiskKVCache improvements:
194
+
| Script | What it measures |
195
+
|--------|------------------|
196
+
|`scripts/benchmark_improvements.py`| GDS (GPU Direct Storage) and long-context DiskKVCache improvements |
197
+
|`scripts/benchmark_cpu_vs_cuda.py`| CPU vs CUDA inference with layer-streaming (same model and prompt) |
198
+
|`scripts/check_attention_and_benchmark.py --benchmark`| Throughput comparison: auto vs SDPA vs eager attention |
199
+
200
+
**GDS and DiskKVCache:**
178
201
179
202
```bash
180
203
# Local: make install pulls in kvikio (--extra gds)
0 commit comments