Skip to content
llmmodels
Chat LLMOpen weightsHistorical

S4

by Stanford University · Oct 31, 2021

S4 is an open-weight chat llm from Stanford University, released Oct 31, 2021. It has 249M parameters.

Released
Oct 31, 2021
Type
Chat LLM
Parameters
249M
Context window
—
Max output
—
Input
text
Output
text
Weights
Open weights
License
Open (permissive)
Knowledge cutoff
—
Status
Historical
Training compute
7.8e+19 FLOP
Training data
103M tokens/words

About S4

A central goal of sequence modeling is designing a single principled model that can address sequence data across a range of modalities and tasks, particularly on long-range dependencies. Although conventional models including RNNs, CNNs, and Transformers have specialized variants for capturing long dependencies, they still struggle to scale to very long sequences of 10000 or more steps.

How to run S4

S4 is an open-weight model. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 249M parameters it needs roughly 1 GB of memory at 4-bit quantization.

S4 vs alternatives

Alternatives to S4
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
SRU++ LargeopenASAPPFeb 2021234M————
base LM+GNN+kNNopenShannon.AIOct 2021274M————
CLIP (ViT L/14@336px)openOpenAIJan 2021370M————
ConSERTopenMeituan (LongCat)May 2021340M————
Engine-Medium(NE)openBoston UniversityDec 2021355M————
GPT-Neo-125MopenEleutherAIMar 2021150M————
EMDRopenGoogle DeepMindJun 2021440M————
DeBERTaV3largeopenMicrosoftNov 2021418M————

More models from Stanford University

All Stanford University models →
ModelReleasedParamsContextInput $/1MOutput $/1M
GPT3-2.7B (FlashAttention-2)Jul 20232.7B———
DPO on Pythia-2.8BMay 20232.8B———
minChatGPTopenMar 20231.6B———
AlpacaopenMar 20237B———
Hyena 1.3BFeb 20231.3B———
Hyena-2 153MopenFeb 2023153M———
Hybrid H3-2.7BopenDec 20222.7B———
Hybrid H3-125MopenDec 2022125M———

Frequently asked questions

Who made S4?

S4 was developed by Stanford University (United States of America). It was released on Oct 31, 2021.

Is S4 open source?

Yes. S4's weights are publicly available, so you can download and run it yourself.

How many parameters does S4 have?

S4 has 249M parameters.

Sources: epoch · paper. Last updated 2026-11-22.