Transformers
Safetensors
English
charlm
tiny
tiny-lm
small-language-model
sub-1m
char-level
from-scratch
nanoGPT
TinyStories
Instructions to use Compactbot/char-gpt-1.2m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Compactbot/char-gpt-1.2m with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import CharGPT model = CharGPT.from_pretrained("Compactbot/char-gpt-1.2m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download sample.txt from Compactbot/char-gpt-1.2m: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/Compactbot/char-gpt-1.2m/resolve/main/sample.txt
- Command line
-
hf download hf://Compactbot/char-gpt-1.2m/sample.txt
-
curl -L -o sample.txt https://huggingface.co/Compactbot/char-gpt-1.2m/resolve/main/sample.txt
401 Bytes
| A grianter of though liftsery was and more | |
| that devest my reties read to weer, and is a chall. | |
| ISABELLA: | |
| And mader: | |
| I he blike the to the now and good. | |
| TORCUTESTIO: | |
| You as vrisked; was blag make weend, and burd, | |
| And as chend and this as sclatt, | |
| Theret he some to simn nobed courdown. | |
| HENRY ORWIONH: | |
| Marress leach us lords theirs; | |
| I go card to sees of slight the succh my fraiin | |
| To some to brothoun |