The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: JobManagerCrashedError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
input_ids list | attention_mask list | labels list |
|---|---|---|
[
4809,
24096,
335,
11641,
28,
3278,
5713,
42,
42136,
284,
11641,
30868,
1116,
198,
504,
17114,
4098,
29,
15385,
363,
7816,
377,
14555,
365,
64,
461,
303,
417,
53,
5802,
33816,
42690,
1121,
933,
2193,
11967,
26442,
2255,
314,
198,
7254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4809,
24096,
335,
11641,
28,
3278,
5713,
42,
42136,
284,
11641,
30868,
1116,
198,
504,
17114,
4098,
29,
15385,
363,
7816,
377,
14555,
365,
64,
461,
303,
417,
53,
5802,
33816,
42690,
1121,
933,
2193,
11967,
26442,
2255,
314,
198,
7254,
... |
[
2516,
465,
284,
2444,
9930,
15093,
281,
9447,
284,
17612,
28,
354,
40479,
198,
198,
10745,
9300,
1850,
314,
260,
1739,
1621,
4186,
327,
1273,
1611,
30,
657,
314,
3472,
3393,
338,
1725,
260,
9447,
980,
523,
4380,
1022,
288,
13246,
282,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2516,
465,
284,
2444,
9930,
15093,
281,
9447,
284,
17612,
28,
354,
40479,
198,
198,
10745,
9300,
1850,
314,
260,
1739,
1621,
4186,
327,
1273,
1611,
30,
657,
314,
3472,
3393,
338,
1725,
260,
9447,
980,
523,
4380,
1022,
288,
13246,
282,... |
[
186,
136,
140,
37235,
1519,
9178,
5150,
288,
5284,
731,
24302,
44155,
49152,
62,
9345,
37235,
1519,
9178,
5150,
288,
5284,
1108,
49153,
216,
49154,
50,
323,
5629,
29,
34927,
335,
24839,
260,
14549,
10692,
10174,
1456,
37235,
1519,
1318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
186,
136,
140,
37235,
1519,
9178,
5150,
288,
5284,
731,
24302,
44155,
49152,
62,
9345,
37235,
1519,
9178,
5150,
288,
5284,
1108,
49153,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
[
24217,
7090,
42,
25964,
2904,
11027,
1116,
198,
27444,
282,
10814,
28,
514,
5167,
542,
22868,
28,
49152,
69,
5167,
542,
22868,
3820,
282,
10814,
5006,
1462,
49153,
216,
49154,
15051,
26084,
339,
1483,
89,
28,
14716,
814,
28197,
381,
802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
24217,
7090,
42,
25964,
2904,
11027,
1116,
198,
27444,
282,
10814,
28,
514,
5167,
542,
22868,
28,
49152,
69,
5167,
542,
22868,
3820,
282,
10814,
5006,
1462,
49153,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
[10655,7978,8841,417,99,2503,2706,288,260,15442,18757,198,198,3087,1117,90,382,19659,1939,198,198,57(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [10655,7978,8841,417,99,2503,2706,288,260,15442,18757,198,198,3087,1117,90,382,19659,1939,198,198,57(...TRUNCATED) |
[36948,674,260,27398,282,1318,2111,20500,198,198,4503,2111,2121,365,25331,25,8518,281,260,514,30,67,(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [36948,674,260,27398,282,1318,2111,20500,198,198,4503,2111,2121,365,25331,25,8518,281,260,514,30,67,(...TRUNCATED) |
[35845,28,4450,216,33,28,216,34,32,33,37,198,198,6077,261,8918,506,216,33,32,29,5528,3829,327,1071,2(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [35845,28,4450,216,33,28,216,34,32,33,37,198,198,6077,261,8918,506,216,33,32,29,5528,3829,327,1071,2(...TRUNCATED) |
[38351,288,1085,2627,198,198,47680,6544,8870,28,9313,13264,95,41999,28,1544,1389,16384,542,284,904,1(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [38351,288,1085,2627,198,198,47680,6544,8870,28,9313,13264,95,41999,28,1544,1389,16384,542,284,904,1(...TRUNCATED) |
[33003,18529,42,340,37,280,34,198,18454,42,49152,33003,18529,340,37,280,34,5410,49153,216,49154,51,3(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [33003,18529,42,340,37,280,34,198,18454,42,49152,33003,18529,340,37,280,34,5410,49153,-100,-100,-100(...TRUNCATED) |
[3038,9528,1116,198,47484,11026,5988,288,2475,260,746,650,4083,2841,198,198,504,216,39,29,9688,29,35(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [3038,9528,1116,198,47484,11026,5988,288,2475,260,746,650,4083,2841,198,198,504,216,39,29,9688,29,35(...TRUNCATED) |
QueryLM pretraining data: DCLM-Edu with inline search blocks
Web documents from DCLM-Edu with inline search blocks, tokenized and packed into 4,096-token training blocks. Each search block is a query written by an annotator model followed by a passage retrieved from a web corpus. This is the full annotated corpus behind the QueryLM DCLM-Edu models; the largest one, Kausp11/querylm-dclm-3.3b, was trained on about one pass over it (99.8B of its 102.6B tokens). The 400M and 1.4B models were trained on parts of it.
Contents
| Path | What | Size |
|---|---|---|
search/*.parquet (7,828 shards) |
25,046,238 blocks of 4,096 tokens; columns input_ids, attention_mask, labels |
275 GB |
tokenizer/ |
the tokenizer | 4 MB |
| Documents | 51,425,977 |
| Blocks | 25,046,238 |
| Tokens | 102.6B (25,046,238 x 4,096) |
Shards are named <chunk>_<part>.parquet.
Format of a search block
…text<WEB_QUERY>query</WEB_QUERY> <WEB_RESPONSE>retrieved passage</WEB_RESPONSE> text continues…
| Token | id |
|---|---|
<WEB_QUERY> |
49152 |
</WEB_QUERY> |
49153 |
<WEB_RESPONSE> |
49154 |
</WEB_RESPONSE> |
49155 |
Tokenizer: SmolLM2 tokenizer plus these four tokens (vocabulary 49,156), in tokenizer/. labels equals input_ids where the loss applies and is -100 elsewhere: the query and its two tags carry loss; the response tags and the passage do not.
How to load
One shard:
from datasets import load_dataset
from huggingface_hub import snapshot_download
from transformers import AutoTokenizer
repo = "Kausp11/querylm-dclm-pretraining-data"
ds = load_dataset(repo, data_files="search/00100001_000.parquet", split="train")
tok = AutoTokenizer.from_pretrained(snapshot_download(repo, repo_type="dataset", allow_patterns="tokenizer/*") + "/tokenizer")
row = ds[0]
print(len(ds), len(row["input_ids"]))
print(tok.decode(row["input_ids"][:120]))
print(sum(l == -100 for l in row["labels"]), "of", len(row["labels"]), "positions carry no loss")
Output (run 2026-11-19 on the files in this repo, transformers 4.56.0):
3115 4096
Monday, December 11, 2017
In the Ojibway language, Kitchi-Gami means Lake Superior. Johann Georg Kohl (1808-1878) was a German travel writer, geographer, and ethnologist. In 1855, he spent six months visiting trading posts and missions in Ojibway country near Kitchi-Gami, mostly at the Apostle Islands off the north coast of Wisconsin, and at the settlements at<WEB_QUERY>Johann Georg Kohl settlements Apostle Islands Ojibway country</WEB_QUERY> <WEB_RESPONSE>
420 of 4096 positions carry no loss
All shards: load_dataset(repo, data_dir="search", split="train", streaming=True).
How the search blocks were produced
- Where to search. A fine-tuned annotator model (Gemma 4 E4B-it with a LoRA adapter) reads the text and marks positions where a lookup would help predict what follows (insertion probability at least 0.05, at least 40 characters apart), then writes a query of at most 24 tokens for each position.
- What comes back. BM25 retrieval over the public Sphere web corpus, shortened by extractive cleaning.
- Filter. An insertion is kept only if its passage overlaps the text that follows it (ROUGE-1 F1 of at least 0.1 against the next 260 characters).
- Packing. Documents are tokenized and packed into 4,096-token blocks; a document longer than one block is truncated. About 1% of the documents of each chunk were set aside before packing and are not in this data.
Known limits
- Long documents are truncated to one block.
- The plain-text version of the same documents (used for the compute-matched baseline models) is not part of this repo.
License and attribution
Released under CC BY-NC 4.0.
- Document text: DCLM-Edu (CC-BY-4.0), a filtered subset of DCLM-baseline.
- Retrieved passages: from Sphere (released under CC BY-NC 4.0), which redistributes text from public web pages.
- Queries: generated by the annotator model.
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
- 65