transformers - 💡(How to fix) Fix Noisy logging message

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Code Example

import transformers
import skops.io

---

[transformers] Accessing `zetac` from `.models.superglue.image_processing_superglue`. Returning `zetac` instead. Behavior may be different and this alias will be removed in future versions.
[transformers] Accessing `zetac` from `.models.superpoint.image_processing_pil_superpoint`. Returning `zetac` instead. Behavior may be different and this alias will be removed in future versions.
[transformers] Accessing `zetac` from `.models.superpoint.image_processing_superpoint`. Returning `zetac` instead. Behavior may be different and this alias will be removed in future versions.
RAW_BUFFERClick to expand / collapse

System Info

Transformers 5.9

Who can help?

@yonigozlan @molbap @ArthurZucker

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

pip install skops

import transformers
import skops.io

Also happens with you run unit tests with code like self.assertWarns

Expected behavior

No logging messages but the code above generates 100s of logging messages

[transformers] Accessing `zetac` from `.models.superglue.image_processing_superglue`. Returning `zetac` instead. Behavior may be different and this alias will be removed in future versions.
[transformers] Accessing `zetac` from `.models.superpoint.image_processing_pil_superpoint`. Returning `zetac` instead. Behavior may be different and this alias will be removed in future versions.
[transformers] Accessing `zetac` from `.models.superpoint.image_processing_superpoint`. Returning `zetac` instead. Behavior may be different and this alias will be removed in future versions.

This appears to be the culprit: https://github.com/huggingface/transformers/blob/main/src/transformers/__init__.py#L833C13-L833C28

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

No logging messages but the code above generates 100s of logging messages

[transformers] Accessing `zetac` from `.models.superglue.image_processing_superglue`. Returning `zetac` instead. Behavior may be different and this alias will be removed in future versions.
[transformers] Accessing `zetac` from `.models.superpoint.image_processing_pil_superpoint`. Returning `zetac` instead. Behavior may be different and this alias will be removed in future versions.
[transformers] Accessing `zetac` from `.models.superpoint.image_processing_superpoint`. Returning `zetac` instead. Behavior may be different and this alias will be removed in future versions.

This appears to be the culprit: https://github.com/huggingface/transformers/blob/main/src/transformers/__init__.py#L833C13-L833C28

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING