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 src/__pycache__/model_file.cpython-38.pyc from flax-community/gpt2-Cosmos: direct link, hf CLI and curl.
- Browser
- Download file 9.01 kB
-
https://huggingface.co/flax-community/gpt2-Cosmos/resolve/main/src/__pycache__/model_file.cpython-38.pyc
- Command line
-
hf download hf://flax-community/gpt2-Cosmos/src/__pycache__/model_file.cpython-38.pyc
-
curl -L -o model_file.cpython-38.pyc https://huggingface.co/flax-community/gpt2-Cosmos/resolve/main/src/__pycache__/model_file.cpython-38.pyc
9.01 kB
This file contains binary data. It cannot be displayed, but you can still download it.