Run this model with HF Jobs
Run aieng-lab/gpt2-large_comment-type-python on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/aieng-lab/gpt2-large_comment-type-python. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/aieng-lab/gpt2-large_comment-type-python on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use aieng-lab/gpt2-large_comment-type-python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aieng-lab/gpt2-large_comment-type-python with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="aieng-lab/gpt2-large_comment-type-python")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("aieng-lab/gpt2-large_comment-type-python") model = AutoModelForSequenceClassification.from_pretrained("aieng-lab/gpt2-large_comment-type-python", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from aieng-lab/gpt2-large_comment-type-python: direct link, hf CLI and curl.
- Browser
- Download file 824 Bytes
-
https://huggingface.co/aieng-lab/gpt2-large_comment-type-python/resolve/a8a25bcfe34324ffc9bd040b9f58f176bcb1dcd3/README.md
- Command line
-
hf download hf://aieng-lab/gpt2-large_comment-type-python@a8a25bcfe34324ffc9bd040b9f58f176bcb1dcd3/README.md
-
curl -L -o README.md https://huggingface.co/aieng-lab/gpt2-large_comment-type-python/resolve/a8a25bcfe34324ffc9bd040b9f58f176bcb1dcd3/README.md
824 Bytes
metadata
library_name: transformers
license: mit
language:
- en
metrics:
- f1
- precision
- recall
base_model:
- gpt2-large
pipeline_tag: text-classification
GPT-2 large for classifying code comments (multi-label)
This model classifies comments in Python code as 'usage', 'parameters', 'developmentNotes', 'expand' or 'summary'.
- Developed by: Fabian C. Peña, Steffen Herbold
- Finetuned from: gpt2-large
- Replication kit: https://github.com/aieng-lab/senlp-benchmark
- Language: English
- License: MIT
Citation
@misc{pena2025benchmark,
author = {Fabian Peña and Steffen Herbold},
title = {Evaluating Large Language Models on Non-Code Software Engineering Tasks},
year = {2025}
}