Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Could not squash the history of the commits (after 6 attempts).
Error code:   CreateCommitError

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.

task_id
string
category
string
prompt
string
input_data
string
expected_output
string
jax-000
array_ops
Reshape `x` to shape (4, 6) in row-major order.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [[-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302], [-1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425], [0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0.9130...
jax-001
array_ops
Return the transpose of `m`.
{"m": "{\"data\": [[-1.0, -0.9428571462631226, -0.8857142925262451, -0.8285714387893677, -0.7714285850524902, -0.7142857313156128], [-0.6571428775787354, -0.6000000238418579, -0.5428571701049805, -0.48571422696113586, -0.4285714328289032, -0.371428519487381], [-0.3142857253551483, -0.2571428120136261, -0.20000001788139...
{"data": [[-1.0, -0.6571428775787354, -0.3142857253551483, 0.028571460396051407, 0.37142860889434814, 0.7142857313156128], [-0.9428571462631226, -0.6000000238418579, -0.2571428120136261, 0.08571431785821915, 0.4285714626312256, 0.7714285850524902], [-0.8857142925262451, -0.5428571701049805, -0.20000001788139343, 0.1428...
jax-002
array_ops
Return the row-wise sum of `b` as a 1-D array.
{"b": "{\"data\": [[0.0, 0.10000000149011612, 0.20000000298023224, 0.30000001192092896, 0.4000000059604645], [0.5, 0.6000000238418579, 0.699999988079071, 0.800000011920929, 0.9000000357627869], [1.0, 1.100000023841858, 1.2000000476837158, 1.3000000715255737, 1.399999976158142], [1.5, 1.600000023841858, 1.70000004768371...
{"data": [1.0, 3.5, 6.0, 8.5, 11.0, 13.5, 16.0, 18.5], "dtype": "float32", "shape": [8]}
jax-003
array_ops
Return the column-wise mean of `b`.
{"b": "{\"data\": [[0.0, 0.10000000149011612, 0.20000000298023224, 0.30000001192092896, 0.4000000059604645], [0.5, 0.6000000238418579, 0.699999988079071, 0.800000011920929, 0.9000000357627869], [1.0, 1.100000023841858, 1.2000000476837158, 1.3000000715255737, 1.399999976158142], [1.5, 1.600000023841858, 1.70000004768371...
{"data": [1.75, 1.8500001430511475, 1.9499999284744263, 2.049999952316284, 2.1499998569488525], "dtype": "float32", "shape": [5]}
jax-004
array_ops
Clip `x` to the range [-1, 1].
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [-1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0.9130434989929199, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], "dtype": "float32", "shape": [24]}
jax-005
array_ops
Return `x` sorted in DESCENDING order.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [3.0, 2.7391304969787598, 2.4782609939575195, 2.2173914909362793, 1.9565218687057495, 1.6956521272659302, 1.43478262424469, 1.1739130020141602, 0.9130434989929199, 0.6521739363670349, 0.39130428433418274, 0.13043475151062012, -0.1304347813129425, -0.3913043141365051, -0.6521738767623901, -0.9130433797836304, -...
jax-006
array_ops
Return the indices that sort `x` ascending, as int32.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "dtype": "int32", "shape": [24]}
jax-007
array_ops
Return the cumulative sum of `x`.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [-3.0, -5.73913049697876, -8.217391967773438, -10.434783935546875, -12.391305923461914, -14.086957931518555, -15.521739959716797, -16.69565200805664, -17.60869598388672, -18.2608699798584, -18.65217399597168, -18.782608032226562, -18.65217399597168, -18.2608699798584, -17.60869598388672, -16.69565200805664, -1...
jax-008
array_ops
Return the matrix product of `m` with itself.
{"m": "{\"data\": [[-1.0, -0.9428571462631226, -0.8857142925262451, -0.8285714387893677, -0.7714285850524902, -0.7142857313156128], [-0.6571428775787354, -0.6000000238418579, -0.5428571701049805, -0.48571422696113586, -0.4285714328289032, -0.371428519487381], [-0.3142857253551483, -0.2571428120136261, -0.20000001788139...
{"data": [[1.077551007270813, 0.7836733460426331, 0.48979586362838745, 0.19591817259788513, -0.09795919060707092, -0.39183688163757324], [0.7836735248565674, 0.6073469519615173, 0.4310205280780792, 0.254693865776062, 0.07836742699146271, -0.09795913100242615], [0.4897959232330322, 0.4310204088687897, 0.3722449243068695...
jax-009
array_ops
Normalise each row of `b` to unit L2 norm (guard the divisor with a minimum of 1e-12).
{"b": "{\"data\": [[0.0, 0.10000000149011612, 0.20000000298023224, 0.30000001192092896, 0.4000000059604645], [0.5, 0.6000000238418579, 0.699999988079071, 0.800000011920929, 0.9000000357627869], [1.0, 1.100000023841858, 1.2000000476837158, 1.3000000715255737, 1.399999976158142], [1.5, 1.600000023841858, 1.70000004768371...
{"data": [[0.0, 0.18257418274879456, 0.3651483654975891, 0.547722578048706, 0.7302967309951782], [0.31311213970184326, 0.3757345974445343, 0.43835699558258057, 0.5009794235229492, 0.5636018514633179], [0.37011659145355225, 0.407128244638443, 0.44413992762565613, 0.4811515808105469, 0.5181632041931152], [0.3932418227195...
jax-010
array_ops
Use jnp.where to return `x` with every negative value replaced by 0.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0.9130434989929199, 1.1739130020141602, 1.43478262424469, 1.6956521272659302, 1.9565218687057495, 2.2173914909362793, 2.4782609939575195, 2.7391304969787598, 3.0], "dtype": "float32", "sha...
jax-011
array_ops
Return `x` with the element at index 3 set to 99.0, using JAX's functional index update (`.at[].set()`).
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [-3.0, -2.7391304969787598, -2.4782609939575195, 99.0, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0.9130434989929199, 1.1739...
jax-012
array_ops
Return `x` with 1.0 ADDED to the elements at indices 0, 1 and 2, using `.at[].add()`.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [-2.0, -1.7391304969787598, -1.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0.913043498...
jax-013
array_ops
Return the pairwise differences between consecutive elements of `x`.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [0.26086950302124023, 0.26086950302124023, 0.26086950302124023, 0.2608698606491089, 0.26086950302124023, 0.2608696222305298, 0.26086950302124023, 0.2608696222305298, 0.26086950302124023, 0.260869562625885, 0.2608695328235626, 0.2608695328235626, 0.2608695328235626, 0.2608696520328522, 0.260869562625885, 0.2608...
jax-014
linalg
Return the eigenvalues of the symmetric matrix `s`, sorted ascending. Use a symmetric eigensolver.
{"s": "{\"data\": [[8.541666984558105, 1.8055554628372192, 0.06944429874420166, -1.6666667461395264, -3.402777671813965], [1.8055554628372192, 5.9375, 0.06944436579942703, -0.7986111044883728, -1.6666666269302368], [0.06944429874420166, 0.06944436579942703, 5.06944465637207, 0.06944452971220016, 0.06944460421800613], [...
{"data": [5.0, 5.0, 5.000000953674316, 5.347223281860352, 13.68055534362793], "dtype": "float32", "shape": [5]}
jax-015
linalg
Return the lower-triangular Cholesky factor of `s`.
{"s": "{\"data\": [[8.541666984558105, 1.8055554628372192, 0.06944429874420166, -1.6666667461395264, -3.402777671813965], [1.8055554628372192, 5.9375, 0.06944436579942703, -0.7986111044883728, -1.6666666269302368], [0.06944429874420166, 0.06944436579942703, 5.06944465637207, 0.06944452971220016, 0.06944460421800613], [...
{"data": [[2.9226131439208984, 0.0, 0.0, 0.0, 0.0], [0.6177880167961121, 2.3570826053619385, 0.0, 0.0, 0.0], [0.023761028423905373, 0.02323426678776741, 2.2512974739074707, 0.0, 0.0], [-0.5702659487724304, -0.18934746086597443, 0.03881938382983208, 2.361130475997925, 0.0], [-1.164292812347412, -0.40192925930023193, 0.0...
jax-016
linalg
Solve s @ z = b where b is a vector of ones of the right length, and return z.
{"s": "{\"data\": [[8.541666984558105, 1.8055554628372192, 0.06944429874420166, -1.6666667461395264, -3.402777671813965], [1.8055554628372192, 5.9375, 0.06944436579942703, -0.7986111044883728, -1.6666666269302368], [0.06944429874420166, 0.06944436579942703, 5.06944465637207, 0.06944452971220016, 0.06944460421800613], [...
{"data": [0.1870129555463791, 0.18701298534870148, 0.18701298534870148, 0.18701300024986267, 0.1870129555463791], "dtype": "float32", "shape": [5]}
jax-017
linalg
Return the singular values of `m` as a 1-D array.
{"m": "{\"data\": [[-1.0, -0.9428571462631226, -0.8857142925262451, -0.8285714387893677, -0.7714285850524902, -0.7142857313156128], [-0.6571428775787354, -0.6000000238418579, -0.5428571701049805, -0.48571422696113586, -0.4285714328289032, -0.371428519487381], [-0.3142857253551483, -0.2571428120136261, -0.20000001788139...
{"data": [3.513239860534668, 0.5855399966239929, 1.4321832964014902e-07, 4.908867268227368e-08, 1.1211026773594313e-08, 1.006744465570364e-09], "dtype": "float32", "shape": [6]}
jax-018
linalg
Return the inverse of `s`.
{"s": "{\"data\": [[8.541666984558105, 1.8055554628372192, 0.06944429874420166, -1.6666667461395264, -3.402777671813965], [1.8055554628372192, 5.9375, 0.06944436579942703, -0.7986111044883728, -1.6666666269302368], [0.06944429874420166, 0.06944436579942703, 5.06944465637207, 0.06944452971220016, 0.06944460421800613], [...
{"data": [[0.14664116501808167, -0.027978109195828438, -0.002597400452941656, 0.02278330735862255, 0.0481640063226223], [-0.027978109195828438, 0.1847122311592102, -0.002597401151433587, 0.010092951357364655, 0.0227833054959774], [-0.0025974002201110125, -0.002597401151433587, 0.19740258157253265, -0.002597403712570667...
jax-019
linalg
Return a 1-element array containing the trace of `m`.
{"m": "{\"data\": [[-1.0, -0.9428571462631226, -0.8857142925262451, -0.8285714387893677, -0.7714285850524902, -0.7142857313156128], [-0.6571428775787354, -0.6000000238418579, -0.5428571701049805, -0.48571422696113586, -0.4285714328289032, -0.371428519487381], [-0.3142857253551483, -0.2571428120136261, -0.20000001788139...
{"data": [0.0], "dtype": "float32", "shape": [1]}
jax-020
autodiff
Using jax.grad, return the gradient of f(v) = (v**2).sum() evaluated at `x`.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [-6.0, -5.4782609939575195, -4.956521987915039, -4.434782981872559, -3.913043260574341, -3.3913042545318604, -2.869565010070801, -2.3478260040283203, -1.8260867595672607, -1.3043477535247803, -0.7826086282730103, -0.260869562625885, 0.26086950302124023, 0.7826085686683655, 1.3043478727340698, 1.826086997985839...
jax-021
autodiff
Using jax.grad, return the gradient of f(v) = (jnp.sin(v) * v).sum() evaluated at `x`.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [2.828857421875, 2.128587245941162, 1.3369883298873901, 0.5377773642539978, -0.19042116403579712, -0.7810532450675964, -1.1853134632110596, -1.3760414123535156, -1.349548101425171, -1.1252412796020508, -0.7431210279464722, -0.25939202308654785, 0.2593919634819031, 0.7431209683418274, 1.1252415180206299, 1.3495...
jax-022
autodiff
Return the elementwise SECOND derivative of f(v) = (v**3).sum() at `x`. Note jax.grad needs scalar output, so differentiate the SUM of the first gradient.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [-18.0, -16.434783935546875, -14.869565963745117, -13.304348945617676, -11.739130020141602, -10.17391300201416, -8.608695030212402, -7.043478012084961, -5.478260040283203, -3.913043260574341, -2.3478260040283203, -0.782608687877655, 0.7826085090637207, 2.347825765609741, 3.91304349899292, 5.4782609939575195, 7...
jax-023
autodiff
Use jax.vmap to apply f(t) = t**2 + 1 elementwise over `x` and return the result.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [10.0, 8.502836227416992, 7.141777515411377, 5.916824817657471, 4.827977180480957, 3.8752360343933105, 3.058600902557373, 2.3780717849731445, 1.8336482048034668, 1.4253307580947876, 1.1531190872192383, 1.0170131921768188, 1.0170131921768188, 1.1531190872192383, 1.4253308773040771, 1.833648443222046, 2.37807178...
jax-024
autodiff
Use jax.jacfwd to return the full Jacobian of f(v) = v**2 at `x` (a 24x24 matrix).
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [[-6.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0], [-0.0, -5.4782609939575195, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0], [-0...
jax-025
autodiff
Use jax.value_and_grad on f(v) = (v**2).sum() at `x` and return a 1-element array holding ONLY the value (not the gradient).
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [78.2608642578125], "dtype": "float32", "shape": [1]}
jax-026
autodiff
Use jax.jit to compile f(v) = jnp.tanh(v).sum() * 2, then return a 1-element array with its value at `x`.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [-1.430511474609375e-06], "dtype": "float32", "shape": [1]}
jax-027
nn
Apply a softmax along axis 1 to `l`.
{"l": "{\"data\": [[-2.0, -1.6363635063171387, -1.2727272510528564, -0.9090909361839294], [-0.5454545021057129, -0.18181806802749634, 0.18181824684143066, 0.5454545617103577], [0.9090909957885742, 1.2727274894714355, 1.6363637447357178, 2.0]], \"dtype\": \"float32\", \"shape\": [3, 4]}"}
{"data": [[0.13360127806663513, 0.19219225645065308, 0.2764783203601837, 0.39772817492485046], [0.13360127806663513, 0.19219225645065308, 0.2764783203601837, 0.39772817492485046], [0.13360124826431274, 0.19219224154949188, 0.2764783203601837, 0.3977281153202057]], "dtype": "float32", "shape": [3, 4]}
jax-028
nn
Apply a log-softmax along axis 1 to `l`.
{"l": "{\"data\": [[-2.0, -1.6363635063171387, -1.2727272510528564, -0.9090909361839294], [-0.5454545021057129, -0.18181806802749634, 0.18181824684143066, 0.5454545617103577], [0.9090909957885742, 1.2727274894714355, 1.6363637447357178, 2.0]], \"dtype\": \"float32\", \"shape\": [3, 4]}"}
{"data": [[-2.0128955841064453, -1.649259090423584, -1.2856228351593018, -0.9219865202903748], [-2.0128955841064453, -1.649259090423584, -1.2856228351593018, -0.9219865202903748], [-2.0128955841064453, -1.649259090423584, -1.2856228351593018, -0.9219865798950195]], "dtype": "float32", "shape": [3, 4]}
jax-029
nn
Apply jax.nn.relu to `x`.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0.9130434989929199, 1.1739130020141602, 1.43478262424469, 1.6956521272659302, 1.9565218687057495, 2.2173914909362793, 2.4782609939575195, 2.7391304969787598, 3.0], "dtype": "float32", "sha...
jax-030
nn
Apply jax.nn.gelu to `x` with the default approximation.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [-0.003637343645095825, -0.007964633405208588, -0.01592746376991272, -0.029207680374383926, -0.04924757033586502, -0.07639887183904648, -0.10880590230226517, -0.14132919907569885, -0.16502659022808075, -0.16774670779705048, -0.13609716296195984, -0.058449383825063705, 0.07198537886142731, 0.2552071213722229, 0...
jax-031
nn
Apply jax.nn.sigmoid to `x`.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [0.04742587357759476, 0.06070346012711525, 0.07739628106355667, 0.09819956123828888, 0.1238439679145813, 0.15503397583961487, 0.19235460460186005, 0.2361484318971634, 0.286377489566803, 0.3424997925758362, 0.4034033417701721, 0.4674374461174011, 0.5325625538825989, 0.5965966582298279, 0.657500147819519, 0.7136...
jax-032
nn
Compute a dense layer: b @ W + c, where W is jnp.arange(15, dtype=jnp.float32).reshape(5, 3) / 10 and c is jnp.array([0.1, 0.2, 0.3], dtype=jnp.float32).
{"b": "{\"data\": [[0.0, 0.10000000149011612, 0.20000000298023224, 0.30000001192092896, 0.4000000059604645], [0.5, 0.6000000238418579, 0.699999988079071, 0.800000011920929, 0.9000000357627869], [1.0, 1.100000023841858, 1.2000000476837158, 1.3000000715255737, 1.399999976158142], [1.5, 1.600000023841858, 1.70000004768371...
{"data": [[1.0, 1.2000000476837158, 1.4000000953674316], [2.5, 2.950000286102295, 3.4000000953674316], [4.000000476837158, 4.699999809265137, 5.400000095367432], [5.500000476837158, 6.450000286102295, 7.400000095367432], [7.0, 8.199999809265137, 9.40000057220459], [8.500000953674316, 9.949999809265137, 11.4000005722045...
jax-033
nn
Return the mean squared error between `b` and an array of zeros of the same shape, as a 1-element array.
{"b": "{\"data\": [[0.0, 0.10000000149011612, 0.20000000298023224, 0.30000001192092896, 0.4000000059604645], [0.5, 0.6000000238418579, 0.699999988079071, 0.800000011920929, 0.9000000357627869], [1.0, 1.100000023841858, 1.2000000476837158, 1.3000000715255737, 1.399999976158142], [1.5, 1.600000023841858, 1.70000004768371...
{"data": [5.135000705718994], "dtype": "float32", "shape": [1]}
jax-034
nn
Return the per-row cross-entropy of `l` against the class targets [0, 3, 1], computed as -log_softmax(l)[row, target].
{"l": "{\"data\": [[-2.0, -1.6363635063171387, -1.2727272510528564, -0.9090909361839294], [-0.5454545021057129, -0.18181806802749634, 0.18181824684143066, 0.5454545617103577], [0.9090909957885742, 1.2727274894714355, 1.6363637447357178, 2.0]], \"dtype\": \"float32\", \"shape\": [3, 4]}"}
{"data": [2.0128955841064453, 0.9219865202903748, 1.649259090423584], "dtype": "float32", "shape": [3]}
jax-035
random
Create key = jax.random.PRNGKey(0) and return jax.random.normal(key, (8,), dtype=jnp.float32).
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [1.622642159461975, 2.0252647399902344, -0.4335944354534149, -0.07861734926700592, 0.17609089612960815, -0.9720892310142517, -0.49529874324798584, 0.49437859654426575], "dtype": "float32", "shape": [8]}
jax-036
random
Create key = jax.random.PRNGKey(0), split it once into (k1, k2) with jax.random.split, and return jax.random.uniform(k2, (5,), dtype=jnp.float32).
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [0.007293820381164551, 0.020891189575195312, 0.5814265012741089, 0.3618379831314087, 0.2230377197265625], "dtype": "float32", "shape": [5]}
jax-037
random
Create key = jax.random.PRNGKey(42) and return a random permutation of jnp.arange(10) as int32, using jax.random.permutation.
{"x": "{\"data\": [-3.0, -2.7391304969787598, -2.4782609939575195, -2.2173914909362793, -1.9565216302871704, -1.6956521272659302, -1.4347825050354004, -1.1739130020141602, -0.9130433797836304, -0.6521738767623901, -0.3913043141365051, -0.1304347813129425, 0.13043475151062012, 0.39130428433418274, 0.6521739363670349, 0....
{"data": [7, 4, 2, 5, 3, 6, 8, 9, 0, 1], "dtype": "int32", "shape": [10]}

jax-tasks-v1

Task dataset for a JAX RL / eval environment, in the shape used by the Prime Intellect Environments Hub.

38 JAX tasks across 5 categories. Each task gives the model one or more input arrays and an instruction; the answer is the array left in result, graded with numpy.allclose against a reference. Grading is deterministic — no LLM judge, no external API, CPU only.

Category Tasks Covers
array_ops 14 reshape, transpose, axis reductions, clip, sort/argsort, cumsum, matmul, row-normalise, jnp.where, functional index update (.at[].set() / .at[].add()), diff
nn 8 softmax, log-softmax, relu, gelu, sigmoid, an explicit dense layer, MSE, per-row cross-entropy
autodiff 7 jax.grad, gradient through sin, elementwise second derivative, jax.vmap, jax.jacfwd, jax.value_and_grad, jax.jit
linalg 6 symmetric eigenvalues, Cholesky, solve, SVD, inverse, trace
random 3 PRNGKey, split, normal, uniform, permutation — all with the seed pinned in the prompt

Fields

Field Description
task_id stable id, e.g. jax-017
category one of the five above
prompt the natural-language instruction shown to the model
input_data JSON object mapping array name (x, m, b, s, l) to a serialised array
expected_output the serialised reference result

How it was built, and why you can trust the answer key

Tasks are defined as (deterministic input arrays, instruction, reference solution). The expected output is computed by executing the reference, never written by hand.

Every task is then independently verified: the reference runs and returns a real-valued array; it is deterministic across two executions; the result is finite, non-empty, and not identical to its input; and both the result and every input survive the serialisation round-trip exactly, dtype and shape included. All 38 pass on jax 0.11.0.

That verifier earned its place here: it caught two real defects on the first run of this dataset — a "sort ascending" task whose input was already a linspace and therefore an identity task, and a second-derivative task written as grad(grad(f)), which JAX rejects because the inner gradient of a sum over a vector is itself a vector and grad requires scalar output.

Two JAX-specific decisions

  1. float32 throughout; jax_enable_x64 deliberately left off. JAX defaults to 32-bit and silently downcasts. Building the key under x64 and grading under the default would make every float task fail for a reason unrelated to the model.
  2. PRNG keys are explicit (jax.random.PRNGKey(0)), and the seed is stated in the prompt. JAX's threefry stream is reproducible, which is exactly what makes these gradeable — but only if the seed is pinned rather than assumed.

Builder and verifier: build_tasks.py.

Downloads last month
-