Co-LMLM
Collection
Models, Indices & Data for Co-LMLM: Continuous-Query Limited Memory Language Models. https://lil-lab.github.io/co-lmlm-web/ • 5 items • Updated
How to use lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW")
model = AutoModelForCausalLM.from_pretrained("lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW", device_map="auto")How to use lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW
How to use lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW with Docker Model Runner:
docker model run hf.co/lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW
The 360M-parameter standard LM baseline from the paper Co-LMLM: Continuous-Query Limited Memory Language Models, trained on FineWeb-Edu.
This is the data-matched control for CoLMLM-360M-FW:
an ordinary causal language model trained from scratch on the same corpus, with the <FACT>
annotations stripped out to plain text.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "lil-lab/CoLMLM-Standard-LM-Baseline-360M-FW"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
inputs = tokenizer("The Eiffel Tower is located in", return_tensors="pt")
print(tokenizer.decode(model.generate(**inputs, max_new_tokens=32)[0]))
This model is part of the Co-LMLM collection.
@misc{feldman2026colmlmcontinuousquerylimitedmemory,
title={Co-LMLM: Continuous-Query Limited Memory Language Models},
author={Yair Feldman and Linxi Zhao and Nathan Godey and Dongyoung Go and Yilun Hua and Kilian Q. Weinberger and Jennifer J. Sun and Yoav Artzi},
year={2026},
eprint={2607.07707},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2607.07707},
}