MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / __init__

Method __init__

examples/tensorflow/t5/utils/ft_decoding.py:248–250  ·  view source on GitHub ↗
(self, encoder_params, decoding_params)

Source from the content-addressed store, hash-verified

246
247class FTT5Model():
248 def __init__(self, encoder_params, decoding_params):
249 self.encoder_params = encoder_params
250 self.decoding_params = decoding_params
251
252 def compute(self, input_tokens, beam_width, max_seq_len, top_k=1, top_p = 0.0, beam_search_diversity_rate = 0.0,
253 temperature = 1.0, len_penalty = 0.0, repetition_penalty = 1.0, random_seed=0):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected