Giter Site home page Giter Site logo

Comments (5)

qubvel avatar qubvel commented on July 2, 2024

Hi @qrsssh , thanks for the issue!

Could you please provide your environment versions of transformers, optimum?
Has behavior changed? What was the last working version?

You can use:

transformers-cli env

from transformers.

xenova avatar xenova commented on July 2, 2024

Hi @qrsssh - those models are not officially supported by Optimum (or transformers), but you should be able to get it done by specifying a custom Optimum config. Check out https://huggingface.co/docs/optimum/en/exporters/onnx/usage_guides/export_a_model#customize-the-export-of-transformers-models-with-custom-modeling for more information.

from transformers.

qrsssh avatar qrsssh commented on July 2, 2024
transformers-cli env

thanks for your response

  • transformers version: 4.40.2
  • Platform: Linux-5.4.54-1.0.0.std7c.el7.2.x86_64-x86_64-with-glibc2.31
  • Python version: 3.10.11
  • Huggingface_hub version: 0.23.0
  • Safetensors version: 0.4.3
  • Accelerate version: not installed
  • Accelerate config: not found
  • PyTorch version (GPU?): 2.0.1 (True)
  • Tensorflow version (GPU?): not installed (NA)
  • Flax version (CPU?/GPU?/TPU?): not installed (NA)
  • Jax version: not installed
  • JaxLib version: not installed
  • Using GPU in script?:
  • Using distributed or parallel set-up in script?:

from transformers.

qrsssh avatar qrsssh commented on July 2, 2024

those models are not officially supported by Optimum (or transformers), but you should be able to get it done by specifying a custom Optimum config. Check out

thans your replay

Hi @qrsssh , thanks for the issue!

Could you please provide your environment versions of transformers, optimum? Has behavior changed? What was the last working version?

You can use:

transformers-cli env

addd other version
nltk==3.8.1
numexpr==2.8.4
numpy==1.26.4
onnx==1.16.0
onnxruntime==1.17.3
onnxruntime-gpu==1.14.1
openapi-schema-pydantic==1.2.4
opencv-python==4.9.0.80
opencv-python-headless==4.9.0.80
optimum==1.19.2

from transformers.

qrsssh avatar qrsssh commented on July 2, 2024

Hi @qrsssh - those models are not officially supported by Optimum (or transformers), but you should be able to get it done by specifying a custom Optimum config. Check out https://huggingface.co/docs/optimum/en/exporters/onnx/usage_guides/export_a_model#customize-the-export-of-transformers-models-with-custom-modeling for more information.

thanks your response, I'm trying use customize-the-export-of-transformers-models-with-custom-modeling method

from transformers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.