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 pytorch_model.bin from hf-internal-testing/tiny-random-gpt2: direct link, hf CLI and curl.
- Browser
- Download file 3.56 MB
-
https://huggingface.co/hf-internal-testing/tiny-random-gpt2/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://hf-internal-testing/tiny-random-gpt2/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/hf-internal-testing/tiny-random-gpt2/resolve/main/pytorch_model.bin
3.56 MB
- Xet hash:
- 72d5008077bcb694b439abace86b6708478cbba54d128303d755a02ea505fa0a
- Size of remote file:
- 3.56 MB
- SHA256:
- 4fab47c129967e0db58e8faf8494e4bd04f2ea79bbe287ac2f90c4183c0194be
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.