lingxusb/megaDNA_variants does not appear to have a file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt or flax_model.msgpack

#1
by christianclough - opened
 lingxusb/megaDNA_variants does not appear to have a file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt or flax_model.msgpack

I'm getting this error when I call

AutoModelForSequenceClassification.from_pretrained("lingxusb/megaDNA_variants")

Am I loading the model correctly?

Hi, the right way to load the model is: model = torch.load(model_path, map_location=torch.device(device))

Please check our GitHub: https://github.com/lingxusb/megaDNA

lingxusb changed discussion status to closed

Sign up or log in to comment