Downloads · 30 days
16
100% of all-time downloads
Kungumapriyaa/DriveTwinLLM
DriveTwinLLM is a text generation model from Kungumapriyaa. Use it when you need the model to write or continue text. It is set up for peft.
DriveTwinLLM is an instruction-tuned, physics-grounded automotive diagnostic language model built on top of Qwen/Qwen2.5-3B-Instruct. It was fine-tuned using LoRA on NVIDIA B200 GPU hardware (180 GB VRAM) to achieve 9…
Downloads · 30 days
16
100% of all-time downloads
All-time downloads
16
Public
Repo size
131 MB
Likes
0
Public
Click a slice to open those files.
.safetensors120 MB · 91%
From the Hugging Face model README
DriveTwinLLM is an instruction-tuned, physics-grounded automotive diagnostic language model built on top of Qwen/Qwen2.5-3B-Instruct. It was fine-tuned using LoRA on NVIDIA B200 GPU hardware (180 GB VRAM) to achieve 98.13% evaluation token accuracy on real-world vehicle trouble codes, live ECU telemetry, and OEM service manuals.
The model enforces strict zero-hallucination guardrails and features a specialized Dual-Persona Architecture:
P9999), redirecting the user to monitored engine channels (Coolant Temp: 86.1°C, Oil Temp: 90.3°C, IAT: 28.3°C).Qwen/Qwen2.5-3B-Instruct1632q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj0.04320.070598.13%import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model_id = "Qwen/Qwen2.5-3B-Instruct"
lora_model_id = "Kungumapriyaa/DriveTwinLLM"
tokenizer = AutoTokenizer.from_pretrained(lora_model_id)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
model = PeftModel.from_pretrained(base_model, lora_model_id)
messages = [
{
"role": "system",
"content": "You are Drive-Twin Driver Care AI. Explain simply like to a child, provide safe driving limits, and approximate billing breakdown."
},
{
"role": "user",
"content": "My check engine light is on for Cylinder 3 misfire (P0303). How much will this cost to fix?"
}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.3)
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))