Instructions to use aieng-lab/gpt2-medium_commit-intent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aieng-lab/gpt2-medium_commit-intent with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="aieng-lab/gpt2-medium_commit-intent")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("aieng-lab/gpt2-medium_commit-intent") model = AutoModelForSequenceClassification.from_pretrained("aieng-lab/gpt2-medium_commit-intent", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from aieng-lab/gpt2-medium_commit-intent: direct link, hf CLI and curl.
- Browser
- Download file 3.56 MB
-
https://huggingface.co/aieng-lab/gpt2-medium_commit-intent/resolve/9e55f8dcc00a581fcfb93af804019039bfe9ef0f/tokenizer.json
- Command line
-
hf download hf://aieng-lab/gpt2-medium_commit-intent@9e55f8dcc00a581fcfb93af804019039bfe9ef0f/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/aieng-lab/gpt2-medium_commit-intent/resolve/9e55f8dcc00a581fcfb93af804019039bfe9ef0f/tokenizer.json
3.56 MB
File too large to display, you can check the raw version instead.