galai icon indicating copy to clipboard operation
galai copied to clipboard

Keyerror when load galactica-30b

Open BruceStayHungry opened this issue 3 years ago • 1 comments

Great work! When I load galactica-30b, it shows KeyError: 'decoder.layers.34.final_layer_norm.bias'

I have downloaded the model into my disk. The key error occurred when running the following code:

model_path = "local-model-path"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = OPTForCausalLM.from_pretrained(model_path, device_map="auto",  torch_dtype=torch.float16)

Thanks for any help!

BruceStayHungry avatar Nov 30 '22 01:11 BruceStayHungry

Hi @BruceStayHungry, we fixed the 30B checkpoint. Can you check if it works now?

mkardas avatar Dec 09 '22 11:12 mkardas