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_merged_quantized.onnx from badgrr/gpt2: direct link, hf CLI and curl.
- Browser
- Download file 128 MB
-
https://huggingface.co/badgrr/gpt2/resolve/main/onnx/decoder_model_merged_quantized.onnx
- Command line
-
hf download hf://badgrr/gpt2/onnx/decoder_model_merged_quantized.onnx
-
curl -L -o decoder_model_merged_quantized.onnx https://huggingface.co/badgrr/gpt2/resolve/main/onnx/decoder_model_merged_quantized.onnx
128 MB
- Xet hash:
- 5f329562782b22196af231d84e76c010f29d832d73eba432dee5e9b9d9330711
- Size of remote file:
- 128 MB
- SHA256:
- 3633bbcb515767629ce17ff7ac1c3bd337f260a1135fb8c76fd9fe0dab876d19
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.