Skip to content

Fix: resolve issues #498, #499, #447, #504#514

Open
shreyashjagtap157 wants to merge 1 commit intomicrosoft:mainfrom
shreyashjagtap157:fix/issues-498-499-447-504
Open

Fix: resolve issues #498, #499, #447, #504#514
shreyashjagtap157 wants to merge 1 commit intomicrosoft:mainfrom
shreyashjagtap157:fix/issues-498-499-447-504

Conversation

@shreyashjagtap157
Copy link
Copy Markdown

Summary

This PR fixes multiple issues related to error handling and optional pip installation in BitNet.

Changes

Issue #498 / #499 - Add --skip-gguf flag

  • Added --skip-gguf CLI flag to make GGUF pip installation optional
  • Prevents environment conflicts in custom venvs, CI pipelines, and docker containers

Issue #447 / #504 - Fix error handling bugs

  • Fixed sys.exit(1) indentation bug in run_command() - was exiting unconditionally
  • Changed exit(0) to sys.exit(1) for unsupported architecture (was reporting success on failure)
  • Fixed ARCH_ALIAS KeyError using .get() for unknown architectures
  • Added guard for unsupported architectures in parse_args()
  • Applied same fixes to utils/e2e_benchmark.py

Testing

  • Python syntax check passed for both files
  • Default behavior unchanged (backward compatible)

Fixes #498
Fixes #499
Fixes #447
Fixes #504

…osoft#504

- Add --skip-gguf flag to avoid forced pip install (fixes microsoft#498, microsoft#499)
- Fix sys.exit(1) indentation bug in run_command() (fixes microsoft#447)
- Change exit(0) to sys.exit(1) for unsupported arch
- Fix ARCH_ALIAS KeyError using .get() for unknown architectures
- Add guard for unsupported architectures in parse_args()
- Fix same indentation bug in e2e_benchmark.py (fixes microsoft#504)
@shreyashjagtap157
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

setup_env.py triggers unwanted pip install, causing environment conflicts sys.exit(1) runs unconditionally due to indentation bug in run_command()

1 participant