Merge pull request #323 from NousResearch/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
dmahan93 2026-01-26 11:02:44 -08:00 committed by GitHub
commit e8fd85429f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 28 additions and 50 deletions

View file

@ -84,10 +84,8 @@ class TaskDataModule(LightningDataModule):
if not data:
raise NotImplementedError("Each task has its own data set")
if not self.batch_size or self.batch_size < 1:
raise NotImplementedError(
"Each task configures its own batch_size. \
Please set it explicitly, to avoid confusion."
)
raise NotImplementedError("Each task configures its own batch_size. \
Please set it explicitly, to avoid confusion.")
def train_dataloader(self):
self.check_dataset(self.data_train)

View file

@ -92,8 +92,7 @@ def send_code(code: str):
def main():
"""Entrypoint for local execution. Accepts code as input."""
# Example usage: pass code as a string argument
return_obj = send_code.remote(
"""
return_obj = send_code.remote("""
import torch
import math
@ -144,8 +143,7 @@ for step in range(20):
print(f"Step {step + 1}: x = {x.item():.4f}, loss = {loss.item():.4f}")
print(f"\\nOptimal x: {x.item():.4f}")
"""
)
""")
print("\n===== Optimizer Execution Result =====")
print(f"Filename: {return_obj['filename']}")

View file

@ -34,8 +34,7 @@ class OptimizerEvaluator:
categories=DiscreteScale(["yes", "no"]),
explanation=False,
)
.prompt(
"""
.prompt("""
You are an expert code validator specializing in PyTorch optimizers.
Your task is to determine if the provided optimizer code is completely valid and error-free.
@ -57,8 +56,7 @@ class OptimizerEvaluator:
- "no" if ANY criterion fails or there are ANY potential issues
Be extremely strict in your evaluation.
"""
)
""")
.via("xai/grok-3-latest", retries=2)
)