Dataset Viewer
Auto-converted to Parquet Duplicate
category
stringclasses
11 values
messages
listlengths
2
25
source
stringclasses
6 values
math_reasoning
[ { "role": "user", "content": "What is 40% of 200?" }, { "role": "assistant", "content": "40% of 200 is 80. Multiply 200 by 0.4." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 12 × 4?" }, { "role": "assistant", "content": "12 times 4 equals 48." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 18 + 141?" }, { "role": "assistant", "content": "18 plus 141 is 159." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 989 - 242?" }, { "role": "assistant", "content": "989 minus 242 equals 747." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 2/4 of 26?" }, { "role": "assistant", "content": "2/4 of 26 is 13. Multiply 26 by 0.5." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 50% of 100?" }, { "role": "assistant", "content": "50% of 100 is 50." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 1/4 of 23?" }, { "role": "assistant", "content": "1/4 of 23 is 5.75. Divide 23 by 4." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 51 ÷ 3?" }, { "role": "assistant", "content": "51 divided by 3 is 17." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 4/9 of 24?" }, { "role": "assistant", "content": "4/9 of 24 is approximately 10.6667. Multiply 24 by 4/9." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 20% of 250?" }, { "role": "assistant", "content": "20% of 250 is 50. Multiply 250 by 0.2." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 706 + 251?" }, { "role": "assistant", "content": "706 + 251 = 957. Just add the hundreds, tens, and ones separately." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "200 divided by 8?" }, { "role": "assistant", "content": "200 ÷ 8 = 25. Because 8 times 25 equals 200." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 17 times 27?" }, { "role": "assistant", "content": "17 × 27 = 459. You can compute 17 × 20 = 340 and 17 × 7 = 119, then add them." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "54 divided by 18?" }, { "role": "assistant", "content": "54 ÷ 18 = 3. Because 18 times 3 is 54." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 5% of 200?" }, { "role": "assistant", "content": "5% of 200 = 10. Since 1% is 2, multiply by 5." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "23 times 19?" }, { "role": "assistant", "content": "23 × 19 = 437. Multiply 23 × 20 = 460, then subtract 23." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 19 * 26?" }, { "role": "assistant", "content": "19 × 26 = 494. 20 × 26 = 520, minus 26 gives 494." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "18 times 8?" }, { "role": "assistant", "content": "18 × 8 = 144. 10 × 8 = 80, plus 8 × 8 = 64, total 144." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 2/6 of 22?" }, { "role": "assistant", "content": "2/6 of 22 = 7.3333. First simplify 2/6 to 1/3, then 22 ÷ 3 ≈ 7.3333." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "7 times 9?" }, { "role": "assistant", "content": "7 × 9 = 63. It's a basic multiplication fact." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Hey, what's 28 times 26?" }, { "role": "assistant", "content": "28 multiplied by 26 is 728. You can break it down: 28 × 20 = 560, plus 28 × 6 = 168, total 728." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "what is 2 × 14?" }, { "role": "assistant", "content": "2 times 14 equals 28." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Can you tell me half of 10?" }, { "role": "assistant", "content": "Half of 10 is 5." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 162 divided by 6?" }, { "role": "assistant", "content": "162 divided by 6 is 27. 6 × 27 = 162." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "How much is 5% of 300?" }, { "role": "assistant", "content": "5% of 300 is 15. 1% of 300 is 3, so 5% is 5 × 3 = 15." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "92 plus 48?" }, { "role": "assistant", "content": "92 + 48 = 140." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's one ninth of 21?" }, { "role": "assistant", "content": "1/9 of 21 is 2.3333 (or 7/3). 21 ÷ 9 = 2.3333." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "618 minus 33 equals?" }, { "role": "assistant", "content": "618 - 33 = 585." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "25 multiplied by 30?" }, { "role": "assistant", "content": "25 × 30 = 750. 25 × 3 = 75, then add a zero gives 750." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 2/8 of 17?" }, { "role": "assistant", "content": "2/8 simplifies to 1/4, so 1/4 of 17 is 4.25. 17 ÷ 4 = 4.25." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 1/5 of 30?" }, { "role": "assistant", "content": "1/5 of 30 is 30 divided by 5, which equals 6." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Can you tell me 3/7 of 27?" }, { "role": "assistant", "content": "3/7 of 27 is (3/7) * 27 = 81/7 ≈ 11.5714." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 187 ÷ 17?" }, { "role": "assistant", "content": "187 divided by 17 equals 11." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "9 × 28?" }, { "role": "assistant", "content": "9 times 28 is 252." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 4/7 of 21?" }, { "role": "assistant", "content": "4/7 of 21 is (4/7)*21 = 84/7 = 12." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "40% of 150?" }, { "role": "assistant", "content": "40% of 150 is 0.4 * 150 = 60." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "2/6 of 14?" }, { "role": "assistant", "content": "2/6 of 14 simplifies to 1/3 of 14, which is 14/3 ≈ 4.6667." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 616 minus 413?" }, { "role": "assistant", "content": "616 minus 413 equals 203." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "78 ÷ 6?" }, { "role": "assistant", "content": "78 divided by 6 is 13." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "15 times 11?" }, { "role": "assistant", "content": "15 times 11 equals 165." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 30 ÷ 2?" }, { "role": "assistant", "content": "30 divided by 2 equals 15. Half of 30 is 15." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 14 × 16?" }, { "role": "assistant", "content": "14 times 16 is 224. You can do 10×16=160 plus 4×16=64, total 224." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 6/12 of 28?" }, { "role": "assistant", "content": "6/12 simplifies to 1/2, so half of 28 is 14." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 4 × 9?" }, { "role": "assistant", "content": "4 times 9 equals 36." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 929 + 992?" }, { "role": "assistant", "content": "929 plus 992 is 1921. 900+900=1800, 29+92=121, total 1921." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 30% of 50?" }, { "role": "assistant", "content": "30% of 50 is 15. 10% is 5, so 30% is 3×5=15." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 30% of 400?" }, { "role": "assistant", "content": "30% of 400 is 120. 10% is 40, so 30% is 3×40=120." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 643 - 476?" }, { "role": "assistant", "content": "643 minus 476 equals 167. Subtract 400 gives 243, then 76 more gives 167." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 514 - 126?" }, { "role": "assistant", "content": "514 minus 126 is 388. Subtract 100 gives 414, then 26 more gives 388." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 437 - 269?" }, { "role": "assistant", "content": "437 minus 269 is 168. Subtract 200 gives 237, then 69 more gives 168." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 13 times 9?" }, { "role": "assistant", "content": "13 × 9 = 117." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Can you tell me 40% of 50?" }, { "role": "assistant", "content": "40% of 50 is 20." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 7/9 of 3?" }, { "role": "assistant", "content": "7/9 of 3 is 2.3333 (or 7/3)." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "808 plus 543?" }, { "role": "assistant", "content": "808 + 543 = 1351." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "How much is 308 divided by 11?" }, { "role": "assistant", "content": "308 ÷ 11 = 28." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "16 divided by 4 equals?" }, { "role": "assistant", "content": "16 ÷ 4 = 4." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's half of 21?" }, { "role": "assistant", "content": "1/2 of 21 is 10.5." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "995 minus 370?" }, { "role": "assistant", "content": "995 - 370 = 625." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 50% of 120?" }, { "role": "assistant", "content": "50% of 120 is 60." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "925 - 41?" }, { "role": "assistant", "content": "925 - 41 = 884." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Hey, what's 3/5 of 8?" }, { "role": "assistant", "content": "3/5 of 8 equals 4.8. Multiply 8 by 3/5 to get 24/5, which is 4.8." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Can you add 611 and 863 for me?" }, { "role": "assistant", "content": "611 + 863 = 1474. Just add the numbers: 600+800=1400, 11+63=74, total 1474." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 5% of 200?" }, { "role": "assistant", "content": "5% of 200 is 10. 5% means 5/100, so 200 * 5/100 = 10." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "84 divided by 4?" }, { "role": "assistant", "content": "84 ÷ 4 = 21. 4 times 21 is 84." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "170 divided by 17 please" }, { "role": "assistant", "content": "170 ÷ 17 = 10. 17 times 10 equals 170." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 7/9 of 2?" }, { "role": "assistant", "content": "7/9 of 2 is about 1.5556. Multiply 2 by 7/9 to get 14/9, which is 1.5556." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "3/8 of 21?" }, { "role": "assistant", "content": "3/8 of 21 equals 7.875. 21 * 3/8 = 63/8 = 7.875." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 11/12 of 27?" }, { "role": "assistant", "content": "11/12 of 27 is 24.75. Multiply 27 by 11/12 to get 297/12 = 24.75." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "2/12 of 27?" }, { "role": "assistant", "content": "2/12 of 27 is 4.5. Simplify 2/12 to 1/6, then 27 * 1/6 = 4.5." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "374 divided by 17?" }, { "role": "assistant", "content": "374 ÷ 17 = 22. 17 times 22 is 374." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 81 ÷ 9?" }, { "role": "assistant", "content": "81 divided by 9 is 9. 9 times 9 equals 81." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Can you do 771 + 41 for me?" }, { "role": "assistant", "content": "771 plus 41 is 812. You add 40 to get 811, then add 1 more." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 8/12 of 15?" }, { "role": "assistant", "content": "8/12 of 15 is 10. Simplify 8/12 to 2/3, then multiply by 15." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "21 times 5?" }, { "role": "assistant", "content": "21 multiplied by 5 is 105. 20 times 5 is 100, plus 1 times 5 is 5." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "23 × 9 please" }, { "role": "assistant", "content": "23 times 9 equals 207. 20 times 9 is 180, plus 3 times 9 is 27." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 15% of 100?" }, { "role": "assistant", "content": "15% of 100 is 15. Percent means per hundred, so 15% of 100 is 15." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "442 minus 299" }, { "role": "assistant", "content": "442 minus 299 is 143. Subtract 300 to get 142, then add 1 back." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "342 divided by 19?" }, { "role": "assistant", "content": "342 divided by 19 is 18. 19 times 18 equals 342." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 15% of 200?" }, { "role": "assistant", "content": "15% of 200 is 30. 10% is 20, 5% is 10, so 20 plus 10 is 30." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "842 - 401" }, { "role": "assistant", "content": "842 minus 401 is 441. Subtract 400 to get 442, then subtract 1 more." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 637 minus 155?" }, { "role": "assistant", "content": "637 - 155 = 482. Subtract 100 gives 537, then subtract 55 gives 482." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's half of 6?" }, { "role": "assistant", "content": "1/2 of 6 is 3. Half of 6 is 3." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Can you calculate 771 minus 434?" }, { "role": "assistant", "content": "771 - 434 = 337. Subtract 400 gives 371, then subtract 34 gives 337." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 36 divided by 18?" }, { "role": "assistant", "content": "36 ÷ 18 = 2. 18 goes into 36 twice." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "105 divided by 5?" }, { "role": "assistant", "content": "105 ÷ 5 = 21. 5 times 21 is 105." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 6/9 of 23?" }, { "role": "assistant", "content": "6/9 of 23 is 15.3333. Multiply 23 by 6/9, which simplifies to 2/3, so 23 * 2/3 = 46/3 ≈ 15.3333." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "15 times 14?" }, { "role": "assistant", "content": "15 × 14 = 210. 15 times 10 is 150, plus 15 times 4 is 60, total 210." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 12 multiplied by 29?" }, { "role": "assistant", "content": "12 × 29 = 348. 12 times 30 is 360, minus 12 gives 348." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "7/8 of 12 equals?" }, { "role": "assistant", "content": "7/8 of 12 is 10.5. Multiply 12 by 7/8: 12 * 7 = 84, divided by 8 gives 10.5." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "7/8 of 15 please." }, { "role": "assistant", "content": "7/8 of 15 is 13.125. 15 * 7 = 105, divided by 8 gives 13.125." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 28 times 24?" }, { "role": "assistant", "content": "The answer is 672. 28 × 24 = 672." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Calculate 28 × 19." }, { "role": "assistant", "content": "The answer is 532. 28 × 19 = 532." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 28 multiplied by 25?" }, { "role": "assistant", "content": "The answer is 700. 28 × 25 = 700." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Can you do 319 minus 171?" }, { "role": "assistant", "content": "The answer is 148. 319 - 171 = 148." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 3 times 11?" }, { "role": "assistant", "content": "The answer is 33. 3 × 11 = 33." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Divide 288 by 9." }, { "role": "assistant", "content": "The answer is 32. 288 ÷ 9 = 32." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What is 7 × 5?" }, { "role": "assistant", "content": "The answer is 35. 7 × 5 = 35." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Add 224 and 276." }, { "role": "assistant", "content": "The answer is 500. 224 + 276 = 500." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "What's 20% of 100?" }, { "role": "assistant", "content": "The answer is 20. 20% of 100 equals 20." } ]
lume_cleaned_sft
math_reasoning
[ { "role": "user", "content": "Subtract 136 from 436." }, { "role": "assistant", "content": "The answer is 300. 436 - 136 = 300." } ]
lume_cleaned_sft
End of preview. Expand in Data Studio

Lume Instruct SFT

A 160k+ row high-quality English SFT dataset for fine-tuning small instruction-following language models.

Lume Instruct SFT is a multi-domain supervised fine-tuning dataset engineered for small language models (around 100M–3B parameters).

The dataset blends cleaned synthetic instruction data with curated subsets from HuggingFaceTB/smoltalk (everyday conversations, strict constraint following, text rewriting, summarization, and system-prompted dialogue). All hallucinated RAG source citations ("The source says...", "According to the passage...") have been strictly filtered out.

Quick Start

Load the dataset directly with Hugging Face Datasets:

from datasets import load_dataset

ds = load_dataset("exnivo/Lume-Instruct-SFT", split="train")

print(ds)
print(ds[0])

At a Glance

Item Details
Dataset Name exnivo/Lume-Instruct-SFT
Total Rows 160,617
Language English
Format Chat messages with user, assistant, and system roles
License Apache 2.0
Best For Small LLMs around 100M–3B parameters
Primary Use Instruction Fine-Tuning (SFT) & Conversational Alignment
Related Model exnivo/Lume

Key Features & Improvements over V1

  1. Zero Unprompted RAG Hallucinations:
    • Removed 58,000+ synthetic RAG rows where the assistant referred to imaginary passages/studies ("According to the source...") without context provided in the prompt.
  2. Integrated HuggingFaceTB/smoltalk:
    • Added everyday chit-chat, greetings, constraint-following, text rewriting, and summarization datasets to give small models natural, polite, and well-structured conversational behavior.
  3. Optimized for Small LLMs (100M–3B):
    • Short, direct assistant completions, clean formatting, and realistic token lengths.

Real Dataset Statistics

Category Breakdown

Category Rows Percentage Description
math_reasoning 37,611 23.42% Python-verified math & basic arithmetic reasoning
clean_conversation 34,257 21.33% Direct multi-turn assistant dialogues & Q&A
messy_idea_to_plan 29,978 18.66% Turning unstructured user ideas into actionable plans
honesty_uncertainty 14,956 9.31% Admitting unknown facts and polite refusals
simplify_explain 11,562 7.20% Explaining complex topics in simple terms
simple_coding 9,993 6.22% Python/Lua/JS code generation and debugging
system_smalltalk 5,000 3.11% System-prompted assistant dialogues (smoltalk)
constraints_following 5,000 3.11% Strict formatting & rule compliance (smoltalk)
text_rewriting 5,000 3.11% Text editing, tone adjustment, & proofreading (smoltalk)
text_summarization 5,000 3.11% Document & article summarization (smoltalk)
everyday_smalltalk 2,260 1.41% Casual chit-chat & greetings (smoltalk)
Total 160,617 100.00%

Turn Type Breakdown

Turn Type Rows Percentage
single_turn 101,481 63.18%
multi_turn 59,136 36.82%

Source Composition

Source Rows Percentage
lume_cleaned_sft 138,357 86.14%
smoltalk_systemchats 5,000 3.11%
smoltalk_constraints 5,000 3.11%
smoltalk_rewrite 5,000 3.11%
smoltalk_summarize 5,000 3.11%
smoltalk_everyday 2,260 1.41%

Dataset Structure

Each row is a standard chat conversation dictionary.

{
  "category": "math_reasoning",
  "messages": [
    {
      "role": "user",
      "content": "What is 40% of 200?"
    },
    {
      "role": "assistant",
      "content": "40% of 200 is 80. Multiply 200 by 0.4."
    }
  ],
  "source": "lume_cleaned_sft"
}

Multi-turn or system-prompted examples:

{
  "category": "system_smalltalk",
  "messages": [
    {
      "role": "system",
      "content": "Always respond in a concise and friendly tone."
    },
    {
      "role": "user",
      "content": "Can you give me quick tips to keep my desk clean?"
    },
    {
      "role": "assistant",
      "content": "Clear trash immediately, organize wires with clips, and wipe the surface at the end of every day!"
    }
  ],
  "source": "smoltalk_systemchats"
}

Fine-Tuning Instructions with Assistant-Only Loss

When fine-tuning on this dataset, mask user prompt tokens so loss is computed ONLY on assistant responses.

Here is an example using TRL's SFTTrainer and DataCollatorForCompletionOnlyLM:

from datasets import load_dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from trl import SFTTrainer, DataCollatorForCompletionOnlyLM, SFTConfig

model_id = "Qwen/Qwen2.5-0.5B"
dataset_id = "exnivo/Lume-Instruct-SFT"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

ds = load_dataset(dataset_id, split="train")

def format_chat(example):
    return {"text": tokenizer.apply_chat_template(example["messages"], tokenize=False)}

ds = ds.map(format_chat)

# Mask prompt loss (Qwen ChatML format)
response_template = "<|im_start|>assistant\n"
collator = DataCollatorForCompletionOnlyLM(response_template=response_template, tokenizer=tokenizer)

config = SFTConfig(
    output_dir="./lume-sft-model",
    dataset_text_field="text",
    max_seq_length=2048,
    per_device_train_batch_size=4,
    gradient_accumulation_steps=8,
    learning_rate=2e-5,
    num_train_epochs=1,
    logging_steps=10,
    save_steps=1000,
)

trainer = SFTTrainer(
    model=model,
    tokenizer=tokenizer,
    train_dataset=ds,
    data_collator=collator,
    args=config,
)

trainer.train()

Citation & Licensing

Dataset released under the Apache 2.0 license.

@misc{lume_instruct_sft,
  title = {Lume Instruct SFT},
  author = {exnivo},
  year = {2026},
  publisher = {Hugging Face},
  howpublished = {\url{https://huggingface.co/datasets/exnivo/Lume-Instruct-SFT}}
}
Downloads last month
12