Skip to content

chore: update pyproject.toml for optional dependencies and bitsandbytes#175

Merged
davidberenstein1957 merged 4 commits intomainfrom
feat/149-feature-set-bitsandbytes-as-optional-dependency-as-it-is-not-supported-on-mps
Jun 6, 2025
Merged

chore: update pyproject.toml for optional dependencies and bitsandbytes#175
davidberenstein1957 merged 4 commits intomainfrom
feat/149-feature-set-bitsandbytes-as-optional-dependency-as-it-is-not-supported-on-mps

Conversation

@davidberenstein1957
Copy link
Copy Markdown
Member

  • Added poetry.lock to manage package dependencies and versions.
  • Updated pyproject.toml to conditionally include bitsandbytes based on platform compatibility.
  • Refined optional dependencies for development and testing, ensuring proper markers for each package.

Description

Related Issue

Fixes #149

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Additional Notes

…ncies

- Added `poetry.lock` to manage package dependencies and versions.
- Updated `pyproject.toml` to conditionally include `bitsandbytes` based on platform compatibility.
- Refined optional dependencies for development and testing, ensuring proper markers for each package.
@davidberenstein1957 davidberenstein1957 marked this pull request as ready for review June 5, 2025 10:30
- Added `gptqmodel` version 2.2.0 to `poetry.lock` with optional dependencies for various functionalities.
- Updated `pyproject.toml` to conditionally include `gptqmodel` based on platform compatibility, ensuring proper handling for different environments.
- Refined optional dependencies for `gptqmodel`, enhancing support for additional features and tools.
- Added a comment in `pyproject.toml` indicating that `gptqmodel` version 4.0.0.dev0+cu126torch2.7 is not supported on macOS arm64, enhancing clarity for developers regarding platform compatibility.
Copy link
Copy Markdown
Member

@SaboniAmine SaboniAmine left a comment

Choose a reason for hiding this comment

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

Thanks! The optional bnb install seems great, however not sure about the lock file. As we're migrating to uv, I'd rather share a lockfile using uv's constraints management (poetry can be slow to compute constraints).

@davidberenstein1957 davidberenstein1957 changed the title chore: add poetry.lock and update pyproject.toml for optional dependencies chore: update pyproject.toml for optional dependencies and bitsandbytes Jun 5, 2025
bayesai

This comment was marked as resolved.

Copy link
Copy Markdown
Member

@gtregoat gtregoat left a comment

Choose a reason for hiding this comment

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

LGTM! Was able to install with uv!

@davidberenstein1957 davidberenstein1957 merged commit 01a57b2 into main Jun 6, 2025
7 checks passed
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.

[FEATURE] set bitsandbytes as optional dependency as it is not supported on mps

4 participants