Skip to content

Fix two issues introduced in AutoGPTQ deprecation#3014

Merged
githubnemo merged 5 commits intohuggingface:mainfrom
githubnemo:issue/fix-reintroduced-autogptq-code
Feb 2, 2026
Merged

Fix two issues introduced in AutoGPTQ deprecation#3014
githubnemo merged 5 commits intohuggingface:mainfrom
githubnemo:issue/fix-reintroduced-autogptq-code

Conversation

@githubnemo
Copy link
Collaborator

@githubnemo githubnemo commented Jan 30, 2026

Merging PR #2932 introduced two bugs that lead to failing CPU and GPU pipelines.

Firstly, a merge on main in the PR without a follow-up CI run re-introduced a deleted AutoGPTQ code branch which is now removed again.

Secondly, gptqmodel seems, just like EETQ, to need a non-isolated build environment to find external dependencies like PyTorch to be installed correctly. As this was not present, the nightly slow CI wasn't run.

Additional CI fixes:

  • Ignore DeprecationWarning from diffusers via transformers
  • Fix docker build test pipeline which didn't trigger due to a formatting issue
  • Added implicit requests dependency for hf-doc-builder to fix quality CI check

Merging PR huggingface#2932 introduced two bugs that lead to failing
CPU and GPU pipelines.

Firstly, a merge on main in the PR without a follow-up CI
run re-introduced a deleted AutoGPTQ code branch which is now
removed again.

Secondly, gptqmodel seems, just like EETQ, to need a non-isolated
build environment to find external dependencies like PyTorch
to be installed correctly. As this was not present, the nightly
slow CI wasn't run.
@githubnemo githubnemo requested a review from sayakpaul January 30, 2026 09:37
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Apparently `hf-doc-builder` doesn't expose its dependency to `requests`
in the `setup.py` (it does in `pyproject.toml`). For some reason
`requests` is not installed anymore (some other dependency removed it
probably), so we're getting CI errors.
@githubnemo githubnemo force-pushed the issue/fix-reintroduced-autogptq-code branch from 72c0c2c to 98f828e Compare January 30, 2026 09:42
The docker test build failed because of escaped values passed
to the next task. Avoiding wrapping the value in an env variable
fixes this issue.
@githubnemo
Copy link
Collaborator Author

@sayakpaul I will attempt to fix the BPE DeprecationWarning failures in the pipeline as well. HTTP read errors seem unrelated.

ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
echo "matrix=${ALL_CHANGED_FILES}" >> $GITHUB_OUTPUT
echo "matrix=${{ steps.changed-files.outputs.all_changed_files }}" >> $GITHUB_OUTPUT
Copy link
Member

Choose a reason for hiding this comment

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

I think the previous implement is for security reasons?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it was and it is indeed a potential vector since file names are controlled by a potential attacker - even though the output from the changed-files plugin is JSON encoded I wouldn't bet it is shell escaped as well. I've updated with a fix that uses shell escaping through env vars (like before) but fixes the escaping issue.

Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Thanks!

Escaping the changed files is indeed relevant since it is a
potential intruder controlled vector.
@githubnemo githubnemo requested a review from sayakpaul January 30, 2026 14:14
Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this on priority. Approving given the tests pass.

@githubnemo
Copy link
Collaborator Author

HTTP errors are unrelated but test_poly fails. This seems to be a transformers issue introduced in https://github.com/huggingface/transformers/pull/41541. This has nothing to do with this change, so I'll fix it in a different PR.

The same goes for the failing docker build. This is best handled separately.

@githubnemo githubnemo merged commit c2b2867 into huggingface:main Feb 2, 2026
4 of 13 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.

3 participants