Skip to content

fix: move open-clip-torch to optional training dependencies#150

Merged
abrichr merged 1 commit intomainfrom
fix/optional-heavy-deps
Mar 19, 2026
Merged

fix: move open-clip-torch to optional training dependencies#150
abrichr merged 1 commit intomainfrom
fix/optional-heavy-deps

Conversation

@abrichr
Copy link
Copy Markdown
Member

@abrichr abrichr commented Mar 19, 2026

Summary

  • Move open-clip-torch from required dependencies to [project.optional-dependencies.training]
  • Add openadapt-ml[training] to the training extras so users who need the full ML stack can install it

Motivation

open-clip-torch pulls in torch (~873MB) and is not actually imported anywhere in the openadapt-evals codebase (only referenced in a comment). Moving it to optional training deps reduces install size for lightweight consumers like the Wright worker.

Companion PR: OpenAdaptAI/openadapt-ml#57 (makes torch/transformers/peft optional in openadapt-ml)

Test plan

  • Verify pip install openadapt-evals works without torch
  • Verify pip install openadapt-evals[training] installs open-clip-torch and ML deps

🤖 Generated with Claude Code

Move open-clip-torch from required to optional [training] dependencies
to reduce install footprint for lightweight consumers like Wright worker.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@abrichr abrichr merged commit ed942b9 into main Mar 19, 2026
1 check 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.

1 participant