voxreality/t5_nlu_intent_recognition_onnx
By voxreality · ↓ 0 · ♥ 0 · Updated 2025-04-29
What's in this repo
This page lists the files in voxreality/t5_nlu_intent_recognition_onnx, including decoder_model.onnx, decoder_model_merged.onnx, decoder_with_past_model.onnx and more.
- 4 ONNX models (.onnx files)
- 12 files, including 5 .json, 4 .onnx, 1 .md, 1 .model
- Last updated 2025-04-29
ONNX files
| File | Size | Download |
|---|---|---|
| decoder_model.onnx | — | Download |
| decoder_model_merged.onnx | — | Download |
| decoder_with_past_model.onnx | — | Download |
| encoder_model.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
ONNX format of voxreality/t5_nlu_intent_recognition model
Model inference example:
from transformers import AutoTokenizer
from optimum.onnxruntime import ORTModelForSeq2SeqLM
model_path = "voxreality/t5_nlu_intent_recognition_onnx"
model = ORTModelForSeq2SeqLM.from_pretrained(model_path)
tokenizer = AutoTokenizer.from_pretrained(model_path)
input_text = "Where is the conference room?"
input_tokenized = tokenizer.encode(input_text, return_tensors='pt')
output = model.generate(input_tokenized, max_new_tokens=100).tolist()
nlu_output_str = tokenizer.decode(output[0], skip_special_tokens=True)
print(nlu_output_str)
Model info
onnx
t5
license:apache-2.0
region:us
↓ 0
♥ 0
Created: 2025-04-24
Updated: 2025-04-29
View on Hugging FaceFiles (12)
.gitattributes
README.md
config.json
decoder_model.onnx
ONNX
decoder_model_merged.onnx
ONNX
decoder_with_past_model.onnx
ONNX
encoder_model.onnx
ONNX
generation_config.json
special_tokens_map.json
spiece.model
tokenizer.json
tokenizer_config.json
Related models
More from voxreality
More models
No task type declared.