Closed iamsuperdupercool closed 6 days ago
You seem to be on aphrodite 0.5.3, while the latest version is 0.6.2
Please upgrade to the latest and launch the model with --tokenizer-mode mistral
Okay 👍
BTW, https://downloads.pygmalion.chat/whl/ is outdated.
Running with --tokenizer-mode mistral
gives me this error:
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.10/dist-packages/aphrodite/endpoints/openai/rpc/server.py", line 209, in run_rpc_server
server = AsyncEngineRPCServer(async_engine_args, rpc_path)
File "/usr/local/lib/python3.10/dist-packages/aphrodite/endpoints/openai/rpc/server.py", line 24, in __init__
self.engine = AsyncAphrodite.from_engine_args(async_engine_args)
File "/usr/local/lib/python3.10/dist-packages/aphrodite/engine/async_aphrodite.py", line 601, in from_engine_args
engine = cls(
File "/usr/local/lib/python3.10/dist-packages/aphrodite/engine/async_aphrodite.py", line 510, in __init__
self.engine = self._init_engine(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/aphrodite/engine/async_aphrodite.py", line 694, in _init_engine
return engine_class(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/aphrodite/engine/aphrodite_engine.py", line 239, in __init__
self.tokenizer = self._init_tokenizer()
File "/usr/local/lib/python3.10/dist-packages/aphrodite/engine/aphrodite_engine.py", line 455, in _init_tokenizer
return init_tokenizer_from_configs(
File "/usr/local/lib/python3.10/dist-packages/aphrodite/transformers_utils/tokenizer_group/__init__.py", line 29, in init_tokenizer_from_configs
return get_tokenizer_group(parallel_config.tokenizer_pool_config,
File "/usr/local/lib/python3.10/dist-packages/aphrodite/transformers_utils/tokenizer_group/__init__.py", line 50, in get_tokenizer_group
return tokenizer_cls.from_config(tokenizer_pool_config, **init_kwargs)
File "/usr/local/lib/python3.10/dist-packages/aphrodite/transformers_utils/tokenizer_group/tokenizer_group.py", line 29, in from_config
return cls(**init_kwargs)
File "/usr/local/lib/python3.10/dist-packages/aphrodite/transformers_utils/tokenizer_group/tokenizer_group.py", line 22, in __init__
self.tokenizer = get_tokenizer(self.tokenizer_id, **tokenizer_config)
File "/usr/local/lib/python3.10/dist-packages/aphrodite/transformers_utils/tokenizer.py", line 112, in get_tokenizer
tokenizer = MistralTokenizer.from_pretrained(str(tokenizer_name),
File "/usr/local/lib/python3.10/dist-packages/aphrodite/transformers_utils/tokenizers/mistral.py", line 77, in from_pretrained
tokenizer_file = cls._download_mistral_tokenizer_from_hf(
File "/usr/local/lib/python3.10/dist-packages/aphrodite/transformers_utils/tokenizers/mistral.py", line 97, in _download_mistral_tokenizer_from_hf
filename = find_tokenizer_file(files)
File "/usr/local/lib/python3.10/dist-packages/aphrodite/transformers_utils/tokenizers/mistral.py", line 36, in find_tokenizer_file
raise OSError(f"Found {len(matched_files)} files matching the "
OSError: Found 0 files matching the pattern: {matched_files}. Make sure that a Mistral tokenizer is present in {tokenizer_name}.
BTW, https://downloads.pygmalion.chat/whl/ is outdated.
That index url was only a fix for pypi wheel limits. It's been deprecated now and none of our guides references it. Please don't use it anymore.
As for the error, your model will need the tokenizer.model.v3
file from the original mistral repo. Finetunes won't typically contain this because axolotl doesn't copy it. You should grab it from the official mistral repo and put it in your model directory. Or you can do --tokenizer mistralai/Mistral-Large-Instruct-2407
if you're using that model.
Ok, thanks.
My current environment
How to reproduce
Traceback