huggingface / transformers

🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
https://huggingface.co/transformers
Apache License 2.0
132.88k stars 26.5k forks source link

Cohere embed - Sagemaker deploy - Should have a `model_type` key in its config.json #28560

Closed pthd closed 7 months ago

pthd commented 8 months ago

System Info

Who can help?

@philschmid

Information

Tasks

Reproduction

deployed according to

https://huggingface.co/Cohere/Cohere-embed-multilingual-v3.0?sagemaker_deploy=true

W-CohereCohere-embed-mult-1-stdout com.amazonaws.ml.mms.wlm.WorkerLifeCycle - ValueError: Unrecognized model in /.sagemaker/mms/models/CohereCohere-embed-multilingual-v3.0. Should have a model_type key in its config.json, or contain one of the following strings in its name:

Expected behavior

deployment succeeds but invocation raises error

W-Cohere__Cohere-embed-mult-1-stdout com.amazonaws.ml.mms.wlm.WorkerLifeCycle - ValueError: Unrecognized model in /.sagemaker/mms/models/Cohere__Cohere-embed-multilingual-v3.0. Should have a `model_type` key in its config.json, or contain one of the following strings in its name:
amyeroberts commented 8 months ago

Hi @pthd, thanks for raising an issue!

I'd suggest opening a discussion on the model's hub page. As it looks like it might be related to the model itself and the owners of the repo will be able to address that.

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.