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 tokenizer.json from badgrr/gpt2: direct link, hf CLI and curl.
- Browser
- Download file 2.11 MB
-
https://huggingface.co/badgrr/gpt2/resolve/main/tokenizer.json
- Command line
-
hf download hf://badgrr/gpt2/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/badgrr/gpt2/resolve/main/tokenizer.json
2.11 MB
File too large to display, you can check the raw version instead.