MCPcopy
hub / github.com/oobabooga/textgen / decode

Method decode

modules/exllamav3.py:544–548  ·  view source on GitHub ↗
(self, ids, **kwargs)

Source from the content-addressed store, hash-verified

542 return self.tokenizer.encode(string, add_bos=add_bos, **kwargs)
543
544 def decode(self, ids, **kwargs):
545 if isinstance(ids, torch.Tensor) and ids.dim() == 0:
546 ids = ids.view(1)
547
548 return self.tokenizer.decode(ids, **kwargs)
549
550 @property
551 def last_prompt_token_count(self):

Callers 15

get_current_commitFunction · 0.45
update_requirementsFunction · 0.45
get_singleFunction · 0.45
load_metadataFunction · 0.45
add_message_attachmentFunction · 0.45
load_history_jsonFunction · 0.45
upload_characterFunction · 0.45
convert_pil_to_base64Function · 0.45
_get_next_logitsFunction · 0.45
log_train_datasetFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected