Downloads · 30 days
12
11% of all-time downloads
Zeeshan506/echohire-qgen-distilgpt2
echohire-qgen-distilgpt2 is a text generation model from Zeeshan506. 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.
This model is a fine-tuned DistilGPT-2 designed to generate interview questions based on a job title and associated skills. It was trained on a curated dataset of ~100 jobs, each with 17–19 questions, to produce relev…
Downloads · 30 days
12
11% of all-time downloads
All-time downloads
105
Public
Parameters
81.9M
328 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors328 MB · 99%
From the Hugging Face model README
This model is a fine-tuned DistilGPT-2 designed to generate interview questions based on a job title and associated skills. It was trained on a curated dataset of ~100 jobs, each with 17–19 questions, to produce relevant, structured interview questions for recruiters or learning platforms.
This model generates questions automatically given a prompt with the job title and skills. The outputs are intended to help recruiters, HR teams, or training platforms quickly generate relevant interview questions without manually writing each one.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "Zeeshan506/echohire-qgen-distilgpt2"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "Job Title: Backend Developer\nSkills: Python, FastAPI, PostgreSQL\nQuestions:"
inputs = tokenizer(prompt, return_tensors="pt")
input_ids = inputs["input_ids"]
attention_mask = (input_ids != tokenizer.pad_token_id).long()
output_ids = model.generate(
input_ids=input_ids,
attention_mask=attention_mask,
max_new_tokens=300,
num_beams=3,
no_repeat_ngram_size=2
)
generated_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)
print(generated_text)
Training Loss: Cross-entropy loss tracked during fine-tuning.
Human Review: Qualitative evaluation for relevance, coherence, and completeness of generated questions.
Automated Evaluation (BERTScore):
We performed BERTScore evaluation on a subset of the dataset (first 10 examples) to measure semantic similarity between the generated questions and reference completions using contextual embeddings.
BERTScore Results (first 10 examples):
These results indicate that the model generates questions that are highly aligned with reference completions, confirming the quality and effectiveness of the fine-tuned model.
If you use this model, please cite as:
Shah, S. Z. (2025). EchoHire Question Generator (DistilGPT-2 Fine-tuned). Hugging Face.
(https://huggingface.co/Zeeshan506/echohire-qgen-distilgpt2)
@misc{shah2025echohire,
title={EchoHire Question Generator (DistilGPT-2 Fine-tuned)},
author={Shah, Syed Zeeshan},
year={2025},
howpublished={\url{https://huggingface.co/Zeeshan506/echohire-qgen-distilgpt2}}
}