Instructions to use echarlaix/tiny-random-gpt2-torchscript with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use echarlaix/tiny-random-gpt2-torchscript with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("echarlaix/tiny-random-gpt2-torchscript", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model_with_pkv/pytorch_model.bin from echarlaix/tiny-random-gpt2-torchscript: direct link, hf CLI and curl.
- Browser
- Download file 727 kB
-
https://huggingface.co/echarlaix/tiny-random-gpt2-torchscript/resolve/refs%2Fpr%2F2/model_with_pkv/pytorch_model.bin
- Command line
-
hf download hf://echarlaix/tiny-random-gpt2-torchscript@refs/pr/2/model_with_pkv/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/echarlaix/tiny-random-gpt2-torchscript/resolve/refs%2Fpr%2F2/model_with_pkv/pytorch_model.bin
727 kB
- Xet hash:
- db3d62186d8400c25d0d3c2eb5d1ea348a35ee8b6c0926cf2d1a021b559e3ed5
- Size of remote file:
- 727 kB
- SHA256:
- 076f7de701d4e4a6c461a34005b1a95f8f4a420e13e812b92e1d803b2329cee3
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.