-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error line 200, in from_pretrained assert len(keys) == len(sd) #128
Comments
Python 3.10.11 |
code use_mingpt = True # use minGPT or huggingface/transformers model? ship model to device and set to eval modemodel.to(device) q = 0 |
mingpt-master\mingpt-master\s_mingpt_jan21.py", line 15, in builtins.AssertionError |
I have the same issue. |
MAY @karpathy FIX IT ? |
is it fixed? |
It was fixed in here #120 and also the reason of the error. |
error line 200, in from_pretrained assert len(keys) == len(sd)
len(keys)
581
len(sd)
629
mingpt-master\mingpt-master\mingpt\model.py", line 200, in from_pretrained
assert len(keys) == len(sd)
windows 11 OS
torch version 1.13.1
transformers version 4.36.2
The text was updated successfully, but these errors were encountered: