SEW-SLM
a compact language model with tool-call support for Wikipedia search
2 min readupdated
SEW-SLM is a miniature language model with just 13.8M parameters, trained from scratch exclusively on Simple English Wikipedia materials. The core feature of the model is its built-in tool-call support: it can search for articles and read their contents, allowing it to answer questions about events occurring after its training cutoff. The model is aimed at developers, researchers, and local AI hobbyists interested in architectures with external search.
Key features
- Trained from scratch: the model was created without using third-party pretrained weights or teacher models.
- Tool-call: trained to make requests to search and read Wikipedia articles.
- ONNX support: quantized weights (around 14 MB) are available for running in the browser via WebGPU or WASM.
- Training efficiency: pre-training took only 26 minutes on a single video card.
What you can do
- Local agent: run a console agent to answer questions with up-to-date Wikipedia search.
- Browser app: embed the model into a web interface using transformers.js for client-side operation.
- RAG research: explore a miniature implementation of an architecture with generation and external function calls.
Example
pip install torch transformers
git clone [https://huggingface.co/Flickwire/sew-slm](https://huggingface.co/Flickwire/sew-slm) && cd sew-slm
python agent.py -v "What is a volcano?"
Read more
DetailsArchitecture: Llama-decoder (6 layers, d_model 384, RoPE, RMSNorm, SwiGLU).
Context: 512 tokens, 8192 BPE tokenizer.
Limitations: the model works primarily as a search result reader and is not intended for complex multi-turn dialogues without tools.










Comments