-
Notifications
You must be signed in to change notification settings - Fork 182
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_to_hf.py does not work after finetune.py and convert_legacy_model_format.py #130
Comments
Hi! I don't think you need to use |
Hi, @BlackSamorez! Yes, sure, I tried running I guess I should add more information about the issue here. Short answer. You need to look at the beginning of the
Without it, you can't run Below is the detailed answer. The The i.e. a completely different data format. If you use To solve the problem of data inconsistency, the file and converts them to files
If you run I wrote a crutch solution above ( |
This issue is stale because it has been open for 30 days with no activity. |
@ArtemBiliksin Thanks! very helpful. |
This issue is stale because it has been open for 30 days with no activity. |
Hello!
convert_to_hf.py
fails after runningfinetune.py
andconvert_legacy_model_format.py
in sequence.Next we will talk about the
main (a441a3f) branch
.The
main.py
file stores the result as 0.pth, ..., 32.pth, args.pt, not_quantized_weights.pt.Then run
finetune.py
,convert_legacy_model_format.py
,convert_to_hf.py
in sequence. Executingconvert_legacy_model_format.py
results in files 0.pth, ..., 32.pth, not_quantized_weights.pt without theargs.pt
file, which requires theconvert_to_hf.py
file. Consequently, runningconvert_to_hf.py
will terminate with an error.Prior to the last MR (
a441a3f
), the main branch state was at commit559a366
, which had a special copy of the args.pt file infinetune.py
so that runningconvert_to_hf.py
would work correctly.The problem can be circumvented by copying the args.pt file to the correct directory, as shown in the example below:
However, this solution requires the user to understand how the python files of the AQLM repository are organized and what data they create.
The requirement for the user to create the
HF_FINETUNED_QUANTIZED_MODEL_PATH
(out_path
inAQLM/convert_to_hf.py
) directory also looks strange. If it is not created in advance,convert_to_hf.py
will generate an error.The text was updated successfully, but these errors were encountered: