An adaptive
memory engine
for multi-agent
LLMs.Çok-ajanlı
LLM'ler için
uyarlanır bellek
motoru.
MNEMOS scores every event by importance and routes it through three-tier compression — keeping long-horizon reasoning sharp while it runs on real, on-prem or BAA-cloud silicon.MNEMOS her olayı önemine göre skorlar ve üç katmanlı sıkıştırmaya yönlendirir — uzun vadeli akıl yürütmeyi keskin tutarken gerçek, öz-barındırma veya BAA-bulut silikonunda çalışır.
The full history
is the bottleneck.Tüm geçmiş
darboğazdır.
Long-horizon multi-agent LLM systems face an impossible trade-off. Either they forget — truncating history with a lossy sliding window and losing the facts that matter — or they drown in their own past, dragging the entire conversation forward at every step.Uzun vadeli çok-ajanlı LLM sistemleri imkansız bir takasla karşı karşıyadır. Ya unuturlar — geçmişi kayıplı bir kayan pencereyle keserek önemli bilgileri yitirirler — ya da kendi geçmişlerinde boğulurlar, her adımda tüm konuşmayı sürükleyerek taşırlar.
Carrying the full transcript means runaway token counts, rising latency, and eventually hitting the hard context-window limit. And as the prompt swells, critical facts dilute into noise — retrieval gets worse, not better. MNEMOS is built to keep the signal while shedding the bulk.Tüm dökümü taşımak, kontrolden çıkan token sayıları, artan gecikme ve sonunda sabit bağlam-penceresi sınırına çarpmak anlamına gelir. İstem şiştikçe kritik bilgiler gürültüye seyrelir — geri çağırma iyileşmez, kötüleşir. MNEMOS, kütleyi atarken sinyali korumak üzere inşa edilmiştir.
Runaway TokensKontrolsüz Token
Every retained event adds to the prompt — token counts climb relentlessly as the interaction history grows.Tutulan her olay istemi büyütür — etkileşim geçmişi büyüdükçe token sayıları durmaksızın tırmanır.
Rising LatencyArtan Gecikme
Larger contexts mean slower retrieval and slower inference at every single step of the task.Daha büyük bağlamlar, görevin her bir adımında daha yavaş geri çağırma ve daha yavaş çıkarım anlamına gelir.
Context-Window LimitsBağlam Penceresi Sınırları
Histories eventually exceed the model's hard context window, forcing lossy truncation.Geçmişler sonunda modelin sabit bağlam penceresini aşar ve kayıplı kesmeye zorlar.
Information DilutionBilgi Seyrelmesi
Critical facts drown in noise — retrieval failures and degraded reasoning quality follow.Kritik bilgiler gürültüde boğulur — geri çağırma başarısızlıkları ve düşen akıl yürütme kalitesi bunu izler.
Scoring every
event, I(eₜ).Her olayı
skorlamak, I(eₜ).
Our scoring model assigns every incoming event a single importance value from four weighted factors. That score is the dial that decides how much of the event survives.Skorlama modelimiz, gelen her olaya dört ağırlıklı faktörden tek bir önem değeri atar. Bu skor, olayın ne kadarının korunacağına karar veren ayar düğmesidir.
Worked exampleÖrnek hesap
0.83 ≥ 0.50 → routed to Verbatim.R=0.8, T=0.6, E=1.0, D=1 iken: I = 0.35(0.8) + 0.25(0.6) + 0.25(1.0) + 0.15(1) = 0.28 + 0.15 + 0.25 + 0.15 = 0.83 ≥ 0.50 → Birebir katmana yönlendirilir.Cosine similarity of TF-IDF vectors between the event and the current query context.Olay ile mevcut sorgu bağlamı arasındaki TF-IDF vektörlerinin kosinüs benzerliği.
cos( v(eₜ), v(Q) )Worked exampleÖrnek hesap
0.80.Olay ve sorgu, ortak söz dağarcığı üzerinden TF-IDF vektörlerine dönüşür; kosinüs uzunluğu değil yönü karşılaştırır, böylece kısa ve uzun olaylar adil biçimde değerlendirilir. v(e)·v(Q)=2.4, ‖v(e)‖=2.0 ve ‖v(Q)‖=1.5 ise, R = 2.4 / (2.0·1.5) = 0.80.Exponential decay — recent events weigh more, with λ = 0.05.Üstel sönüm — yeni olaylar daha ağır basar, λ = 0.05 ile.
exp(−λ·(T − t))Worked exampleÖrnek hesap
0.607. At 30 steps: e−1.5≈0.223. T hits 0.5 at Δ=ln2/0.05≈13.86 steps — the half-life.λ=0.05. 10 adım eski bir olay: T=e−0.5≈0.607. 30 adımda: e−1.5≈0.223. T, Δ=ln2/0.05≈13.86 adımda 0.5'e ulaşır — yarı-ömür.Density of domain keywords: patient names, account numbers, risk codes, dosages.Alan anahtar kelimelerinin yoğunluğu: hasta adları, hesap numaraları, risk kodları, dozajlar.
min(1.0, Count(Ent)/Words × 5)Worked exampleÖrnek hesap
0.25. At ≥12 entities per 60 words density≥0.2, so E saturates at 1.0.60 kelimelik bir olayda 3 varlık: yoğunluk=3/60=0.05 → E=min(1, 5·0.05)=0.25. 60 kelimede ≥12 varlık olduğunda yoğunluk≥0.2 olur, böylece E 1.0 değerinde doygunlaşır.Binary 1/0 for decision verbs: diagnosed, ordered, confirmed, recommended, authorized.Karar fiilleri için ikili 1/0: teşhis etti, istedi, onayladı, önerdi, yetkilendirdi.
1 if decision-verb else 0Worked exampleÖrnek hesap
1. 'patient rested overnight' has no decision verb → D=0.'lisinopril 10 mg istendi' ifadesi 'istendi' ∈ Vdec içerir → D=1. 'hasta gece boyunca dinlendi' ifadesinde karar fiili yoktur → D=0.Our scoring model uses fixed weights summing to 1.00 with thresholds at I ≥ 0.50 (verbatim) and I < 0.25 (aggressive). These are MNEMOS design parameters, not tuned benchmark settings.Skorlama modelimiz, toplamı 1.00 olan sabit ağırlıklar ve I ≥ 0.50 (birebir) ile I < 0.25 (agresif) eşiklerini kullanır. Bunlar, ayarlanmış kıyas ayarları değil, MNEMOS tasarım parametreleridir.
Score in.
Strategy out.Skor girer.
Strateji çıkar.
The most significant events are kept word-for-word. No information is sacrificed for the highest-value memories.En önemli olaylar kelimesi kelimesine tutulur. En değerli bellekler için hiçbir bilgi feda edilmez.
Keep the first sentence plus the top 50% of sentences ranked by entity density. The gist and the anchors survive.İlk cümle artı varlık yoğunluğuna göre sıralanmış cümlelerin üst %50'si tutulur. Özü ve dayanak noktaları korunur.
Reduce to entities plus active decision terms only — a dense, anchor-preserving trace.Yalnızca varlıklara artı aktif karar terimlerine indirgenir — yoğun, dayanak-koruyan bir iz.
The model,
in full.Modelin
tamamı.
Here is how compression is formalized end to end — the importance score routes each event to a tier, an extractive rule selects which sentences survive, a compression ratio measures the result, top-k retrieval blends similarity and importance, and a budget-allocation objective sets the target MNEMOS approximates with two thresholds.Sıkıştırma uçtan uca şöyle biçimlendirilir — önem skoru her olayı bir katmana yönlendirir, çıkarımsal bir kural hangi cümlelerin korunacağını seçer, bir sıkıştırma oranı sonucu ölçer, top-k geri çağırma benzerlik ile önemi harmanlar ve bir bütçe-tahsis amacı, MNEMOS'un iki eşikle yaklaştığı hedefi belirler.
Worked exampleÖrnek hesap
Worked exampleÖrnek hesap
3 of 5 sentences retained.5 cümlelik bir olay (n=5): s₁ artı varlık yoğunluğuna göre en üst ⌈(5−1)/2⌉=2 cümle tutulur → 5 cümleden 3'ü korunur.Worked exampleÖrnek hesap
4.2×.Ham geçmiş 8.000 token ve sıkıştırılmış depo 1.900 token ise, CR = 8000/1900 ≈ 4.2×.Worked exampleÖrnek hesap
0.81; the 5 highest-scoring events are retrieved.α=0.7 ile, cos=0.9 ve I=0.6 olan bir olay 0.7·0.9 + 0.3·0.6 = 0.63 + 0.18 = 0.81 puan alır; en yüksek puanlı 5 olay geri çağrılır.Worked exampleÖrnek hesap
Interactive — recency decayEtkileşimli — yenilik sönümü
Drag λ to see how fast old events fade; the dashed line marks the half-life.Eski olayların ne kadar hızlı solduğunu görmek için λ'yı sürükle; kesik çizgi yarı-ömrü gösterir.
Agents → score →
compress → recall.Ajanlar → skor →
sıkıştır → geri çağır.
What real silicon
it takes.Gerçek silikon
ne gerektirir.
MNEMOS is built to run on real infrastructure, in three growing stages. The heaviest cost at every stage is the LLM-serving GPUs driving the four agents — everything else sizes around them.MNEMOS, üç büyüyen aşamada gerçek altyapıda çalışmak üzere inşa edilmiştir. Her aşamada en ağır maliyet, dört ajanı süren LLM sunan GPU'lardır — geri kalan her şey onların etrafında boyutlandırılır.
| StageAşama | GoalAmaç | Self-host CAPEXÖz-barındırma CAPEX | Cloud (BAA)/moBulut (BAA)/ay | RecommendedÖnerilen |
|---|---|---|---|---|
| PoC | Validate on real data + a real vector DB at small scaleGerçek veri + gerçek vektör DB ile küçük ölçekte doğrulama | ~$15–35k | ~$1–2k | Cloud-API (BAA)Bulut-API (BAA) |
| Pilot | One domain, real users, real sensitive dataTek alan, gerçek kullanıcılar, gerçek hassas veri | ~$130–220k | ~$10–20k | On-prem if data can't leaveVeri dışarı çıkamıyorsa öz-barındırma |
| Production | Two domains, scaled, HA, fully compliantİki alan, ölçekli, HA, tam uyumlu | ~$720k–1.5M + ~$0.5–1M/yr opex | ~$40–140k | Hybrid (sensitive on-prem, rest BAA)Hibrit (hassas veri öz-barındırma, gerisi BAA) |
Costs are order-of-magnitude planning figures, not quotes. CAPEX is one-time hardware; cloud figures are monthly BAA-endpoint spend at the corresponding scale.Maliyetler teklif değil, büyüklük mertebesinde planlama rakamlarıdır. CAPEX tek seferlik donanımdır; bulut rakamları ilgili ölçekte aylık BAA uç-nokta harcamasıdır.
PoC — LLM ServingPoC — LLM Sunumu
1× RTX 4090 24GB running an 8B model for the pipeline test — or 1× A100 80GB / RTX 6000 Ada 48GB to serve a 70B-class model at INT4. The heaviest subsystem is LLM inference serving for the four agents.1× RTX 4090 24GB, hat testi için bir 8B model çalıştırır — veya 1× A100 80GB / RTX 6000 Ada 48GB ile bir 70B sınıfı modeli INT4'te sunmak için. En ağır alt sistem, dört ajan için LLM çıkarım sunumudur.
Pilot — LLM ServingPilot — LLM Sunumu
2× H100 80GB (or 2× A100 80GB), serving a 70B AWQ-INT4 model as single-GPU replicas — the lowest latency for the four sequential agents.2× H100 80GB (veya 2× A100 80GB), bir 70B AWQ-INT4 modeli tek-GPU kopyaları olarak sunar — dört sıralı ajan için en düşük gecikme.
Production — LLM ServingProduction — LLM Sunumu
8× H100 / H200 per node × 2–4 nodes (16–32 GPUs), N+1 HA, NVSwitch; tiered models per agent and per-domain fleet isolation.Düğüm başına 8× H100 / H200 × 2–4 düğüm (16–32 GPU), N+1 HA, NVSwitch; ajan başına katmanlı modeller ve alan başına filo izolasyonu.
Sizing the
silicon.Silikonu
boyutlamak.
These are the equations that turn a model plus its traffic into a concrete GPU bill — VRAM, KV-cache per token, concurrency, end-to-end latency, and the cloud-vs-self-hosting break-even — worked through on a 70B INT4 example so the numbers are real, not abstract.Bunlar, bir modeli ve trafiğini somut bir GPU faturasına dönüştüren denklemlerdir — VRAM, token başına KV-önbelleği, eşzamanlılık, uçtan uca gecikme ve bulut ile öz-barındırma arasındaki başabaş noktası — sayılar soyut değil gerçek olsun diye bir 70B INT4 örneği üzerinden işlenmiştir.
Worked exampleÖrnek hesap
35 GB. Then add the KV cache (next equation) and ~2–3 GB of activation/framework overhead.INT4'te 70B: ağırlıklar = 70 × 0.5 = 35 GB. Ardından KV önbelleğini (sonraki denklem) ve ~2–3 GB aktivasyon/çerçeve payını ekle.Worked exampleÖrnek hesap
0.3125 MB per token.İki tensör (K ve V) × 80 katman × 8 KV-başlığı × 128 başlık-boyutu × 2 bayt (FP16) = 327.680 bayt = token başına 0.3125 MB.Worked exampleÖrnek hesap
45 GB free. Each 8K-token sequence needs 0.3125 MB × 8192 ≈ 2.56 GB. 45 / 2.56 ≈ 17 concurrent sequences.80 GB'lık bir GPU'da: 80 − 35 (ağırlıklar) ≈ 45 GB boş. Her 8K-token dizisi 0.3125 MB × 8192 ≈ 2.56 GB gerektirir. 45 / 2.56 ≈ 17 eşzamanlı dizi.Worked exampleÖrnek hesap
5.7 s; 4 sequential hops ≈23 s end-to-end.Her ajan ~2.000 istem token'ı okur (dolum ≈3.000 tok/s → 0.67 s) ve ~400 token yazarsa (çözme ≈80 tok/s → 5.0 s), bir adım ≈5.7 s; 4 sıralı adım uçtan uca ≈23 s.Worked exampleÖrnek hesap
8.3 billion tokens/month. Below that, the managed BAA API is cheaper.Öz-barındırma TCO ≈ $50k/ay (amortismanlı GPU'lar + güç + 1–2 MLOps mühendisi) ve harmanlanmış BAA fiyatı ≈ 1M token başına $6 ile, başabaş = 50.000 ÷ 6 ≈ ayda 8.3 milyar token. Bunun altında, yönetilen BAA API'si daha ucuzdur.Interactive — GPU sizing calculatorEtkileşimli — GPU boyutlama hesaplayıcı
Pick a model, quantization, GPU and context length to size VRAM, KV cache and concurrency live.VRAM, KV önbelleği ve eşzamanlılığı canlı hesaplamak için model, kuantizasyon, GPU ve bağlam uzunluğu seç.
Everything around
the GPUs.GPU'ların
etrafındaki her şey.
Vector Memory DBVektör Bellek DB
RAM-bound: ~99 GB at 50M / ~394 GB at 200M vectors (int8, RF=2). The compressed store is served from memory for fast top-k recall.RAM'e bağlı: 50M'de ~99 GB / 200M vektörde ~394 GB (int8, RF=2). Sıkıştırılmış depo, hızlı top-k geri çağırma için bellekten sunulur.
EmbeddingsGömme Vektörleri
Small L4 24GB GPUs handle embedding generation — cheap, parallel, and well separated from the heavy LLM-serving tier.Küçük L4 24GB GPU'lar gömme üretimini yürütür — ucuz, paralel ve ağır LLM-sunum katmanından iyi ayrılmış.
Entity NERVarlık NER
Upgrade from regex to a transformer NER (clinical / financial): L4 for inference + A100 80GB for training. An H100 is overkill here.Regex'ten bir transformer NER'e yükseltme (klinik / finansal): çıkarım için L4 + eğitim için A100 80GB. Burada bir H100 fazlasıyla yeterlidir.
Compliance InfraUyumluluk Altyapısı
HSM HA pair (~$60–120k), next-gen firewall HA pair (~$40–80k), network segmentation, immutable audit logs (6-yr HIPAA / 1-yr PCI), PAN tokenization.HSM HA çifti (~$60–120k), yeni nesil güvenlik duvarı HA çifti (~$40–80k), ağ segmentasyonu, değiştirilemez denetim günlükleri (6-yıl HIPAA / 1-yıl PCI), PAN tokenizasyonu.
The compliance gate. The moment real PHI (HIPAA) or cardholder data (PCI-DSS) is used, consumer LLM APIs are forbidden — only a signed-BAA enterprise endpoint (Azure OpenAI / AWS Bedrock / Vertex / Anthropic enterprise) or fully on-prem self-hosting is allowed. Finance additionally needs its own PCI-DSS attestation, not just a HIPAA BAA.Uyumluluk eşiği. Gerçek PHI (HIPAA) veya kart sahibi verisi (PCI-DSS) kullanıldığı anda tüketici LLM API'leri yasaktır — yalnızca imzalı-BAA kurumsal uç noktası (Azure OpenAI / AWS Bedrock / Vertex / Anthropic kurumsal) veya tamamen yerinde (on-prem) öz-barındırma izinlidir. Finans, yalnızca bir HIPAA BAA değil, ek olarak kendi PCI-DSS beyanına ihtiyaç duyar.
Two ways
to run it.Çalıştırmanın
iki yolu.
Self-Hosted On-PremYerinde Öz-Barındırma
Full data control and the compliance default for sensitive data — the data never leaves the building. Predictable cost at high steady volume, at the price of running your own GPU fleet.Tam veri kontrolü ve hassas veri için uyumluluk varsayılanı — veri binayı asla terk etmez. Yüksek ve istikrarlı hacimde öngörülebilir maliyet, kendi GPU filonuzu çalıştırma bedeliyle.
BAA Managed CloudBAA Yönetilen Bulut
Cheaper at moderate volume, elastic, and no GPU operations to run. Requires a signed BAA, (for finance) a PCI attestation, and PrivateLink so traffic never traverses the public internet.Orta hacimde daha ucuz, esnek ve çalıştırılacak GPU operasyonu yok. İmzalı bir BAA, (finans için) bir PCI beyanı ve trafiğin halka açık internetten geçmemesi için PrivateLink gerektirir.
Self-hosting only beats the BAA cloud API past the order of a few billion tokens/month once power, cooling and 1–2 MLOps staff are counted — below that, the managed BAA API is cheaper.Öz-barındırma, güç, soğutma ve 1–2 MLOps personeli sayıldığında BAA bulut API'sini ancak birkaç milyar token/ay mertebesinin üzerinde geçer — bunun altında, yönetilen BAA API'si daha ucuzdur.
Where MNEMOS
goes next.MNEMOS bundan
sonra nereye.
Architecture + Hardware SizingMimari + Donanım Boyutlandırma
The full design: scoring model, three-tier compression, pipeline, and the staged GPU + compliance sizing.Tüm tasarım: skorlama modeli, üç katmanlı sıkıştırma, hat ve aşamalı GPU + uyumluluk boyutlandırması.
PoC on Real DataGerçek Veride PoC
Run on real data + a real vector DB — on a single GPU box or a BAA cloud endpoint.Gerçek veri + gerçek vektör DB üzerinde çalıştırma — tek bir GPU kutusunda veya bir BAA bulut uç noktasında.
Single-Domain PilotTek-Alan Pilotu
A single-domain pilot on a 2×80GB node, with real users and real sensitive data.2×80GB düğüm üzerinde, gerçek kullanıcılar ve gerçek hassas veriyle tek-alan pilotu.
HA ProductionHA Production
High-availability production across both domains — fleet isolation, N+1 redundancy, full compliance.Her iki alanda yüksek erişilebilirlikli üretim — filo izolasyonu, N+1 yedeklilik, tam uyumluluk.
Forward-looking status, not measured results. MNEMOS is at the design → PoC boundary today.Ölçülmüş sonuçlar değil, ileriye dönük durum. MNEMOS bugün tasarım → PoC sınırındadır.