Search code examples
pythonterminalmodelhuggingface-transformershuggingface

Checkpoints ValueError with downloading HuggingFace models


I am having trouble downloading deepseek_vl_v2 into my computer.

Here is the error in my terminal

ValueError: The checkpoint you are trying to load has model type deepseek_vl_v2 but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

You can update Transformers with the command pip install --upgrade transformers. If this does not work, and the checkpoint is very new, then there may not be a release version that supports this model yet. In this case, you can get the most up-to-date code by installing Transformers from source with the command pip install git+https://github.com/huggingface/transformers.git

However, I have downloaded many HuggingFace models before and never seemed to have had this issue, which means I should have all the libraries all correctly downloaded. I have already tried updating the transformers library and installing from the direct source, but neither have resolved the issue.

Please let me know if there any more information I can provide.

Thanks so much in advance!


Solution

  • Following up on this question I asked, I found the solution here

    Basically, DeepSeek is not a model supported by HuggingFace's transformer library, so the only option for downloading this model is through importing the model source code directly as of now.