Comments (3)
The link at the bottom of the issue is dead, I think the appropriate link is now ONNX Runtime IOBinding.
@tianleiwu did you ever successfully do this?
from onnxt5.
你好! 请问现在GPU上进行T5的推理,是不是onnxruntime和pytorch的速度都差不多啊?在decode的过程中,每次decode的结果past value都很大,用onnxruntime推理怎么减少IO呢?
Hello! Now that the inference of T5 on the GPU is similar, is the speed of onnxruntime and pytorch similar? In the process of decode, the past value of each decode result is large, how to reduce IO with onnxruntime reasoning?@tianleiwu
from onnxt5.
@shiqingzhangCSU,
To reduce I/O, it need design of special CUDA kernels (and also integrates with BeamSearch operator) to deal with past state. In Onnx Runtime, @wangyems is working on optimizations for T5. It is very close to finish.
You can try out current optimizations (although optimizations are still on-going):
https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/python/tools/transformers/convert_generation.py
from onnxt5.
Related Issues (15)
- int() argument must be a string , when running exemple. HOT 3
- Can this model suitable for multilingual-t5 accelerate? HOT 2
- quantized models HOT 1
- How to suppress output
- Inference time on gpu vs onnxt5-gpu HOT 1
- Running example "export_pretrained_model.py" as-is fails (See details) HOT 3
- cpu only inferencing
- Repeat variables assignment both
- Implement beam search HOT 2
- Build a progress bar for the download of the initial files of the model
- Given model could not be parsed while creating inference session. Error message: Protobuf parsing failed. HOT 6
- Default T5 summary contains <extra_id_2>.<extra_id_3>.<extra_id_4> HOT 5
- Limit input ingestion to context length of the model
- Cosine similarity between embeddings HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnxt5.