Instructions to use Kausp11/standard-dclm-3.3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kausp11/standard-dclm-3.3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Kausp11/standard-dclm-3.3b", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Kausp11/standard-dclm-3.3b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Kausp11/standard-dclm-3.3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kausp11/standard-dclm-3.3b" # 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-dclm-3.3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Kausp11/standard-dclm-3.3b
- SGLang
How to use Kausp11/standard-dclm-3.3b 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-dclm-3.3b" \ --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-dclm-3.3b", "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-dclm-3.3b" \ --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-dclm-3.3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Kausp11/standard-dclm-3.3b with Docker Model Runner:
docker model run hf.co/Kausp11/standard-dclm-3.3b
Standard 3.3B (DCLM-Edu), base model
The plain-text baseline for Kausp11/querylm-dclm-3.3b: a 3.3B-parameter language model with the same architecture, trained from scratch on DCLM-Edu web 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-dclm-3.3b-sft-search.
| Stage | base model (pretraining only; no chat format) |
| Paired model | Kausp11/querylm-dclm-3.3b (same architecture and compute, pretrained with search blocks) |
| Architecture | nanochat-style decoder: 32 layers, width 2,816, 22 heads, feed-forward 11,264, head dim 128, context 4,095 tokens |
| Parameters | 3,322.3M reported (5,539.7M stored, including value embeddings) |
| Loads with | transformers + trust_remote_code=True (the repo ships modeling_nanochat.py) |
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-dclm-3.3b"
tok = AutoTokenizer.from_pretrained(repo)
# trust_remote_code runs modeling_nanochat.py from this repo; pin `revision=` to a commit you have read.
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, 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: Canberra
Tokenizer: the SmolLM2 tokenizer plus the four search tokens used by QueryLM (vocabulary 49,156).
Training data
Pretraining: DCLM-Edu as plain text: more document text than the paired QueryLM model saw, so that both use the same compute. No search blocks, no annotation.
Training procedure
| Pretraining optimizer | Muon for matrix weights (peak LR 0.02828), AdamW for embeddings and output head |
| Batch | 256 sequences x 4,095 tokens = 1,048,320 tokens per update |
| Schedule | 40 warmup steps, constant, then linear decay to 5% of peak at the end |
| Pretraining budget | 95,172 updates; 99.8B tokens (about 34.6B of them a second pass over documents already seen); 2.35e21 FLOPs; bf16 compute. Same number of updates and FLOPs as the paired QueryLM model |
Provenance
| Checkpoint | run dclm_nc_baseline_d32_cm100B, final step of the last training segment (segment step 18,026; 95,172 updates in total). Learning-rate decay over the last 3,026 updates; the schedule is finished |
| Initialised from | scratch |
| Code | nanochat (upstream commit 92d63d4) with a local search-data branch |
model-00001-of-00003.safetensors sha256 |
f8e2d7fe4eab32c2dc8605b3fadd381d6131e21b39aec894b1d87ae5d21f4d9c |
model-00002-of-00003.safetensors sha256 |
3cb1c527a07927cc0c84772451304f73ae3824865d4ccaaf3debfb94a8393bea |
model-00003-of-00003.safetensors sha256 |
c2b65d905b09258ea21ed425c1aeff3d25428909382f96faaa8ad84c22e10100 |
| Also published as | Kausp11/searchlm-dclm_nc-baseline_d32_cm100B (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 web text only; no safety or refusal training of any kind. It will state false things fluently.
- Loading executes Python from this repository (
modeling_nanochat.py). Read it or pin a revision.
License
Apache-2.0 (licence text in LICENSE). modeling_nanochat.py is adapted from nanochat, MIT License, Copyright (c) 2025 Andrej Karpathy (text in LICENSE-nanochat). Training text: DCLM-Edu (CC-BY-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
- 63