Instructions to use thrinath25/qwen2.5-0.5b-resume-parser with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use thrinath25/qwen2.5-0.5b-resume-parser with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M # Run inference directly in the terminal: llama cli -hf thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M # Run inference directly in the terminal: llama cli -hf thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M
Use Docker
docker model run hf.co/thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use thrinath25/qwen2.5-0.5b-resume-parser with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "thrinath25/qwen2.5-0.5b-resume-parser" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "thrinath25/qwen2.5-0.5b-resume-parser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M
- Ollama
How to use thrinath25/qwen2.5-0.5b-resume-parser with Ollama:
ollama run hf.co/thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M
- Unsloth Desktop
- Pi
How to use thrinath25/qwen2.5-0.5b-resume-parser with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use thrinath25/qwen2.5-0.5b-resume-parser with Docker Model Runner:
docker model run hf.co/thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M
- Lemonade
How to use thrinath25/qwen2.5-0.5b-resume-parser with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M
Run and chat with the model
lemonade run user.qwen2.5-0.5b-resume-parser-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use thrinath25/qwen2.5-0.5b-resume-parser with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use thrinath25/qwen2.5-0.5b-resume-parser with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "thrinath25/qwen2.5-0.5b-resume-parser:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Qwen2.5-0.5B Resume Parser
A fine-tuned Qwen2.5-0.5B-Instruct model specialized for resume/CV parsing and structured candidate information extraction.
The model takes resume text as input and returns structured JSON containing candidate information, skills, experience, education, certifications, projects, awards, and spoken languages.
๐ Experiment with the Model
For a FastAPI API and web UI to experiment with the model:
GitHub: https://github.com/gaddamthrinath/qwen2.5-0.5b-resume-parser
git clone https://github.com/gaddamthrinath/qwen2.5-0.5b-resume-parser.git
cd qwen2.5-0.5b-resume-parser
Model Details
| Property | Details |
|---|---|
| Base Model | Qwen/Qwen2.5-0.5B-Instruct |
| Parameters | 0.5B |
| Task | Resume parsing / information extraction |
| Fine-tuning | SFT |
| Input | Resume/CV text |
| Output | Structured JSON |
| Format | GGUF |
| Quantizations | Q4_K_M, Q8_0 |
| Context | 8192 tokens |
| Temperature | 0 |
| Language | English |
OCR & Layout Preservation
For PDF/image resumes, preserving the original layout and reading order is recommended.
In our experiments, layout-preserved OCR text generally produced better parsing results than flattening the entire resume into one continuous string.
This is especially important for:
- Multi-column resumes
- Section headings
- Job titles and companies
- Employment dates
- Bullet points
- Tables
- Contact information
You can experiment with LlamaLiteParser or other layout-aware OCR/document parsing tools.
The important principle is:
Preserve useful document layout and reading order before passing the text to the model.
Output Schema
{
"full_name": "string or null",
"email": "string or null",
"phone": "string or null",
"location": {
"city": "string or null",
"state": "string or null",
"country": "string or null"
},
"links": ["string"],
"summary": "string or null",
"skills": ["string"],
"experience": [
{
"company": "string or null",
"title": "string or null",
"location": "string or null",
"start_date": "string or null",
"end_date": "string or null",
"description": "string or null"
}
],
"education": [
{
"institution": "string or null",
"degree": "string or null",
"start_date": "string or null",
"end_date": "string or null"
}
],
"certifications": [
{
"name": "string or null",
"issuer": "string or null",
"date": "string or null"
}
],
"awards_achievements": [
{
"name": "string or null",
"issuer": "string or null",
"date": "string or null",
"description": "string or null"
}
],
"projects": [
{
"name": "string or null",
"description": "string or null",
"url": "string or null",
"technologies": ["string"]
}
],
"spoken_languages": ["string"]
}
GGUF Versions
| File | Quantization | Size |
|---|---|---|
Qwen2.5-0.5B-Instruct.Q4_K_M.gguf |
Q4_K_M | ~398 MB |
Qwen2.5-0.5B-Instruct.Q8_0.gguf |
Q8_0 | ~531 MB |
Q4_K_M is recommended for lower memory usage.
Q8_0 is recommended when higher numerical precision is preferred.
Ollama
Because the strict resume-parsing system prompt and chat template are natively baked into the GGUF files, the Ollama Modelfile is extremely simple.
Create a file named Modelfile:
FROM ./Qwen2.5-0.5B-Instruct.Q4_K_M.gguf
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"
PARAMETER temperature 0
PARAMETER repeat_penalty 1.0
PARAMETER num_ctx 8192
PARAMETER num_predict 3072
Create the Ollama model:
ollama create qwen-resume-parser -f Modelfile
Run:
ollama run qwen-resume-parser
For Q8_0, simply change the FROM line to:
FROM ./Qwen2.5-0.5B-Instruct.Q8_0.gguf
Fine-Tuning
The model was fine-tuned using Supervised Fine-Tuning (SFT) to improve structured resume information extraction.
Resume Text
โ
Qwen2.5-0.5B-Instruct
โ
SFT Fine-Tuning
โ
Resume Parser
โ
Structured JSON
Training Dataset
Training dataset information will be added separately.
Limitations
Performance can vary depending on:
- Resume formatting
- OCR quality
- Resume length
- Non-English resumes
Responsible Use
This model is intended for resume information extraction and automation.
It should not be used as the sole basis for automated hiring, rejection, employment, or other high-impact decisions.
Base Model
This model is based on:
Qwen/Qwen2.5-0.5B-Instruct
Using the Model in Python (llama-cpp-python)
Since this repository contains GGUF files with the system prompt and Qwen ChatML template baked directly into their metadata, using the model in Python is extremely simple.
You do not need to pass the system prompt manually! Just pass the raw resume text as a user message, and the model will automatically apply the strict parsing rules and output the JSON.
from llama_cpp import Llama
# Load the model directly from Hugging Face
llm = Llama.from_pretrained(
repo_id="thrinath25/qwen2.5-0.5b-resume-parser",
filename="Qwen2.5-0.5B-Instruct.Q4_K_M.gguf",
n_ctx=4096,
verbose=False
)
resume_text = """
John Doe
Software Engineer
...
"""
# The baked-in chat template automatically applies the system prompt!
response = llm.create_chat_completion(
messages=[
{"role": "user", "content": resume_text}
],
temperature=0.0
)
print(response['choices'][0]['message']['content'])
Unlike Ollama GGUF (where the
Modelfilebakes the system prompt into the registered model), rawmodel.safetensorsweights do not have the system prompt baked into the file.The fine-tuned model is strictly sensitive to the exact system prompt. When running inference with Hugging Face Transformers, vLLM, or custom pipelines, you must provide the exact system prompt to ensure structured JSON output.
SYSTEM PROMPT
You are an expert, strict resume parsing assistant.
Extract structured candidate information from the provided resume text into a single valid JSON object.
<json_schema>
{
"full_name": "string or null",
"email": "string or null",
"phone": "string or null",
"location": {
"city": "string or null",
"state": "string or null",
"country": "string or null"
},
"links": ["string"],
"summary": "string or null",
"skills": ["string"],
"experience": [
{
"company": "string or null",
"title": "string or null",
"location": "string or null",
"start_date": "string or null",
"end_date": "string or null",
"is_current": "boolean",
"description": "string or null",
"highlights": ["string"]
}
],
"education": [
{
"institution": "string or null",
"degree": "string or null",
"field_of_study": "string or null",
"start_date": "string or null",
"end_date": "string or null",
"gpa": "string or null"
}
],
"certifications": [
{
"name": "string or null",
"issuer": "string or null",
"date": "string or null"
}
],
"awards_achievements": [
{
"name": "string or null",
"issuer": "string or null",
"date": "string or null",
"description": "string or null"
}
],
"projects": [
{
"name": "string or null",
"description": "string or null",
"technologies": ["string"],
"url": "string or null"
}
],
"spoken_languages": ["string"]
}
</json_schema>
<rules>
1. Strict Grounding: Extract ONLY facts explicitly stated in the text. Never invent, extrapolate, or hallucinate missing details.
2. Missing or Uncertain Data: If any field, date, or detail is absent or not 100% grounded in the text, strictly output null for strings/objects and [] for arrays (e.g. education, certifications, awards_achievements, projects, spoken_languages).
3. Spoken Languages: "spoken_languages" refers EXCLUSIVELY to human natural languages.
4. Output Contract: Output ONLY the raw JSON object. Do not include markdown code fences (no ```json), commentary, or conversational filler.
</rules>
License
Apache 2.0
Links
- Hugging Face: https://huggingface.co/thrinath25/qwen2.5-0.5b-resume-parser
- GitHub / FastAPI / UI: https://github.com/gaddamthrinath/qwen2.5-0.5b-resume-parser
- Downloads last month
- 611