Downloads · 30 days
12
1% of all-time downloads
justinthelaw/SmolLM2-360M-Instruct-Resume-Cover-Letter-SFT
SmolLM2-360M-Instruct-Resume-Cover-Letter-SFT is a text generation model from justinthelaw. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A fine-tuned version of HuggingFaceTB/SmolLM2-360M-Instruct trained with a two-stage pipeline (SFT + DPO) to answer questions about Justin's professional background, skills, and experience.
Downloads · 30 days
12
1% of all-time downloads
All-time downloads
1.2K
Public
Parameters
362M
3.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.onnx2.2 GB · 66%
From the Hugging Face model README
A fine-tuned version of HuggingFaceTB/SmolLM2-360M-Instruct trained with a two-stage pipeline (SFT + DPO) to answer questions about Justin's professional background, skills, and experience.
This model is designed for browser-based inference using transformers.js. It powers a personal website chatbot that can answer questions about Justin's resume, work experience, education, and skills.
The model is trained using a SFT (Supervised Fine-Tuning) approach, where factual memorization is enforced via conversation-formatted QA pairs.
This repository contains multiple model formats:
| Format | Location | Use Case |
|---|---|---|
| SafeTensors | / (root) | Python/PyTorch inference |
| ONNX | /onnx/ | Full precision and quantized weights for the ONNX Runtime |
import { pipeline } from "@huggingface/transformers";
const generator = await pipeline(
"text-generation",
"justinthelaw/SmolLM2-360M-Instruct-Resume-Cover-Letter-SFT",
{ dtype: "q8" } // Uses model_quantized.onnx
);
const output = await generator("What is Justin's background?", {
max_new_tokens: 256,
temperature: 0.7,
});
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("justinthelaw/SmolLM2-360M-Instruct-Resume-Cover-Letter-SFT")
tokenizer = AutoTokenizer.from_pretrained("justinthelaw/SmolLM2-360M-Instruct-Resume-Cover-Letter-SFT")
prompt = "What is Justin's background?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model is intended for:
This model is released under the Apache 2.0 license.