Resume-JD-Matcher
compact fine-tune for automated resume analysis
2 min readupdated
The model is based on Qwen2.5-1.5B-Instruct and trained to match a job description (Job Description) and candidate resume, outputting a structured JSON with a match score, a list of matched and missing skills, and tips for improvement. Unlike the base version, this variant guarantees 100% valid JSON and follows strict rules for evaluating experience and skills more accurately. The model is great for automated initial screening of applications or helping candidates prepare their resumes.
Key features
- Precise JSON: outputs fully valid JSON 100% of the time on the test set.
- Accurate scoring: verdict accuracy increased from 37.5% to 77.9% compared to the base model.
- Actionable advice: generates specific recommendations for candidates to close skill gaps.
- Lightweight: the 1.5B parameter size allows running the model on any laptop or free Google Colab T4.
What you can do
- Integrate into a bot: set up a Telegram bot to quickly check candidate resumes against open positions.
- Analyze your resume: run a script locally to find missing skills and get tips for tailoring your resume to a specific role.
- Run test screening: automate preliminary candidate application filtering for a small HR team.
Example
import json
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "adityamangal98/resume-jd-matcher-qwen2.5-1.5b"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
SYSTEM = ("You are a resume screener. Compare the resume with the job description and reply with only a JSON object with keys: "
"match_score (0-100), verdict (Strong fit | Good fit | Partial fit | Weak fit), matched_skills, missing_required, "
"missing_nice_to_have, experience, tip.")
user = f"JOB DESCRIPTION:\n{jd_text}\n\nRESUME:\n{resume_text}"
enc = tok.apply_chat_template([{"role": "system", "content": SYSTEM}, {"role": "user", "content": user}],
add_generation_prompt=True, return_tensors="pt", return_dict=True).to(model.device)
out = model.generate(**enc, max_new_tokens=400, do_sample=False)
print(json.loads(tok.decode(out[0][enc["input_ids"].shape[1]:], skip_special_tokens=True)))
Read more
Details• Benchmarks: verdict accuracy is 77.9%, match score MAE is 5.5, missing skills F1 is 0.95.
• Hardware and VRAM: runs on GPUs with modest VRAM (e.g., RTX 4070 laptop) thanks to the 1.5B size.
• Training: used LoRA (r=16, alpha=32) on a synthetic dataset of 1,040 examples.
• Limitations: the model was trained exclusively on synthetic data and should not be used as the sole basis for hiring.










Comments