MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / get_lm

Function get_lm

alphageometry.py:198–203  ·  view source on GitHub ↗
(ckpt_init: str, vocab_path: str)

Source from the content-addressed store, hash-verified

196
197
198def get_lm(ckpt_init: str, vocab_path: str) -> lm.LanguageModelInference:
199 lm.parse_gin_configuration(
200 _GIN_FILE.value, _GIN_PARAM.value, gin_paths=_GIN_SEARCH_PATHS.value
201 )
202
203 return lm.LanguageModelInference(vocab_path, ckpt_init, mode='beam_search')
204
205
206def run_ddar(g: gh.Graph, p: pr.Problem, out_file: str) -> bool:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected