Skip to content

[Bug]: AttributeError: module 'transformers.utils.hub' has no attribute 'create_repo' #1891

Closed

Description

@chensuyue

Problem Description

conftest.py:33: in
import gptqmodel # pylint: disable=E0401
^^^^^^^^^^^^^^^^
/root/.venv/lib/python3.12/site-packages/gptqmodel/init.py:272: in
from .models import GPTQModel, get_best_device
/root/.venv/lib/python3.12/site-packages/gptqmodel/models/init.py:7: in
from .auto import MODEL_MAP, GPTQModel
/root/.venv/lib/python3.12/site-packages/gptqmodel/models/auto.py:58: in
from ..adapter.adapter import Adapter, Lora, normalize_adapter # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/root/.venv/lib/python3.12/site-packages/gptqmodel/adapter/adapter.py:14: in
from .peft import LoraConfig
/root/.venv/lib/python3.12/site-packages/gptqmodel/adapter/peft.py:11: in
from ..adapter.remote import resolve_path
/root/.venv/lib/python3.12/site-packages/gptqmodel/adapter/remote.py:9: in
from ..utils.hub import hf_hub_download
/root/.venv/lib/python3.12/site-packages/gptqmodel/utils/hub.py:13: in
create_repo = transformers_hub.create_repo
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E AttributeError: module 'transformers.utils.hub' has no attribute 'create_repo'

Reproduction Steps

CI test

Environment Information

No response

Error Logs

Additional Context

No response

Activity

  1. added
    bug
    on Jun 5, 2026
  2. chensuyue commented on Jun 5, 2026

    @chensuyue
    ContributorAuthor
  3. chensuyue commented on Jun 9, 2026

    @chensuyue
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CI-known-issuebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions