Dashboard › opencode-lore › Distillation
64a5ad18-3c49-4973-bcc6-29dad4f9ccf0["lore_tm_v1_xR1QTA1S2Z5ZLWBYU0NklXBoWtMh0eKwOK192GMPlK0"]
Date: Sep 16, 2026
0.7 and respawns the worker with a fresh heap.MIN_EMBED_TOKENS = 256.1; the primary worker always runs.os.freemem() can lead to an uncatchable process termination, so the ×0.7 OOM backoff never fires; the WASM path must instead self-limit before that point.665 MB baseline footprint before sizing transient allocation, with additional margin and OOM backoff for residual error.configured from search.embeddings.embedPoolSize or LORE_EMBED_POOL_SIZE, estimates how many workers fit into freeBytes using Math.floor(free / PER_WORKER_MEM_BUDGET_BYTES), and preserves a minimum of one primary worker.resolveMemoryHeadroom selects trustworthy current headroom across runtimes, accounting for Linux/container limits and runtime-reported availability rather than trusting host os.freemem() inside a constrained container.capFreememAtLearn is monotonic and acts as a no-op on an unconstrained host.Math.sqrt(budget / EMBED_ATTENTION_BYTES_PER_TOKEN_SQ) followed by clampEmbedCap(...).2048 tokens, while a cap around approximately 4962 trades some theoretical sequence length for memory safety.PersistedEmbedCap, EMBED_CAP_TRUST_BAND, and an explicit ceiling; stale learned caps from before the ceiling existed, such as an old value of 7000, are constrained by the newer bound.cap.BACKFILL_FULLSPEED_CORES, computes scaled = cores / BACKFILL_FULLSPEED_CORES, and exposes backfillThrottleSleepMs(...).