Instructions to use flax-community/gpt2-Cosmos with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flax-community/gpt2-Cosmos with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultipleChoice tokenizer = AutoTokenizer.from_pretrained("flax-community/gpt2-Cosmos") model = AutoModelForMultipleChoice.from_pretrained("flax-community/gpt2-Cosmos", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download flax_model.msgpack from flax-community/gpt2-Cosmos: direct link, hf CLI and curl.
- Browser
- Download file 1.42 GB
-
https://huggingface.co/flax-community/gpt2-Cosmos/resolve/main/flax_model.msgpack
- Command line
-
hf download hf://flax-community/gpt2-Cosmos/flax_model.msgpack
-
curl -L -o flax_model.msgpack https://huggingface.co/flax-community/gpt2-Cosmos/resolve/main/flax_model.msgpack
1.42 GB
- Xet hash:
- e08ceef72c7f3b13f0f749c6fe6a1e5f8429d788f961aee9727bb64562341ee4
- Size of remote file:
- 1.42 GB
- SHA256:
- c97daea98470a79b710275dc23ea4d3cf2bef9dd1da1486764b4848f01748ef4
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.