Engram Conditional Memory (N-gram Hash Lookup + Offload/Prefetch)

Community

Deterministic N-gram memory for scalable AI.

Authorsovr610
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Engram Conditional Memory provides fast, deterministic memory lookups for language models by hashing N-gram contexts to embedding vectors, with optional CPU offload and asynchronous prefetch to scale memory usage.

Core Features & Use Cases

  • Deterministic multi-head N-gram hashing for memory retrieval
  • Tokenizer compression integration to reduce vocabulary size efficiently
  • Phase 1 encoder-competition and Phase 2 layer-augmentation to fuse memory with backbone processing
  • CPU offload plus async prefetch to scale large embedding tables without exhausting GPU memory
  • Flexible integration with gating, depthwise causal convolution, and residual fusion for stable training

Quick Start

Run Engram memory with default configuration and enable CPU offload to observe prefetch-driven memory retrieval.

Dependency Matrix

Required Modules

pytesttorchnumpy

Components

scriptsreferencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Engram Conditional Memory (N-gram Hash Lookup + Offload/Prefetch)
Download link: https://github.com/sovr610/refffiy/archive/main.zip#engram-conditional-memory-n-gram-hash-lookup-offload-prefetch

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.