| compute_ylimits |
Ran ran on a synthesized input |
mlcommons/submissions_algorithms/artifacts/tech_report_v1/appendix_training_curves/curve_plotting/plot_curves.py code served (permissive licence) · get_code("1900be230edc52a1") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Test case 1: higher_is_better with percentile zoom
ARGS = {
"values": np.array([0.5, 0.6, 0.7, 0.8, 0.9, 0.95, 1.0], dtype=float),
"target_value": 0.85,
"higher_is_better": True,
"zoom": "percentile"
}
# Alternatively, test case 2: lower_is_better with full zoom
# ARGS = {
# "values": np.array([0.1, 0.2, 0.3, 0.4, 0.5], dtype=float),
# "target_value": 0.15,
# "higher_is_better": False,
# "zoom": "full"
# }
# Alternatively, test case 3: empty values
# ARGS = {
# "values": np.array([], dtype=float),
# "target_value": None,
# "higher_is_better": True,
# "zoom": "percentile"
# }
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| discrete |
Ran ran on a synthesized input |
mlcommons/algorithmic-efficiency/algoperf/halton.py code served (permissive licence) · get_code("6dbd6fb3beedb802") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned _DiscretePoints. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import collections
from typing import Sequence, Any
torch.manual_seed(0)
# The function 'discrete' takes feasible_points which is a Sequence[Any]
# and returns a _DiscretePoints namedtuple with that sequence as the 'feasible_points' field.
# We need to construct a valid Sequence of Any objects as feasible_points.
feasible_points_list = [
torch.randn(2, 4),
torch.randn(3, 5),
{"key": "value"},
[1, 2, 3],
42,
"string_value"
]
ARGS = {
"feasible_points": feasible_points_list
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type _DiscretePoints — a _DiscretePoints output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| find_workloads |
Ran ran on a synthesized input |
mlcommons/submissions_algorithms/artifacts/tech_report_v1/section_4_leaderboards/training_curves/plot_helper.py code served (permissive licence) · get_code("4c18823d56662cde") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned set. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
import glob
import tempfile
import shutil
# Create a temporary directory structure to simulate the log directory
temp_dir = tempfile.mkdtemp()
# Create the directory structure that find_workloads expects
submission_names = ["submission_1", "submission_2"]
for sub in submission_names:
study_dir = os.path.join(temp_dir, sub, "study_0")
os.makedirs(study_dir, exist_ok=True)
# Create some workload directories with different suffixes
os.makedirs(os.path.join(study_dir, "workload_a_pytorch"), exist_ok=True)
os.makedirs(os.path.join(study_dir, "workload_b_jax"), exist_ok=True)
os.makedirs(os.path.join(study_dir, "workload_c"), exist_ok=True)
# Create submissions dict
submissions = {
"submission_1": {"config": "value1"},
"submission_2": {"config": "value2"}
}
ARGS = {
"base_log_dir": temp_dir,
"submissions": submissions
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| generate_primes |
Ran ran on a synthesized input |
mlcommons/algorithmic-efficiency/algoperf/halton.py code served (permissive licence) · get_code("f43e4fb74b7c594d") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
# generate_primes takes one parameter: n (an integer)
# The function generates prime numbers less than n using the Sieve of Sundaram algorithm
# n should be a positive integer greater than 2 to produce meaningful results
ARGS = {
"n": 30
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| generate_sequence |
Ran ran on a synthesized input |
mlcommons/algorithmic-efficiency/algoperf/halton.py code served (permissive licence) · get_code("51e1565dce1f6500") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import math
from typing import Any, Callable, Dict, List, Sequence, Tuple, Union
from numpy import random
def generate_primes(n: int) -> List[int]:
"""Generate primes less than `n` (except 2) using the Sieve of Sundaram."""
half_m1 = int((n - 2) / 2)
sieve = [0] * (half_m1 + 1)
for outer in range(1, half_m1 + 1):
inner = outer
while outer + inner + 2 * outer * inner <= half_m1:
sieve[outer + inner + 2 * outer * inner] = 1
inner += 1
return [2 * i + 1 for i in range(1, half_m1 + 1) if sieve[i] == 0]
def _is_prime(n: int) -> bool:
"""Check if `n` is a prime number."""
return all((n % i != 0 for i in range(2, int(n ** 0.5) + 1))) and n != 2
def _generate_dim(num_samples: int, base: int, per_dim_shift: bool, shuffled_seed_sequence: List[int]) -> List[float]:
"""Generate `num_samples` from a Van der Corput sequence with base `base`."""
if base < 0 or not _is_prime(base):
raise ValueError(f'Each Van der Corput sequence requires a prime `base`, received {base}.')
rng = random.RandomState(base)
if shuffled_seed_sequence is None:
shuffled_seed_sequence = list(range(1, base))
rng.shuffle(shuffled_seed_sequence)
shuffled_seed_sequence = [0] + shuffled_seed_sequence
dim_shift = rng.random_sample() if per_dim_shift else None
dim_sequence = []
for i in range(1, num_samples + 1):
num = 0.0
denominator = base
while i:
num += shuffled_seed_sequence[i % base] / denominator
denominator *= base
i //= base
if per_dim_shift:
num = math.fmod(num + dim_shift, 1.0)
dim_sequence.append(num)
return dim_sequence
Matrix = List[List[int]]
def generate_sequence(num_samples: int, num_dims: int, skip: int=100, per_dim_shift: bool=True, shuffle_sequence: bool=True, primes: Sequence[int]=None, shuffled_seed_sequence: Matrix=None) -> Matrix:
"""Generate `num_samples` from a Halton sequence of dimension `num_dims`."""
if skip < 0:
raise ValueError(f'Skip must be non-negative, received: {skip}.')
if primes is not None and len(primes) != num_dims:
raise ValueError(f'If passing in a sequence of primes it must be the same length as num_dims={num_dims}, received {primes} (len {len(primes)}).')
if shuffled_seed_sequence is not None:
if len(shuffled_seed_sequence) != num_dims:
raise ValueError(f'If passing in `shuffled_seed_sequence` it must be the same length as num_dims={num_dims}, received {shuffled_seed_sequence} (len {len(shuffled_seed_sequence)}).')
# Generate primes if not provided
if primes is None:
all_primes = generate_primes(1000)
primes = all_primes[:num_dims]
# Generate all dimensions
sequence = []
total_samples = skip + num_samples
for d in range(num_dims):
seed_seq = shuffled_seed_sequence[d] if shuffled_seed_sequence is not None else None
dim_values = _generate_dim(total_samples, primes[d], per_dim_shift, seed_seq)
sequence.append(dim_values)
# Transpose to get samples
halton_sequence = [[sequence[d][i] for d in range(num_dims)] for i in range(total_samples)]
# Skip first `skip` samples
halton_sequence = halton_sequence[skip:]
# Shuffle if requested
if shuffle_sequence:
rng = random.RandomState(0)
rng.shuffle(halton_sequence)
return halton_sequence
# Setup valid arguments
ARGS = {
'num_samples': 10,
'num_dims': 3,
'skip': 5,
'per_dim_shift': True,
'shuffle_sequence': True,
'primes': [3, 5, 7],
'shuffled_seed_sequence': None,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_target_metric_and_value |
Ran ran on a synthesized input |
mlcommons/submissions_algorithms/artifacts/tech_report_v1/section_4_leaderboards/training_curves/plot_helper.py code served (permissive licence) · get_code("c5d442c0612ee65b") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
import json
import tempfile
from pathlib import Path
# Create a temporary directory structure with mock metadata files
temp_dir = tempfile.mkdtemp()
# Create nested directory structure matching the glob pattern
submission_name = "submission_1"
study_dir = os.path.join(temp_dir, submission_name, "study_001")
workload_dir = os.path.join(study_dir, "workload_test_v1")
trial_dir = os.path.join(workload_dir, "trial_000")
os.makedirs(trial_dir, exist_ok=True)
# Create a mock metadata JSON file
metadata = {
"workload.target_metric_name": "accuracy",
"workload.validation_target_value": 0.95
}
metadata_file = os.path.join(trial_dir, "meta_data_0.json")
with open(metadata_file, 'w') as f:
json.dump(metadata, f)
# Define the ARGS dictionary
ARGS = {
"base_log_dir": temp_dir,
"workload": "workload_test",
"submissions": {submission_name: {}}
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| interpolate_trials |
Ran ran on a synthesized input |
mlcommons/submissions_algorithms/artifacts/tech_report_v1/appendix_training_curves/curve_plotting/plot_curves.py code served (permissive licence) · get_code("1c18c1b899014486") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import pandas as pd
# Create mock trial data as DataFrames with x_col and y_col
trial_1 = pd.DataFrame({
'x': np.array([0.0, 1.0, 2.0, 3.0]),
'y': np.array([1.0, 2.5, 4.0, 5.5])
})
trial_2 = pd.DataFrame({
'x': np.array([0.5, 1.5, 2.5, 3.5]),
'y': np.array([1.5, 3.0, 4.5, 6.0])
})
trial_3 = pd.DataFrame({
'x': np.array([0.2, 1.2, 2.2]),
'y': np.array([1.2, 2.8, 4.2])
})
trials = [trial_1, trial_2, trial_3]
ARGS = {
'trials': trials,
'x_col': 'x',
'y_col': 'y',
'n': 150
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| is_higher_better |
Ran ran on a synthesized input |
mlcommons/submissions_algorithms/artifacts/tech_report_v1/appendix_training_curves/curve_plotting/plot_config.py code served (permissive licence) · get_code("ca0283eb8398aecb") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
ARGS = {
'metric_name': 'accuracy'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_workload_data |
Ran ran on a synthesized input |
mlcommons/submissions_algorithms/artifacts/tech_report_v1/section_4_leaderboards/training_curves/plot_helper.py code served (permissive licence) · get_code("6c008654e95b670d") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
import tempfile
import pandas as pd
import shutil
# Create a temporary directory structure with CSV files
tmpdir = tempfile.mkdtemp()
# Create submission directories with nested structure
submissions_data = {
'submission_1': 'style1',
'submission_2': 'style2'
}
for sub in submissions_data.keys():
sub_dir = os.path.join(tmpdir, sub, 'study_001', 'workload_A', 'trial_001')
os.makedirs(sub_dir, exist_ok=True)
# Create a sample CSV file
df = pd.DataFrame({
'accumulated_submission_time': [1.0, 2.0, 3.0],
'global_step': [10, 20, 30],
'eval_loss': [0.5, 0.4, 0.3],
'eval_accuracy': [0.7, 0.8, 0.9]
})
csv_path = os.path.join(sub_dir, 'eval_measurements.csv')
df.to_csv(csv_path, index=False)
# Create another trial for variety
sub_dir2 = os.path.join(tmpdir, sub, 'study_001', 'workload_A', 'trial_002')
os.makedirs(sub_dir2, exist_ok=True)
df2 = pd.DataFrame({
'accumulated_submission_time': [1.5, 2.5, 3.5],
'global_step': [15, 25, 35],
'eval_loss': [0.6, 0.5, 0.4],
'eval_accuracy': [0.65, 0.75, 0.85]
})
csv_path2 = os.path.join(sub_dir2, 'eval_measurements.csv')
df2.to_csv(csv_path2, index=False)
ARGS = {
'base_log_dir': tmpdir,
'workload': 'workload_A',
'submissions': submissions_data,
'csv_col_name': 'eval_loss'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — a tuple output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| pad |
Ran ran on a synthesized input |
mlcommons/algorithmic-efficiency/algoperf/data_utils.py code served (permissive licence) · get_code("a70fb7b96ab81006") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family int, shape (5, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create a small 2D numpy array for testing
tensor = np.array([[1, 2, 3, 4],
[5, 6, 7, 8]], dtype=np.int32)
# Define the pad_size parameter
pad_size = 3
# Define the padding_value parameter
padding_value = 0
ARGS = {
"tensor": tensor,
"pad_size": pad_size,
"padding_value": padding_value
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family int, shape (5, 4) — shape (5, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| recolored |
Ran ran on a synthesized input |
mlcommons/submissions_algorithms/artifacts/tech_report_v1/appendix_training_curves/curve_plotting/plot_curves.py code served (permissive licence) · get_code("3b645572c0590248") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
DISTINCT_HUES = ['#0072B2', '#D55E00', '#009E73', '#CC79A7', '#E69F00', '#56B4E9', '#000000']
def recolored(submissions: dict) -> dict:
"""Give each submission a distinct hue, keeping its label and linestyle."""
out = {}
for i, (sub, style) in enumerate(submissions.items()):
s = dict(style)
s['color'] = DISTINCT_HUES[i % len(DISTINCT_HUES)]
out[sub] = s
return out
# Construct valid arguments for recolored function
submissions_input = {
'submission_1': {'label': 'Model A', 'linestyle': '-', 'linewidth': 2},
'submission_2': {'label': 'Model B', 'linestyle': '--', 'linewidth': 1.5},
'submission_3': {'label': 'Model C', 'linestyle': '-.', 'linewidth': 2.5},
}
ARGS = {
'submissions': submissions_input
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| replicate |
Ran ran on a synthesized input |
mlcommons/algorithmic-efficiency/algoperf/jax_sharding_utils.py code served (permissive licence) · get_code("ec540686300a802b") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ArrayImpl, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import jax
import jax.numpy as jnp
from jax.sharding import NamedSharding
from jax.sharding import PartitionSpec as P
# Create a simple JAX array as input
x = jnp.array([[1.0, 2.0, 3.0, 4.0],
[5.0, 6.0, 7.0, 8.0]])
ARGS = {
'x': x
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ArrayImpl, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| replicate_checkpoint |
Ran ran on a synthesized input |
mlcommons/algorithmic-efficiency/algoperf/checkpoint_utils.py code served (permissive licence) · get_code("465fcdd73eea3a51") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import jax
import jax.numpy as jnp
import numpy as np
ARGS = {
"latest": {
"model_params": {
"layer1": jnp.array([[1.0, 2.0, 3.0, 4.0],
[5.0, 6.0, 7.0, 8.0]]),
"layer2": jnp.array([[9.0, 10.0, 11.0, 12.0],
[13.0, 14.0, 15.0, 16.0]])
},
"optimizer_state": {
"step": jnp.array(100),
"momentum": jnp.array([[0.1, 0.2, 0.3, 0.4]])
},
"metadata": "some_metadata_value",
"config": {"lr": 0.001}
},
"pytree_keys": ["model_params", "optimizer_state"],
"replicate": True
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- flax, jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| shard |
Ran ran on a synthesized input |
mlcommons/algorithmic-efficiency/algoperf/data_utils.py code served (permissive licence) · get_code("26b40ee442cadc0e") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import jax
import jax.numpy as jnp
torch.manual_seed(0)
# The function expects a batch which is a pytree (dict, tuple, list, etc.)
# containing tensors or arrays. It reshapes them to (local_device_count, -1, *rest)
# We'll create a simple batch dict with torch tensors
batch = {
"input_ids": torch.randn(8, 4), # shape (8, 4)
"attention_mask": torch.ones(8, 3), # shape (8, 3)
}
ARGS = {
"batch": batch
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| shard_along_batch_dim |
Ran ran on a synthesized input |
mlcommons/algorithmic-efficiency/algoperf/jax_sharding_utils.py code served (permissive licence) · get_code("ff8c61af026bc891") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ArrayImpl, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import jax
import jax.numpy as jnp
# Create a simple JAX array to shard
x = jnp.ones((2, 4))
ARGS = {
'x': x
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ArrayImpl, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| sync_ddp_time |
Ran ran on a synthesized input |
mlcommons/algorithmic-efficiency/algoperf/pytorch_utils.py code served (permissive licence) · get_code("8cf27cb29ed879ec") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.distributed as dist
from unittest.mock import patch, MagicMock
torch.manual_seed(0)
# Mock dist.all_reduce to work without actual distributed setup
original_all_reduce = dist.all_reduce
def mock_all_reduce(tensor, op=dist.ReduceOp.MAX):
# Just return without doing anything - simulates single process
return
# Patch dist.all_reduce for this execution
dist.all_reduce = mock_all_reduce
# Create arguments
device = torch.device('cpu')
time_value = 42.5
ARGS = {
'time': time_value,
'device': device,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| PRNGKey |
Not yet run unverified (harvested, no recorded run) |
mlcommons/algorithmic-efficiency/algoperf/random_utils.py code served (permissive licence) · get_code("3cb5b30e82603e79") How it ran |
| fold_in |
Not yet run unverified (harvested, no recorded run) |
mlcommons/algorithmic-efficiency/algoperf/random_utils.py code served (permissive licence) · get_code("6a6d21d04570b761") How it ran |
| split |
Not yet run unverified (harvested, no recorded run) |
mlcommons/algorithmic-efficiency/algoperf/random_utils.py code served (permissive licence) · get_code("41945920f8ae7923") How it ran |