[Python] transformers Pylance reportPrivateImportUsage

Discussão em 'Python' iniciado por Stack, Julho 31, 2025.

  1. Stack

    Stack Membro Participativo

    I use VS Code and for every import from the transformers library - for example

    from transformers import AutoTokenizer


    I get the message

    "AutoTokenizer" is not exported from module "transformers"
    Import from "transformers.models.auto.tokenization_auto" instead Pylance (reportPrivateImportUsage)


    I have transformers 4.51.3 and I think that these messages started when I installed adapters (adapters 1.2.0) in the environment too. The code runs though.

    Continue reading...

Compartilhe esta Página