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

ExtractAdapters: Support int4 models and external data config #1083

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

jambayk
Copy link
Contributor

@jambayk jambayk commented Apr 16, 2024

Describe your changes

  • ExtractAdapters pass supports int4 quantized models.
  • Previously output models were always saved with external data. External data config options are exposed to the user.
  • export_adapters script also supports quantizing the weights to int4.

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.
  • Is this PR including examples changes? If yes, please remember to update example documentation in a follow-up PR.

(Optional) Issue link

@jambayk jambayk changed the title ExtractAdapters: Support int4 quantization and external data config ExtractAdapters: Support int4 models and external data config Apr 16, 2024
@jambayk jambayk merged commit 6ebb02a into main Apr 16, 2024
35 checks passed
@jambayk jambayk deleted the jambayk/int4-adapters branch April 16, 2024 06:11
DavitGrigoryan132 pushed a commit to DavitGrigoryan132/Olive that referenced this pull request Aug 14, 2024
…oft#1083)

## Describe your changes
- `ExtractAdapters` pass supports int4 quantized models. 
- Previously output models were always saved with external data.
External data config options are exposed to the user.
- `export_adapters` script also supports quantizing the weights to int4.

## Checklist before requesting a review
- [x] Add unit tests for this change.
- [x] Make sure all tests can pass.
- [ ] Update documents if necessary.
- [x] Lint and apply fixes to your code by running `lintrunner -a`
- [ ] Is this a user-facing change? If yes, give a description of this
change to be included in the release notes.
- [ ] Is this PR including examples changes? If yes, please remember to
update [example
documentation](https://github.com/microsoft/Olive/blob/main/docs/source/examples.md)
in a follow-up PR.

## (Optional) Issue link
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

Successfully merging this pull request may close these issues.

2 participants