mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
Removing the dead code.
This commit is contained in:
parent
9cc58d1cb3
commit
fbf38c997c
@ -644,12 +644,6 @@ class CausalLM(Model):
|
||||
def batch_type(self) -> Type[CausalLMBatch]:
|
||||
return self.batch
|
||||
|
||||
# This is not used anymore
|
||||
# def decode(self, generated_ids: List[int]) -> str:
|
||||
# return self.tokenizer.decode(
|
||||
# generated_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False
|
||||
# )
|
||||
|
||||
def forward(
|
||||
self, input_ids, attention_mask, position_ids, past_key_values: Optional = None
|
||||
) -> Tuple[
|
||||
|
@ -677,12 +677,6 @@ class Seq2SeqLM(Model):
|
||||
def batch_type(self) -> Type[Seq2SeqLMBatch]:
|
||||
return Seq2SeqLMBatch
|
||||
|
||||
# Not used anymore
|
||||
# def decode(self, decoder_ids: List[int]) -> str:
|
||||
# return self.tokenizer.decode(
|
||||
# decoder_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False
|
||||
# )
|
||||
|
||||
def forward(
|
||||
self,
|
||||
input_ids,
|
||||
|
Loading…
Reference in New Issue
Block a user