Skip to content

Add adapter_quant field to LoraConfig#20503

Open
billmguo wants to merge 1 commit into
pytorch:mainfrom
billmguo:export-D109642451
Open

Add adapter_quant field to LoraConfig#20503
billmguo wants to merge 1 commit into
pytorch:mainfrom
billmguo:export-D109642451

Conversation

@billmguo

Copy link
Copy Markdown
Contributor

Summary:
Split out from D105388759. Adds a per-adapter quantization/precision field adapter_quant to LoraConfig so each LoRA adapter can independently select int8/fp16/fp32, overriding the global --lora_precision flag for that adapter only.

This is a standalone, behavior-preserving dataclass field addition (defaults to None) that the per-adapter quant logic in export_llm_backbone.py builds on. Landed separately so the config schema change can be reviewed and merged independently. Changes are mirrored in both the fbcode and xplat copies of llm_config.py.

This diff was authored with Claude Code.

Differential Revision: D109642451

Summary:
Split out from D105388759. Adds a per-adapter quantization/precision field `adapter_quant` to `LoraConfig` so each LoRA adapter can independently select `int8`/`fp16`/`fp32`, overriding the global `--lora_precision` flag for that adapter only.

This is a standalone, behavior-preserving dataclass field addition (defaults to `None`) that the per-adapter quant logic in `export_llm_backbone.py` builds on. Landed separately so the config schema change can be reviewed and merged independently. Changes are mirrored in both the `fbcode` and `xplat` copies of `llm_config.py`.

This diff was authored with Claude Code.

Differential Revision: D109642451
@pytorch-bot

pytorch-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20503

Note: Links to docs will display an error until the docs builds have been completed.

❗ 2 Active SEVs

There are 2 currently active SEVs. If your PR is affected, please view them below:

❌ 1 New Failure, 2 Unrelated Failures

As of commit 86e9963 with merge base 45a14b9 (image):

NEW FAILURE - The following job has failed:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 Jun 25, 2026
@linux-foundation-easycla

Copy link
Copy Markdown

CLA Not Signed

@meta-codesync

meta-codesync Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

@billmguo has exported this pull request. If you are a Meta employee, you can view the originating Diff in D109642451.

@github-actions

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.

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. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant