FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix eigenvalue parsing for compression-only quantize configs by sowndappan5 · Pull Request #8057 · deepspeedai/DeepSpeed · GitHub

Fix eigenvalue parsing for compression-only quantize configs - #8057

Merged
tohtana merged 5 commits into
deepspeedai:masterfrom
sowndappan5:master
Jul 1, 2026
Merged

Fix eigenvalue parsing for compression-only quantize configs#8057
tohtana merged 5 commits into
deepspeedai:masterfrom
sowndappan5:master

Conversation

sowndappan5 commented Jun 10, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Description

This PR fixes eigenvalue configuration parsing in deepspeed/runtime/config.py for quantization-enabled configs.

Previously, get_eigenvalue_config() assumed the legacy top-level quantize_training section always existed after get_quantize_enabled() returned true. That caused a KeyError for supported compression configs that enable weight quantization through compression_training without also defining quantize_training.

This change makes the parser fall back to the default eigenvalue settings when the legacy section is absent, while preserving the existing behavior when quantize_training is present.

Testing

Added a regression test covering a compression_training weight-quantization config without a legacy quantize_training section.

Validated locally with the repository's focused pre-commit checks.

chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2e42aef6fb

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread deepspeed/runtime/config.py Outdated
sowndappan5 requested a review from loadams as a code owner June 10, 2026 07:51
Signed-off-by: Sowndappan S <147894621+sowndappan5@users.noreply.github.com>
Signed-off-by: Sowndappan S <147894621+sowndappan5@users.noreply.github.com>
sowndappan5 changed the title Fix NameError in eigenvalue config parsing Fix eigenvalue parsing for compression-only quantize configs Jun 10, 2026

tohtana commented Jul 1, 2026
edited
Loading

Copy link
Copy Markdown
Collaborator

Hi @sowndappan5,
Thank you for submitting this PR, and sorry for reviewing so late.

The parser change looks correct to me. But it seems to have an issue in the new test.

The new test_quantized_eigenvalue_config_parses test currently uses get_test_path('model/BingBertSquad/...'). get_test_path() resolves relative to tests/unit, so this points at tests/unit/model/.... The fixture is actually under tests/model/BingBertSquad.
When I ran the two focused tests, that test failed before reaching the parser with binascii.Error: Incorrect padding because DeepSpeedConfig received a non-existent path and tried to decode it as inline base64.

Changing the path to get_test_path('../model/BingBertSquad/deepspeed_bsz24_fp16_eigenvalue_quantize_config.json')
will fix the issue.

Copy link
Copy Markdown
Contributor Author

Thanks for the review and for pointing this out. I'll check the test path on my end and verify the behavior you described. If that's the issue, I'll update the test accordingly and push a fix.

Copy link
Copy Markdown
Contributor Author

@tohtana I have updated the test path to ../model/BingBertSquad/... and pushed the fix. All local pre-commit checks are passing now. Please take another look!

tohtana enabled auto-merge July 1, 2026 16:18

tohtana left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you, @sowndappan5! Let's merge it now.

tohtana added this pull request to the merge queue Jul 1, 2026
Merged via the queue into deepspeedai:master with commit ea3d65e Jul 1, 2026
13 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL