Instructions to use ComCom/gpt2-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ComCom/gpt2-medium with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ComCom/gpt2-medium")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("ComCom/gpt2-medium") model = AutoModel.from_pretrained("ComCom/gpt2-medium", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 135 Bytes
30a7125 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:09fa59f5990d6767ee006f73f642a90e76b7112e62e39f0523f2db31cbcbadab
size 1444568793
|