Skip to content

model.safetensors doesn't exist in preset directory #2125

@omkar-334

Description

@omkar-334

I was writing a converter for the DeBERTA-v3 models and while testing I noticed that these models are only provided in the pytorch_model.bin format, and not in model.safetensors format.

DeBERTA HF link - https://huggingface.co/microsoft/deberta-v3-small/tree/main

A possible workaround would be to convert the pytorch_model.bin to model.safetensors format in keras_hub\src\utils\transformers\safetensor_utils.py and then load the safetensors normally.
Any suggestions?

Image

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions