ValueError: The checkpoint you are trying to load has model type `modernbert`

#37
by Sengil - opened

ValueError: The checkpoint you are trying to load has model type modernbert 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.

Answer.AI org

Until the next transformers release, you must install it directly from GitHub like so to use ModernBert:

pip install git+https://github.com/huggingface/transformers.git
  • Tom Aarsen

Sign up or log in to comment