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

Method decode

lm_inference.py:87–88  ·  view source on GitHub ↗
(self, ids: list[int])

Source from the content-addressed store, hash-verified

85 self.mask = jax.numpy.ones([1024], dtype=np.bfloat16)
86
87 def decode(self, ids: list[int]) -> str:
88 return self.vocab.decode(ids)
89
90 def decode_list(self, tokens: list[int]) -> list[str]:
91 return [self.decode([tok]) for tok in tokens]

Callers 3

decode_listMethod · 0.95
encode_listMethod · 0.95
beam_decodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected