Giter VIP home page Giter VIP logo

onnx_transformers's Issues

run error in benchmark_pipelines.ipynb on Win 10

when I run onnx_transformers\notebooks\benchmark_pipelines.ipynb,I got error below:
onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Unexpected input data type.
only use nlp_torch = pipeline("feature-extraction", onnx=False),get the inference time figure.

bart

Hi!
What about Bart summarization convertation?

GPT 2 text generation

Hello, are you planning to add text generation pipeline? The pipeline implementation is super easy to implement, thanks.

ModuleNotFoundError: No module named 'transformers.configuration_auto'

Hi

I am getting an error when running the example

from onnx_transformers import pipeline

# Initialize a pipeline by passing the task name and 
# set onnx to True (default value is also True)
nlp = pipeline("sentiment-analysis", onnx=True)
nlp("Transformers and onnx runtime is an awesome combo!")
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-6-b6b36e52d5ec> in <module>
----> 1 from onnx_transformers import pipeline
      2 
      3 # Initialize a pipeline by passing the task name and
      4 # set onnx to True (default value is also True)
      5 nlp = pipeline("sentiment-analysis", onnx=True)

/opt/anaconda3/lib/python3.8/site-packages/onnx_transformers/__init__.py in <module>
      2 
      3 # Pipelines
----> 4 from .pipelines import (
      5     CsvPipelineDataFormat,
      6     JsonPipelineDataFormat,

/opt/anaconda3/lib/python3.8/site-packages/onnx_transformers/pipelines.py in <module>
     16 from onnxruntime import GraphOptimizationLevel, InferenceSession, SessionOptions, get_all_providers
     17 from psutil import cpu_count
---> 18 from transformers.configuration_auto import AutoConfig
     19 from transformers.configuration_utils import PretrainedConfig
     20 from transformers.convert_graph_to_onnx import convert_pytorch, convert_tensorflow, infer_shapes

ModuleNotFoundError: No module named 'transformers.configuration_auto'

Kindly help

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.