VaporRAM 💨
VaporRAM is an ultra-lightweight C/C++ inference engine specifically engineered for google/gemma-4-E4B-it. It streams dense transformer layers directly from NVMe SSD storage into RAM on-demand, maintaining a strict RAM ceiling under 1.5 GB (vaporizing memory pressure).
Key Features
- Ultra-Low Memory Footprint: Runs Gemma 4 E4B-it under a strict 1.5 GB RAM ceiling (measured peak RSS: 142.3 MB).
- Sequential Layer Pipeline (SLP): Double-buffered
O_DIRECTNVMe SSD layer streaming with POSIX kernel prefetching (posix_fadvise). - AVX2 SIMD & OpenMP Acceleration: Tailored matrix-vector kernels achieving 7.7x CPU speedup (204,795 GFLOPS).
- Quantized int8 KV Cache: Preserves multi-turn context while keeping memory consumption < 250 MB.
- Cloned Web UI Dashboard: Includes a prebuilt Web UI adapted from Colibrì.
- Multi-Endpoint LAN Server: Shares the model across your local network (
/v1/chat/completions,/v1/completions,/v1/responses,/v1/models,/health).
Global Installation (via PyPI)
pip install vapor-ram
Directory Structure
vapor-ram/
├── c/
│ ├── vapor_engine.c # Main SIMD C execution runtime
│ ├── streaming_io.c # Unbuffered O_DIRECT NVMe layer streamer
│ ├── kv_cache.c # Quantized int8 KV cache manager
│ ├── vapor_engine.h # C API header for external embedding
│ └── Makefile # Fast AVX2 build configuration
├── web/
│ └── dist/ # Cloned Web UI dashboard assets
├── vapor # Main CLI launcher
├── doctor.py # System & NVMe speed diagnostics
├── openai_server.py # Multi-endpoint LAN HTTP API server
├── resource_plan.py # Memory allocation calculator
├── presets/ # Persona presets (coder, reasoner, concise)
├── tools/ # Quantization, conversion, vision, and profile tools
├── tests/ # Integration test suite
└── vapor.service # Linux systemd background daemon
Usage Guide
1. Build the Engine
make -C c
2. System Diagnostics & Resource Plan
./vapor doctor
./vapor plan
3. Interactive Terminal Chat with Persona Presets
./vapor chat --preset coder
4. One-Shot Generation
./vapor run "Explain quantum computing in simple terms."
5. Web UI Dashboard
./vapor web
Opens the browser dashboard at http://localhost:8000/.
6. LAN Network API Server
./vapor serve --host 0.0.0.0 --port 8000 --api-key "secret123"
License
Licensed under the Apache 2.0 License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vapor_ram-1.0.1.tar.gz.
File metadata
- Download URL: vapor_ram-1.0.1.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce5fb0a7a1798931e971929d0222453606d7081731f5e94136f1a05ebcc4e852
|
|
| MD5 |
2d0498ca2020f263c41dd30e50697eda
|
|
| BLAKE2b-256 |
08b781e5bca61adb02f0d85d1f8774f162514a40770d50e3643e01216cd0980c
|
File details
Details for the file vapor_ram-1.0.1-py3-none-any.whl.
File metadata
- Download URL: vapor_ram-1.0.1-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faee3e9fa19cdd9cbe9882032d4eac261adc28892c61e50ba19d13150eda682d
|
|
| MD5 |
81badd9807ffb350f08ca484f7844acc
|
|
| BLAKE2b-256 |
901c6361029fc759b4c130252a33d1f38affffae03ea3a31b3f097aff5c6128d
|