-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
convert.py fails on the dolly model with KeyError: ('torch', 'ByteStorage') #1048
Comments
I found the problem: dolly uses uint8 datatypes and they are not mapped. I think it is a byte Tensor which maps to uint8 which causes the problems |
I was able to follow how I32 is handled and repeat those same changes for I8 to map to ByteStorage, etc. However the next stumbling block is that it doesn't want to load the tokenizer model. I tried renaming tokenizer.json to tokenizer.model but that just results in a parsing error. Diff of my changes:
|
yeah that is an other issue: the tokens for dolly are in json format and convert handles some other format. |
@devkral Did you end up figuring this out? |
I could definitely use this as well if anyone's figured it out |
yes, see closed PR: |
this is the wrong repository :) |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Prerequisites
I'm trying to use the truly opensource dolly 2.0 model with lama.cpp.
For converting the pytorch bin to ggml I use the convert.py script in the repository.
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
./convert.py either fails with a meaningful error or converts the model to ggml
Current Behavior
The process fails with the cryptic message:
KeyError: ('torch', 'ByteStorage')
Environment and Context
Please provide detailed information about your computer setup. This is important in case the issue is not reproducible except for under certain specific conditions.
$ lscpu
$ uname -a
Steps to Reproduce
Please provide detailed steps for reproducing the issue. We are not sitting in front of your screen, so the more detail the better.
python ./convert.py --dump ./models/dolly-v2-12b_pytorch.bin
Failure Logs
The text was updated successfully, but these errors were encountered: