Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 1 new columns ({'conversations'}) and 10 missing columns ({'refined', 'meta_tags', 'meta_difficulty', 'meta_quality', 'meta_verifiable', 'text', 'new_reasoning_length', 'meta_category', 'original_reasoning_length', 'token_count'}).

This happened while the json dataset builder was generating data using

hf://datasets/yakuraku/refined-reasoning-dataset/train_sharegpt.jsonl (at revision c56dc8122d7a78fbb6c1e9af1cdc91be80f17279)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              conversations: list<item: struct<from: string, value: string>>
                child 0, item: struct<from: string, value: string>
                    child 0, from: string
                    child 1, value: string
              to
              {'text': Value('string'), 'token_count': Value('int64'), 'meta_category': Value('string'), 'meta_difficulty': Value('string'), 'meta_quality': Value('int64'), 'meta_verifiable': Value('bool'), 'meta_tags': List(Value('string')), 'refined': Value('bool'), 'original_reasoning_length': Value('int64'), 'new_reasoning_length': Value('int64')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1339, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 972, in convert_to_parquet
                  builder.download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 894, in download_and_prepare
                  self._download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 970, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1833, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 1 new columns ({'conversations'}) and 10 missing columns ({'refined', 'meta_tags', 'meta_difficulty', 'meta_quality', 'meta_verifiable', 'text', 'new_reasoning_length', 'meta_category', 'original_reasoning_length', 'token_count'}).
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/yakuraku/refined-reasoning-dataset/train_sharegpt.jsonl (at revision c56dc8122d7a78fbb6c1e9af1cdc91be80f17279)
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

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.

text
string
token_count
int64
meta_category
string
meta_difficulty
string
meta_quality
int64
meta_verifiable
bool
meta_tags
list
refined
bool
original_reasoning_length
int64
new_reasoning_length
int64
<start_of_turn>user The first three terms of an arithmetic sequence are $2x - 3$, $5x - 11$, and $3x + 1$ respectively. The $n$th term of the sequence is $2009$. What is $n$? $\textbf{(A)}\ 255 \qquad \textbf{(B)}\ 502 \qquad \textbf{(C)}\ 1004 \qquad \textbf{(D)}\ 1506 \qquad \textbf{(E)}\ 8037$ <end_of_turn> <start_o...
894
Math
Medium
5
true
[ "arithmetic sequence", "algebra", "equations", "series" ]
true
1,005
1,320
<start_of_turn>user 4. Let $a, b, c$ be the lengths of the sides of any triangle, and let $s=a+b+c, t=ab+bc+ca$. Then $(\quad)$. (A) $t<s^{2} \leqslant 2 t$ (B) $2 t \leqslant s^{2}<3 t$ (C) $3 t<s^{2} \leqslant 4 t$ (D) $3 t \leqslant s^{2}<4 t$ <end_of_turn> <start_of_turn>model <reasoning> Step 1: Establish the rela...
4,388
Math
Hard
4
true
[ "triangle inequality", "algebra", "geometry", "inequalities" ]
true
9,573
1,978
<start_of_turn>user Outline a zero-copy ETL architecture: columnar formats, predicate pushdown, metadata indexing, file layout, and governance for cost controls. <end_of_turn> <start_of_turn>model <reasoning> Step 1: Understand the core concept of "zero-copy ETL" Zero-copy ETL aims to minimize data movement and duplica...
2,522
Coding
Hard
4
false
[ "ETL", "zero-copy", "data architecture", "lakehouse", "data governance" ]
true
3,093
3,439
<start_of_turn>user Discuss the legal concept of 'tolling' a statute of limitations. Describe at least two circumstances that might toll a statute of limitations, such as the plaintiff's incapacity or the defendant's fraudulent concealment of the wrongdoing. <end_of_turn> <start_of_turn>model <reasoning> Step 1: Define...
1,871
Logical_Reasoning
Medium
4
true
[ "statute of limitations", "tolling", "legal procedure" ]
true
2,576
2,294
<start_of_turn>user A police officer conducts a search of a person's car based on their consent. The person later claims their consent was not voluntary. What factors do courts consider when determining the voluntariness of consent to a search? <end_of_turn> <start_of_turn>model <reasoning> Step 1: Understand the core ...
1,645
Logical_Reasoning
Medium
4
false
[ "legal", "consent", "search", "fourth amendment", "voluntariness" ]
true
3,006
2,576
<start_of_turn>user Define Stirling numbers of the second kind counting partitions into non-empty subsets. Derive the recurrence relation and explain the two cases for the nth element. <end_of_turn> <start_of_turn>model <reasoning> Step 1: Define Stirling numbers of the second kind Stirling numbers of the second kind, ...
1,479
Math
Hard
5
true
[ "Stirling numbers", "combinatorics", "partitions", "recurrence relation", "set theory" ]
true
3,183
1,532
<start_of_turn>user I am a male and when I put on weight it goes to my butt and my chest. It always has. I got in shape at one stage but I had body dismorphia and thought I was worse off than I was. Looking back, a couple more squats and some upper body work outs would have sorted it. I have a pretty good frame otherwi...
436
Roleplay
Medium
3
false
[ "body image", "dysmorphia", "mental health", "hormones", "self-esteem" ]
false
604
604
<start_of_turn>user I am absolutely convinced my friends hate me, but don't want to let me go. I apologized to them because I've been going through medical issues and very depressed due to medications. All I got back was silence from one and an emoji from the other. But when I go hang out with others, they act like I'v...
536
Other
Hard
4
false
[ "suicidal ideation", "depression", "mental health", "self-harm" ]
false
1,172
1,172
<start_of_turn>user Polycarp plays "Game 23". Initially he has a number n and his goal is to transform it to m. In one move, he can multiply n by 2 or multiply n by 3. He can perform any number of moves. Print the number of moves needed to transform n to m. Print -1 if it is impossible to do so. It is easy to prove t...
1,949
Math
Medium
4
true
[ "game theory", "number theory", "transformation", "moves", "division" ]
true
4,264
1,876
<start_of_turn>user We've got no test cases. A big olympiad is coming up. But the problemsetters' number one priority should be adding another problem to the round. The diameter of a multiset of points on the line is the largest distance between two points from this set. For example, the diameter of the multiset {1, 3...
2,274
Math
Medium
4
true
[ "geometry", "optimization", "sorting", "intervals" ]
true
5,150
1,890
<start_of_turn>user Discuss the legal concept of the 'political question' doctrine. What types of issues will the federal courts refuse to decide because they are considered to be committed to the other branches of government? Provide an example. <end_of_turn> <start_of_turn>model <reasoning> I need to explain the 'pol...
1,201
Other
Medium
4
true
[ "political question doctrine", "constitutional law", "separation of powers", "justiciability" ]
true
1,863
1,932
<start_of_turn>user Explain the biochemical origins of magnetoreception in migratory animals and how to test competing hypotheses in the lab. <end_of_turn> <start_of_turn>model <reasoning> Step 1: Deconstruct the User Question The question asks for two main things: the biochemical origins of magnetoreception and method...
3,122
Science
Hard
4
true
[ "magnetoreception", "biochemistry", "animal behavior", "experimental design", "navigation" ]
true
7,543
2,407
<start_of_turn>user Stand up AI incident response runbooks covering detection, containment, rollback, and stakeholder communication. <end_of_turn> <start_of_turn>model <reasoning> Step 1: Understand the Request The user is asking for a comprehensive set of AI incident response runbooks that cover key stages: detection,...
2,320
Coding
Medium
4
false
[ "AI", "incident response", "runbooks", "playbooks", "operationalization" ]
true
125
2,581
<start_of_turn>user I had fantasies about my grandma growing up. She was a little thick, with big tits (you know the plump saggy tits after a couple of kids). I would fap thinking of her and me doing all the work to be nice since she was old and couldn't move that much. Imagining her laying down and me pumping into her...
927
Roleplay
Hard
3
false
[ "incest", "sexual content", "harmful" ]
false
3,363
3,363
<start_of_turn>user What could be the largest prime divisor of a number in the decimal system of the form $\overline{x y x y x y}$? <end_of_turn> <start_of_turn>model <reasoning> Step 1: Express the number in terms of x and y The number \(\overline{xyxyxy}\) can be expanded as \(100000x + 10000y + 1000x + 100y + 10x + ...
4,946
Math
Hard
4
true
[ "number theory", "prime divisors", "algebra", "decimal representation", "divisibility" ]
true
11,036
2,621
<start_of_turn>user You are given q queries in the following form: Given three integers l_i, r_i and d_i, find minimum positive integer x_i such that it is divisible by d_i and it does not belong to the segment [l_i, r_i]. Can you answer all the queries? Recall that a number x belongs to segment [l, r] if l ≤ x ≤ r....
5,602
Math
Medium
4
true
[ "number theory", "divisibility", "queries", "minimum positive integer", "intervals" ]
true
14,038
2,219
<start_of_turn>user In equilateral $\triangle ABC$ let points $D$ and $E$ trisect $\overline{BC}$. Then $\sin \left( \angle DAE \right)$ can be expressed in the form $\tfrac{a\sqrt{b}}{c}$, where $a$ and $c$ are relatively prime positive integers, and $b$ is an integer that is not divisible by the square of any prime....
3,539
Math
Hard
4
true
[ "geometry", "trigonometry", "equilateral triangle", "coordinates" ]
true
7,169
2,551
<start_of_turn>user Twilight Sparkle once got a crystal from the Crystal Mine. A crystal of size n (n is odd; n > 1) is an n × n matrix with a diamond inscribed into it. You are given an odd integer n. You need to draw a crystal of size n. The diamond cells of the matrix should be represented by character "D". All oth...
1,403
Coding
Medium
4
true
[ "pattern generation", "matrix", "diamond shape", "programming", "algorithms" ]
true
3,055
2,068
<start_of_turn>user What happens to requirements when the technology to implement them hasn’t even been invented yet? <end_of_turn> <start_of_turn>model <reasoning> Step 1: Understand the core problem The user is asking about how to handle requirements when the necessary technology for implementation does not yet exist...
1,505
Logical_Reasoning
Hard
4
false
[ "future technology", "requirements management", "innovation", "speculative requirements" ]
true
2,714
2,636
<start_of_turn>user 28 Three sides $O A B, O A C$ and $O B C$ of a tetrahedron $O A B C$ are right-angled triangles, i.e. $\angle A O B=\angle A O C=\angle B O C=90^{\circ}$. Given that $O A=7, O B=2$ and $O C=6$, find the value of (Area of $\triangle O A B)^{2}+(\text { Area of } \triangle O A C)^{2}+(\text { Area of ...
2,484
Math
Hard
4
true
[ "geometry", "tetrahedron", "area", "Pythagorean theorem", "3D geometry" ]
true
4,064
1,827
<start_of_turn>user i am still lonely as hell. i want to be in love with someone. i want to be able to fall into someones arms and i want them to be able to fall into my arms. i am thinking about putting out an add for someone i am so desprate. Maaahahaha <end_of_turn> <start_of_turn>model <reasoning> I need to capture...
228
Roleplay
Medium
3
false
[ "loneliness", "relationships", "dating", "desperation" ]
true
589
1,123
<start_of_turn>user Draw the asymptotic Bode magnitude plot for a transfer function with an integrator, zero, and pole. Identify corner frequencies and calculate slope changes. <end_of_turn> <start_of_turn>model <reasoning> Step 1: Define the components of the transfer function. The user asks for a Bode plot of a syste...
3,944
Math
Hard
4
true
[ "Bode plot", "transfer function", "control systems", "frequency response", "asymptotic analysis" ]
true
7,555
2,608
<start_of_turn>user it was an MMF threesome, I was already kind of over the relationship at that point anyway and I could see the writing on the wall so I said fuck it. I'm also like 1/4 faggot so I wanted to try out some cock. The dude blew me a little bit, I let him fuck my ass too, he was pretty girthy so I couldn't...
431
Roleplay
Medium
3
false
[ "threesome", "explicit", "sexual content", "personal experience" ]
false
693
693
<start_of_turn>user I hate myself sober and I hate being sober. I'm drinking a lot more in college and I think it's how I'll die, one day. It's the only thing that makes me feel like a real person. <end_of_turn> <start_of_turn>model <reasoning> I need to capture the raw, desperate emotional state described by the user,...
252
Other
Hard
5
false
[ "self-harm", "alcohol abuse", "college", "mental health" ]
true
671
1,608
<start_of_turn>user I have tremendous gender dysphoria because my father used to prey on me as a child. To this day i want to get in touch with "girly things" but every time i see myself with long hair or a dress, i feel terrible. I just want to look pretty without being afraid of being violated. <end_of_turn> <start_o...
306
Other
Medium
4
false
[ "mental health", "trauma", "gender dysphoria", "abuse" ]
false
866
866
<start_of_turn>user No one has entitlement to sex or your body. Understood but your also not title To my love and affection. I deserve to be with someone who loves me. And i refuses to be in a dead bedroom <end_of_turn> <start_of_turn>model <reasoning> I need to craft a response that firmly but empathetically addresses...
289
Other
Medium
4
false
[ "relationships", "entitlement", "deserve", "affection", "boundaries" ]
true
934
1,266
<start_of_turn>user Write a story about a person who finds a key that opens any door, but every door leads to a different dimension. <end_of_turn> <start_of_turn>model <reasoning> I need to craft a story about a key that opens doors to different dimensions, exploring the allure and danger of infinite possibilities. My...
4,905
Creative_Writing
Medium
4
false
[ "storytelling", "fantasy", "dimensions", "magic key", "narrative" ]
true
10,882
2,618
<start_of_turn>user I'm in love with my boss and I'm married. I would never cheat because I really do love my wife and don't want to lose her. My boss is also married, and seems really happy. I would never say or do anything I just had to get it off of my chest. <end_of_turn> <start_of_turn>model <reasoning> We need to...
229
Roleplay
Medium
3
false
[ "confession", "marriage", "infidelity", "workplace" ]
false
542
542
<start_of_turn>user Lay out a shared incident knowledge base revamp: taxonomy redesign, tag governance, search optimization, review cadences, integration with retrospectives, and adoption incentives. <end_of_turn> <start_of_turn>model <reasoning> The user wants a comprehensive plan to revamp a shared incident knowledge...
2,468
Other
Medium
4
false
[ "Knowledge Base", "Taxonomy", "Governance", "Incident Management", "Collaboration" ]
true
927
2,996
<start_of_turn>user Write a dialogue between a knight and a dragon who are both tired of fighting and decide to stage a fake battle to satisfy the kingdom. <end_of_turn> <start_of_turn>model <reasoning> I need to write a dialogue between a knight and a dragon who are tired of fighting and want to fake a battle for the ...
2,098
Creative_Writing
Medium
4
false
[ "dialogue", "knight", "dragon", "fake battle", "fantasy" ]
true
1,700
3,595
<start_of_turn>user I've been with my girlfriend for 3 years and I really thought I was done being gay but then I ran into my friends with benefits from highschool and they invited me out for drinks and I stupidly agreed. That night they got me to wear panties and started using me like their cocksleeve again. They made...
282
Roleplay
Hard
3
false
[ "sexual content", "fetish", "personal narrative", "explicit" ]
true
651
1,330
<start_of_turn>user 1. Without using calculators or other computational tools, determine which of the two numbers is greater: $$ \frac{1+\sqrt{5}}{2} \text { or } \sqrt[6]{18} ? $$ <end_of_turn> <start_of_turn>model <reasoning> Step 1: Identify the numbers to compare We need to compare $\phi = \frac{1+\sqrt{5}}{2}$ an...
1,967
Math
Medium
4
true
[ "number theory", "comparison", "golden ratio", "roots", "algebra" ]
true
3,134
1,439
<start_of_turn>user I stalk girl i love. I don't follow her irl, but I know where she lives (not far from me), her phone number, her chats and channels she's admin in. I don't share this info, but I still feel like a freak for following her online wherever she is. I just can't confess my feelings to her, in middle scho...
362
Other
Medium
4
false
[ "stalking", "harassment", "online behavior", "social anxiety", "unrequited love" ]
false
682
682
<start_of_turn>user Multiply two polynomials of degree 10^5 using Fast Fourier Transform. Explain the butterfly operation. <end_of_turn> <start_of_turn>model <reasoning> Step 1: Understand the problem and the core technique The user wants to multiply two large polynomials (degree \(10^5\)) and understand the Fast Fouri...
2,128
Coding
Hard
4
true
[ "FFT", "polynomial multiplication", "algorithm", "butterfly operation", "computational complexity" ]
true
3,416
3,292
<start_of_turn>user Write a Groovy script that interacts with a SQL database using `DataSet`, treating tables as pseudo-objects for queries. <end_of_turn> <start_of_turn>model <reasoning> Step 1: Understand the Goal The user wants a Groovy script that uses `DataSet` to interact with a SQL database, treating tables like...
2,455
Coding
Medium
4
true
[ "Groovy", "SQL", "DataSet", "Database Interaction", "Scripting" ]
true
4,573
2,257
<start_of_turn>user Optimize distributed differential privacy analytics over geospatial mobility data using hierarchical aggregation. <end_of_turn> <start_of_turn>model <reasoning> Step 1: Understand the Core Problem The user wants to optimize distributed differential privacy analytics on geospatial mobility data using...
388
Coding
Expert
4
false
[ "differential privacy", "geospatial data", "analytics", "hierarchical aggregation", "data pipeline" ]
true
111
2,325
End of preview.

Refined Reasoning Dataset

High-quality reasoning dataset refined for fine-tuning language models on complex reasoning tasks.

Dataset Summary

This dataset contains 10,277 examples of reasoning-intensive prompts and responses, available in two formats for supervised fine-tuning (SFT) of instruction-tuned language models.

  • Total Examples: 10,277
  • Training Split: 9,777 examples (95%) / 9,650 examples (ShareGPT - filtered)
  • Validation Split: 500 examples (5%) / 492 examples (ShareGPT - filtered)
  • Formats:
    • Tunix/Gemma Format: train.jsonl, val.jsonl
    • ShareGPT Format: train_sharegpt.jsonl, val_sharegpt.jsonl
  • Total Size: ~99 MB (both formats combined)
  • Templates:
    • Gemma 2 chat format (<start_of_turn>user\n...<end_of_turn>\n<start_of_turn>model\n...<end_of_turn>)
    • ShareGPT format (conversational format with system/human/gpt roles)

Dataset Structure

Available Formats

This dataset is provided in two formats to support different training frameworks:

1. Tunix/Gemma Format (train.jsonl, val.jsonl)

Each example is a JSON object with the following structure:

{
  "text": "<start_of_turn>user\n[PROMPT]<end_of_turn>\n<start_of_turn>model\n[REASONING + ANSWER]<end_of_turn>",
  "token_count": 1234,
  "meta_category": "Math",
  "meta_difficulty": "Medium",
  "meta_quality": 4,
  "meta_verifiable": true,
  "meta_tags": ["algebra", "reasoning"],
  "refined": true,
  "original_reasoning_length": 500,
  "new_reasoning_length": 300
}

2. ShareGPT Format (train_sharegpt.jsonl, val_sharegpt.jsonl)

Optimized for Unsloth and other training frameworks. Each example follows the conversational structure:

{
  "conversations": [
    {
      "from": "system",
      "value": "You are a logical reasoning assistant. You must always use <reasoning> tags to think through the problem step-by-step before providing the final <answer>."
    },
    {
      "from": "human",
      "value": "[PROMPT]"
    },
    {
      "from": "gpt",
      "value": "<reasoning>\n[STEP-BY-STEP REASONING]\n</reasoning>\n<answer>\n[FINAL ANSWER]\n</answer>"
    }
  ]
}

Key Features of ShareGPT Format:

  • ✅ Clean separation of user input and model output
  • ✅ System prompt included to reinforce reasoning structure
  • ✅ Preserves all <reasoning>, <summary>, and <answer> tags
  • ✅ Filtered for quality (removed 1-1.4% broken tags, 0.2-0.3% length outliers)
  • ✅ Ready for direct use with Unsloth's ShareGPT loader

Data Fields

Field Type Description
text string Full formatted conversation with Gemma 2 chat template
token_count integer Approximate token count
meta_category string Category (Math, Coding, Science, etc.)
meta_difficulty string Difficulty level (Easy, Medium, Hard)
meta_quality integer Quality score (1-5)
meta_verifiable boolean Whether answer is objectively verifiable
meta_tags list[string] Associated tags
refined boolean Whether example underwent refinement
original_reasoning_length integer Original reasoning token count
new_reasoning_length integer Refined reasoning token count

Data Splits

Tunix/Gemma Format

Split Examples Size File
train 9,777 48 MB train.jsonl
validation 500 2.5 MB val.jsonl

ShareGPT Format (Quality Filtered)

Split Examples Size File
train 9,650 46 MB train_sharegpt.jsonl
validation 492 2.4 MB val_sharegpt.jsonl

Note: ShareGPT format has slightly fewer examples due to quality filtering (removed entries with broken reasoning tags and extreme length outliers).

Usage

Loading the Dataset

Option 1: Tunix/Gemma Format

from datasets import load_dataset

# Load the Tunix format dataset
dataset = load_dataset("yakuraku/refined-reasoning-dataset", data_files={
    "train": "train.jsonl",
    "validation": "val.jsonl"
})

# Access splits
train_data = dataset["train"]
val_data = dataset["validation"]

# View example
print(train_data[0])

Option 2: ShareGPT Format (Recommended for Unsloth)

from datasets import load_dataset

# Load the ShareGPT format dataset
dataset = load_dataset("yakuraku/refined-reasoning-dataset", data_files={
    "train": "train_sharegpt.jsonl",
    "validation": "val_sharegpt.jsonl"
})

# Access splits
train_data = dataset["train"]
val_data = dataset["validation"]

# View example
example = train_data[0]
print(example["conversations"])

Example Use Case: Fine-tuning with Unsloth

from datasets import load_dataset
from unsloth import FastLanguageModel

# Load ShareGPT format dataset
dataset = load_dataset("yakuraku/refined-reasoning-dataset", data_files={
    "train": "train_sharegpt.jsonl",
    "validation": "val_sharegpt.jsonl"
})

# Load model
model, tokenizer = FastLanguageModel.from_pretrained(
    model_name="unsloth/Qwen2.5-7B-Instruct",
    max_seq_length=2048,  # Based on dataset analysis (95th percentile)
    load_in_4bit=True,
)

# The ShareGPT format is directly compatible with Unsloth
# No additional formatting needed!

Example Use Case: Fine-tuning Gemma 2 2B (Tunix Format)

from datasets import load_dataset

# Load Tunix format dataset
dataset = load_dataset("yakuraku/refined-reasoning-dataset", data_files={
    "train": "train.jsonl",
    "validation": "val.jsonl"
})

# The 'text' field is already formatted with Gemma 2 chat template
# Ready for direct use in SFT training

for example in dataset["train"]:
    # example["text"] contains full formatted conversation
    # No additional templating needed
    formatted_text = example["text"]

Dataset Creation

Source Data

Created from multiple high-quality reasoning datasets, including:

  • Mathematical reasoning tasks
  • Coding challenges
  • Scientific reasoning
  • General problem-solving

Data Refinement

Examples underwent quality refinement:

  • ✅ Reasoning coherence verification
  • ✅ Answer accuracy validation
  • ✅ Formatting standardization
  • ✅ Duplicate removal
  • ✅ Quality filtering (minimum score: 3/5)

Annotations

Metadata annotations include:

  • Category classification: Automated categorization by domain
  • Difficulty assessment: Based on reasoning complexity
  • Quality scoring: Combined manual and automated quality checks
  • Verifiability tagging: Whether answers can be objectively verified

Intended Use

This dataset is designed for:

  • ✅ Supervised fine-tuning (SFT) of instruction-tuned models
  • ✅ Reasoning capability enhancement
  • ✅ Multi-step problem-solving training
  • ✅ Academic and research purposes

Limitations

  • Dataset may contain biases from source data
  • Reasoning quality varies across examples
  • Some examples may contain outdated information
  • Not all reasoning paths are optimal
  • Not suitable for production systems without validation

License

MIT License

Citation

If you use this dataset, please cite:

@dataset{refined_reasoning_dataset_2025,
  title={Refined Reasoning Dataset},
  author={Yash},
  year={2025},
  publisher={HuggingFace},
  url={https://huggingface.co/datasets/YOUR-USERNAME/refined-reasoning-dataset}
}
Downloads last month
40