MCPcopy Create free account
hub / github.com/AnswerDotAI/ModernBERT / build_algorithm

Function build_algorithm

eval.py:81–89  ·  view source on GitHub ↗
(name, kwargs)

Source from the content-addressed store, hash-verified

79
80
81def build_algorithm(name, kwargs):
82 if name == "gradient_clipping":
83 return algorithms.GradientClipping(**kwargs)
84 elif name == "alibi":
85 return algorithms.Alibi(**kwargs)
86 elif name == "gated_linear_units":
87 return algorithms.GatedLinearUnits(**kwargs)
88 else:
89 raise ValueError(f"Not sure how to build algorithm: {name}")
90
91
92def build_callback(name, kwargs):

Callers 1

run_job_workerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected