Got this error: TypeError: SafeTensorsInfo.__init__() got an unexpected keyword argument 'sharded'
model = BGEM3FlagModel('BAAI/bge-m3',
use_fp16=True)
File ~/.local/lib/python3.10/site-packages/huggingface_hub/hf_api.py:710, in ModelInfo.init(self, **kwargs)
708 self.spaces = kwargs.pop("spaces", None)
709 safetensors = kwargs.pop("safetensors", None)
--> 710 self.safetensors = SafeTensorsInfo(**safetensors) if safetensors else None
712 # backwards compatibility
713 self.lastModified = self.last_modified
TypeError: SafeTensorsInfo.init() got an unexpected keyword argument 'sharded'
Yes, got same error today.Strange stuff.
Same problem
In last 5 hours they did this commit " Update flag_reranker.py" https://github.com/FlagOpen/FlagEmbedding
But it should not do any impact ....
same problem !
The problem seems strange. Currently, I find that degrading the version of huggingface_hub to 0.20.0 can solve this problem: pip install huggingface_hub==0.20
The problem seems strange. Currently, I find that degrading the version of huggingface_hub to 0.20.0 can solve this problem:
pip install huggingface_hub==0.20
Just tested, it works!
Thx)
Thank you!:))
I found out that the problem lies in the following configuration at https://huggingface.co/api/models/BAAI/bge-m3/revision/main:
"safetensors": {
"parameters": {
"F32": 567754752
},
"total": 567754752,
"sharded": false
},
Nevertheless, it seems resolved now as no safetensors
is present anymore at this URL.
I am using the latest version of huggingface-hub
- 0.22.2
.
This issue is related to SafeTensors
, and I have temporarily removed it. Now, you can use the latest version of HuggingFace Hub.
We will upload SafeTensor again once the issue is resolved.