Instructions to use MohammadOthman/megatron-gpt2-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MohammadOthman/megatron-gpt2-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="MohammadOthman/megatron-gpt2-classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("MohammadOthman/megatron-gpt2-classification") model = AutoModelForSequenceClassification.from_pretrained("MohammadOthman/megatron-gpt2-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download optimizer.pt from MohammadOthman/megatron-gpt2-classification: direct link, hf CLI and curl.
- Browser
- Download file 996 MB
-
https://huggingface.co/MohammadOthman/megatron-gpt2-classification/resolve/main/optimizer.pt
- Command line
-
hf download hf://MohammadOthman/megatron-gpt2-classification/optimizer.pt
-
curl -L -o optimizer.pt https://huggingface.co/MohammadOthman/megatron-gpt2-classification/resolve/main/optimizer.pt
996 MB
- Xet hash:
- e71555ed578e0472cc3313525e34b6d45868dea407a765ac42d4cea7508f7e48
- Size of remote file:
- 996 MB
- SHA256:
- 4802901405ba585faa99de7e1bb8e3f1778bd1fd1662498efbdae95eef961581
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.