Repository navigation
Samsung Exynos AI LiteCore- Samsung gemma3 llama quant - #24660
Conversation
1.Update modeling to support gemma3/llama inference 2.Support quantization for gemma3 Co-authored-by: Yue Li <y123.li@samsung.com> Signed-off-by: Jiseong.oh<jiseong.oh@samsung.com>
Fix parameter lookup errors, quantization inconsistencies, and model initialization leaks. Corrected gamma and weight lookup logic in RMSNorm and Cat annotations to prevent silent weight loss. Fixed observer reset bugs and inconsistent constant quantization for scalar parameters. Improved Gemma3/Llama modeling by fixing device_map leaks and updating attention type access. Resolved SpinQuant error handling, device comparison logic, and calibration validation issues. Signed-off-by: Jiseong Oh <jiseong.oh@samsung.com>
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24660
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
@Jiseong-oh LGTM! one valid comment turned up from AI review. Feel free to address it, and merge at your convenience. |
Summary
Fix parameter lookup errors, quantization inconsistencies, and model initialization leaks. Corrected gamma and weight lookup
logic in RMSNorm and Cat annotations to prevent silent weight loss. Fixed observer reset bugs and inconsistent constant quantization for scalar parameters. Improved Gemma3/Llama modeling by fixing device_map leaks and updating attention type access. Resolved SpinQuant error handling, device comparison logic, and calibration validation issues.
Test plan
Gemma3 Quant
python examples/samsung/scripts/llm/llm.py -m gemma3_1 --device cuda -c E9965 -p
Llama3 Quant
python examples/samsung/scripts/llm/llm.py -m llama3.2_1 -p -c E9965 --sample_number 1 --optimized_rotation_path /path/to/rotation --device cuda
cc @SS-JIA @digantdesai @kimishpatel