Skip to content

Fix pipeline: swap setfit for patched fork compatible with transformers v5 - #2

Merged
sumtxt merged 2 commits into
mainfrom
copilot/inspect-log-for-testing-errors
Jul 29, 2026
Merged

Fix pipeline: swap setfit for patched fork compatible with transformers v5#2
sumtxt merged 2 commits into
mainfrom
copilot/inspect-log-for-testing-errors

Conversation

Copilot AI commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

setfit==1.1.3 imports default_logdir from transformers.training_args, which was removed in transformers v5. Pinning back to transformers==4.45.0 is not viable due to known security vulnerabilities.

Changes

  • requirements.txt: Replace setfit==1.1.3 with the upstream fix from huggingface/setfit#634, installed directly from the fork commit that patches the import path:
    -setfit==1.1.3
    -transformers==4.45.0
    +git+https://github.com/elias-aouad/setfit.git@5fbae07b38841179d2b99288352990c2faa5db0a
    +transformers==5.14.1
    The fix changes the import from transformers.training_args.default_logdirtransformers.integrations.integration_utils.default_logdir, which is the correct location in transformers v5.

Once huggingface/setfit#634 is merged and released, this should be replaced with a pinned PyPI release.

@sumtxt
sumtxt marked this pull request as ready for review July 29, 2026 08:02
@sumtxt
sumtxt merged commit f52e877 into main Jul 29, 2026
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