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

Function build_algorithm

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

Source from the content-addressed store, hash-verified

71
72
73def build_algorithm(name, kwargs):
74 if name == "gradient_clipping":
75 return algorithms.GradientClipping(**kwargs)
76 elif name == "alibi":
77 return algorithms.Alibi(**kwargs)
78 elif name == "gated_linear_units":
79 return algorithms.GatedLinearUnits(**kwargs)
80 else:
81 raise ValueError(f"Not sure how to build algorithm: {name}")
82
83
84def build_callback(name, kwargs):

Callers 1

run_job_workerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected