Instructions to use badgrr/gpt2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use badgrr/gpt2 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'badgrr/gpt2');
Download onnx/decoder_model_quantized.onnx from badgrr/gpt2: direct link, hf CLI and curl.
- Browser
- Download file 127 MB
-
https://huggingface.co/badgrr/gpt2/resolve/main/onnx/decoder_model_quantized.onnx
- Command line
-
hf download hf://badgrr/gpt2/onnx/decoder_model_quantized.onnx
-
curl -L -o decoder_model_quantized.onnx https://huggingface.co/badgrr/gpt2/resolve/main/onnx/decoder_model_quantized.onnx
127 MB
- Xet hash:
- a0ee22240477ed69d6cce0ab59e504d713215492d1a851e069207441a0fd1e90
- Size of remote file:
- 127 MB
- SHA256:
- 419f6a0fe721ce9f41f35512347c58132b2e178310454231ca6ec04ff5029445
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.