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

Method test_lm_decode

lm_inference_test.py:65–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 )
64
65 def test_lm_decode(self):
66 outputs = LmInferenceTest.loaded_lm.beam_decode(
67 '{S} a : ; b : ; c : ; d : T a b c d 00 T a c b d 01 ? T a d b c'
68 ' {F1} x00',
69 eos_tokens=[';'],
70 )
71 self.assertEqual(
72 outputs['seqs_str'],
73 ['e : D a b c e 02 D a c b e 03 ;', 'e : C a c e 02 C b d e 03 ;'],
74 )
75
76 def test_lm_score_may_fail_numerically_for_external_meliad(self):
77 outputs = LmInferenceTest.loaded_lm.beam_decode(

Callers

nothing calls this directly

Calls 1

beam_decodeMethod · 0.80

Tested by

no test coverage detected