Edit model card

LoRA fine-tuned Llama-3.1-Storm-8B on CV/resume and job description matching task

Alt text

Model Details

Model Description

Tired of sifting through endless resumes and job descriptions? Meet the newest AI talent matchmaker, crafted on a customized version of LlamaFactory.AI! This model delivers comprehensive candidate evaluations by analyzing the intricate relationships between resumes and job requirements. The model processes detailed instructions alongside CV and job description inputs to generate thorough matching analyses, complete with quantitative scores and specific recommendations. Going beyond traditional keyword matching, it evaluates candidate qualifications in context, providing structured insights that help streamline the recruitment process. This tool represents a significant step forward in bringing objective, consistent, and scalable candidate assessment to HR professionals and hiring managers. Developed to enhance recruitment efficiency while maintaining high accuracy in candidate evaluation, this model demonstrates the practical application of AI in solving real-world hiring challenges

How to Get Started with the Model


from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel, PeftConfig

base_model_name = "akjindal53244/Llama-3.1-Storm-8B"

# Load the base model
base_model = AutoModelForCausalLM.from_pretrained(base_model_name)
tokenizer = AutoTokenizer.from_pretrained(base_model_name)

# Load the LoRA adapter
peft_model_id = "LlamaFactoryAI/cv-job-description-matching"
config = PeftConfig.from_pretrained(peft_model_id)
model = PeftModel.from_pretrained(base_model, peft_model_id)

# Use the model
messages = [
    {
        "role": "system",
        "content": """You are an advanced AI model designed to analyze the compatibility between a CV and a job description. You will receive a CV and a job description. Your task is to output a structured JSON format that includes the following:

1. matching_analysis: Analyze the CV against the job description to identify key strengths and gaps.
2. description: Summarize the relevance of the CV to the job description in a few concise sentences.
3. score: Provide a numerical compatibility score (0-100) based on qualifications, skills, and experience.
4. recommendation: Suggest actions for the candidate to improve their match or readiness for the role.

Your output must be in JSON format as follows:
{
  "matching_analysis": "Your detailed analysis here.",
  "description": "A brief summary here.",
  "score": 85,
  "recommendation": "Your suggestions here."
}
""",
    },
    {"role": "user", "content": "<CV> {cv} </CV>\n<job_description> {job_description} </job_description>"},
]
inputs = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt"
)
outputs = model.generate(inputs, max_new_tokens=128)
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_text)

Model Card Authors

@xbeket

Model Card Contact

Discord

Framework versions

  • PEFT 0.12.0
Downloads last month
246
Inference API
Unable to determine this model’s pipeline type. Check the docs .

Model tree for LlamaFactoryAI/cv-job-description-matching

Adapter
(1)
this model