Skip to content

Samsung Exynos AI LiteCore- Samsung gemma3 llama quant - #24660

Merged
Jiseong-oh merged 3 commits into
mainfrom
samsung-gemma3-llama-quant
Nov 9, 2026
Merged

Jiseong-oh merged 3 commits into
mainfrom
samsung-gemma3-llama-quant

Conversation

@Jiseong-oh

@Jiseong-oh Jiseong-oh commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  1. Update modeling to support gemma3/llama inference
  2. Support quantization for gemma3
  3. Refactor codes :
    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

Jiseong-oh and others added 2 commits November 5, 2026 11:01
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>
@pytorch-bot

pytorch-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

🔗 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.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 5, 2026
@Jiseong-oh Jiseong-oh added partner: samsung For backend delegation, kernels, demo, etc. from the 3rd-party partner, Samsung module: samsung labels Nov 5, 2026
@Jiseong-oh
Jiseong-oh requested a review from SS-JIA November 5, 2026 11:15
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@SS-JIA

SS-JIA commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@Jiseong-oh LGTM! one valid comment turned up from AI review. Feel free to address it, and merge at your convenience.

This branch was previously deployed

1 inactive deployment
cadence — f4dee139 Deployed Nov 9, 2026 by Jiseong-oh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: samsung partner: samsung For backend delegation, kernels, demo, etc. from the 3rd-party partner, Samsung

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants