How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "azminetoushikwasi/gpt2-news-headlines-gen-CC25K"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "azminetoushikwasi/gpt2-news-headlines-gen-CC25K",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Use Docker
docker model run hf.co/azminetoushikwasi/gpt2-news-headlines-gen-CC25K
Quick Links

GPT-2 News Title Generator

This model is a fine-tuned version of the GPT-2 model, specifically adapted for generating news article titles. It was trained on a diverse subset of the CC News dataset.

Training

This model was fine-tuned using LoRA (Low-Rank Adaptation) on a subset of the CC News dataset. The training focused on learning to generate concise and relevant titles based on article content. Limitations

The model's performance may vary depending on the length and complexity of the input article.

It may occasionally generate titles that are not fully coherent or relevant to the article content. The model's knowledge is limited to its training data and cut-off date.

Downloads last month
11
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train azminetoushikwasi/gpt2-news-headlines-gen-CC25K