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

feat: pin deps #5465

Merged
merged 1 commit into from
Jan 10, 2024
Merged

feat: pin deps #5465

merged 1 commit into from
Jan 10, 2024

Conversation

psychedelicious
Copy link
Collaborator

Description

Organise deps into ~3 categories:

  • Core generation dependencies, pinned for reproducible builds.
  • Core application dependencies, pinned for reproducible builds.
  • Auxiliary dependencies, pinned only if necessary.

I pinned / bumped these to latest:

  • controlnet_aux
  • fastapi
  • fastapi-events
  • huggingface-hub
  • numpy
  • python-socketio
  • torchmetrics
  • transformers
  • uvicorn

I checked the release notes for these and didn't see any breaking changes that would affect us. There is a fastapi breaking change in v108 related to background tasks but it doesn't affect us.

I tested on a fresh venv. The app still works and I can generate on macOS.

Hopefully, enforcing explicit pinned versions will reduce the issues where people get CPU torch.

It also means we should periodically bump versions up to ensure we don't get too far behind on our dependencies and have to do painful upgrades.

QA Instructions, Screenshots, Recordings

I don't expect any issues with the minor version bumps involved. I've tested on macOS so far. I'll test on linux shortly, and it would be great to test on window too.

But, if we cut an RC, is much more effective a way to test.

Merge Plan

This PR can be merged when approved.

Organise deps into ~3 categories:
- Core generation dependencies, pinned for reproducible builds.
- Core application dependencies, pinned for reproducible builds.
- Auxiliary dependencies, pinned only if necessary.

I pinned / bumped these to latest:
- `controlnet_aux`
- `fastapi`
- `fastapi-events`
- `huggingface-hub`
- `numpy`
- `python-socketio`
- `torchmetrics`
- `transformers`
- `uvicorn`

I checked the release notes for these and didn't see any breaking changes that would affect us. There is a `fastapi` breaking change in v108 related to background tasks but it doesn't affect us.

I tested on a fresh venv. The app still works and I can generate on macOS.

Hopefully, enforcing explicit pinned versions will reduce the issues where people get CPU torch.

It also means we should periodically bump versions up to ensure we don't get too far behind on our dependencies and have to do painful upgrades.
@hipsterusername hipsterusername merged commit 3a9201b into main Jan 10, 2024
7 checks passed
@hipsterusername hipsterusername deleted the feat/pin-deps branch January 10, 2024 05:03
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