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.
- Sequential Layer Pipeline (SLP): Double-buffered
O_DIRECTNVMe SSD layer streaming. - AVX2 & OpenMP Acceleration: Tailored SIMD kernels for AMD Ryzen and Intel CPUs.
- 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).
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
│ └── 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
Quick Start
1. Build the Engine
make -C c
2. System Diagnostics & Resource Plan
./vapor doctor
./vapor plan
3. Interactive Terminal Chat
./vapor chat
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"
Access from any laptop or mobile device on your local Wi-Fi / network via:
http://<YOUR_LOCAL_IP>:8000/v1/chat/completionshttp://<YOUR_LOCAL_IP>:8000/v1/responses
License
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 Distributions
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.0-py3-none-any.whl.
File metadata
- Download URL: vapor_ram-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.6 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 |
9e921aa7bf18eaff5673623de613576b47c8d1ef4f064082e0613c659fac02b4
|
|
| MD5 |
f32a9c2f743b0954cd0fbe10c12621f0
|
|
| BLAKE2b-256 |
f0eee8f42682437a8ef6d018a6d73548a56b3984796ee9f85a78f8816736174c
|