SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.05735 · ICLR · 2025

Aioli: A unified optimization framework for language model data mixing

Kyunghyun Cho, Christopher Ré, Mayee Chen, Michael Hu, Nicholas Lourie

arXiv · PDF · Open in the Atlas

Code that ran

23 of 31 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 14 failures of our instrument; 8 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2411.05735.json · badge: /api/ran/2411.05735.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
HazyResearch/aioli canonical (classifier label)
classifier basis: census
13 ran · 5 no recorded run
hazyresearch/aioli community
Papers with Code archive
10 ran · 3 no recorded run
FunctionStatusWhere it lives
AbstractTrainer Ran
ran on a synthesized input · constructed an object; no result was computed
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("aa9e619f3278e4bc")
How it ran

Ran 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 an instance of its own class, AbstractTrainer: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

class DummyArgs:
    def __init__(self):
        self.learning_rate = 0.001
        self.epochs = 2
        self.batch_size = 2
        self.model_name = "test_model"

class DummyLogger:
    def info(self, msg):
        pass
    def debug(self, msg):
        pass
    def warning(self, msg):
        pass

class DummyTokenizer:
    def __init__(self):
        self.vocab_size = 100
        self.pad_token_id = 0
    
    def encode(self, text):
        return [1, 2, 3]
    
    def decode(self, tokens):
        return "decoded text"

class DummyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding = nn.Embedding(100, 16)
        self.linear = nn.Linear(16, 10)
    
    def forward(self, input_ids):
        x = self.embedding(input_ids)
        x = x.mean(dim=1)
        return self.linear(x)

class DummyEvaluator:
    def __init__(self):
        self.result_path = "/path/to/results/experiment_001"
    
    def evaluate(self, predictions, references):
        return {"accuracy": 0.95}

# Create sample data loaders (list of batches)
validation_data = [
    (torch.randint(0, 100, (2, 4)), torch.randint(0, 10, (2,))),
    (torch.randint(0, 100, (2, 4)), torch.randint(0, 10, (2,)))
]

test_data = [
    (torch.randint(0, 100, (2, 4)), torch.randint(0, 10, (2,))),
    (torch.randint(0, 100, (2, 4)), torch.randint(0, 10, (2,)))
]

train_data = [
    (torch.randint(0, 100, (2, 4)), torch.randint(0, 10, (2,))),
    (torch.randint(0, 100, (2, 4)), torch.randint(0, 10, (2,))),
    (torch.randint(0, 100, (2, 4)), torch.randint(0, 10, (2,)))
]

ARGS = {
    "args": DummyArgs(),
    "logger": DummyLogger(),
    "tokenizer": DummyTokenizer(),
    "model": DummyModel(),
    "validation_data": validation_data,
    "test_data": test_data,
    "train_data": train_data,
    "evaluator": DummyEvaluator()
}
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 AbstractTrainer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a AbstractTrainer 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
AioliTrainer Ran
ran on a synthesized input · constructed an object; no result was computed
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("3cae68a5efb29625")
How it ran

Ran 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 an instance of its own class, AioliTrainer: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn
import numpy as np
from torch.utils.data import DataLoader
from transformers import AutoTokenizer

torch.manual_seed(0)

# Minimal stand-in classes and objects

class MinimalTokenizer:
    def __init__(self):
        self.pad_token_id = 0
        self.vocab_size = 100
    
    def encode(self, text):
        return [1, 2, 3]
    
    def decode(self, ids):
        return "decoded text"

class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding = nn.Embedding(100, 8)
        self.linear = nn.Linear(8, 100)
    
    def forward(self, input_ids, attention_mask=None, labels=None):
        x = self.embedding(input_ids)
        logits = self.linear(x)
        output = type('Output', (), {'logits': logits})()
        return output

class MinimalLogger:
    def info(self, msg):
        pass
    
    def debug(self, msg):
        pass
    
    def warning(self, msg):
        pass

class MinimalEvaluator:
    def __init__(self):
        self.result_path = '/tmp/results/exp1'

class MinimalArgs:
    def __init__(self):
        self.learning_rate = 1e-4
        self.num_epochs = 2
        self.batch_size = 2
        self.max_steps = 100
        self.warmup_steps = 10
        self.lr_scheduler_type = 'linear'
        self.end_lr = 1e-5
        self.seed = 42
        self.output_dir = '/tmp/output'
        self.gradient_accumulation_steps = 1
        self.max_grad_norm = 1.0
        self.logging_steps = 10

# Create minimal data
train_data = [
    {'input_ids': torch.tensor([1, 2, 3, 4]), 'attention_mask': torch.tensor([1, 1, 1, 1]), 'labels': torch.tensor([1, 2, 3, 4])},
    {'input_ids': torch.tensor([2, 3, 4, 5]), 'attention_mask': torch.tensor([1, 1, 1, 1]), 'labels': torch.tensor([2, 3, 4, 5])},
]

validation_data = [
    {'input_ids': torch.tensor([1, 2, 3, 4]), 'attention_mask': torch.tensor([1, 1, 1, 1]), 'labels': torch.tensor([1, 2, 3, 4])},
]

test_data = [
    {'input_ids': torch.tensor([2, 3, 4, 5]), 'attention_mask': torch.tensor([1, 1, 1, 1]), 'labels': torch.tensor([2, 3, 4, 5])},
]

ARGS = {
    'args': MinimalArgs(),
    'logger': MinimalLogger(),
    'tokenizer': MinimalTokenizer(),
    'model': MinimalModel(),
    'validation_data': validation_data,
    'test_data': test_data,
    'train_data': train_data,
    'evaluator': MinimalEvaluator(),
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, tqdm, transformers, wandb — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type AioliTrainer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a AioliTrainer 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
LinearWarmupCosineLR Ran
ran on a synthesized input · constructed an object; no result was computed
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("58161c1847700499")
How it ran

Ran 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 an instance of its own class, LinearWarmupCosineLR: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn
from torch.optim import SGD

torch.manual_seed(0)

# Create a minimal model
model = nn.Linear(4, 3)

# Create optimizer
optimizer = SGD(model.parameters(), lr=0.1)

# Define scheduler arguments
ARGS = {
    'optimizer': optimizer,
    'num_warmup_steps': 100,
    'num_training_steps': 1000,
    'lr_start': 1e-07,
    'lr_end': 0,
    'last_epoch': -1,
    'verbose': False
}
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 LinearWarmupCosineLR — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LinearWarmupCosineLR 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
StringDataCollator Ran
ran on a synthesized input
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("a6ada8ea3d1c8d08")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned BatchEncoding. 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 numpy as np
from transformers import PreTrainedTokenizerFast
from tokenizers import Tokenizer, models, pre_tokenizers, trainers

# Create a minimal tokenizer
tokenizer_obj = Tokenizer(models.BPE())
tokenizer_obj.pre_tokenizer = pre_tokenizers.Whitespace()
trainer = trainers.BpeTrainer(vocab_size=100, special_tokens=["[PAD]", "[UNK]", "[CLS]", "[SEP]", "[MASK]"])
tokenizer_obj.train_from_iterator(["hello world", "test sample", "another example"], trainer=trainer)

tokenizer = PreTrainedTokenizerFast(
    tokenizer_object=tokenizer_obj,
    pad_token="[PAD]",
    unk_token="[UNK]",
    cls_token="[CLS]",
    sep_token="[SEP]",
    mask_token="[MASK]"
)

INIT_ARGS = {
    "tokenizer": tokenizer,
    "string_columns": ["text", "metadata"],
    "mlm": True
}

# Create example data with both tensor and string columns
examples = [
    {
        "input_ids": torch.tensor([1, 2, 3, 4, 5]),
        "attention_mask": torch.tensor([1, 1, 1, 1, 1]),
        "text": "first example",
        "metadata": "meta1"
    },
    {
        "input_ids": torch.tensor([6, 7, 8, 9]),
        "attention_mask": torch.tensor([1, 1, 1, 1]),
        "text": "second example",
        "metadata": "meta2"
    }
]

ARGS = {
    "examples": examples
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, tokenizers, torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BatchEncoding — a BatchEncoding output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a BatchEncoding output the recorded ndim 1 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
aggregate_task_category Ran
ran, honoured the contract we drafted
HazyResearch/aioli/evaluator/utils.py
code served (permissive licence) · get_code("838c84352eff715d")
How it ran

Ran 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 Series. 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 pandas as pd
import numpy as np

# Create a sample DataFrame with the structure expected by aggregate_task_category
# The function expects x['loss'].values[0] to be an array-like object
loss_array = np.array([0.5, 0.3, 0.4, 0.2])

# Create a DataFrame with a 'loss' column containing the array
df = pd.DataFrame({
    'loss': [loss_array]
})

ARGS = {
    'x': df
}
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 Series — a Series output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Series output the recorded ndim 1 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
calculate_r_squared Ran
ran; our contract draft was wrong, not the code
HazyResearch/aioli/analysis/law.py
code served (permissive licence) · get_code("cc3ad484cd8dd56c")
How it ran

Ran 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 float32, 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 numpy as np

torch.manual_seed(0)

# The function expects two parameters that have a .numpy() method
# (so they should be torch tensors) and represent actuals and predictions
actuals = torch.randn(2, 4)
predictions = torch.randn(2, 4)

ARGS = {
    "actuals": actuals,
    "predictions": predictions,
}
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 float32, 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
cover_simplex Ran
ran; our contract draft was wrong, not the code
HazyResearch/aioli/dirichlet_cover.py
code served (permissive licence) · get_code("9e72f9c47ff11092")
How it ran

Ran 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 float, shape (5, 3) 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
from scipy.spatial.distance import pdist, squareform

np.random.seed(0)

# Analyze the function parameters:
# - k: not used in the function body, but it's a parameter
# - N: used in `n_samples = N * (1 << oversample_factor)` and `while len(samples) > N`
# - alphas: passed to np.random.dirichlet(alphas, n_samples)
# - oversample_factor: used in bit shift operation `(1 << oversample_factor)`

# For alphas: needs to be a sequence of concentration parameters for Dirichlet
# The length of alphas determines the dimensionality of the simplex samples
# For a small test, use a 3-dimensional simplex (3 elements in alphas)

k = 2
N = 5
alphas = np.array([1.0, 1.0, 1.0])  # 3D simplex
oversample_factor = 1

ARGS = {
    "k": k,
    "N": N,
    "alphas": alphas,
    "oversample_factor": oversample_factor,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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 float, shape (5, 3) — shape (5, 3) 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
create_optimizer_scheduler Ran
ran; our contract draft was wrong, not the code
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("ac3ed26036cd8353")
How it ran

Ran 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 torch
import torch.nn as nn
from torch.optim import AdamW

torch.manual_seed(0)

# Create a minimal model with named parameters
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.norm = nn.LayerNorm(3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.norm(x)
        x = self.linear2(x)
        return x

model = MinimalModel()

ARGS = {
    'model': model,
    'lr': 1e-3,
    'max_steps': 1000,
    'lr_scheduler_type': 'linear_warmup_cosine',
    'end_lr': 1e-5,
    'warmup_steps': 100,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — 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
get_flat_grad Ran
ran, honoured the contract we drafted
HazyResearch/aioli/trainer/doge_trainer.py
code served (permissive licence) · get_code("d0f3b712c535ab79")
How it ran

Ran 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 Tensor, ndim 1, dtype family float, shape (15,) 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.nn as nn

torch.manual_seed(0)

# Create a simple model with a few parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

# Instantiate the model
model = SimpleModel()

# Create dummy input and target
x = torch.randn(2, 4)
y = torch.randn(2, 2)

# Forward pass and backward to compute gradients
output = model(x)
loss = nn.MSELoss()(output, y)
loss.backward()

# Define target parameters list (subset of all parameters)
tgt_params_ls = ['linear1.weight', 'linear1.bias']

# Define ARGS dictionary
ARGS = {
    'model': model,
    'tgt_params_ls': tgt_params_ls
}
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 Tensor, ndim 1, dtype family float, shape (15,) — shape (15,) 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
get_grad_dict Ran
ran; our contract draft was wrong, not the code
HazyResearch/aioli/trainer/doge_trainer.py
code served (permissive licence) · get_code("e4fac505ef94582c")
How it ran

Ran 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal model that has named_parameters with gradients
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

# Create model instance
model = SimpleModel()

# Create a dummy input and compute gradients
x = torch.randn(2, 4)
y = torch.randn(2, 2)
loss_fn = nn.MSELoss()

# Forward pass
output = model(x)
loss = loss_fn(output, y)

# Backward pass to populate gradients
loss.backward()

# Now model.named_parameters() will have .grad attributes
ARGS = {
    "model": model
}
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 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
get_logger Ran
ran; our contract draft was wrong, not the code
HazyResearch/aioli/utils.py
code served (permissive licence) · get_code("0cb39a42612d17ad")
How it ran

Ran 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 Logger. 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 logging

# Create a temporary directory for the logger output
temp_dir = tempfile.mkdtemp()

# Define arguments for get_logger
ARGS = {
    'dir_path': temp_dir
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
get_model_type Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HazyResearch/aioli/utils.py
code served (permissive licence) · get_code("f262463f78c9ed6e")
How it ran

Ran 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 type. 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 torch.nn as nn
from transformers import GPTNeoXConfig, GPTNeoXModel

torch.manual_seed(0)

# Create a minimal GPTNeoXForCausalLMLossPerPoint-compatible model
class MinimalGPTNeoX(nn.Module):
    def __init__(self, vocab_size=256, hidden_size=4, num_layers=2, num_heads=2):
        super().__init__()
        self.config = type('Config', (), {
            'vocab_size': vocab_size,
            'hidden_size': hidden_size,
            'num_layers': num_layers,
            'num_attention_heads': num_heads,
            'use_return_dict': True,
        })()
        self.gpt_neox = nn.Module()
        self.gpt_neox.forward = lambda *args, **kwargs: type('Output', (), {
            'hidden_states': torch.randn(2, 5, hidden_size),
            'past_key_values': None,
            'hidden_states': torch.randn(2, 5, hidden_size),
            'attentions': None,
        })()
        self.embed_out = nn.Linear(hidden_size, vocab_size)

ARGS = {
    'model_name': 'pythia-70m',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
get_scheduler_extended Ran
ran; our contract draft was wrong, not the code
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("7ecff0f37380fa48")
How it ran

Ran 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 LinearWarmupCosineLR. 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 torch.nn as nn
from torch.optim import Adam

torch.manual_seed(0)

# Create a minimal model with parameters
class TinyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Instantiate model and optimizer
model = TinyModel()
optimizer = Adam(model.parameters(), lr=0.001)

# Define arguments for get_scheduler_extended
ARGS = {
    "name": "linear_warmup_cosine",
    "optimizer": optimizer,
    "num_warmup_steps": 100,
    "num_training_steps": 1000,
    "lr_end": 0.0001
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LinearWarmupCosineLR — a LinearWarmupCosineLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LinearWarmupCosineLR 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
get_steps Ran
ran, honoured the contract we drafted
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("2cc66e9c3b61d3ad")
How it ran

Ran 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 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

class Args:
    def __init__(self):
        self.n_epochs = 10
        self.max_steps = 1000
        self.num_ckpts = 5
        self.update_steps = 2000

args = Args()

ARGS = {
    'args': args,
    'n_epochs': None
}
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 tuple, ndim 1, dtype family int — 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
get_tokenized_train_dataset Ran
ran; our contract draft was wrong, not the code
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("ceda5669cbbae013")
How it ran

Ran 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 torch
import numpy as np

torch.manual_seed(0)

class MockTrainDataset:
    def __init__(self, task_name):
        self.task_name = task_name
    
    def get_tokenized_dataset(self, n_data, mapped_train=False, include_metadata=False):
        # Return a mock tokenized dataset
        if self.task_name == 'slimpj':
            return {"input_ids": torch.randint(0, 100, (n_data, 4)), "attention_mask": torch.ones(n_data, 4)}
        elif self.task_name == 'instruction':
            return {"input_ids": torch.randint(0, 100, (n_data, 4)), "attention_mask": torch.ones(n_data, 4), "metadata": [{"id": i} for i in range(n_data)] if include_metadata else None}
        return {}

class MockArgs:
    def __init__(self, task_name):
        self.task_name = task_name

# Test case 1: slimpj task
args_slimpj = MockArgs(task_name='slimpj')
train_dataset_slimpj = MockTrainDataset(task_name='slimpj')
n_data_slimpj = 2

# Test case 2: instruction task
args_instruction = MockArgs(task_name='instruction')
train_dataset_instruction = MockTrainDataset(task_name='instruction')
n_data_instruction = 2

ARGS = {
    "args": args_slimpj,
    "train_dataset": train_dataset_slimpj,
    "n_data": n_data_slimpj,
    "include_metadata": False,
    "mapped_train": False
}
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 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
get_tokenized_val_dataset Ran
ran; our contract draft was wrong, not the code
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("34a317ad4275d585")
How it ran

Ran 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 torch
import torch.nn as nn

torch.manual_seed(0)

class MockValidationDataset:
    def get_tokenized_dataset(self):
        return {
            'input_ids': torch.tensor([[1, 2, 3], [4, 5, 6]], dtype=torch.long),
            'attention_mask': torch.tensor([[1, 1, 1], [1, 1, 0]], dtype=torch.long),
            'labels': torch.tensor([[7, 8, 9], [10, 11, 12]], dtype=torch.long)
        }

class MockArgs:
    def __init__(self, task_name):
        self.task_name = task_name

validation_dataset = MockValidationDataset()

ARGS = {
    'args': MockArgs(task_name='slimpj'),
    'validation_dataset': validation_dataset
}
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 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
get_train_dataloader Ran
ran on a synthesized input
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("2832a5cae93655cc")
How it ran

Ran 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 DataLoader. 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 torch.nn as nn
from torch.utils.data import DataLoader, Dataset
from transformers import DataCollatorForLanguageModeling

torch.manual_seed(0)

# Minimal tokenizer stand-in
class MinimalTokenizer:
    def __init__(self):
        self.pad_token_id = 0
        self.vocab_size = 100

# Minimal dataset
class MinimalDataset(Dataset):
    def __init__(self, size=4):
        self.size = size
    
    def __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        return {
            'input_ids': torch.tensor([1, 2, 3, 4], dtype=torch.long),
            'attention_mask': torch.tensor([1, 1, 1, 1], dtype=torch.long),
            'skill': f'skill_{idx}'
        }

# Create tokenizer
tokenizer = MinimalTokenizer()

# Create tokenized dataset
tokenized_dataset = MinimalDataset(size=8)

# Set batch size
batch_size = 2

ARGS = {
    'tokenizer': tokenizer,
    'tokenized_dataset': tokenized_dataset,
    'batch_size': batch_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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
interleave_datasets Ran
ran; our contract draft was wrong, not the code
HazyResearch/aioli/dataset/slimpj_dataset.py
code served (permissive licence) · get_code("fb3cbc008efc4356")
How it ran

Ran 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 IterableDataset. 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 numpy as np
from datasets import Dataset, IterableDataset

torch.manual_seed(0)
np.random.seed(0)

# Create small test datasets
data1 = {"text": ["hello", "world"], "id": [1, 2]}
data2 = {"text": ["foo", "bar"], "id": [3, 4]}
data3 = {"text": ["baz", "qux"], "id": [5, 6]}

dataset1 = Dataset.from_dict(data1)
dataset2 = Dataset.from_dict(data2)
dataset3 = Dataset.from_dict(data3)

datasets = [dataset1, dataset2, dataset3]

is_eval = False
batch_size = 2
probabilities = np.array([0.5, 0.3, 0.2], dtype=np.float32)
probabilities_handle = torch.tensor([0.5, 0.3, 0.2], dtype=torch.float32)
seed = 42
stopping_strategy = 'all_exhausted'

ARGS = {
    "datasets": datasets,
    "is_eval": is_eval,
    "batch_size": batch_size,
    "probabilities": probabilities,
    "probabilities_handle": probabilities_handle,
    "seed": seed,
    "stopping_strategy": stopping_strategy,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type IterableDataset — a IterableDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a IterableDataset 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
interleave_per_batch_mapped Ran
ran; our contract draft was wrong, not the code
HazyResearch/aioli/dataset/slimpj_dataset.py
code served (permissive licence) · get_code("1f02cd5ca2dc84d5")
How it ran

Ran 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 Dataset. 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 numpy as np
from datasets import Dataset
from unittest.mock import MagicMock

# Create small sample datasets
dataset1_data = [
    {"text": "sample1_1", "label": 0},
    {"text": "sample1_2", "label": 1},
    {"text": "sample1_3", "label": 0},
    {"text": "sample1_4", "label": 1},
]

dataset2_data = [
    {"text": "sample2_1", "label": 1},
    {"text": "sample2_2", "label": 0},
    {"text": "sample2_3", "label": 1},
    {"text": "sample2_4", "label": 0},
]

dataset3_data = [
    {"text": "sample3_1", "label": 0},
    {"text": "sample3_2", "label": 1},
    {"text": "sample3_3", "label": 0},
]

datasets = [
    Dataset.from_list(dataset1_data),
    Dataset.from_list(dataset2_data),
    Dataset.from_list(dataset3_data),
]

proportions = [0.5, 0.3, 0.2]

batch_size = 10

rng = np.random.RandomState(seed=42)

ARGS = {
    "datasets": datasets,
    "proportions": proportions,
    "batch_size": batch_size,
    "rng": rng,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset output the recorded ndim 1 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
load_weight_diff_from_folder Ran
ran, honoured the contract we drafted
HazyResearch/aioli/mixing_law_fitting.py
code served (permissive licence) · get_code("9b58281c06357914")
How it ran

Ran 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 1, dtype family float, shape (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 torch
import numpy as np
import pickle
import tempfile
import os
from pathlib import Path

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()
folder_path = temp_dir + os.sep

# Create mock pickle files with the expected structure
# The function expects files containing a dict with 'task_loss' key that has a .to_numpy() method
# This suggests task_loss is a pandas Series

import pandas as pd

# Create test data for start checkpoint
start_data = {'task_loss': pd.Series([0.5, 0.6, 0.7, 0.8])}
start_checkpoint_path = os.path.join(temp_dir, 'val_seed_42_checkpoint-100.pkl')
with open(start_checkpoint_path, 'wb') as f:
    pickle.dump(start_data, f)

# Create test data for end checkpoint
end_data = {'task_loss': pd.Series([1.0, 1.2, 1.4, 1.6])}
end_checkpoint_path = os.path.join(temp_dir, 'val_seed_42_checkpoint-200.pkl')
with open(end_checkpoint_path, 'wb') as f:
    pickle.dump(end_data, f)

ARGS = {
    'folder_path': folder_path,
    'seed': 42,
    'start_t': 100,
    'end_t': 200
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (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
make_output_dir Ran
ran; our contract draft was wrong, not the code
HazyResearch/aioli/utils.py
code served (permissive licence) · get_code("6b3f2ccf676d8314")
How it ran

Ran 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 str. 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

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

ARGS = {
    "output_dir": temp_dir,
    "run_id": "experiment_001"
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
parse_resumed_model_cpkt Ran
ran; our contract draft was wrong, not the code
HazyResearch/aioli/evaluator/utils.py
code served (permissive licence) · get_code("f919e9b193bdb7f9")
How it ran

Ran 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 torch
import torch.nn as nn

class Args:
    def __init__(self, resume_model_path):
        self.resume_model_path = resume_model_path

# Test various path formats that the function parses
# The function extracts weight_str and break_steps from the path

# Example path: "checkpoint_weightschedule_doremi_static_break_1000_model.pt"
path = "checkpoint_weightschedule_doremi_static_break_1000_model.pt"

ARGS = {
    "args": Args(resume_model_path=path)
}
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 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
save_loss Ran
ran; our contract draft was wrong, not the code
HazyResearch/aioli/evaluator/utils.py
code served (permissive licence) · get_code("2dec393904abb40d")
How it ran

Ran 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 str. 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 pickle
import pandas as pd
import tempfile

# Create a temporary directory for saving files
temp_dir = tempfile.mkdtemp()

# Create sample loss data as a dictionary
loss_dict = {
    'train_loss': [0.5, 0.4, 0.3],
    'val_loss': [0.6, 0.5, 0.4]
}

# Define ARGS with all required parameters
ARGS = {
    'loss_dict': loss_dict,
    'result_path': temp_dir,
    'seed': 42,
    'counter': 100,
    'split': 'train'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
ExtendedSchedulerType Not yet run
unverified (harvested, no recorded run)
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("d251e579d9c1e9b5")
How it ran

no invocation recorded.

collate Not yet run
unverified (harvested, no recorded run)
HazyResearch/aioli/mixing_law_fitting.py
code served (permissive licence) · get_code("92cb091d2427e662")
How it ran

no invocation recorded.

fit_multi_obj_scaling_laws Not yet run
unverified (harvested, no recorded run)
HazyResearch/aioli/analysis/law.py
code served (permissive licence) · get_code("4ac03e5149b1ef69")
How it ran

no invocation recorded.

fit_scaling_laws Not yet run
unverified (harvested, no recorded run)
HazyResearch/aioli/analysis/law.py
code served (permissive licence) · get_code("ae58a6abc7dd4a7e")
How it ran

no invocation recorded.

get_slimpajama_6b Not yet run
unverified (harvested, no recorded run)
HazyResearch/aioli/dataset/slimpj_dataset.py
code served (permissive licence) · get_code("f9c6848b0a94945a")
How it ran

no invocation recorded.

load_weights_from_folder Not yet run
unverified (harvested, no recorded run)
HazyResearch/aioli/mixing_law_fitting.py
code served (permissive licence) · get_code("7a0383d468979671")
How it ran

no invocation recorded.

save_aioli_matrices Not yet run
unverified (harvested, no recorded run)
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("ed16693f655ad564")
How it ran

no invocation recorded.

save_model_and_optimizer Not yet run
unverified (harvested, no recorded run)
hazyresearch/aioli/trainer/aioli_trainer.py
code served (permissive licence) · get_code("30c6dd51f43019b0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 31 samples lifted from this paper's linked repositories, 31 carry a function identity and 0 do not. Of the 31 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 29 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
calculate_r_squared 1 other paper
1 dated earlier
2403.16952 (2024-03)
Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performance
fit_scaling_laws 1 other paper
1 dated earlier
2403.16952 (2024-03)
Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performance

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Language model performance depends on identifying the optimal mixture of data groups to train on (e.g., law, code, math). Prior work has proposed a diverse set of methods to efficiently learn mixture proportions, ranging from fitting regression models over training runs to dynamically updating proportions throughout training. Surprisingly, we find that no existing method consistently outperforms a simple stratified sampling baseline in terms of average test perplexity. To understand this inconsistency, we unify existing methods into a standard framework, showing they are equivalent to solving a common optimization problem: minimize average loss subject to a method-specific mixing law-an implicit assumption on the relationship between loss and mixture proportions. This framework suggests that measuring the fidelity of a method's mixing law can offer insights into its performance. Empirically, we find that existing methods set their mixing law parameters inaccurately, resulting in the inconsistent mixing performance we observe. Using this insight, we derive a new online method named AIOLI, which directly estimates the mixing law parameters throughout training and uses them to dynamically adjust proportions. AIOLI outperforms stratified sampling on 6 out of 6 datasets by an average of 0.27 test perplexity points, whereas existing methods fail to consistently beat stratified sampling, doing up to 6.9 points worse. Moreover, in a practical setting where proportions are learned on shorter runs due to computational constraints, AIOLI can dynamically adjust these proportions over the full training run, consistently improving performance over existing methods by up to 12.012 test perplexity points.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2411.05735")
get_code_for_paper("2411.05735")
have("2411.05735")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2411.05735.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2411.05735.svg)](https://syntology.ai/paper/2411.05735)

Connect an agent — have() is free.