huggingface / optimum

🚀 Accelerate training and inference of 🤗 Transformers and 🤗 Diffusers with easy to use hardware optimization tools

Home Page:https://huggingface.co/docs/optimum/main/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Transformers >=4.40.0

saattrupdan opened this issue · comments

The Issue

I would like to be able to load GPTQ models with the newest transformers version. This requires optimum, but optimum is not compatible with the newest transformers version.

System Info

Linux, Python 3.11, Optimum 1.19.0

Who can help?

@SunMarc

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 (minimal, reproducible, runnable)

pip install "transformers>=4.40.0" "optimum>=1.19.0"

Expected behavior

No dependency conflict.

Hi @saattrupdan, transformers version have been pinned in the latest version of optimum. See PR here. I guess the easier solution for now is installing optimum==1.18.0 in order to use gptq with transformers.

Hi @saattrupdan, transformers version have been pinned in the latest version of optimum. See PR here. I guess the easier solution for now is installing optimum==1.18.0 in order to use gptq with transformers.

Thanks @SunMarc! I found that 1.18.0 still has the upper bound requirement, but 1.17.1 works. Thanks for that hotfix 🙂