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