MCPcopy Create free account
hub / github.com/apple/axlearn / _get_init_scores

Method _get_init_scores

axlearn/common/decoder.py:356–361  ·  view source on GitHub ↗
(logsoftmax, input_ids)

Source from the content-addressed store, hash-verified

354
355 return sample_decode(
356 inputs=input_ids,
357 time_step=prefill_len,
358 cache=init_states,
359 tokens_to_scores=self._tokens_to_scores(
360 num_decodes=num_decodes,
361 cross_attention_data=cross_attention_data,
362 cross_attention_logit_biases=cross_attention_logit_biases,
363 logits_modifier=logits_modifier,
364 ),

Callers

nothing calls this directly

Calls 1

sequence_maskFunction · 0.90

Tested by

no test coverage detected