Comments (5)
I solved the problem like this
from fastt5.
thank you,but my problem is such as this:
when i run this code [model = export_and_get_onnx_model("/root/t5_correct/t5/", "/root/t5_correct/t5_onnx/")] for gettig a onnx model, the Segmentation fault occurred
============= Diagnostic Run torch.onnx.export version 2.0.0+cu117 =============
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 0 ERROR ========================
Exporting to onnx... |########## | 1/3============= Diagnostic Run torch.onnx.export version 2.0.0+cu117 =============
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 0 ERROR ========================
Exporting to onnx... |##################### | 2/3============= Diagnostic Run torch.onnx.export version 2.0.0+cu117 =============
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 0 ERROR ========================
Exporting to onnx... |################################| 3/3
Quantizing... |################################| 3/3
Setting up onnx model...
Traceback (most recent call last):
File "t5_onnx.py", line 7, in
model = export_and_get_onnx_model("/root/t5_correct/t5/", "/root/t5_correct/t5_onnx/")
File "/root/.local/conda/envs/py38/lib/python3.8/site-packages/fastT5/onnx_models.py", line 223, in export_and_get_onnx_model
Segmentation fault (core dumped)
from fastt5.
from fastt5.
You should change n_threads to your CPU cores
from fastt5.
I understand. Thank you very much
from fastt5.
Related Issues (20)
- Failed to create CUDAExecutionProvider HOT 1
- Not able to run onnx model of allen ai t5 small on GPU HOT 1
- Support for py3.10 HOT 1
- Fails to convert T0-3B HOT 2
- Mt5 model loading fails HOT 11
- Is it suit for other translation model like "Helsinki-NLP / opus-mt-en-de"? HOT 1
- Decoder's encoder_attention_mask input should be called decoder_attention_mask HOT 1
- Thank You and Demo Running in the Browser HOT 2
- M2M100 to ONNX
- Upgrade ONNX runtime HOT 1
- fastt5 not working with FastAPI gunicorn and docker HOT 1
- No such file or directory: '/content/encoder.embed_tokens.weight' HOT 3
- In the source code, the use of attention_mask is contradictory HOT 1
- Issue with onnxruntime HOT 4
- flan-t5 support HOT 5
- GPU support
- Is fastT5 qunatization slower than pytorch dynamic quantization?
- TypeError: quantize_dynamic() got an unexpected keyword argument 'activation_type' HOT 1
- Dead kernel
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 fastt5.