Downloads · 30 days
17
10% of all-time downloads
dexxiez/quora-title-gen
quora-title-gen is a text generation model from dexxiez. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
A fine-tuned GPT-2 model specialized for generating Quora-style question titles. This model has been trained on a curated dataset of Quora question titles to learn the patterns and style of effective question formulat…
Downloads · 30 days
17
10% of all-time downloads
All-time downloads
169
Public
Parameters
124M
2 GB on disk
Likes
0
Public
Click a slice to open those files.
.onnx498 MB · 50%
From the Hugging Face model README
A fine-tuned GPT-2 model specialized for generating Quora-style question titles. This model has been trained on a curated dataset of Quora question titles to learn the patterns and style of effective question formulation.
This model is a fine-tuned version of GPT-2 specifically designed to generate compelling and realistic Quora question titles. It can be used for:
from transformers import GPT2LMHeadModel, GPT2Tokenizer
model_name = "dexxiez/quora-title-gen"
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
model = GPT2LMHeadModel.from_pretrained(model_name)
# Generate a random title
input_text = "<|startoftext|>"
inputs = tokenizer.encode(input_text, return_tensors="pt")
outputs = model.generate(
inputs,
max_length=50,
temperature=0.8,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
title = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(title)
# Complete a partial question
prompt = "<|startoftext|>How to learn"
inputs = tokenizer.encode(prompt, return_tensors="pt")
outputs = model.generate(
inputs,
max_length=100,
temperature=0.8,
top_p=0.95,
top_k=50,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
completed_title = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(completed_title)
<|startoftext|>title<|endoftext|>)<|startoftext|>, <|endoftext|>, <|pad|>| Parameter | Recommended | Description |
|---|---|---|
temperature | 0.8-1.2 | Controls creativity (lower = more focused) |
top_p | 0.95 | Nucleus sampling threshold |
top_k | 50 | Top-k sampling limit |
max_length | 50-100 | Maximum tokens to generate |
Random Generation:
Text Completion:
Input: "How to learn"
Output: "How to learn data science without a computer science background?"
Input: "What is the best way"
Output: "What is the best way to prepare for coding interviews at FAANG companies?"
This model was trained on the dexxiez/quora-titles dataset, which contains:
@misc{quora-title-gen,
title={Quora Title Generator: Fine-tuned GPT-2 for Question Generation},
author={dexxiez},
year={2025},
url={https://huggingface.co/dexxiez/quora-title-gen}
}
MIT License