Views
No views yet
| File | Params | Size | Stage | Eval NIAH-single (ctx=1024) |
|---|---|---|---|---|
synapnet_edge_8m7.pt | 8.7M | 33 MB | Full 2-stage curriculum pretrain (ctx 512 → 1024) | 0.618 ± 0.107 (FP16, 3 seeds) |
synapnet_edge_130m.pt | 120.9M | 461 MB | 1,000-step pretrain, under-converged at this compute budget | not converged — released for deployment profiling only |
dim=192, depth=6, heads=6, episodic_slots=32vocab_size=4096, num_classes=64, max_len=8192k_frac=0.25 (sparse-attention top-K), episodic_write_frac=0.05dim=640, depth=10, heads=10, episodic_slots=321import torch
2from huggingface_hub import hf_hub_download
3from synapnet_edge.models.synapnet_edge_model import SynapNetEdge, SynapNetEdgeConfig
4
5ckpt_path = hf_hub_download(
6 repo_id="Vineetha00/synapnet-edge",
7 filename="synapnet_edge_8m7.pt",
8)
9ckpt = torch.load(ckpt_path, map_location="cpu")
10
11cfg = SynapNetEdgeConfig(**ckpt["model_cfg"])
12model = SynapNetEdge(cfg)
13model.load_state_dict(ckpt["model_state"])
14model.eval()pip install git+https://github.com/vineetha00/SynapNet-Edge.git1from synapnet_edge.quantization.cajq import apply_cajq, CAJQConfig
2from synapnet_edge.training.calibration import build_calib_loader
3
4calib_loader = build_calib_loader(n_samples=128, seq_len=1024)
5model = apply_cajq(
6 model,
7 CAJQConfig(device="mps"),
8 calib_loader=calib_loader,
9 mode="ptq", # or "qat" for QAT fine-tune
10)| Variant | Eff. bits | ctx 1024 | ctx 2048 | ctx 4096 |
|---|---|---|---|---|
| FP16 | 16.0 | 0.618 ± 0.107 | 0.507 ± 0.115 | 0.438 ± 0.036 |
| CAJQ-QAT (ours) | 13.8 | 0.674 ± 0.012 | 0.590 ± 0.043 | 0.521 ± 0.055 |
1from synapnet_edge import BAEEMemoryManager
2
3manager = BAEEMemoryManager(dim=192, n_layers=6, budget_mb=256.0)
4logits, debug = model.forward_streaming(
5 input_ids, chunk_size=512, baee_manager=manager,
6)1@article{synapnet_edge_2026,
2 title={SynapNet-Edge: Component-Aware Quantization and Budget-Aware Eviction for Hybrid Long-Context Models on Consumer Hardware},
3 author={Vallish Kumar, Vineetha},
4 year={2026},
5}