Skip to main content

Asynchronous Self-Healing KV Cache for Silicon-Native LLMs by GDI Nexus

Project description

ASH-KV: Dynamic Attention Steering & KV-Cache Integrity Middleware

Hardware License Version Company

ASH-KV (Asynchronous Self-Healing KV Cache) is a high-performance middleware layer designed for Runtime Manifold Integrity Enforcement. It leverages silicon-native kernels to monitor the mathematical uncertainty (Varentropy) of the Attention Manifold and surgically prunes logical drift at the hardware level.


Technical Methodology

Varentropy-Proxy Monitoring

ASH-KV implements a deterministic uncertainty detector by analyzing the mathematical variance across the KV-Cache. This real-time analysis identifies Manifold Collapse—the mathematical state where a model's transition probability distribution becomes unstable—allowing for intervention before semantic errors materialize.

Real-Time Attention Steering

When uncertainty exceeds the threshold, ASH-KV executes a Gaussian Manifold Mutation directly within the compute graph.

  • Apple Silicon: Leverages @mx.compile Fused Metal kernels for sub-millisecond mutation.
  • NVIDIA: Implements synchronized PyTorch/CUDA tensor operations via the Hardware Abstraction Layer (HAL).
  • Latency: Verified at < 0.9ms on Apple M4 hardware (negligible inference overhead).

Infinite Horizon (NVMe Paging)

To bypass physical VRAM constraints, ASH-KV utilizes an LRU-based paging protocol. Inactive context chunks are offloaded to NVMe storage using zero-copy memory mapping, enabling 100k+ token windows on consumer-grade hardware.


API Reference

protect(model, sensitivity=0.85, critic_model_path=None)

Initializes the ASH-KV Hypervisor for a given neural model.

Parameter Type Default Description
model nn.Module Required An MLX or PyTorch model instance.
sensitivity float 0.85 The Varentropy threshold (0.0 to 1.0).
critic_model_path str None Optional path for ANE-accelerated manifold critics.

Research & Reproducibility

Our benchmarks use time.perf_counter_ns() to track the exact overhead of the Fused Metal Mutations.

ash-kv install    # Platform driver verification
ash-kv benchmark  # Unified Latency & Integrity suite

Hardware Abstraction Layer (HAL)

  • MLXHealer: Fused Metal backends for macOS.
  • CudaHealer: Synchronized tensor backends for NVIDIA/Linux.
  • UniversalTensorCritic: Pure mathematical manifold evaluation.

DISCLAIMER

ASH-KV is a probabilistic reliability layer. It is NOT a substitute for professional clinical or legal judgment. All AI-generated outputs must be verified by qualified human professionals.


© 2026 GDI Nexus Software Solutions LLP. All rights reserved.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlx_ash_kv-8.3.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlx_ash_kv-8.3.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file mlx_ash_kv-8.3.0.tar.gz.

File metadata

  • Download URL: mlx_ash_kv-8.3.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for mlx_ash_kv-8.3.0.tar.gz
Algorithm Hash digest
SHA256 62d085664bf35605328fca9ec1ba59064f2e82cb4706f8b7223991c5b6cd6928
MD5 e88502cdfe33cac24520077faa457615
BLAKE2b-256 92292128909011fdc556a634ba713be42abb8df6c8f625503720f26a530189b5

See more details on using hashes here.

File details

Details for the file mlx_ash_kv-8.3.0-py3-none-any.whl.

File metadata

  • Download URL: mlx_ash_kv-8.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for mlx_ash_kv-8.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5f76245fa4dd4d226871f89dc2b1ff167e714cd4757709f80b1b657f23796e6
MD5 a649433537f78ddc50d57ca3dafbb25f
BLAKE2b-256 b9440b6c082a8638bb01f0ee740659ea45e10d0fbc04246315509d3a0341da35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page