Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
6
9
index
int64
0
1.03k
has_cot
bool
2 classes
instruction
stringlengths
9
3.91k
cot
stringlengths
0
4.85k
html
stringlengths
246
24.5k
cot_tokens
int64
0
11.8k
⌀
html_tokens
int64
77
6.24k
⌀
total_tokens
int64
215
15.4k
⌀
finish_reason
stringclasses
2 values
elapsed_s
float64
9.06
231
⌀
conversations
listlengths
2
2
regen_v5
bool
1 class
reasoning_effort
stringclasses
3 values
lang
stringclasses
1 value
gen_v5
bool
1 class
lima_0000
0
true
Can brain cells move? By movement I mean long distance migration (preferably within the brain only).
The user is asking about whether brain cells (neurons, glial cells, etc.) can migrate long distances within the brain. This is a fascinating neuroscience question. Let me think about what I know: 1. **Neuronal migration during development**: This is the classic example. During embryonic development, neurons are born i...
<div class="ai-view"> <h2>Can Brain Cells Migrate Long Distances?</h2> <div class="summary"> <p class="lead"><strong>Yes — but the answer depends heavily on <em>which</em> cells, <em>when</em>, and <em>under what conditions</em>.</strong> Mature, fully differentiated neurons essentially never migrate. However, neural...
505
1,791
2,296
stop
26.84
[ { "from": "human", "value": "Can brain cells move? By movement I mean long distance migration (preferably within the brain only)." }, { "from": "gpt", "value": "<think>\nThe user is asking about whether brain cells (neurons, glial cells, etc.) can migrate long distances within the brain. This is...
null
null
null
null
lima_0001
1
true
In our computer systems lecture we were introduced to the MIPS processor. It was (re)developed over the course of the term and has in fact been quite easy to understand. It uses a RISC design, that is its elementary commands are regularly encoded and there are only few of them in order to keep the wires simple. It was ...
The user is a student who has learned about MIPS (RISC) in their computer systems lecture and is now curious about why CISC architectures (specifically x86) dominate the market despite their apparent complexity. They're genuinely puzzled by the complexity they encountered in x86. I need to explain the historical, pract...
<div class="ai-view"> <h2>The CISC "Shock" — and Why It's Not What You Think</h2> <div class="summary"><p class="lead">Your reaction is completely understandable. The x86 instruction set is a <strong>40+ year archaeological dig</strong> with layer upon layer of legacy. But the key insight most courses miss: <strong>m...
200
2,757
2,957
stop
61.68
[ { "from": "human", "value": "In our computer systems lecture we were introduced to the MIPS processor. It was (re)developed over the course of the term and has in fact been quite easy to understand. It uses a RISC design, that is its elementary commands are regularly encoded and there are only few of them i...
null
null
null
null
lima_0002
2
true
View tabular file such as CSV from command line, having horizontal and vertical scrolling would be great.
The user wants to view tabular files (like CSV) from the command line with horizontal and vertical scrolling capabilities. Let me think about the best tools and approaches for this. Key tools for viewing CSV/tabular data in terminal with scrolling: 1. `less` - basic, but limited for tabular viewing 2. `visidata` - pow...
<div class="ai-view"> <h2>Viewing CSV / Tabular Files in the Terminal</h2> <p>Most terminal tools (<code>cat</code>, <code>less</code>, <code>column</code>) dump the whole file at once. What you want is an <strong>interactive, scrollable spreadsheet view</strong> inside your terminal. Below are the best options, r...
342
3,164
3,506
stop
70.99
[ { "from": "human", "value": "View tabular file such as CSV from command line, having horizontal and vertical scrolling would be great." }, { "from": "gpt", "value": "<think>\nThe user wants to view tabular files (like CSV) from the command line with horizontal and vertical scrolling capabilities...
null
null
null
null
lima_0003
3
true
Slater type orbitals (STO) are considered to be more accurate than gaussian type orbitals (GTO) for atomic and molecular QM calculations because - among other reasons - they decay with $e^{-\alpha r}$ as $r \to \infty$. But GTOs are more popular because they are easier to calculate with. GTOs decay with $e^{-\alpha r^2...
The user is asking a deep quantum chemistry/quantum mechanics question: Do all atomic and molecular wavefunctions decay as e^{-αr} (exponentially) as r → ∞? This is a fundamental question about the asymptotic behavior of solutions to the Schrödinger equation. Let me think carefully about this: 1. **For atoms (Coulomb...
<div class="ai-view"> <h2>Do All Atomic & Molecular Wavefunctions Decay as e<sup>−αr</sup>?</h2> <div class="summary"> <p class="lead"><strong>Short answer:</strong> Yes — for the vast majority of physically relevant bound states in atoms and molecules, the wavefunction decays as <code>e<sup>−αr</sup></code> (possibl...
515
3,349
3,864
stop
76.96
[ { "from": "human", "value": "Slater type orbitals (STO) are considered to be more accurate than gaussian type orbitals (GTO) for atomic and molecular QM calculations because - among other reasons - they decay with $e^{-\\alpha r}$ as $r \\to \\infty$. But GTOs are more popular because they are easier to cal...
null
null
null
null
lima_0004
4
true
Explain what "git reset" does. I come from a SVN background and Git is a whole new paradigm. I got mercurial easily, but Git is much more technical. I think ```git reset``` is close to ```hg revert```, but it seems there are differences. Please include detailed explanations about: * the options ```--hard```, ```--soft...
The user is an SVN/Mercurial user trying to understand `git reset`. They want a deep, practical explanation with specific focus on: 1. The three modes: --hard, --soft, --merge 2. HEAD notation (HEAD^, HEAD~1, etc.) 3. Concrete use cases and workflows 4. Consequences on working copy, HEAD, and "stress level" They alrea...
<div class="ai-view"> <h2>Git Reset: The Three-Areas Mental Model</h2> <div class="callout callout-info"> <div class="callout-header">🧠 The Core Insight SVN/Hg Users Need</div> <p>In SVN/Mercurial you have <strong>two places</strong>: the repository and your working copy. Git has <strong>three</strong>: <code>HEAD</...
261
3,574
3,835
length
82.27
[ { "from": "human", "value": "Explain what \"git reset\" does. I come from a SVN background and Git is a whole new paradigm. I got mercurial easily, but Git is much more technical.\nI think ```git reset``` is close to ```hg revert```, but it seems there are differences. Please include detailed explanations a...
null
null
null
null
lima_0005
5
true
I am looking to use Java to get the MD5 checksum of a file. How is it done?
The user wants to know how to compute an MD5 checksum of a file using Java. Let me provide a comprehensive, well-structured answer covering: 1. The basic approach using java.security.MessageDigest 2. Code examples showing how to read a file and compute MD5 3. Alternative approaches (Apache Commons, Spring, etc.) 4. Pr...
<div class="ai-view"> <h2>Computing MD5 Checksum of a File in Java</h2> <div class="summary"> <p class="lead">Java's built-in <code>java.security.MessageDigest</code> class is all you need. Read the file as a stream, feed it to the digest, and convert the resulting byte array to a hex string.</p> </div> <h3>1. The C...
106
1,667
1,773
stop
61.4
[ { "from": "human", "value": "I am looking to use Java to get the MD5 checksum of a file.\nHow is it done?" }, { "from": "gpt", "value": "<think>\nThe user wants to know how to compute an MD5 checksum of a file using Java. Let me provide a comprehensive, well-structured answer covering:\n\n1. The...
null
null
null
null
lima_0006
6
true
What are the primary objections Democrats have to a border wall?
The user is asking about the primary objections Democrats have to a border wall. This is a political question that requires a balanced, informative response. I should present the actual arguments and objections raised by Democratic politicians, policy experts, and commentators in a structured, factual manner. Let me or...
<div class="ai-view"> <h2>Primary Democratic Objections to a Border Wall</h2> <div class="summary"> <p class="lead">Democratic objections to a border wall span practical effectiveness, fiscal burden, legal and humanitarian concerns, environmental impact, and broader strategic philosophy. Below is a structured overvie...
104
1,397
1,501
stop
38.43
[ { "from": "human", "value": "What are the primary objections Democrats have to a border wall?" }, { "from": "gpt", "value": "<think>\nThe user is asking about the primary objections Democrats have to a border wall. This is a political question that requires a balanced, informative response. I sh...
null
null
null
null
lima_0007
7
true
I'm converting a video to GIF file with ```ffmpeg```: ```ffmpeg \ -i input.flv \ -ss 00:00:00.000 \ -pix_fmt rgb24 \ -r 10 \ -s 320x240 \ -t 00:00:10.000 \ output.gif ``` It works great, but output gif file has a very low quality. Any ideas how can I improve quality of converted gif?
The user is asking about improving GIF quality when converting video to GIF using ffmpeg. Let me think about the best approaches: 1. **Palette generation** - The biggest quality improvement for GIFs is using a 2-pass approach with a generated palette. By default, ffmpeg uses a generic 256-color palette. Generating a c...
<div class="ai-view"> <h2>Improving FFmpeg GIF Quality</h2> <div class="summary"> <p class="lead">The single biggest quality jump comes from the <strong>two-pass palette approach</strong>. By default, FFmpeg uses a generic 256-color palette. Generating a <em>custom palette</em> from your actual frames lets the GIF us...
226
2,464
2,690
stop
49.53
[ { "from": "human", "value": "I'm converting a video to GIF file with ```ffmpeg```:\n```ffmpeg \\\n -i input.flv \\\n -ss 00:00:00.000 \\\n -pix_fmt rgb24 \\\n -r 10 \\\n -s 320x240 \\\n -t 00:00:10.000 \\\n output.gif\n```\nIt works great, but output gif file has a very low quality.\nAny ideas how ca...
null
null
null
null
lima_0008
8
true
"Tor can only handle TCP connections, but DNS is a UDP protocol. How does Tor route DNS requests ove(...TRUNCATED)
"The user is asking a detailed technical question about how Tor handles DNS (UDP) over its TCP-based(...TRUNCATED)
"<div class=\"ai-view\">\n\n<h2>Tor & DNS: Solving the UDP-over-TCP Problem</h2>\n\n<div class=\"sum(...TRUNCATED)
506
2,865
3,371
stop
67.58
[{"from":"human","value":"Tor can only handle TCP connections, but DNS is a UDP protocol. How does T(...TRUNCATED)
null
null
null
null
lima_0009
9
true
"Why does this throw ```NullPointerException```\n```public static void main(String[] args) throws Ex(...TRUNCATED)
"The user is asking about a specific Java behavior related to the ternary operator (conditional oper(...TRUNCATED)
"<div class=\"ai-view\">\n\n<h2>Why the Ternary Unboxes <code>null</code> → NPE</h2>\n\n<div class(...TRUNCATED)
491
2,718
3,209
stop
69.33
[{"from":"human","value":"Why does this throw ```NullPointerException```\n```public static void main(...TRUNCATED)
null
null
null
null
End of preview. Expand in Data Studio

Mario HTML SFT (830 samples)

A small, cleaned SFT dataset for teaching a model to answer with HTML "cards" instead of Markdown. Each answer is an HTML fragment rooted at <div class="ai-view">, using a fixed component vocabulary (.card, .grid.grid-2, .callout, .stepper, .metric-group, ...). Styling is left to a front-end stylesheet, so the model only learns structure.

Companion tutorial: fine-tuning Qwen3.5-4B with Unsloth on a single 24GB GPU (see the GitHub repo nonwesjoe/SFT-LLM-mario-html).

File

File Description
data/train.jsonl 830 records, one JSON object per line (JSON Lines)

Composition

Count
Total samples 830
With chain-of-thought (has_cot = true) 730
Direct HTML, no thinking (has_cot = false) 100
Chinese instructions (lang = "zh") 130

The instructions are open-ended questions in the style of the LIMA dataset. Answers were generated by a larger teacher model and filtered (see below).

Schema

Each record has these fields:

Field Type Description
id string Unique id, e.g. lima_0000, zh-1029
index int Position index
instruction string The user question
has_cot bool Whether the sample has a reasoning trace
cot string Plain-text reasoning (empty when has_cot is false). Contains no HTML tags
html string The HTML card answer rooted at <div class="ai-view">
conversations list Two turns: {"from": "human", "value": ...} and {"from": "gpt", "value": ...}. The gpt value is <think>\n{cot}\n</think>\n{html} when has_cot is true, otherwise just html
lang string "zh" for Chinese samples; absent otherwise
cot_tokens, html_tokens, total_tokens int Token counts (present in 700 records)
finish_reason string Generation stop reason, e.g. stop (present in 700 records)
elapsed_s float Generation time in seconds (present in 700 records)
reasoning_effort string Teacher reasoning setting (present in 330 records)

Some metadata fields only appear in a subset of records, so do not assume they are present everywhere.

Example (abridged):

{
  "id": "lima_0000",
  "instruction": "Can brain cells move? By movement I mean long distance migration ...",
  "has_cot": true,
  "cot": "The user is asking about whether brain cells ... can migrate ...",
  "html": "<div class=\"ai-view\">\n\n<h2>Can Brain Cells Migrate Long Distances?</h2>\n...",
  "conversations": [
    {"from": "human", "value": "Can brain cells move? ..."},
    {"from": "gpt",   "value": "<think>\nThe user is asking ...\n</think>\n<div class=\"ai-view\">...</div>"}
  ]
}

Quality rules

Every sample passes these checks:

  1. The cot field contains zero HTML tags, checked with an HTML parser rather than a regex.
  2. The gpt reply has exactly one <think>...</think> block, immediately followed by <div class="ai-view">.
  3. Samples without reasoning start directly with <div class="ai-view">, and every tag is properly paired and closed.

Ten samples are technical questions whose thinking region legitimately contains code syntax (for example <xs:element> or List<T>). These were reviewed by hand and kept, because removing the syntax would change the meaning of the question.

Why this matters: an earlier version of the data had about 29% of samples with HTML drafts inside <think>. Models trained on that learned to sketch layouts while reasoning, and the habit persisted through DPO. Clean data was the only fix.

Usage

from datasets import load_dataset

ds = load_dataset("wesjos/mario-html-sft", split="train")
sample = ds[0]

messages = [
    {"role": "user", "content": sample["instruction"]},
    {"role": "assistant", "content": sample["conversations"][1]["value"]},
]

The tutorial trains with no system prompt on purpose, so the model answers in card format unconditionally.

Limitations

  • Small: 830 samples. Suitable for format teaching and small experiments, not general capability.
  • Answers come from a single teacher model and reflect its style.
  • The HTML vocabulary is specific to this project. A different front-end needs its own component set.

License

Apache-2.0. The base model you train on keeps its own license (for the tutorial, Qwen3.5-4B).

Downloads last month
43

Models trained or fine-tuned on wesjos/mario-html-sft