Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: please make sure vector_quantize_pytorch and vocos are installed. #787

Open
stromyu520 opened this issue Jan 22, 2025 · 1 comment
Assignees

Comments

@stromyu520
Copy link

(minicpmo) PS E:\dev\pythonProject\MiniCPM-o> python web_demos/minicpm-o_2.6/model_server.py
A new version of the following files was downloaded from https://huggingface.co/openbmb/MiniCPM-o-2_6:

  • modeling_navit_siglip.py
    . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
    A new version of the following files was downloaded from https://huggingface.co/openbmb/MiniCPM-o-2_6:
  • image_processing_minicpmv.py
    . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
    A new version of the following files was downloaded from https://huggingface.co/openbmb/MiniCPM-o-2_6:
  • processing_minicpmo.py
  • utils.py
  • resampler.py
    . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
    Traceback (most recent call last):
    File "E:\dev\pythonProject\MiniCPM-o\web_demos\minicpm-o_2.6\model_server.py", line 601, in
    stream_manager = StreamManager()
    File "E:\dev\pythonProject\MiniCPM-o\web_demos\minicpm-o_2.6\model_server.py", line 96, in init
    self.minicpmo_model = AutoModel.from_pretrained(self.minicpmo_model_path, trust_remote_code=True, torch_dtype=self.target_dtype, attn_implementation='sdpa')
    File "D:\anaconda3\envs\minicpmo\lib\site-packages\transformers\models\auto\auto_factory.py", line 559, in from_pretrained
    return model_class.from_pretrained(
    File "D:\anaconda3\envs\minicpmo\lib\site-packages\transformers\modeling_utils.py", line 3832, in from_pretrained
    model = cls(config, *model_args, **model_kwargs)
    File "D:\data\modules\transformers_modules\openbmb\MiniCPM-o-2_6\1bbb7660afda1ddf2db4eab70fce4bdbcbe1e22c\modeling_minicpmo.py", line 119, in init
    assert _tts_deps, "please make sure vector_quantize_pytorch and vocos are installed."
    AssertionError: please make sure vector_quantize_pytorch and vocos are installed.
@YuzaChongyi
Copy link
Collaborator

Please make sure these dependencies are installed,or you can run pip install vector_quantize_pytorch vocos

@YuzaChongyi YuzaChongyi self-assigned this Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants