Pretraining Objectives & Scaling Laws · Problem 2 of 4
Given Chinchilla coefficients, return compute-optimal and for a budget (numerical optimization).
Implement the function/class skeleton in the editor. Any correct approach is accepted.
import numpy as np
from scipy.optimize import minimize_scalar
def chinchilla_loss(N, D):
raise NotImplementedError
def optimal_ND(C, A=A, B=B, alpha=ALPHA, beta=BETA):
raise NotImplementedError
def optimal_ND_closed_form(C, A=A, B=B, alpha=ALPHA, beta=BETA):
raise NotImplementedErrorReady when you are
Submit your solution and a structured review appears here — verdict, score, and concrete feedback. Any correct approach passes.
Given Chinchilla coefficients, return compute-optimal and for a budget (numerical optimization).
Implement the function/class skeleton in the editor. Any correct approach is accepted.