Views
No views yet
| Field | Description |
|---|---|
| domain | AI, General Programming, Web Development |
| question | Interview question from that domain |
| answer | Ground-truth, explanation-style answer |
"Answer this <domain> interview question: <question>""<answer>"1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3
4model_id = "Shlok307/ai_interview-lora"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id,
9 device_map="auto",
10 torch_dtype=torch.float16
11)
12
13prompt = [
14 {"role": "user", "content": "Answer this AI interview question: What is backpropagation?"}
15]
16
17input_ids = tokenizer.apply_chat_template(
18 prompt,
19 tokenize=True,
20 add_generation_prompt=True,
21 return_tensors="pt"
22).to(model.device)
23
24output = model.generate(
25 input_ids,
26 max_new_tokens=200,
27 do_sample=True,
28 temperature=0.7
29)
30
31print(tokenizer.decode(output[0], skip_special_tokens=True))@model{gemma3_interview_lora,
title={Gemma 3 Interview LoRA — 1B IT},
author={Shlok Talhar},
year={2025},
url={https://huggingface.co/Shlok307/gemma3-interview-lora}
}