# C# and ONNX models

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fc-and-onnx-models%2F35919%3E%5C
**Category:** Beginners\
**Created:** [April 7, 2023, 6:40pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fc-and-onnx-models%2F35919 "2023-04-07T18:40:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![00nc](https://avatars.discourse-cdn.com/v4/letter/0/f1d935/32.png) [@00nc](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2F00nc)%5C
**Post date:** [April 7, 2023, 6:40pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fc-and-onnx-models%2F35919%2F1 "2023-04-07T18:40:11Z")

</div>

Hi, I have created a T5 based ONNX model, I would just like to load it into some C# code to use it.  
The main problem is that I can’t tokenize a string into numbers and then vice versa (the model accepts long as input and float32 as output), but I need to input a string and receive one as output, as happens in Python using the transformers library and related tokenizers…  
Does anyone have a working example?

Thank you.

---

<div class="post-metadata">

**Author:** ![HansFlitz](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@HansFlitz](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FHansFlitz)%5C
**Post date:** [June 24, 2024, 7:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fc-and-onnx-models%2F35919%2F2 "2024-06-24T19:08:17Z")

</div>

Hi,

Not sure if it helps but maybe take a peek at the tokenizer from this project?

> **[GitHub - cassiebreviu/StableDiffusion: Inference Stable Diffusion with C# and...](https://github.com/cassiebreviu/StableDiffusion)**
>
> Inference Stable Diffusion with C# and ONNX Runtime - cassiebreviu/StableDiffusion

Regards,
