Resume ↔ JD Matcher (Qwen2.5-1.5B, fine-tuned)
Give this small model a job description and a resume, and it returns a structured JSON verdict:
{"match_score": 59, "verdict": "Partial fit",
"matched_skills": ["React", "JavaScript", "CSS", "Webpack", "REST APIs", "TypeScript"],
"missing_required": ["Git"], "missing_nice_to_have": ["Three.js", "Figma", "GraphQL", "Storybook"],
"experience": "0 yrs vs 1+ required: below",
"tip": "Close the gap on: Git (build a project or certification and add it to the resume)."}
Try it: see the usage code below. It runs on a free Colab T4 or any laptop GPU. This model is a screening aid, not a hiring decision.
Results
The test set has 104 resumes written for 26 job descriptions that were never seen in training. The split is by JD, and decoding is greedy.
| Metric | Base Qwen2.5-1.5B-Instruct | This model |
|---|---|---|
| Valid JSON | 96.2% | 100% |
| Verdict accuracy (4 classes) | 37.5% | 77.9% |
| Match-score MAE (0–100) | 21.3 | 5.5 |
| Missing-required-skills F1 | 0.02 | 0.95 |
The base model's main failure is mixing nice-to-have skills into the missing-required list. It also guesses the score instead of following a consistent rubric.
How the labels were made
The labels come from construction rules, not from an LLM's opinion:
- A local Apache-2.0 teacher (Qwen3-VL-8B-Instruct) wrote 260 job descriptions across 40 roles and 5 seniority levels. Each JD lists explicit required skills, nice-to-have skills and minimum years.
- For each JD, the generator chose what the candidate has: a random subset of the skills, plus unrelated skills, plus a number of years.
- The teacher wrote a resume using exactly those skills. Resumes that leaked a skill the candidate must not have, or dropped one they must have, were rejected (whole-word match).
- The score and verdict were computed with a fixed rubric:
| Part of the score | Weight |
|---|---|
| Required-skill coverage | 70% |
| Nice-to-have coverage | 12% |
| Experience (meets the minimum, or the ratio of years to the minimum) | 18% |
Verdict thresholds:
| Verdict | Score |
|---|---|
| Strong fit | ≥ 80 |
| Good fit | ≥ 62 |
| Partial fit | ≥ 40 |
| Weak fit | below 40 |
The data is published as adityamangal98/resume-jd-match-synthetic. It has 1,040 rows, all synthetic, with no real people's resumes.
How to use
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)))
Training
- Base model: Qwen/Qwen2.5-1.5B-Instruct (Apache-2.0)
- Method: LoRA (r=16, alpha=32, all projections), bf16, 3 epochs, effective batch size 16, max length 768. The loss covers the completion only. The adapter was merged into the base weights.
- Hardware: a single RTX 4070 laptop GPU (8 GB), about 20 minutes.
Limitations and responsible use
- The model was trained only on synthetic resumes and JDs. Real resumes with tables, unusual layouts or very long histories may score differently.
- It sometimes misses one missing skill. Skill matching is by name: "Postgres" and "PostgreSQL" can be treated as different skills.
- Experience is read from what the resume states. The model does not verify claims.
- Do not use it as the sole basis for hiring decisions. Use it to help candidates find gaps in their own resume, or as a first-pass aid with a human in the loop.
- The input is truncated at roughly 768 training tokens per example. Keep the JD and resume concise.
Author
Built by Aditya Mangal (Instagram @techwithadityamangal) as an open, laptop-trained demo of small-model fine-tuning.