Views
No views yet
unsloth/Qwen2.5-3B-Instructr=16, lora_alpha=16, lora_dropout=0q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projshimogerald/interview-coach-dataset (chat messages format, ~90/10 train/val).1from unsloth import FastLanguageModel
2
3model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name="shimogerald/lora_interview_coach",
5 max_seq_length=2048,
6 load_in_4bit=True,
7)
8FastLanguageModel.for_inference(model)
9
10messages = [{"role": "user", "content": "What is the difference between PUT and PATCH?"}]
11prompt = tokenizer.apply_chat_template(
12 messages, tokenize=False, add_generation_prompt=True
13)
14inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
15out = model.generate(**inputs, max_new_tokens=256, do_sample=False)
16print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))PeftModel.from_pretrained.