While loading the model by downloading on li=ocal device getting error

#3
by mritunjaysingh10 - opened

I have downloaded all the files for the model and now trying to load this using below code passing the folder location where all files are placed getting below mentioned error.

local_model_path = "/Volumes/dpaas@@@@@@@/XXX/genaichatbot/GenAIBotFiles/"
device = "cpu"
tokenizer = AutoTokenizer.from_pretrained(local_model_path)
model = AutoModelForCausalLM.from_pretrained(local_model_path)

OSError: Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory

Sign up or log in to comment