Instructions to use Kausp11/standard-wiki-360m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kausp11/standard-wiki-360m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Kausp11/standard-wiki-360m")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Kausp11/standard-wiki-360m") model = AutoModelForCausalLM.from_pretrained("Kausp11/standard-wiki-360m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Kausp11/standard-wiki-360m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kausp11/standard-wiki-360m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kausp11/standard-wiki-360m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Kausp11/standard-wiki-360m
- SGLang
How to use Kausp11/standard-wiki-360m with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Kausp11/standard-wiki-360m" \ --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": "Kausp11/standard-wiki-360m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
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 "Kausp11/standard-wiki-360m" \ --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": "Kausp11/standard-wiki-360m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Kausp11/standard-wiki-360m with Docker Model Runner:
docker model run hf.co/Kausp11/standard-wiki-360m
Standard 360M (Wikipedia), base model
The plain-text baseline for Kausp11/querylm-wiki-360m: a 360M-parameter language model with the same architecture, trained from scratch on English Wikipedia text without search blocks, for the same compute. QueryLM is trained on text with inline search blocks (a query followed by a retrieved passage), which makes its training sequences longer; this model spends the same compute on more plain text instead. Use the two together to measure what search-augmented pretraining changes.
This is the base model (pretraining only). The chat fine-tuned version is Kausp11/standard-wiki-360m-sft-search.
| Stage | base model (pretraining only; no chat format) |
| Paired model | Kausp11/querylm-wiki-360m (same architecture and compute, pretrained with search blocks) |
| Architecture | SmolLM2-360M configuration (32 layers, width 960, 15 heads), trained from scratch; context 4,096 tokens |
| Parameters | 361.8M |
| Loads with | plain transformers (LlamaForCausalLM); no custom code |
How to use
A text-continuation model. It was not trained to search: the four search tokens are in its vocabulary (same tokenizer as QueryLM) but it never saw them in training.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "Kausp11/standard-wiki-360m"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16).eval()
# Base model: it continues text. Few-shot examples set the question-answer format.
prompt = ("Question: Who wrote the novel Pride and Prejudice?\nAnswer: Jane Austen\n\n"
"Question: What is the chemical symbol for gold?\nAnswer: Au\n\n"
"Question: What is the capital of Australia?\nAnswer:")
x = tok(prompt, add_special_tokens=False, return_tensors="pt")
with torch.no_grad():
out = model.generate(**x, max_new_tokens=16, do_sample=False, pad_token_id=tok.eos_token_id)
print("answer:", tok.decode(out[0, x.input_ids.shape[1]:], skip_special_tokens=True).split("\n")[0].strip())
Output of this exact script (CPU, bfloat16, torch 2.8.0, transformers 4.56.0, run 2026-11-20 on the files in this repo):
answer: Gold
Tokenizer: the SmolLM2 tokenizer plus the four search tokens used by QueryLM (vocabulary 49,156).
Training data
Pretraining: English Wikipedia, the same 4,885,877 articles as the paired QueryLM model, as plain text (54,582 further articles held out for evaluation). No search blocks, no annotation.
Training procedure
| Pretraining optimizer | AdamW, peak LR 5e-4, weight decay 0.1 |
| Batch | 256 sequences x 4,096 tokens = 1,048,576 tokens per update |
| Schedule | 2% warmup, cosine decay to zero; 8 epochs |
| Pretraining budget | 30,600 updates; 32.1B tokens (8 epochs); 6.06e19 FLOPs; bf16 compute. The paired QueryLM model used 6.31e19 FLOPs (about 4% more) |
Provenance
| Checkpoint | run baseline_360M_v2_e8, step 30,600 of 30,600 (end of epoch 8; schedule finished) |
| Initialised from | scratch |
| Code | Hugging Face Trainer causal-LM script |
model.safetensors sha256 |
7050bce1252f7d58c71f9619bc6365a09ace4a31f6a1fe2d09329f928b309162 |
| Also published as | Kausp11/wiki6m-360m-v2-base8 (repo root) (identical weights, earlier name) |
Evaluation
Evaluation results will be added later.
Intended use and limitations
- A research artifact: the control model for studying search-augmented pretraining. Not a product.
- Base model: it continues text and has no chat format.
- English Wikipedia text only; no safety or refusal training of any kind. It will state false things fluently.
- A small model trained on Wikipedia only: weak outside encyclopedic text.
License
Apache-2.0 (licence text in LICENSE). Training text: English Wikipedia (CC BY-SA 4.0).
Citation
Paper: Search From the Start: Search-Native Pretraining for Language Models · Project page: https://kaustubhp11.github.io/querylm/
@article{ponkshe2026searchfromthestart,
title = {Search From the Start: Search-Native Pretraining for Language Models},
author = {Ponkshe, Kaustubh and Je, Gyung Hyun and Taga, Stefan and Raffel, Colin and Jaggi, Martin},
journal = {arXiv preprint arXiv:2611.26809},
year = {2026}
}
- Downloads last month
- 41