Skip to content
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

LoRA node has new "quant" substring in onnx graph after quantization #1583

Open
miaoqiz opened this issue Jan 28, 2025 · 1 comment
Open

Comments

@miaoqiz
Copy link

miaoqiz commented Jan 28, 2025

It seems that with quantization in the "auto-opt" command, it adds "quant" in LoRA related nodes in the graph

The command line is as follows:


olive auto-opt --model_name_or_path microsoft/Phi-3.5-mini-instruct --trust_remote_code --adapter_path path_adapter --output_path path_output --device cpu --provider CPUExecutionProvider --precision int4 --use_ort_genai --log_level 1"


Is there a way to reverse it to the original LoRA node name with no "quant" string?

Thanks very much!

@jambayk
Copy link
Contributor

jambayk commented Jan 30, 2025

The .quant part was added since each adapter weight has 2/3 parameters (quantized weight, scale, and zero point) and I wanted to distinguish them from non quantized weights.

quantized_suffices = [".quant.weight", ".quant.scale", ".quant.zero_point"]

Do you have a use case where it cares about what the adapter weight names are?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants