Download sd-c/README.md from afoolishman/self-drafting-latent-memory: direct link, hf CLI and curl.
- Browser
- Download file 1.62 kB
-
https://huggingface.co/afoolishman/self-drafting-latent-memory/resolve/main/sd-c/README.md
- Command line
-
hf download hf://afoolishman/self-drafting-latent-memory/sd-c/README.md
-
curl -L -o README.md https://huggingface.co/afoolishman/self-drafting-latent-memory/resolve/main/sd-c/README.md
SD-C (self-drafting, token router + SSM)
Part of the Self-Drafting Latent Memory collection.
SD-B plus a 256-channel non-selective diagonal SSM over (detached) embeddings. Its state feeds both the router and the draft query (181 routes). This is the best drafter in the study.
Architecture: 24-layer Llama-style decoder, d = 1024, 24 query / 4 KV heads, SwiGLU, RoPE, tied embeddings, vocabulary 32,768, context 2048. Training config:
w3_sdc_1bin the repository.Validation loss: 2.7111 (1B tokens).
Zero-shot (lm-eval 0.4.13):
HellaSwag MMLU-cloze SciQ WinoGrande PIQA ARC-Easy 28.6 24.3 60.3 51.6 58.3 40.0 Draft head: top-1 agreement 0.449 (held-out). Accepted tokens per step at gamma=4: 1.04 (head alone; beats a 300M-token n-gram drafter at 0.86), 2.52 (head + online counts, open text). Hybrid with prompt lookup: +0.13 over prompt lookup (open). Implied speedup with the PyTorch drafter: 2.86x (open, gamma=4).
Files
model.pt:{"model": state_dict, "config": ..., "step": ..., "params": ...}, weights only (no optimizer state).config.json: the resolved training/model config.params.json: parameter counts by component.
Load
from ffnmem.infer import load_model # code from the accompanying repository
model, cfg = load_model("sd-c/model.pt", device="cuda")
draft_logits = model.draft_logits(idx, b_idx, t_idx) # token ids only; no backbone forward
Research checkpoint: not instruction-tuned, not safety-tuned, not for deployment.