SoLMo-100M-PR
a compact non-Transformer language model based on a recurrent SSM
2 min readupdated
SoLMo-100M (Smol Language Model) is an early version of a base language model with about 100 million parameters, trained on English and Romanian. Its main feature is its architecture: it skips the traditional attention mechanism (Transformer), replacing it with a causal diagonal recurrent SSM (State Space Model) and SwiGLU layers. Because of this, the model needs no KV cache (memory for storing context), and its memory consumption during generation does not grow with context length. The model is a base pretrained version without instruction-tuning or safety systems, making it great for researchers of new neural network architectures and developers of compact bilingual systems.
Key features
- Bilingual dataset: trained on equal parts of English and Romanian texts totaling 4.5 billion tokens, plus code.
- SSM architecture: completely lacks attention mechanisms and positional embeddings, using recurrent state updates.
- Constant memory: the absence of a KV cache allows efficient processing of sequences without a sharp rise in VRAM consumption.
- Easy integration: comes with a custom tokenizer and weights in safetensors format for standard Hugging Face pipelines.
What you can do
- Research alternative language model architectures without using Transformers for text tasks.
- Use as a lightweight base for further fine-tuning on specific English or Romanian tasks.
- Test text continuation generation and autocomplete in compact local scripts.
- Evaluate recurrent SSM layers on short contexts up to 1,024 tokens.
Example
from transformers import pipeline, AutoTokenizer
tok = AutoTokenizer.from_pretrained("FWKV/SoLMo-100M-PR", trust_remote_code=True)
pipe = pipeline(
"text-generation",
model="FWKV/SoLMo-100M-cpt",
tokenizer=tok,
trust_remote_code=True,
do_sample=True,
temperature=0.3,
)
result = pipe("France is one of the most beautiful cities in")
print(result)Read more
DetailsParameters: ~100M (29 layers, width 512, FF width 1536)
Context: 1,024 tokens
Hardware: one NVIDIA T4 (Volta or newer required)
Training: AdamW, mixed FP16, target budget 5B tokens










Comments