MCPcopy Create free account
hub / github.com/ml-explore/mlx-examples / __init__

Method __init__

llms/speculative_decoding/decoder.py:9–15  ·  view source on GitHub ↗
(self, model_name: str)

Source from the content-addressed store, hash-verified

7
8class Tokenizer:
9 def __init__(self, model_name: str):
10 self._tokenizer = transformers.AutoTokenizer.from_pretrained(
11 model_name,
12 legacy=False,
13 model_max_length=512,
14 )
15 self._decoder_start_id = 0
16
17 @property
18 def eos_id(self) -> int:

Callers

nothing calls this directly

Calls 1

from_pretrainedMethod · 0.45

Tested by

no test coverage detected