shimogerald/interview-coach-dataset
Viewer • Updated • 1.23k • 38 • 1
How to use shimogerald/lora_interview_coach with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("unsloth/qwen2.5-3b-instruct-unsloth-bnb-4bit")
model = PeftModel.from_pretrained(base_model, "shimogerald/lora_interview_coach")How to use shimogerald/lora_interview_coach with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for shimogerald/lora_interview_coach to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for shimogerald/lora_interview_coach to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for shimogerald/lora_interview_coach to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="shimogerald/lora_interview_coach",
max_seq_length=2048,
)LoRA adapter fine-tuned for software-engineering interview Q&A coaching.
unsloth/Qwen2.5-3B-Instructr=16, lora_alpha=16, lora_dropout=0q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projFine-tuned on shimogerald/interview-coach-dataset (chat messages format, ~90/10 train/val).
Practice / coaching-style answers to technical interview questions (APIs, systems, coding concepts, behavioral, etc.).
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="shimogerald/lora_interview_coach",
max_seq_length=2048,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
messages = [{"role": "user", "content": "What is the difference between PUT and PATCH?"}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=256, do_sample=False)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
If loading the adapter separately fails, load the base model then attach this repo with PEFT PeftModel.from_pretrained.
This qwen2 model was trained 2x faster with Unsloth