Downloads · 30 days
71
13% of all-time downloads
Wanyun/hola-340m
hola-340m is a text generation model from Wanyun. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This is the main HOLA checkpoint used in the paper.
Downloads · 30 days
71
13% of all-time downloads
All-time downloads
564
Public
Parameters
400M
800 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors799 MB · 100%
From the Hugging Face model README
This is the main HOLA checkpoint used in the paper.
w=64, chunk=256, RMSNorm-gamma cache readbetae (HOLA, surprise eviction by beta * ||e||)Install the HOLA code package first, then load with Hugging Face Auto classes:
import torch
import fla # registers gated_deltanet
from transformers import AutoModelForCausalLM, AutoTokenizer
path = "YOUR_ORG/hola-340m"
tok = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
path, torch_dtype=torch.bfloat16, device_map={"": "cuda"}
).eval()
prompt = "The capital of France is"
ids = tok(prompt, return_tensors="pt").input_ids.to("cuda")
out = model.generate(ids, max_new_tokens=32, do_sample=False)
print(tok.decode(out[0], skip_special_tokens=True))
For the recency-control model, generation-style evaluations should set:
export FLA_FORCE_NO_CACHE=1
| Metric | Value |
|---|---|
| Wikitext-103 PPL | 22.92 |
| LAMBADA PPL | 30.26 |
| Six-task commonsense average | 42.85 |
| FDA retrieval | 20.1 |
| SWDE retrieval | 35.9 |
| RULER S-NIAH-1 at 32k | 0.58 |
@article{hola2026,
title = {HOLA: Hybrid Optimization with a Learned Attention Cache},
author = {TODO},
journal = {arXiv preprint},
year = {2026}
}