Skip to content

Change timm and controlnet-aux pins to fix LLaVA model support #7846

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

Merged
merged 4 commits into from
Apr 2, 2025

Conversation

ebr
Copy link
Member

@ebr ebr commented Mar 26, 2025

Summary

timm below 1.0.0 prevents llava models from working (broken in transformers). but controlnet-aux pins timm to an earlier version because otherwise it was breaking the ZoeDepth controlnet.

we don't use ZoeDepth (replaced by depthAnything), and downgrading controlnet-aux seems to be acceptable.

more context here:

huggingface/controlnet_aux#106 huggingface/controlnet_aux#101

Note that this results in some warnings on startup, stemming from controlnet-aux:
image

we can probably silence the warnings as a separate enhancement

Related Issues / Discussions

QA Instructions

Merge Plan

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

…th llava

timm < 1.0.0 prevents llava models from working (broken in transformers). but controlnet-aux pinned it to an earlier version because otherwise it was breaking the ZoeDepth controlnet.

we don't use ZoeDepth (replaced by depthAnything), and downgrading controlnet-aux seems to be acceptable.

more context here:

huggingface/controlnet_aux#106
huggingface/controlnet_aux#101
@github-actions github-actions bot added Root python-deps PRs that change python dependencies labels Mar 26, 2025
@ebr ebr requested a review from Copilot March 26, 2025 21:00
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the version pin for controlnet-aux and updates the timm dependency to support LLaVA model compatibility.

  • Removed an explicit version for controlnet-aux.
  • Updated timm from an exact version (0.6.13) to a compatible range (~1.0.0).
Comments suppressed due to low confidence (1)

pyproject.toml:54

  • The inline comment still references an override for timm imposed by controlnet-aux, which may now be outdated after removing the version pin from controlnet-aux. Consider updating or removing the comment to avoid confusion.
"timm~=1.0.0",

@ebr ebr mentioned this pull request Mar 26, 2025
4 tasks
@ebr ebr mentioned this pull request Mar 28, 2025
1 task
@ebr ebr enabled auto-merge April 2, 2025 01:10
@ebr ebr merged commit 6c7d08c into invoke-ai:main Apr 2, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python-deps PRs that change python dependencies Root
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants