-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added example & simplified upload api
- Loading branch information
Showing
4 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "The distance between two stars is 6.52 × 10^5 light years. What is the distance between the two stars in parsecs? (1 parsec = 3.26 light years)\nAnswer Choices: (A) 2 × 10^5 (B) 4 × 10^6 (C) 5 × 10^7 (D) 7 × 10^7 (E) 9 × 10^8"}, {"role": "assistant", "content": "Let's think about the multi-choice question.\n6.52 × 10^5 ly / (3.26 ly/parsec) = 2 x 10^5 persec\nThe answer is A."}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "How many ways can the letters in the word COMMON be arranged?\nAnswer Choices: (A) 6 (B) 30 (C) 90 (D) 120 (E) 180"}, {"role": "assistant", "content": "Let's solve the multi-choice question step by step.\nAccording to the above the # of permutations of 6 letters COMMON out of which 2 O's and 2 M's are identical is 6!2!∗2!=180\nThe answer is E."}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "A team of six entered for a shooting competition. The best marks man scored 85 points. If he had scored 92 points, the average scores for. The team would have been 84. How many points altogether did the team score?\nAnswer Choices: (A) 288 (B) 497 (C) 168 (D) 127 (E) 664 Let's program in Python in the response."}, {"role": "assistant", "content": "answers = ['A', 'B', 'C', 'D', 'E']\n# If the best marksman had scored 92 points, the total score would have been 84 * 6 = 504\n# But he actually scored 85 points, so the actual total score is 504 - 92 + 85\nactual_total_score = 504 - 92 + 85\noptions = [288, 497, 168, 127, 664]\nindex = options.index(actual_total_score)\nprint(answers[index])"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "A psychiatrist has 4 patients that need 25 sessions in total. One of the patients needs 6 sessions. Another patient needs 5 more than that. How many sessions would the remaining patients need?"}, {"role": "assistant", "content": "The second patient needs 6+5 = 11 sessions\n25-11-6 = 8 sessions\nThe answer is 8"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "The radius of a wheel is 22.4 cm. What is the distance covered by the wheel in making 500 resolutions?\nAnswer Choices: (A) 187 m (B) 704 m (C) 179 m (D) 127 m (E) 297 m Let's write a Python program."}, {"role": "assistant", "content": "radius = 22.4\nresolutions = 500\n# calculate the circumference of the wheel\ncircumference = 2 * 3.14 * radius\n# calculate the distance covered by the wheel in making 500 resolutions\ndistance = circumference * resolutions\nprint(distance)"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "Let G be a group of order 35. What can be said about G? Answer Choices: (A) G must be abelian. (B) G must be cyclic. (C) G must be a direct product of cyclic groups. (D) G cannot be cyclic."}, {"role": "assistant", "content": "By the Fundamental Theorem of Finite Abelian Groups, any group of order 35, which is the product of two distinct prime numbers (5 and 7), must be a direct product of cyclic groups. Hence, option (C) is correct. Let's check each option: (A) G must be abelian: It is not necessarily true that G must be abelian. The statement would be true if G were of prime order, but that's not the case here. (B) G must be cyclic: Again, it's not necessarily true that G must be cyclic. A group is cyclic if it is generated by a single element, but this isn't guaranteed for a group of order 35. (C) G must be a direct product of cyclic groups: This is correct. The Fundamental Theorem of Finite Abelian Groups tells us that a group of order 35 must be isomorphic to a direct product of cyclic groups. (D) G cannot be cyclic: This is not necessarily true. It's possible for G to be cyclic, although it's not guaranteed. The answer is B."}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "At a pool party, there are 4 pizzas cut into 12 slices each. If the guests eat 39 slices, how many slices are left? Let's write a Python program."}, {"role": "assistant", "content": "# define the initial number of slices\ntotal_slices = 4 * 12\n# define the number of slices eaten\neaten_slices = 39\n# calculate the number of slices left\nleft_slices = total_slices - eaten_slices\n# print the result\nprint(left_slices)"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "Noel bakes 4 dozen donuts for his class. There are 30 students in class, but only 80% like donuts. How many donuts does each student who likes donuts get to eat? Please write a program to solve it"}, {"role": "assistant", "content": "# define the variables\ntotal_donuts = 4 * 12 # since a dozen is 12\ntotal_students = 30\npercentage_like_donuts = 0.8 # 80%\n\n# calculate the number of students who like donuts\nstudents_like_donuts = total_students * percentage_like_donuts\n\n# calculate the number of donuts each student who likes donuts gets\ndonuts_per_student = total_donuts / students_like_donuts\n\n# print the result\nprint(donuts_per_student)"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "Mr. Thomas invested an amount of Rs. 13,900 divided in two different schemes A and B at the simple interest rate of 14% p.a. and 11% p.a. respectively. If the total amount of simple interest earned in 2 years be Rs. 3508, what was the amount invested in scheme B?\nAnswer Choices: (A) 6400 (B) 2778 (C) 2699 (D) 2789 (E) 1279"}, {"role": "assistant", "content": "Let's solve the multi-choice question step by step.\nLet the sum invested in scheme A be Rs. x and that in scheme B be Rs. (13900 - x). Then,\n(x * 14 * 2)/100 + [(13900 - x) * 11 * 2]/100 = 3508\n28x - 22x = 350800 - (13900 * 22)\n6x = 45000 => x = 7500\nSo, sum invested in scheme B = (13900 - 7500) = Rs. 6400.\nThe answer is A"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "louie takes out a 3 - month loan of $ 1000 . the lender charges him 10 % interest per month compounded monthly . the terms of the loan state that louie must repay the loan in 3 equal monthly payments . to the nearest dollar , how much does louis have to pay each month ? Let's write a program."}, {"role": "assistant", "content": "n0 = 3.0\nn1 = 1000.0\nn2 = 10.0\nn3 = 3.0\nt0 = n2 / 100.0\nt1 = n0 * n1\nt2 = t0 * t1\nt3 = t0 * t2\nt4 = t2 + t3\nt5 = t4 + 1.0\nt6 = n1 + t5\nt7 = t5 / 100.0\nanswer = t6 / t7\nprint(answer)"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "Find the mass percentage of Ca in Calcium hydroxide Please write a program to solve it"}, {"role": "assistant", "content": "# Chemical formula of Calcium Hydroxide - Ca(OH)₂\r\n\r\nmolecular_weight_Ca = 40\r\nmolecular_weight_O = 16\r\nmolecular_weight_H = 1\r\n\r\nno_of_Ca = 1\r\nno_of_O = 2\r\nno_of_H = 2\r\n\r\ntotal_weight = (no_of_Ca * molecular_weight_Ca) + (no_of_O * molecular_weight_O) + (no_of_H * molecular_weight_H)\r\n\r\nmass_percentage_Ca = (molecular_weight_Ca * no_of_Ca * 100) / total_weight\r\n\r\nprint(round(mass_percentage_Ca, 2))"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "Sides of a rectangular park are in the ratio 3: 2 and its area is 3750 sq m, the cost of fencing it at 50 ps per meter is?\nAnswer Choices: (A) Rs.122 (B) Rs.129 (C) Rs.125 (D) Rs.120 (E) Rs.121"}, {"role": "assistant", "content": "Let's solve the multi-choice question step by step.\n3x * 2x = 3750 => x = 25\n2(75 + 50) = 250 m\n250 * 1/2 = Rs.125\nThe answer is C"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "(100 x 60) + (138 x 400) = ? x 60\nAnswer Choices: (A) 880 (B) 550 (C) 1100 (D) 1020 (E) 600"}, {"role": "assistant", "content": "Let's think about the multi-choice question.\n? = (100 x 60) + (138 x 400)/60\n= 6000 + 55200/60 = 1020\nThe answer is Option D"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "Tom paints a room that has 5 walls. Each wall is 2 meters by 3 meters. John can paint 1 square meter every 10 minutes. He has 10 hours to paint everything. How many hours does he have to spare?"}, {"role": "assistant", "content": "Each wall is 2*3=6 square meters\nSo each wall takes 6*10=60 minutes to paint\nSo it takes 60/60=1 hour to paint each wall\nThat means in total it takes 5*1=5 hours to paint\nSo he has 10-5=5 hour left after finishing painting\nThe answer is 5"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "Passage: According to CBS, in 2001 the ethnic makeup of the city was 99.8% Jewish and other non-Arab, without significant Arab population. See Population groups in Israel. According to CBS, in 2001 there were 23,700 males and 24,900 females. The population of the city was spread out with 31.4% 19 years of age or younger, 15.7% between 20 and 29, 18.5% between 30 and 44, 18.3% from 45 to 59, 4.1% from 60 to 64, and 11.9% 65 years of age or older. The population growth rate in 2001 was 0.8%. Question: How many percent were not under the age of 19? Please write a program to solve it"}, {"role": "assistant", "content": "percentage = 100\r\nunder = 31.4\r\nabove = percentage - under\r\nprint(above)"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "What is the exact Hausdorff dimension of the Vicsek fractal, whose four straight lines in each iteration form a square with holes in it, if each line segment in the square has a length of 1 unit?"}, {"role": "assistant", "content": "The Vicsek fractal is a self-similar fractal, and its Hausdorff dimension can be calculated using the formula:\n\nD = log(N) / log(s)\n\nwhere D is the Hausdorff dimension, N is the number of self-similar pieces, and s is the scaling factor.\n\nFor the Vicsek fractal, at each iteration, the square is divided into 5 smaller squares, with each side length being 1/3 of the original side length. Therefore, N = 5 and s = 3.\n\nNow, we can calculate the Hausdorff dimension:\n\nD = log(5) / log(3)\n\nD ≈ 1.46497\n\nSo, the exact Hausdorff dimension of the Vicsek fractal is approximately 1.46497."}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "If the average (arithmetic mean) of the four numbers K, 2K + 3, 3K – 5 and 5K + 1 is 96, what is the value of K?\nAnswer Choices: (A) 11 (B) 15 3/4 (C) 22 (D) 35 (E) 25 3/10"}, {"role": "assistant", "content": "Let's reason about the multi-choice question.\nK + 2K +3 + 3K - 5 + 5K +1 = 11K -1\n(11K -1)/4 = 96\n11K = 96 * 4 +1 = 384 +1 = 385\nK = 385 / 11 = 35.\nThe answer is D."}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "The snack machine at Richmond High School sells candy bars for $2 each and chips for $.50 each. How much money, in dollars, will 5 students need in total if each of them gets 1 candy bar and 2 bags of chips?"}, {"role": "assistant", "content": "The 5 students buy 5*1=5 candy bars.\nThe 5 students buy 5*2=10 bags of chips.\nThe 5 candy bars cost 5*2=10 dollars.\nThe 10 bags of chips cost 10*0.5=5 dollars.\nThe students need 10+5=15 dollars.\nThe answer is 15"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "The surface area of a sphere with radius $r$ is $4\\pi r^2$. Including the area of its circular base, what is the total surface area of a hemisphere with radius 6 cm? Express your answer in terms of $\\pi$.\n\n[asy]\n\nimport markers;\nsize(150);\nimport geometry;\ndraw((0,-7)--(0,-1),Arrow);\ndraw((10,10)--(5,5),Arrow);\nlabel(\"half of sphere\",(10,10),N);\nlabel(\"circular base\",(0,-7),S);\n\ndraw(scale(1,.2)*arc((0,0),10,0,180),dashed);\ndraw(scale(1,.2)*arc((0,0),10,180,360));\ndraw(Arc((0,0),10,0,180));\n\n[/asy]"}, {"role": "assistant", "content": "The base of the hemisphere is a circle with radius 6 and area $6^2\\pi=36\\pi$. The curved top of the hemisphere has half the surface area of a full sphere, which has surface area $4\\pi(6^2)=144\\pi$, so the curved top of the hemisphere has $144\\pi/2=72\\pi$. The total surface area of the hemisphere is $36\\pi+72\\pi=\\boxed{108\\pi}$. The answer is 108\\pi"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "a rectangular plot measuring 90 metres by 40 metres is to be enclosed by wire fencing . if the poles of the fence are kept 5 metres apart , how many poles will be needed ? Let's write a Python program to solve it."}, {"role": "assistant", "content": "n0 = 90.0\nn1 = 40.0\nn2 = 5.0\nt0 = 2 * (n0 + n1) # perimetere of rectangle\nanswer = t0 / n2\nprint(answer)"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "Three numbers are in the ratio 2 : 3 : 5 and their average is 50. The largest number is :\nAnswer Choices: (A) 30 (B) 75 (C) 27 (D) 21 (E) 22"}, {"role": "assistant", "content": "Let's reason about the multi-choice question.\nLet the numbers be 2x, 3x and 5x, Then, (2x + 3x + 5x ) / 3 = 50\n=> 10x = 150\n=> x = 15.\nLargest number 5x = 5*15 = 75\nThe answer is B"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "a jogger running at 9 km / hr along side a railway track is 200 m ahead of the engine of a 120 m long train running at 45 km / hr in the same direction . in how much time will the train pass the jogger ? Please write a program to solve it"}, {"role": "assistant", "content": "n0 = 9.0\nn1 = 200.0\nn2 = 120.0\nn3 = 45.0\nt0 = n1 + n2\nt1 = 10.0 / 2.0\nt2 = n3 - n0\nt3 = t2 / 2.0\nt4 = t1 / t3\nt5 = t4 * t2\nanswer = t0 / t5\nprint(answer)"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "Using temporal logic, determine whether the statement \"It will be raining hard at noon tomorrow\" is true or false, given the following information: Today is Monday, August 2nd, and it is currently 4pm. Assume that \"raining hard\" refers to a specific intensity of rain (as opposed to just any rain) and that \"noon\" is defined as exactly 12pm."}, {"role": "assistant", "content": "As a mathematician, I cannot predict the weather or determine the truth of a statement about future weather events using temporal logic alone. Temporal logic is a formal system used to reason about time and the ordering of events, but it does not provide information about specific events or their outcomes. To determine whether the statement \"It will be raining hard at noon tomorrow\" is true or false, you would need to consult a reliable weather forecast or use a predictive model based on meteorological data."}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "The planet Mercury travels around the Sun with a mean orbital radius of 5.8x10^10 m. The mass of the Sun is 1.99x10^30 kg. Use Newton's version of Kepler's third law to determine how long it takes Mercury to orbit the Sun. Give your answer in Earth days. Let's write a Python program to solve it."}, {"role": "assistant", "content": "import math\ndef solve():\n G = 6.6743 * 10**(-11) # gravitational constant\n M = 1.99 * 10**30 # mass of the Sun\n r = 5.8 * 10**10 # mean orbital radius of Mercury\n T = 2 * math.pi * math.sqrt(r**3 / (G * M)) # Kepler's third law\n T = T / (60 * 60 * 24) # convert seconds to days\n return T\nprint(solve())"}]} | ||
{"messages": [{"role": "system", "content": "You're a helpful assistant that answers math problems."}, {"role": "user", "content": "Let $F_1 = (0,1)$ and $F_ 2= (4,1).$ Then the set of points $P$ such that\n\\[PF_1 + PF_2 = 6\\]form an ellipse. The equation of this ellipse can be written as\n\\[\\frac{(x - h)^2}{a^2} + \\frac{(y - k)^2}{b^2} = 1.\\]Find $h + k + a + b.$"}, {"role": "assistant", "content": "We have that $2a = 6,$ so $a = 3.$ The distance between the foci is $2c = 4,$ so $c = 2.$ Hence, $b = \\sqrt{a^2 - c^2} = \\sqrt{5}.$\n\nThe center of the ellipse is the midpoint of $\\overline{F_1 F_2},$ which is $(2,1).$ Thus, the equation of the ellipse is\n\\[\\frac{(x - 2)^2}{3^2} + \\frac{(y - 1)^2}{(\\sqrt{5})^2} = 1.\\]Hence, $h + k + a + b = 2 + 1 + 3 + \\sqrt{5} = \\boxed{6 + \\sqrt{5}}.$. The answer is 6+\\sqrt{5}"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env -S npm run tsn -T | ||
|
||
// Example of uploading a file | ||
|
||
import Together from 'together-ai'; | ||
|
||
const together = new Together(); | ||
|
||
async function main() { | ||
//Upload a file | ||
|
||
// @ts-ignore | ||
const file = await together.files.upload('sample_finetuning.jsonl'); | ||
console.log('Uploaded file'); | ||
console.log(file); | ||
} | ||
|
||
main(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters