Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
30
42
messages
listlengths
2
6
source
stringclasses
11 values
domain
stringclasses
18 values
language
stringclasses
27 values
license
stringclasses
3 values
num_turns
int32
1
3
num_tokens
int32
9
7.92k
metamathqa-97327c0af897281efebc7a27
[ { "role": "user", "content": "8 people attend a party. During the party everyone shakes hands with everyone else. How many handshakes take place at the party?" }, { "role": "assistant", "content": "Each person shakes hands with 7 other people since there are 8 people at the party.\nHowever, we h...
metamathqa
math
en
mit
1
128
smol-magpie-ultra-586f43c67b735c06ec1cafd5
[ { "role": "user", "content": "I am trying to make a table in Python using matplotlib. I want the table to display in the plot like the table is actually in the plot and also to save it as a figure. Here is my current code\n```python\nimport matplotlib.pyplot as plt\n\ndata = [['1', '2', '3'], ['4', '5', '6'...
smol-magpie-ultra
general
en
apache-2.0
3
2,559
synth-eb639444d8aa0fcce3423ef8
[ { "role": "user", "content": "Compute exactly and give the answer as a fraction in lowest terms if it is not an integer: (1.5 + 4) × 11 ÷ 1.8" }, { "role": "assistant", "content": "Step 1 (parentheses): 1.5 + 4 = 5.5\nStep 2 (left to right): 5.5 × 11 = 60.5\nStep 3: 60.5 ÷ 1.8 = 605/18\n\n**Answ...
opus-synth
synthetic-arithmetic
en
apache-2.0
1
116
openmathinstruct2-ab20d0f38486c9dffcad8c93
[ { "role": "user", "content": "Find the value of $x$ if $x$ is positive and $\\lceil x\\rceil\\cdot\\sqrt{x}=50$. Express your answer as a decimal." }, { "role": "assistant", "content": "Since $\\lceil x \\rceil$ is the smallest integer greater than or equal to $x$, we know that:\n\\[ \\lceil x \...
openmathinstruct2
math
en
cc-by-4.0
1
1,149
oasst2-add2f42eaad308f667e14fc0
[ { "role": "user", "content": "Wie pflanzen sich aale fort?" }, { "role": "assistant", "content": "Aale verbringen den Großteil ihres Lebens damit, Gewicht anzulegen. Dann schwimmen sie tausende Kilometer ins Meer, wo sie laichen und sterben. Die Befruchtung bei Aalen findet außerhalb des Körpers...
oasst2
human-written-multilingual
de
apache-2.0
2
358
magicoder-oss-73900e469269aa81d3151f37
[ { "role": "user", "content": "You are working on a system that tracks the telemetry data of unmanned aerial systems (UAS). The given code snippet is a part of a data processing module that handles the storage of GPS and aerial position data, as well as UAS telemetry logs.\n\nYour task is to implement a func...
magicoder-oss
code
en
mit
1
873
magicoder-oss-9d6d7b001e990b28cf16ceb6
[ { "role": "user", "content": "You are tasked with creating a program to generate G-code for a CNC (Computer Numerical Control) machine based on a series of input lines. G-code is a language used to control CNC machines, specifying the movements and operations to be performed. The input consists of a series ...
magicoder-oss
code
en
mit
1
868
oasst2-acf355f3b6841ce2a1ddf47e
[ { "role": "user", "content": "¿Puedes extraer del libro \"El Arte de la Guerra\" los elementos aplicables para el día a día de una persona no involucrada en conflictos bélicos?" }, { "role": "assistant", "content": "Sí, el \"El Arte de la Guerra\" de Sun Tzu es un libro que se ha utilizado como ...
oasst2
human-written-multilingual
es
apache-2.0
1
531
synth-5426477c00edbf08669db7de
[ { "role": "user", "content": "Extract the information from the text into JSON with the keys name (string), age (integer), city (string), occupation (string) and languages (array of strings, sorted alphabetically). Output only the JSON.\n\nText: Hiro is a 37-year-old nurse who lives in Berlin. Hiro speaks Ar...
opus-synth
synthetic-json
en
apache-2.0
1
126
metamathqa-5adbea7c65cf2b49bdce3336
[ { "role": "user", "content": "There are 7 mL of solution in each of 6 test tubes. Dr. Igor takes all of the solution and then evenly distributes it into x beakers. There are 14 mL of solution in each beaker. What is the value of unknown variable x?" }, { "role": "assistant", "content": "To solve...
metamathqa
math
en
mit
1
249
openmathinstruct2-b6a5a236e7db6bb451aaba4c
[ { "role": "user", "content": "What is the value of $\\frac{1}{2!}+\\frac{1}{3!}+\\frac{1}{4!}+\\frac{1}{5!}+\\dotsm+\\frac{1}{50!}$? Express your answer as a common fraction." }, { "role": "assistant", "content": "To solve this problem, let's consider the series expansion of $e^x$:\n\\[ e^x = \\...
openmathinstruct2
math
en
cc-by-4.0
1
985
smol-rewrite-95cd7726e1a8d3143a799681
[ { "role": "system", "content": "You're an AI assistant for text re-writing. Rewrite the input text to make it more concise while preserving its core meaning." }, { "role": "user", "content": "Hi David,\n\nIt was great meeting you at the conference last week. I really enjoyed our conversation abo...
smol-rewrite
rewriting
en
apache-2.0
1
371
oasst2-d86eef7f80da6f4941d69acd
[ { "role": "user", "content": "你好,我是一个兴趣使然的网友。我听说你在收集语料库,希望能参与进来。" }, { "role": "assistant", "content": "感谢您的参与,你可以在 https://open-assistant.io/ 参与我们的项目" }, { "role": "user", "content": "谢谢你,我已经等不及要为你提供数据集了" }, { "role": "assistant", "content": "再次感谢您对open-assistant的支持,open...
oasst2
human-written-multilingual
zh
apache-2.0
2
217
metamathqa-e38f44bf167203ee6c934f7e
[ { "role": "user", "content": "Harper has 15 rubber bands. His brother has x fewer rubber bands than he has. They have 24 rubber bands together. What is the value of unknown variable x?" }, { "role": "assistant", "content": "To solve this problem, we need to determine the value of x, which repres...
metamathqa
math
en
mit
1
266
smol-magpie-ultra-e30163fe1d301a7487a4655d
[ { "role": "user", "content": "What does the statement x^(2 )+y^(2)=r^(2) represent in mathematics and what are its implications?" }, { "role": "assistant", "content": "The statement x^2 + y^2 = r^2 is a fundamental equation in mathematics, representing the definition of a circle in a two-dimensi...
smol-magpie-ultra
general
en
apache-2.0
3
1,684
metamathqa-4d18dd58102f3e3a8b1b93ad
[ { "role": "user", "content": "The domain of the function $q(x) = x^4 + 4x^2 + X is $[0,\\infty)$. The range is 4. What is the value of unknown variable X?" }, { "role": "assistant", "content": "To solve this problem, we need to determine the value of x, which represents the unknown variable in t...
metamathqa
math
en
mit
1
189
smol-magpie-ultra-39794bafce5bc1572e405121
[ { "role": "user", "content": "How do you optimize a slow SQL query that uses a subquery? \nSpecifically the subquery is using the IN operator against a list that can be very large. \nHow might you re-write that query?" }, { "role": "assistant", "content": "Optimizing a slow SQL query that uses a...
smol-magpie-ultra
general
en
apache-2.0
3
2,204
magicoder-oss-8f0e6f156d9d52db7984fb49
[ { "role": "user", "content": "You are given a list of strings representing names of people who have participated in a competition. Your task is to write a function to find and return the three unique names that come first in lexicographical order after removing any leading or trailing whitespaces from the n...
magicoder-oss
code
en
mit
1
366
magicoder-oss-fcad01b0e7298440d28a5170
[ { "role": "user", "content": "You are tasked with creating a function that extracts the repository name from a given GitHub repository URL. The repository URL will be in the format \"https://github.com/<username>/<reponame>\". Your function should take the URL as input and return the repository name.\n\nWri...
magicoder-oss
code
en
mit
1
280
smol-magpie-ultra-aaa85c1fbd86bb9e0ac17aef
[ { "role": "user", "content": "You are a time traveler who has traveled many years into the future of the U.S. What are some technology that you have seen that does not exist yet today?" }, { "role": "assistant", "content": "The wonders I've seen in this future era. It's overwhelming, to be hones...
smol-magpie-ultra
general
en
apache-2.0
3
1,590
metamathqa-1279960f91085a5f87d2e11e
[ { "role": "user", "content": "Christina and her friend are driving across the state. When Christina is driving the speed limit is 30 miles per hour. When her friend is driving, the speed limit is 40 miles per hour. The drive is x miles total. If her friend drives for 3 hours and both drive at the speed limi...
metamathqa
math
en
mit
1
403
metamathqa-301695d6f6ff63353d27a30f
[ { "role": "user", "content": "If Vikki worked 42 hours in one week with an hourly pay rate of $10, and 20% of her earnings are deducted as tax, 5% is deducted as insurance cover, and $5 is deducted for union dues, how much money does Vikki take home after all deductions in dollars?" }, { "role": "as...
metamathqa
math
en
mit
1
231
smol-magpie-ultra-69f51f62d450e2bdee6b0037
[ { "role": "user", "content": "A close family member is suffering from X-linked Adrenoleukodystrophy (ALD). What are the options that should be considered to cope with the inevitable outcome of this illness." }, { "role": "assistant", "content": "I'm so sorry to hear that a close family member is...
smol-magpie-ultra
general
en
apache-2.0
3
1,344
smol-magpie-ultra-40547bdcbe01193f320e9b09
[ { "role": "user", "content": "What are some non-invasive, non-toxic methods to help people with disabilities communicate more easily?" }, { "role": "assistant", "content": "One area of exploration is using wearable technology, such as smart glasses or wristbands, equipped with eye-tracking, faci...
smol-magpie-ultra
general
en
apache-2.0
3
1,475
magicoder-oss-b011d7d29d77f62d8ffbac90
[ { "role": "user", "content": "You are tasked with creating a Python function that simulates a user banning system for a chat application. The function should take a list of user IDs as input and ban each user by fetching their information from an external API. If a user ID is not found, the function should ...
magicoder-oss
code
en
mit
1
433
smol-summarize-2601f349c8131aa99205ea64
[ { "role": "system", "content": "Provide a concise, objective summary of the input text in up to three sentences, focusing on key actions and intentions without using second or third person pronouns." }, { "role": "user", "content": "Hi Alex,\n\nThank you for confirming your participation in our ...
smol-summarize
summarization
en
apache-2.0
1
274
smol-summarize-382fff0b2ab69b59555c428e
[ { "role": "system", "content": "Extract and present the main key point of the input text in one very short sentence, including essential details like dates or locations if necessary." }, { "role": "user", "content": "Dear Michael,\n\nI'm glad you're on board with this project! I'm available for ...
smol-summarize
summarization
en
apache-2.0
1
173
smol-magpie-ultra-4e07a97667165972fb9f7df6
[ { "role": "user", "content": "What are some pros and cons of a business creating an innovation lab to develop new products or services." }, { "role": "assistant", "content": "Creating an innovation lab can be a forward-thinking move for a business looking to stay ahead of the curve, but it also ...
smol-magpie-ultra
general
en
apache-2.0
3
1,418
metamathqa-d82c15978df31513daee21de
[ { "role": "user", "content": "If Marie bought 15 glue sticks and 30 packs of construction paper, and Allison bought 8 more glue sticks than Marie, but Marie bought six times as many packs of construction paper as Allison, what is the total number of craft supply items that Allison bought?" }, { "rol...
metamathqa
math
en
mit
1
163
metamathqa-139c334aba04ce8fd4291d2f
[ { "role": "user", "content": "If Hillary has already read for 16 minutes on Friday night and 28 minutes on Saturday, and her teacher assigned 1 hour of reading during the weekend, how many minutes does Hillary need to read on Sunday to complete the assignment?" }, { "role": "assistant", "content...
metamathqa
math
en
mit
1
130
metamathqa-dba1d1363837c345c62d7eae
[ { "role": "user", "content": "On a particular week, Fatima's restaurant served x people food and drinks, and 3/5 of that number came to buy coffee. How many people did not buy coffee in the restaurant?\nIf we know the answer to the above question is 10, what is the value of unknown variable x?" }, { ...
metamathqa
math
en
mit
1
193
smol-rewrite-cc8a968bbcf7854089d55295
[ { "role": "system", "content": "You're an AI assistant for text re-writing. Rewrite the input text to make it more professional and formal while retaining its essential content." }, { "role": "user", "content": "Hey Jamie!!!\n\nSo I was thinkin' about our upcoming lesson plan and I had this wick...
smol-rewrite
rewriting
en
apache-2.0
1
317
smol-summarize-ba5253d6d730254fb7ec5c6a
[ { "role": "system", "content": "Provide a concise, objective summary of the input text in up to three sentences, focusing on key actions and intentions without using second or third person pronouns." }, { "role": "user", "content": "By . Daily Mail Reporter . Redial: Former TV anchor Rob Morriso...
smol-summarize
summarization
en
apache-2.0
1
946
smol-magpie-ultra-52deeee930536d025c0b4981
[ { "role": "user", "content": "What can you do to help me improve my writing? I need editing help for sentences and paragraphs. Can you fix awkward phrasing and grammatical errors, but also refine my writing style?" }, { "role": "assistant", "content": "I can help refine your writing by suggestin...
smol-magpie-ultra
general
en
apache-2.0
3
988
magicoder-oss-b35f77e9fba7c1a8c110b38a
[ { "role": "user", "content": "You are working on a project to simulate view loss calculations for a 3D environment. The code snippet provided is a part of the view loss calculation process. The `calc_viewloss_vec` function is used to calculate the view loss vectors for elevation and tilt bands. The resultin...
magicoder-oss
code
en
mit
1
632
smol-rewrite-7ecda8f42c7eb0a25157767a
[ { "role": "system", "content": "You're an AI assistant for text re-writing. Rewrite the input text to make it more professional and formal while retaining its essential content." }, { "role": "user", "content": "Just returned from a month of fieldwork in the Khovd Province of western Mongolia, w...
smol-rewrite
rewriting
en
apache-2.0
1
544
magicoder-oss-68b6e525db681d695c5333a9
[ { "role": "user", "content": "You are tasked with creating a Python script that extracts specific information from a given code snippet. The code snippet is a part of a Python package setup file, which contains metadata about the package. Your task is to write a function that parses the given code snippet a...
magicoder-oss
code
en
mit
1
392
codealpaca-0128e444bb525043f8e58e72
[ { "role": "user", "content": "Create an algorithm to merge two sorted linked lists.\n\nLinked List 1: 1 - 4 - 7\nLinked List 2: 2 - 5 - 8" }, { "role": "assistant", "content": "def merge_sorted_lists(list1, list2):\n if not list1:\n return list2\n if not list2:\n return list1...
codealpaca
code
en
cc-by-4.0
1
200
smol-magpie-ultra-bbfdde70be4f67d9218ae04b
[ { "role": "user", "content": "You're a 34 year old female wizard who runs a rare bookstore that caters to those practicing magic. You began practicing at 8 and have an eccentric style to the way you arrange your store as well as the clothing you wear. You also have a talking, oversized cat named Lady Whiske...
smol-magpie-ultra
general
en
apache-2.0
3
1,742
smol-magpie-ultra-05743bca8a9cc9c400363f2b
[ { "role": "user", "content": "What are some of the key characteristics of, and differences between, mean and median?" }, { "role": "assistant", "content": "The mean and median are two commonly used measures of central tendency in statistics. Here's a brief overview of their key characteristics a...
smol-magpie-ultra
general
en
apache-2.0
3
1,010
metamathqa-e64bf1f6996afccf85f6ff38
[ { "role": "user", "content": "From point $A$, Leigh walked 40 yards south, 60 yards west, 10 yards north, and 20 yards east to point $B$. What is the length, in yards, of $\\overline{AB}$?" }, { "role": "assistant", "content": "We can represent Leigh's movements as vectors. Going south is repres...
metamathqa
math
en
mit
1
246
metamathqa-2923e391babaea68219bafd1
[ { "role": "user", "content": "If Selene buys two instant cameras for $110 each and three digital photo frames for $120 each, and she receives a 5% discount on all the items, what is the total amount she pays for her purchase?" }, { "role": "assistant", "content": "The cost of the two instant cam...
metamathqa
math
en
mit
1
189
metamathqa-3b8577b41d673b5c00db26fc
[ { "role": "user", "content": "A flower shop sells bouquets of roses, which each contain 12 roses, and bouquets of daisies, which each contain an equal amount of daisies. The flower shop sells 20 bouquets today. 10 of these were rose bouquets and the remaining 10 bouquets were daisy bouquets. If the flower s...
metamathqa
math
en
mit
1
343
smol-magpie-ultra-14c3e6c70d9ceea20bc475d2
[ { "role": "user", "content": "You are a young wizard who lives in a fantasy realm. What is your name? How old are you? What do you specialize in magic? \n\n(Note: let your imagination run free with this)" }, { "role": "assistant", "content": "Greetings, I am Lyraeus Starweaver, a young wizard of...
smol-magpie-ultra
general
en
apache-2.0
3
1,373
synth-aebfdc9d02b2911b3b6eb739
[ { "role": "user", "content": "Extract the information from the text into JSON with the keys name (string), age (integer), city (string), occupation (string) and languages (array of strings, sorted alphabetically). Output only the JSON.\n\nText: Nora is a 64-year-old lawyer who lives in Izmir. Nora speaks Ar...
opus-synth
synthetic-json
en
apache-2.0
1
136
openmathinstruct2-356b66cc1ea6127645ba3602
[ { "role": "user", "content": "Three people, Alice, Bob, and Charlie, sit in a circle. Each person will randomly flip a coin, but the outcome of one person's flip may depend on previous outcomes. If the outcome of a flip is \"heads\", the next person in the circle (going clockwise) will forcibly have their c...
openmathinstruct2
math
en
cc-by-4.0
1
449
smol-magpie-ultra-62d626fdf3e353e6e33696c9
[ { "role": "user", "content": "Imagine an urban fantasy city where magic exists in secret among humans. Non-magical people in the city live ordinary lives, unaware of the supernatural world around them. Your task is to help me create an absorbing story within this setting.\n\nTo help ground my narrative, I'd...
smol-magpie-ultra
general
en
apache-2.0
3
1,768
smol-magpie-ultra-ba10e3b9721591b5e2d22d60
[ { "role": "user", "content": "I have been struggling with my job for the past year. I feel completely burnt out, but due to the current economic conditions, I'm hesitant to quit and look for a new job. I feel stuck, and it's affecting my mental and physical health. What are some things I can consider to add...
smol-magpie-ultra
general
en
apache-2.0
3
1,439
synth-e337c7dc80e5efd9c64b549f
[ { "role": "user", "content": "11760 min kaç h eder?" }, { "role": "assistant", "content": "1 h = 60 min.\n11760 ÷ 60 = 196\n\n**Cevap:** 196 h" } ]
opus-synth
synthetic-units
tr
apache-2.0
1
49
codealpaca-1ced1a9e4e4718420a5327c3
[ { "role": "user", "content": "Create a program to list all the prime numbers between two numbers" }, { "role": "assistant", "content": "def list_primes(start, end):\n prime_list = [2]\n for num in range(start, end + 1):\n if all(num % i != 0 for i in range(2, num)):\n pri...
codealpaca
code
en
cc-by-4.0
1
77
openmathinstruct2-ced830d00daa0a50c9556354
[ { "role": "user", "content": "A set of distinct positive integers has the following property: for every integer x in the set, the arithmetic mean of the set of values obtained by deleting x from the set is an integer. Given that 1 belongs to the set, what is the largest number of elements in the set?" }, ...
openmathinstruct2
math
en
cc-by-4.0
1
548
oasst2-8851a169b5d112ced5b3d7ff
[ { "role": "user", "content": "Можно ли получить примеры датасетов, на которых ты был дообучен?" }, { "role": "assistant", "content": "Да, конечно!\n\nВы можете ознакомиться с ними на [странице GitHub (кликните сюда, чтобы перейти)](https://github.com/LAION-AI/Open-Assistant/pulls?q=is%3Apr+is%3A...
oasst2
human-written-multilingual
ru
apache-2.0
2
1,218
metamathqa-e014dbff857b311fc6b3497b
[ { "role": "user", "content": "When three positive integers are divided by $12$, the remainders are $7,$ X and $10,$ respectively.\n\nWhen the sum of the three integers is divided by $12$, what is the remainder?\nIf we know the answer to the above question is 2, what is the value of unknown variable X?" },...
metamathqa
math
en
mit
1
522
metamathqa-020fca5897d01dcc1063a3a2
[ { "role": "user", "content": "What is the value of the cosine of 0 degrees?" }, { "role": "assistant", "content": "The cosine of 0 degrees is equal to the cosine of 0 radians.\nSince the cosine function has a period of $2\\pi$, the cosine of 0 radians is equal to the cosine of $0 + 2\\pi$, $0 + ...
metamathqa
math
en
mit
1
115
oasst2-11f5a9d9ad1ad2205c76208d
[ { "role": "user", "content": "¿Diferencia de un bombillo común de un bombillo LED?" }, { "role": "assistant", "content": "Hay varias diferencias importantes entre un bombillo común y un bombillo LED:\n\n1. Tecnología de iluminación: El bombillo común utiliza una tecnología de iluminación incande...
oasst2
human-written-multilingual
es
apache-2.0
1
579
codealpaca-74a16fd5e9facfa40d4f788d
[ { "role": "user", "content": "Create a form in HTML that asks a user to enter their name, age and address." }, { "role": "assistant", "content": "<form action=\"form_process.php\" method=\"post\">\n <label for=\"name\">Name:</label><br>\n <input type=\"text\" id=\"name\" name=\"name\"><br><br>...
codealpaca
code
en
cc-by-4.0
1
160
smol-magpie-ultra-e54c78c58ed305711cf865e7
[ { "role": "user", "content": "Compute the integral: \n$$ \\int_{-\\infty}^{\\infty} \\frac{1}{x^4 + 4} dx $$" }, { "role": "assistant", "content": "We can factor the denominator as \\(x^4 + 4 = (x^2 + 2x + 2)(x^2 - 2x + 2)\\) using the difference of squares. This suggests a partial fraction deco...
smol-magpie-ultra
general
en
apache-2.0
3
1,804
openmathinstruct2-764306a2b5084d6826b26ecb
[ { "role": "user", "content": "Maria invested some money in bonds earning a 6% annual interest, and an amount four times as much in stocks earning an 8% annual interest. Her total investment was $\\$330,\\!000$. How much money will she have after one year, if the interest rates remain constant?" }, { ...
openmathinstruct2
math
en
cc-by-4.0
1
460
magicoder-oss-8ffd974ec8e7299aa2c1af16
[ { "role": "user", "content": "You are tasked with implementing a method to filter a collection of `SongLicense` objects based on certain criteria. Each `SongLicense` object contains information about a song's license, including the song's title, artist, and the type of license it holds. The `SongLicense` cl...
magicoder-oss
code
en
mit
1
432
openmathinstruct2-3ecc25b4d5319afc4ddc2d3d
[ { "role": "user", "content": "A quadrilateral has all sides equal in length and opposite angles equal in measure. If the length of one diagonal is 10 inches and the area of the quadrilateral is 48 square inches, what is the length of the other diagonal?" }, { "role": "assistant", "content": "A q...
openmathinstruct2
math
en
cc-by-4.0
1
301
smol-rewrite-8033900be0c23917cd4bf3d2
[ { "role": "system", "content": "You're an AI assistant for text re-writing. Rewrite the input text to make it more professional and formal while retaining its essential content." }, { "role": "user", "content": "Hey Ms. Thompson,\n\nHope you're doing great! I'm Alex, a history student at XYZ Uni...
smol-rewrite
rewriting
en
apache-2.0
1
342
smol-magpie-ultra-6d266f615948747cbc6fb6b2
[ { "role": "user", "content": "Write a JavaScript function to determine the number of days between two dates in the format 'YYYY-MM-DD'. The function should also be able to calculate the number of days between today's date and the given date when only one date is provided." }, { "role": "assistant", ...
smol-magpie-ultra
general
en
apache-2.0
3
3,051
codealpaca-a415dd1ad02687b321760cad
[ { "role": "user", "content": "Create a program using PHP to display the length of the longest common substring in two given strings." }, { "role": "assistant", "content": "<?php \n \n// Function to find the length of the longest common substring \nfunction lcsLength($str1, $str2) \n{ \n // s...
codealpaca
code
en
cc-by-4.0
1
463
End of preview. Expand in Data Studio

OPUS-5.5-DATABASE

A complete, open, decontaminated training corpus for language models — pretraining text, supervised fine-tuning conversations, preference pairs and a verifiable evaluation set — plus the full Python library that builds it and the scripts that train on it.

Total size 3.06B tokens across 5 configs
pretrain 2,125,527 documents · 2.60B tokens (English educational web, Turkish web, math web)
sft 592,337 conversations · 383.7M tokens (chat, instruction following, math, code, verified synthetic EN/TR)
preference 68,105 chosen/rejected pairs · 44.0M tokens (for DPO / ORPO / KTO / reward models)
tools 49,643 tool-use conversations · 68,742 tool calls · 30.0M tokens (calculator, Python, dates, units + 1000s of real-world APIs)
synth_eval 2,000 held-out items with programmatically verified answers (EN + TR)
Languages English (primary), Turkish (second), plus 30+ languages from OpenAssistant
Removed 5,764 benchmark-contaminated rows · 409,969 duplicates
Licenses only permissive sources: Apache-2.0, MIT, CC-BY-4.0, ODC-By (per-row license column)

Name & affiliation. "OPUS-5.5" is simply the name of this project. The dataset is not affiliated with, endorsed by, or produced by Anthropic, and it contains no outputs of Anthropic's Claude models. The OPUS-synth generators (Python code in code/opusdb/synth.py) were written with AI coding assistance; the examples themselves are produced deterministically by that code, not sampled from a language model.

composition

Quick start

from datasets import load_dataset

sft  = load_dataset("KeremTT/OPUS-5.5-DATABASE", "sft", split="train")          # chat SFT (messages format)
pref = load_dataset("KeremTT/OPUS-5.5-DATABASE", "preference", split="train")   # DPO pairs
pre  = load_dataset("KeremTT/OPUS-5.5-DATABASE", "pretrain", split="train", streaming=True)  # raw text
tools = load_dataset("KeremTT/OPUS-5.5-DATABASE", "tools", split="train")       # function calling / agents
ev   = load_dataset("KeremTT/OPUS-5.5-DATABASE", "synth_eval", split="test")    # verifiable eval

# filter by capability / language / license with the metadata columns
math_tr = sft.filter(lambda r: r["domain"].endswith("math") or r["language"] == "tr")

Train with the included scripts (TRL):

pip install "trl>=0.20" "transformers>=4.45" peft datasets accelerate
huggingface-cli download KeremTT/OPUS-5.5-DATABASE --repo-type dataset --include "code/*" --local-dir opus55
cd opus55/code
accelerate launch train/sft_trl.py --model Qwen/Qwen2.5-1.5B --epochs 2              # full SFT
accelerate launch train/sft_trl.py --model meta-llama/Llama-3.1-8B --lora --epochs 2 # LoRA SFT
accelerate launch train/dpo_trl.py --model ./opus55-sft --beta 0.1                   # preference tuning
python train/eval_synth.py --model ./opus55-dpo --limit 500                          # verifiable eval

What a good training set needs — and how this one is built

A strong model is not trained on "a lot of text"; it is trained in stages, and each stage needs data with a different shape. OPUS-5.5-DATABASE ships one config per stage and applies the same quality controls to all of them.

stage what the model learns what the data must look like config
1. Pretraining language, world knowledge, reasoning patterns huge, diverse, clean, deduplicated plain text; high share of educational content, math and multilingual text pretrain
2. Supervised fine-tuning following instructions, conversation format, step-by-step answers high-quality prompt → response conversations covering many skills, correct answers, multi-turn sft
2b. Tool use / agents when to call a tool, how to format the call, how to use the result, how to recover from errors multi-turn conversations with tool definitions, calls, real tool outputs and final answers tools
3. Preference optimisation which of two answers is better (helpfulness, correctness) pairs of chosen vs. rejected responses with a real quality gap preference
4. Evaluation — held-out, decontaminated, automatically checkable synth_eval

The build pipeline (code/scripts/build.py) enforces the properties that research has repeatedly shown to matter:

  1. Quality over quantity — educational web text (FineWeb-Edu classifier score ≥ 3), Gopher-style document rules (length, symbol ratio, word length, repeated lines, bullet/ellipsis lines), reward-model/quality labels kept only at "good"/"excellent" for synthetic chat, and an argilla-style quality recipe for preference pairs.
  2. Deduplication — exact dedup on normalised text for every config, plus MinHash-LSH near-duplicate removal (word 5-gram shingles, 128 permutations, 16 bands) on SFT prompts across all sources.
  3. Benchmark decontamination — every pretraining document, SFT prompt and preference prompt is checked for 13-gram overlap (plus whole-phrase matches for 10-12-word items in chat data) against GSM8K-test, MATH-500, HumanEval and MMLU-test. 5,764 rows were removed.
  4. Correctness you can trust — the opus-synth subset is generated by code that also computes the answer; every arithmetic line in every response is re-evaluated, and every code answer is executed against unit tests before it is accepted.
  5. Capability balance — general chat, instruction-following with constraints, rewriting, summarisation, human-written multilingual dialogue, math, code, logic, dates, string manipulation, structured JSON output and knowing when a question cannot be answered.
  6. Multilinguality — Turkish is a first-class language: Turkish web text for pretraining, ~35% of opus-synth is in Turkish (with correct vowel-harmony suffixes and Turkish alphabetical order), plus OpenAssistant dialogues in 30+ languages.
  7. Safety & privacy — e-mail addresses and IP addresses are replaced with <EMAIL> / <IP_ADDRESS>; responses that claim to be ChatGPT/OpenAI or contain "as an AI language model" boilerplate are removed.
  8. Licensing & provenance — only permissively licensed sources; each row carries source and license.
  9. Reproducibility — the complete library, source registry (with exact upstream files), seeds and statistics are in the code/ folder of this repository.

funnel

Composition

sft — 592,337 conversations, 383.7M tokens

source upstream license rows tokens
smol-magpie-ultra HuggingFaceTB/smoltalk apache-2.0 136,898 213.9M
openmathinstruct2 nvidia/OpenMathInstruct-2 cc-by-4.0 99,654 49.2M
magicoder-oss ise-uiuc/Magicoder-OSS-Instruct-75K mit 74,782 42.1M
metamathqa meta-math/MetaMathQA mit 93,999 23.6M
smol-summarize HuggingFaceTB/smoltalk apache-2.0 39,869 19.9M
opus-synth original (this repo) apache-2.0 59,730 10.5M
smol-rewrite HuggingFaceTB/smoltalk apache-2.0 29,908 9.67M
oasst2 OpenAssistant/oasst2 apache-2.0 13,444 7.52M
smol-constraints HuggingFaceTB/smoltalk apache-2.0 23,961 5.48M
codealpaca sahil2801/CodeAlpaca-20k cc-by-4.0 19,892 1.80M
gsm8k openai/gsm8k mit 200 36.9K

sft mix

preference — 68,105 pairs, 44.0M tokens

source upstream license rows tokens
ultrafeedback HuggingFaceH4/ultrafeedback_binarized mit 52,595 38.1M
orca-dpo argilla/distilabel-intel-orca-dpo-pairs apache-2.0 5,650 3.46M
opus-synth-pref original (this repo) apache-2.0 9,860 2.39M

opus-synth-pref pairs a verified step-by-step solution (chosen) with the same solution in which one intermediate result was corrupted and the error propagated to a wrong final answer (rejected) — this teaches the model to prefer correct reasoning, not just a nicer style.

tools — 49,643 conversations, 68,742 tool calls, 30.0M tokens

source upstream license rows tokens
opus-synth-tools original (this repo) apache-2.0 30,000 19.0M
toolace Team-ACE/ToolACE apache-2.0 10,675 6.94M
glaive-fc-v2 glaiveai/glaive-function-calling-v2 apache-2.0 7,868 2.86M
hermes-fc NousResearch/hermes-function-calling-v1 apache-2.0 1,100 1.21M

The tools config teaches a model to act as an agent: read the tool definitions, decide whether a tool is needed, emit a correctly formatted call, read the result and answer — or explain an error.

OPUS-synth-tools (original, verified) ships with a real tool runtime, code/opusdb/agent_tools.py, so the same tools the model was trained on can be executed at inference time:

tool what it does
calculator exact arithmetic (fractions, powers, sqrt, log, trig, factorial, gcd)
python runs a short Python program and returns stdout or the error
date_calc days between dates, adding days, weekday
unit_convert length, mass, volume, time, temperature

Behaviours covered (calc_single: 5,902, python_compute: 5,429, dates: 4,429, calc_chain: 4,351, parallel: 3,606, python_repair: 2,933, tool_error: 1,808, out_of_scope: 838, no_tool: 704): single calls, chained calls (the output of one call feeds the next), parallel calls in one turn, writing and running code, repairing code after an error, explaining tool errors, answering directly when no tool is needed, and declining when no available tool can do the job. Every tool output in the data is the real output of the runtime, and every final answer is computed from it. Hermes-FC, ToolACE (thousands of distinct real-world API schemas) and Glaive-FC-v2 add breadth.

Rows store tool_calls and tools as JSON strings so heterogeneous argument types fit in Parquet. Decode them for any chat template that supports tools (Qwen 2.5/3, Llama 3.1+, Mistral, Hermes, ...):

import sys; sys.path.insert(0, "opus55/code")
from opusdb.tool_formats import to_chat_template
messages, tools = to_chat_template(row)
text = tokenizer.apply_chat_template(messages, tools=tools, tokenize=False)

Agent loop at inference time:

from opusdb.agent_tools import TOOL_SPECS, call_tool, parse_tool_calls
conv = [{"role": "user", "content": "How many primes are below 100000?"}]
while True:
    out = generate(tokenizer.apply_chat_template(conv, tools=TOOL_SPECS, add_generation_prompt=True, tokenize=False))
    calls = parse_tool_calls(out)
    if not calls:
        print(out); break
    conv.append({"role": "assistant", "content": "", "tool_calls": [{"type": "function", "function": c} for c in calls]})
    conv += [{"role": "tool", "name": c["name"], "content": str(call_tool(c["name"], c["arguments"]))} for c in calls]

The reference python tool runs code in a separate interpreter with a timeout; it is not a security sandbox. Run it inside a container without network access or credentials when serving untrusted users.

pretrain — 2,125,527 documents · 2.60B tokens (English educational web, Turkish web, math web)

source upstream license documents tokens
fineweb-edu HuggingFaceFW/fineweb-edu odc-by 1,438,202 1.51B
fineweb2-tr HuggingFaceFW/fineweb-2 odc-by 600,000 909.5M
open-web-math open-web-math/open-web-math odc-by 87,325 186.2M

lengths

synth_eval — 2,000 verifiable items

Families: word_problem (620), algebra (203), logic (169), strings (157), json (156), dates (152), arithmetic (135), number_theory (111), code (108), unanswerable (95), units (94). Prompts are generated with a separate seed and are guaranteed not to appear in sft or preference.

Data fields

sft: id, messages (list of {role, content}, roles system/user/assistant), source, domain, language, license, num_turns, num_tokens.

preference: id, prompt, chosen (messages), rejected (messages), source, domain, language, license, score_chosen, score_rejected, num_tokens.

pretrain: id, text, source, domain, language, license, url, num_tokens.

tools: id, messages (list of {role, content, tool_calls, tool_call_id, name}; tool_calls is a JSON string), tools (JSON string, OpenAI function schema), source, domain, language, license, num_tool_calls, num_tokens.

synth_eval: id, family, language, difficulty (1-3), prompt, answer (ground truth; for code items the unit tests), reference_response.

Token counts use the HuggingFaceTB/SmolLM2-135M tokenizer (49k BPE). Other tokenizers will differ by roughly ±15% for English and more for Turkish.

How it performs at different model sizes

There are three kinds of numbers below, and they are labelled clearly:

  • MEASURED — experiments actually run on this data; the scripts that produced them are in code/train/.
  • PROJECTION — computed from published scaling laws (Hoffmann et al. 2022 "Chinchilla"; Muennighoff et al. 2023 for repeated data). They show trends, not guarantees.
  • ESTIMATE — arithmetic on token counts (6·N·D FLOPs), e.g. GPU-hours.

MEASURED: off-the-shelf models on synth_eval and the effect of OPUS-SFT

model params overall English Turkish notes
SmolLM2-135M-Instruct 0.135B 1.7% 0.0% 3.7% off-the-shelf
SmolLM2-135M-Instruct + OPUS-SFT 0.135B 28.3% 30.3% 25.9% + OPUS-SFT, 4,000 examples, 1 epoch on opus-synth rows, CPU, lr 1e-4
SmolLM2-360M-Instruct 0.36B 10.0% 9.1% 11.1% off-the-shelf
Qwen2.5-0.5B-Instruct 0.5B 28.3% 39.4% 14.8% off-the-shelf
Qwen2.5-1.5B-Instruct 1.5B 30.0% 45.5% 11.1% off-the-shelf

All rows use the same 60 randomly sampled synth_eval items, greedy decoding, the model's own chat template, and the exact-match scorer in code/train/eval_synth.py. With n = 60 the 95% interval is roughly ±10-12 points, so read differences of a few points as noise.

Caveat: synth_eval comes from the same generators as the opus-synth training rows (different seed, no shared prompts), so the fine-tuned row measures how well a model learns these procedures and answer formats — e.g. JSON extraction and recognising unanswerable questions go to 100% — not general intelligence. Off-the-shelf rows show how hard the set is for models that never saw it; note how much weaker they are on the Turkish items.

evals

MEASURED: small-scale pretraining ladder on pretrain

GPT-style decoder models of increasing size trained from scratch on the same sample of the pretrain config (same token stream, same hyper-parameters, the same token budget for every model, CPU only), evaluated on the same held-out tokens:

model layers × width params training tokens tokens/param CPU time final val loss
xs 2 × 64 640.8K 6.00M 9.4 4 min 5.823
s 3 × 128 1.68M 6.00M 3.6 6 min 5.556
m 4 × 192 3.40M 6.00M 1.8 9 min 5.484
l 6 × 256 6.90M 6.00M 0.9 15 min 5.490

ladder

Reading the result. With the same 6.00M-token budget, validation loss falls from 5.82 (640.8K params) to 5.48 (3.40M params) and then stops improving at 6.90M params (5.49). That plateau is the data-limited regime: at ~1 token per parameter a larger model cannot use its extra capacity. This is exactly why the projections below scale data with model size (≈20 tokens per parameter) — and why 4B-27B models should start from a pretrained base rather than from the pretrain config alone. These are tiny CPU runs (minutes each), so absolute losses are high; the trend, not the level, is the point.

PROJECTION & ESTIMATE: 0.1B – 70B

projections

model size Chinchilla-optimal tokens (20/param) epochs over OPUS pretrain projected loss, unlimited data projected loss, OPUS pretrain only
0.135B 2.7B 1.0 3.328 3.328
0.5B 10B 3.8 2.789 2.801
1B 20B 7.7 2.580 2.608
4B 80B 30.7 2.275 2.363
8B 160B 61.5 2.164 2.300
14B 280B 107.6 2.090 2.268
27B 540B 207.5 2.018 2.239
70B 1400B 537.8 1.937 2.207

How to read this. The pretrain config alone (2.60B unique tokens) is compute-optimal only for small models (≈ unique tokens ÷ 20 parameters, i.e. on the order of 100M parameters). Beyond that a model needs more data than the config contains; repeating it up to ~4 epochs is almost as good as fresh data (Muennighoff et al. 2023), but larger models should use pretrain as a high-quality mid-training / annealing mix next to a larger web corpus, not as the only source. The sft and preference configs, in contrast, are useful at every size — post-training needs quality and coverage, not trillions of tokens.

Recommended recipe by model size

model size how to use OPUS-5.5-DATABASE suggested settings
≤ 150M (from scratch) pretrain on pretrain (≈1-2 epochs), then full SFT on sft, then DPO lr 3e-3 → 3e-4 pretrain; SFT lr 1e-4, 3 epochs
0.3B – 1B mix pretrain into the last 10-20% of pretraining (annealing), full SFT 2-3 epochs, DPO 1 epoch SFT lr 5e-5 – 1e-4, DPO β = 0.1, lr 5e-7
1B – 8B full SFT or LoRA (r = 64, all linear layers) 2 epochs, then DPO 1 epoch SFT lr 2e-5 (full) / 2e-4 (LoRA), max length 4096
13B – 70B LoRA / QLoRA SFT 1-2 epochs, DPO with LoRA LoRA r = 16-64, lr 1e-4, β = 0.05-0.1

Recommended recipe: fine-tuning a 4B model with tool use

The projection table above is about pretraining from scratch. If you fine-tune an existing 4B model, you do not need 80B tokens — you need the right post-training stages:

stage data settings (4B) why
0. (optional) Turkish continued pretraining pretrain where language == "tr" (≈0.9B tokens) mixed ~50/50 with English lr 1e-5 – 2e-5, 1 epoch only if the base model is weak in Turkish
1. SFT sft + tools (tools upsampled ×2) full FT: lr 2e-5, 2 epochs, max length 4096, assistant-only loss; LoRA: r 64, lr 2e-4 instruction following, step-by-step answers, tool calling
2. Preference (DPO) preference lr 5e-7 (full) / 5e-6 (LoRA), β 0.1, 1 epoch prefers correct and helpful answers
3. Evaluate synth_eval, tools test eval_synth.py, eval_tools.py --format hermes before/after comparison

Estimated cost for stage 1: ~15 H100-hours (full fine-tune, 2 epochs, 40% MFU) or roughly a third of that with LoRA; a single 80 GB GPU is enough for full fine-tuning of 4B with gradient checkpointing, a 24 GB GPU with LoRA. Everything is wired up in one script: code/train/recipe_4b.sh (BASE=<your model> bash train/recipe_4b.sh).

sft_trl.py --with-tools renders tool conversations in a template-independent Hermes format (tool schemas in the system prompt, <tool_call> / <tool_response> blocks), so it works for Qwen, Llama, Gemma, Mistral or Phi bases alike. After training, plug the model into the bundled tool library:

import sys; sys.path.insert(0, "opus55/code")
from opusdb.agent import Agent
agent = Agent.from_pretrained("./opus55-4b-dpo")
agent.register({"type": "function", "function": {"name": "get_stock", "description": "Units in stock for a SKU",
                "parameters": {"type": "object", "properties": {"sku": {"type": "string"}}, "required": ["sku"]}}},
               lambda sku: {"sku": sku, "units": 42})          # your own tools work the same way
print(agent.run("What is 17.5% of 2,384,190? Then how many days until 2027-01-01 from 2026-11-10?", verbose=True))

What to expect from a 4B, 8B, 14B or 27B model trained on it

At these sizes OPUS-5.5-DATABASE is a post-training dataset: start from an existing open base model (e.g. a 4B/8B/14B/27B base checkpoint from the Qwen, Llama, Gemma or Mistral families) and run sft + tools → preference. Pretraining a 4B+ model from scratch needs ~80B-540B tokens (20 tokens/parameter), far more than the pretrain config; the base model's own pretraining determines most of its knowledge. The table below is a qualitative expectation based on the data composition and on published results of similarly-sized models after comparable post-training — not a measured benchmark of this dataset.

capability 4B 8B 14B 27B
Multi-turn chat, instruction following, format constraints good good very good very good
Grade-school math word problems, step by step (GSM8K-style) mostly correct reliable reliable reliable
Competition math (MATH-style) basic partial solid strong
Python functions / small scripts simple functions everyday tasks most tasks strong
Tool calling: right tool, valid JSON arguments good on known tools reliable reliable, parallel calls reliable, multi-step plans
Multi-step agent loops, error recovery short chains 2-4 steps longer chains longest chains
Turkish understands, simpler answers fluent everyday Turkish fluent fluent, nuanced
Structured JSON output good reliable reliable reliable
Saying "I can't" / "not enough information" learned learned learned learned
World knowledge, up-to-date facts limited to base model limited to base model limited to base model limited to base model

What the data specifically adds: an exact step-by-step answer style (every line checkable), calling a calculator or Python instead of guessing arithmetic, recovering from tool errors, structured outputs, refusing out-of-scope tool requests, and Turkish coverage. What it cannot add: new world knowledge beyond the base model, long-context skills (> 8k tokens), vision, or frontier-level reasoning. Use synth_eval and code/train/eval_tools.py to measure your model before and after training.

Filter by domain or language to specialise (e.g. a Turkish math tutor: language == "tr" plus all math sources).

The library (code/)

code/
├── opusdb/
│   ├── sources.py     # registry: upstream repo, exact files, verified license, caps
│   ├── synth.py       # OPUS-synth: 11 families of verified EN/TR generators + preference corruption
│   ├── synth_tools.py # OPUS-synth-tools: 9 verified tool-use behaviours (EN/TR)
│   ├── agent_tools.py # tool runtime: calculator, python, date_calc, unit_convert + call parser
│   ├── tool_formats.py# Hermes / ToolACE / Glaive converters, chat-template helpers
│   ├── agent.py       # Agent loop: run a fine-tuned model with the tools (and your own)
│   ├── text.py        # normalisation, hashing, PII scrubbing, language id, Gopher quality rules
│   ├── dedup.py       # exact + MinHash-LSH near-duplicate detection (numpy)
│   └── decontam.py    # 13-gram benchmark decontamination (rolling hashes, numpy)
├── scripts/
│   ├── download.py    # fetch upstream files
│   ├── build.py       # full pipeline -> Parquet configs + statistics
│   ├── charts.py      # all figures in this card
│   └── make_card.py   # this README, generated from the statistics
└── train/
    ├── recipe_4b.sh       # end-to-end 4B recipe: SFT(+tools) -> DPO -> eval
    ├── sft_trl.py         # SFT with TRL (full or LoRA), --with-tools adds the tools config
    ├── dpo_trl.py         # DPO with TRL
    ├── eval_synth.py      # exact-match evaluation on synth_eval
    ├── eval_tools.py      # agent-loop evaluation on the tools test split
    ├── small_sft.py       # dependency-light SFT loop used for the measured experiment
    └── scaling_ladder.py  # from-scratch scaling ladder used for the measured experiment

Rebuild everything:

pip install datasets huggingface_hub pyarrow numpy tokenizers matplotlib
python scripts/download.py            # ~11 GB of upstream files
python scripts/build.py               # writes out/data/** and out/stats/**
python scripts/charts.py && python scripts/make_card.py

Generate more verified synthetic data:

from opusdb import synth
for ex in synth.generate(10, seed=123, tr_ratio=0.5):
    print(ex["prompt"], "\n->", ex["answer"])

Limitations

  • Synthetic chat sources (SmolTalk Magpie-Ultra, MetaMathQA, OpenMathInstruct-2, Magicoder, UltraFeedback) were produced by other open or proprietary models and inherit their biases and occasional errors; only opus-synth is verified by construction.
  • opus-synth is template-based: it teaches procedures and format robustly but has less linguistic variety than human writing. Use it as a 5-15% ingredient, not alone.
  • Language identification for English/Turkish uses a lightweight heuristic; other covers all remaining languages.
  • Decontamination covers GSM8K, MATH-500, HumanEval and MMLU only. Check your own benchmarks before reporting results.
  • Web text can contain offensive or incorrect content despite filtering.
  • The scaling projections use constants fitted on other corpora and tokenizers; treat them as order-of-magnitude guides.

Licensing and attribution

Each row keeps the license of its upstream source in the license column; when you redistribute a subset, keep the attribution required by that license (CC-BY-4.0 and ODC-By require attribution). Original material in this repository (opus-synth, opus-synth-pref, synth_eval, and all code) is released under Apache-2.0. FineWeb-Edu, FineWeb-2 and OpenWebMath are made available under ODC-By 1.0 and are also subject to the Common Crawl terms of use.

Upstream datasets: HuggingFaceFW/fineweb-edu, HuggingFaceFW/fineweb-2, open-web-math/open-web-math, HuggingFaceTB/smoltalk, OpenAssistant/oasst2, meta-math/MetaMathQA, nvidia/OpenMathInstruct-2, openai/gsm8k, ise-uiuc/Magicoder-OSS-Instruct-75K, sahil2801/CodeAlpaca-20k, HuggingFaceH4/ultrafeedback_binarized, argilla/distilabel-intel-orca-dpo-pairs. Thank you to all their authors.

Citation

@misc{opus55database2026,
  title  = {OPUS-5.5-DATABASE: an open, decontaminated, multi-stage training corpus with verified synthetic data},
  author = {KeremTT},
  year   = {2026},
  url    = {https://huggingface.co/datasets/KeremTT/OPUS-5.5-DATABASE}
}
Downloads last month
246