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 training_args.bin from MohammadOthman/megatron-gpt2-classification: direct link, hf CLI and curl.
- Browser
- Download file 4.92 kB
-
https://huggingface.co/MohammadOthman/megatron-gpt2-classification/resolve/main/training_args.bin
- Command line
-
hf download hf://MohammadOthman/megatron-gpt2-classification/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/MohammadOthman/megatron-gpt2-classification/resolve/main/training_args.bin
4.92 kB
- Xet hash:
- a508bab14340e02681ac4cf626b5c40a871975373bc5702494cf535ced79b784
- Size of remote file:
- 4.92 kB
- SHA256:
- 1a0c90ca4f81aadc9867932bf1a1dca895731865f925166dddcb26d0981a97d7
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.