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.
- Provider
- Stanford University
- 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
- S4 vs SRU++ Large
- S4 vs base LM+GNN+kNN
- S4 vs CLIP (ViT L/14@336px)
- S4 vs ConSERT
- S4 vs Engine-Medium(NE)
- S4 vs GPT-Neo-125M
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| SRU++ Largeopen | ASAPP | Feb 2021 | 234M | — | — | — | — |
| base LM+GNN+kNNopen | Shannon.AI | Oct 2021 | 274M | — | — | — | — |
| CLIP (ViT L/14@336px)open | OpenAI | Jan 2021 | 370M | — | — | — | — |
| ConSERTopen | Meituan (LongCat) | May 2021 | 340M | — | — | — | — |
| Engine-Medium(NE)open | Boston University | Dec 2021 | 355M | — | — | — | — |
| GPT-Neo-125Mopen | EleutherAI | Mar 2021 | 150M | — | — | — | — |
| EMDRopen | Google DeepMind | Jun 2021 | 440M | — | — | — | — |
| DeBERTaV3largeopen | Microsoft | Nov 2021 | 418M | — | — | — | — |
More models from Stanford University
All Stanford University models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| GPT3-2.7B (FlashAttention-2) | Jul 2023 | 2.7B | — | — | — |
| DPO on Pythia-2.8B | May 2023 | 2.8B | — | — | — |
| minChatGPTopen | Mar 2023 | 1.6B | — | — | — |
| Alpacaopen | Mar 2023 | 7B | — | — | — |
| Hyena 1.3B | Feb 2023 | 1.3B | — | — | — |
| Hyena-2 153Mopen | Feb 2023 | 153M | — | — | — |
| Hybrid H3-2.7Bopen | Dec 2022 | 2.7B | — | — | — |
| Hybrid H3-125Mopen | Dec 2022 | 125M | — | — | — |
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.