Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
3
3
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Is there a way to create a program that reads from data on the screen then adds the list of visited websites in...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "What does the `num_words` parameter in Keras Tokenizer specify? I have a set of sentences and I'm using Keras T...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Murray's performance in Sofia Coppola's Lost in Translation (2003) earned him a Golden Globe and a British Acad...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Lei, gli amici e tutto il resto (She, friends and everything else), is the fourth studio album by Italian singe...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "derived sources of law" }, { "role": "assistant", "content": "<think>\nOkay, so I need to figure ou...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Given the hyperbola $\\frac{x^2}{a^2} - \\frac{y^2}{20} = 1 (a > 0)$ has an asymptote equation of $y=2x$, then ...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "A convex mirror has a radius of curvature of 90 cm. (a) Where is the image of an object 70 cm from the mirror f...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "What is random access memory?" }, { "role": "assistant", "content": "<think>\nOkay, the user is ask...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "How can I prevent an air or gas embolism while diving?" }, { "role": "assistant", "content": "<thin...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Cree una publicación de CEO estándar en LinkedIn." }, { "role": "assistant", "content": "<think>\nO...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "How can I append something to /etc/hosts or a similar file in Linux using sudo permissions? I have tried using ...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Which drug should be administered in a single dose to treat gonorrhea in a 23-year-old pregnant female with a s...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Hockey Club Davos is a professional Swiss ice hockey club based in Davos, Switzerland. Davos plays in the Natio...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "7*24" }, { "role": "assistant", "content": "<think>\nOkay, let's see. The user asked \"7*24\". Hmm,...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "¿Volverán las oscuras golondrinas..." }, { "role": "assistant", "content": "<think>\nOkay, the user...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "The Solar System is the gravitationally bound system of the Sun and the objects that orbit it. It formed 4.6 bi...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Classify the following cricketers as batsman, bowlers, or all rounders.\nDavid Warner, Trent Boult, Rohit Sharm...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "I am working with a bar chart in Matplotlib that displays values in the thousands. I want to display the y-tick...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "What is multiple sclerosis?" }, { "role": "assistant", "content": "<think>\nOkay, the user is askin...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "tell me about the physical details outside biology" }, { "role": "assistant", "content": "<think>\n...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "How can I import and reuse functions from other Python projects? I have a directory structure like the followin...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Analyse the given patient's symptoms and suggest a possible diagnosis.\nA 56-year-old male presents with excess...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "where should is start math as a complete beginner ?" }, { "role": "assistant", "content": "<think>\...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "What should I do if I have nipple discharge?" }, { "role": "assistant", "content": "<think>\nOkay, ...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Humans (Homo sapiens) are the most common and widespread species of primate in the great ape family Hominidae, ...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "What are the biggest problems that international commercial arbitration has to deal with, and how can they be f...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Tell me whether these cities are in Texas: Austin, Houston, New York, Chicago, Miami, Dallas" }, { "rol...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "crea un dialogo ficticio entre Nikola Tesla y Elon Musk" }, { "role": "assistant", "content": "<thi...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Hur uttalas albeit?" }, { "role": "assistant", "content": "<think>\nOkay, the user is asking how to...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "I have a list of lists in Python, for example `lists = [['hello'], ['world', 'foo', 'bar']]`. How can I transfo...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Necesito saber el clima de buenos aires" }, { "role": "assistant", "content": "<think>\nOkay, the u...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "What happens during an NHS Health Check?" }, { "role": "assistant", "content": "<think>\nOkay, so I...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Tell me whether the following European languages are in the Indo-European language family or not: Spanish, Engl...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "Which of the following medications is appropriate for treating high blood pressure?" }, { "role": "assi...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "What is the National Congenital Anomaly and Rare Disease Registration Service?" }, { "role": "assistant...
[ { "role": "system", "content": "You are a careful reasoner. Show your reasoning step-by-step inside the reasoning section, then give the final answer." }, { "role": "user", "content": "What are the symptoms of multiple myeloma?" }, { "role": "assistant", "content": "<think>\nOkay, I ...
End of preview. Expand in Data Studio

GeneralThought — Qwen3-filtered reasoning SFT

A drop-in SFT mix of general-reasoning chain-of-thought traces, pre-sanitized for Qwen3 models. Same records as the upstream filter, re-shaped into the messages schema expected by trl.SFTTrainer / transformers.apply_chat_template, with one critical fix that prevents a silent NaN failure on Qwen3 training with control-token-aware recipes (e.g. FP8 / NVFP4 hybrid attention).

What's in it

27,776 records, one line of JSONL each:

{
  "messages": [
    {"role": "system", "content": "You are a careful reasoner..."},
    {"role": "user",   "content": "<question>"},
    {"role": "assistant",
     "content": "<think>\n<reasoning>\n</think>\n\n<answer>"}
  ]
}

All rendered chat-template lengths ≤ 4,096 tokens under the Qwen3 tokenizer. Distribution: p50 = 1,108, p95 = 2,619, max 4,094. Every assistant turn contains exactly one <think> / </think> pair (records with duplicated control-tokens mid-reasoning were dropped).

Pure reasoning only. Zero records contain tool-calling artifacts (<tool_call>, <tools>, or OpenAI tool_calls blocks). If you want to teach tool use, do it in a later stage (e.g. RL); this dataset is for the CoT prior.

Why "Qwen3-filtered"

Qwen3's tokenizer treats the following as dedicated single control-token IDs rather than multi-token text:

Substring Qwen3 token ID
<think> / </think> 151667 / 151668
<tool_call> / </tool_call> 151657 / 151658
<tool_response> / </tool_response> 151665 / 151666

If any of those strings appear verbatim inside a system or user message (for instance, in an instruction like "Reason inside <think>...</think> tags"), the tokenizer emits real control tokens outside the assistant's completion span. Certain attention/normalisation paths in FP8 and NVFP4 hybrid training recipes assume those IDs only appear in assistant spans, and silently produce NaN loss from step 0.

This dataset's system prompt describes the reasoning wrapper in neutral English — only the assistant's completion contains <think>...</think> — so the data is safe across recipes. Records longer than 4,096 tokens are also dropped, since mid-<think> truncation leaves unpaired control tokens with the same symptom.

Works out of the box with:

  • transformers + trl.SFTTrainer (apply_chat_template)
  • Surogate's type: conversation, messages_field: messages
  • Any framework that tokenizes via the Qwen3 chat template

Smoke-verified on Qwen3-8B + LoRA (r=32): clean finite loss from step 0 with both bf16 and fp8-hybrid recipes.

Quick start

from datasets import load_dataset
from transformers import AutoTokenizer

ds  = load_dataset("cetusian/GeneralThought-Qwen3-filtered", split="train")
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-8B")

rendered = tok.apply_chat_template(ds[0]["messages"], tokenize=False)
print(rendered[:400])

License and attribution

This mix: Apache-2.0.

It is a derivative of natolambert/GeneralThought-430K-filtered (Apache-2.0), which is itself a commercial-safe subset of GeneralReasoning/GeneralThought-430K (MIT, per-question licenses vary; commercial-incompatible rows were already removed in the natolambert filter).

Please credit the upstream sources:

@misc{generalthought_430k,
  title  = {GeneralThought-430K},
  author = {GeneralReasoning},
  year   = {2025},
  url    = {https://huggingface.co/datasets/GeneralReasoning/GeneralThought-430K}
}

@misc{generalthought_filtered,
  title  = {GeneralThought-430K-filtered},
  author = {Nathan Lambert},
  year   = {2025},
  url    = {https://huggingface.co/datasets/natolambert/GeneralThought-430K-filtered}
}

Changes vs. the upstream filter

  • Re-shaped into the messages list-of-dict format (system / user / assistant) used by trl.SFTTrainer.
  • Stripped prepended instruction boilerplate from the user question.
  • Rewrote any literal <think>…</think> references in the system prompt as neutral English — only the assistant's completion carries the actual <think>…</think> control tokens.
  • Dropped records whose rendered chat-template length exceeds 4,096 Qwen3 tokens.
  • Removed any tool-calling / <tools> records — this release is reasoning-only.
  • Dropped records where an assistant turn contained more than one <think> or </think> substring (stray control-token emissions mid-reasoning).
  • Dropped records whose message content contained any literal Qwen3 control-token substring (<|im_start|>, <|im_end|>, <|endoftext|>, <tool_call>, <tool_response>, <tools> and their closers). The tokenizer emits these as dedicated single-ID control tokens inside the text itself — same NaN / mask- confusion hazard class as mid-<think> truncation.

No questions, reasoning traces, or answers were altered beyond that.

Downloads last month
40