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