Skip to content

fix(sglang-nonfp8): catch broad Exception for fp8 ue8m0 imports to su… - #57

Merged
NINGBENZHE merged 3 commits into
redai-studio:mainfrom
yeqinghe609:latest
Jul 9, 2026
Merged

NINGBENZHE merged 3 commits into
redai-studio:mainfrom
yeqinghe609:latest

Conversation

@yeqinghe609

Copy link
Copy Markdown
Contributor

…pport non-fp8 backends

What

The user changed the except ImportError to except Exception on L2-8 to gracefully handle unsupported fp8 (ue8m0 quantization) imports

Why

How

Testing

  • pre-commit run --all-files passes
  • Tests pass (pytest tests/)
  • New tests added (if applicable)
  • Documentation updated (if applicable)

Type of Change

  • [✅ ] Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • CI/CD or build changes

Screenshots / Logs

@yeqinghe609
yeqinghe609 requested a review from NINGBENZHE as a code owner July 2, 2026 11:08

@NINGBENZHE NINGBENZHE left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@NINGBENZHE
NINGBENZHE merged commit 0c3fc89 into redai-studio:main Jul 9, 2026
5 checks passed
ZiyiTsang pushed a commit to ZiyiTsang/Relax that referenced this pull request Aug 6, 2026
redai-studio#57)

…pport non-fp8 backends

## What

The user changed the except ImportError to except Exception on L2-8 to
gracefully handle unsupported fp8 (ue8m0 quantization) imports

## Why

<!-- Why are these changes needed? Link related issues with "Fixes redai-studio#123"
or "Relates to redai-studio#456". -->

## How

<!-- How do the changes work? Describe the technical approach. -->

## Testing

<!-- How were the changes tested? Include commands, test results, or
screenshots. -->

- [ ] `pre-commit run --all-files` passes
- [ ] Tests pass (`pytest tests/`)
- [ ] New tests added (if applicable)
- [ ] Documentation updated (if applicable)

## Type of Change

- [✅ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Refactoring (no functional changes)
- [ ] Performance improvement
- [ ] CI/CD or build changes

## Screenshots / Logs

<!-- If applicable, add screenshots or log output to help explain the
changes. -->

Co-authored-by: 宁本哲 <[email protected]>
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