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
Browse filesBrowse the repository at this point in the historyBrowse files
Bala Vignesh S
committed
feat: integrate TitanMem as experimental memory subsystem with honest benchmark results
- Add src/titanmem/ module (win32_monitor, metrics)
- Add benchmarks/titanmem/ with reproducible blind test harness
- Add docs/titanmem_benchmarks.md with full methodology and raw numbers
- Update README: remove unearned claims, add TitanMem section with evidence
- TitanMem v1 status: did not outperform native OS paging under controlled testing
- Add design principle: Measure Before You Claim
Hypercore is an OpenAI-compatible LLM inference server written in Rust, designed for internal APIs, edge inference, and on-prem deployments where reliability matters more than raw throughput.
29
+
28
30
-**Continuous batching** (up to 4 sessions)
29
31
-**Hard memory + context bounds** (no silent OOMs)
Hypercore is a CPU-first, OpenAI-compatible LLM inference runtime focused on deterministic scheduling, bounded resource usage, and production stability.
*Comparisons to other runtimes (vLLM, llama.cpp, TGI) via standardized harness will be published in v1.1.*
131
+
---
132
+
133
+
## TitanMem
134
+
135
+
TitanMem is Hypercore's experimental memory virtualization subsystem. It was designed to improve inference speed when running models larger than available physical RAM.
136
+
137
+
**Status: Experimental — current implementation does not outperform native OS paging.**
138
+
139
+
We built TitanMem, benchmarked it rigorously under enforced memory pressure (via `SetProcessWorkingSetSizeEx` hard working set limits), and discovered that the Windows kernel's native demand paging already handles mmap'd model files near-optimally. Our prefetch strategy actively increased page faults and reduced throughput.
140
+
141
+
We published the data anyway because honest engineering matters more than marketing.
142
+
143
+
👉 **[Full benchmark results and methodology](docs/titanmem_benchmarks.md)**
-**Max concurrency is bounded** (default: 4 sessions)
141
167
-**Not optimized for high-throughput public LLM APIs**
142
168
-**Best suited for internal / edge / controlled environments**
169
+
-**TitanMem memory engine is experimental and does not yet demonstrate an advantage**
170
+
171
+
---
172
+
173
+
## Architecture
174
+
175
+
Hypercore enforces strict lifecycle tracking, invariant assertions on KV-cache slot allocation, and proactive memory pressure monitoring.
176
+
177
+
👉 **[Read the Architecture Document](docs/architecture.md)**
143
178
144
179
---
145
180
@@ -163,7 +198,6 @@ services:
163
198
```
164
199
165
200
### 2. systemd Service
166
-
Deploying on a bare-metal Linux node? Drop this into `/etc/systemd/system/hypercore.service`:
167
201
```ini
168
202
[Unit]
169
203
Description=Hypercore LLM Inference Runtime
@@ -179,45 +213,6 @@ Environment="RUST_LOG=info"
179
213
WantedBy=multi-user.target
180
214
```
181
215
182
-
### 3. Railway / Render (Serverless Containers)
183
-
Hypercore is perfect for serverless container platforms because it has zero bloat and boots instantly.
184
-
1. Add a `Dockerfile` that downloads your GGUF and runs the binary.
185
-
2. Set the `PORT` env var (Hypercore binds to it automatically).
186
-
3. Deploy!
187
-
188
-
---
189
-
190
-
## Architecture
191
-
192
-
Hypercore enforces strict lifecycle tracking, invariant assertions on KV-cache slot allocation, and proactive memory pressure monitoring.
193
-
194
-
👉 **[Read the Architecture Document](docs/architecture.md)**
195
-
196
-
---
197
-
198
-
## "Why Not vLLM?" FAQ
199
-
200
-
Hypercore targets a different deployment class than vLLM.
201
-
202
-
- **GPU-First vs CPU-First:** vLLM expects a cluster of A100s or H100s and uses PagedAttention to maximize throughput on GPUs. Hypercore is designed for the 95% of deployments that don't need a $20k GPU: internal tools, edge devices, and enterprise APIs running on standard VMs.
203
-
- **Python vs Rust:** vLLM has a large Python dependency graph. Hypercore is a single 15MB statically linked binary.
204
-
- **Throughput vs Reliability:** vLLM is optimized for maximum token generation. Hypercore optimizes for safety bounds — if a server runs out of memory, Hypercore rejects the request instantly with a clean `503` rather than failing mid-generation.
205
-
206
-
---
207
-
208
-
## Design Philosophy
209
-
210
-
Hypercore is built on three core principles that guide every engineering decision:
211
-
212
-
### 1. Boring is What Users Trust
213
-
Every component is designed to be **predictable under load**. Hypercore chooses explicit error handling over silent fallbacks, deterministic scheduling over probabilistic heuristics, and clear failure modes over optimistic retries.
214
-
215
-
### 2. No Silent Mutations
216
-
If Hypercore can't fulfill a request exactly as specified, it rejects it with a clear error. It will never silently truncate your prompt, quietly reduce `max_tokens`, or drop requests without telling you. Every admission decision, every timeout, every rejection is logged and metriced.
217
-
218
-
### 3. Safety is Not Optional
219
-
Memory limits aren't suggestions. Request timeouts aren't configurable to "infinity." Body size limits can't be disabled. The Safety Governor runs continuously, monitoring system memory and swap pressure.
Every component is designed to be **predictable under load**. Hypercore chooses explicit error handling over silent fallbacks, deterministic scheduling over probabilistic heuristics, and clear failure modes over optimistic retries.
275
+
276
+
### 2. No Silent Mutations
277
+
If Hypercore can't fulfill a request exactly as specified, it rejects it with a clear error. It will never silently truncate your prompt, quietly reduce `max_tokens`, or drop requests without telling you.
278
+
279
+
### 3. Safety is Not Optional
280
+
Memory limits aren't suggestions. Request timeouts aren't configurable to "infinity." Body size limits can't be disabled.
281
+
282
+
### 4. Measure Before You Claim
283
+
Every performance claim in this repository is backed by reproducible benchmarks. If a subsystem doesn't demonstrate an advantage under rigorous testing, we say so.
284
+
285
+
---
286
+
279
287
## Contributing
280
288
281
289
Contributions are welcome! Please:
@@ -290,8 +298,6 @@ Contributions are welcome! Please:
290
298
291
299
## Security
292
300
293
-
Hypercore takes security seriously at every layer:
294
-
295
301
| Layer | Protection |
296
302
|-------|------------|
297
303
| **Network** | Optional Bearer token auth, CORS controls |
@@ -301,8 +307,6 @@ Hypercore takes security seriously at every layer:
0 commit comments