Instructions to use hf-internal-testing/tiny-random-gpt2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-gpt2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("hf-internal-testing/tiny-random-gpt2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model.safetensors from hf-internal-testing/tiny-random-gpt2: direct link, hf CLI and curl.
- Browser
- Download file 454 kB
-
https://huggingface.co/hf-internal-testing/tiny-random-gpt2/resolve/main/model.safetensors
- Command line
-
hf download hf://hf-internal-testing/tiny-random-gpt2/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/hf-internal-testing/tiny-random-gpt2/resolve/main/model.safetensors
454 kB
- Xet hash:
- f8accece953fd366d4ce30597b97acc1ccedc3c785187a5ef6ecb4a8e1755122
- Size of remote file:
- 454 kB
- SHA256:
- 8111d5afb0715dbf5a31396d31432cb56370ba23f6650a035ea0fc8a20b4e500
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.