Instructions to use Xenova/distilgpt2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/distilgpt2 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'Xenova/distilgpt2');
How to create decoder_model_merged.onnx models
#2
by lakpriya - opened
I'm using this script to convert my fine-tuned models to onnx formats.
https://huggingface.co/spaces/onnx-community/convert-to-onnx/tree/main
python3 /content/convert.py \
--quantize \
--task text-generation \
--model_id <model>
It creates all kinds of quantized models, such as model.onnx, model_int8.onnx, etc., but I see that the transformer js demo uses decoder_model_merged.onnx. I want to know how we can create them. Could you please help me with this?