Run this model inference on single tenant GPU with unmatched speed and reliability at scale.
Run this model inference with full control and performance in your environment.
Get help setting up a custom Dedicated Endpoints.
Talk with our engineer to get a quote for reserved GPU instances with discounts.
README
License: mitModel details
| Field | Value |
|---|---|
| Base model | microsoft/Phi-3-mini-4k-instruct |
| Fine-tuning method | QLoRA (4-bit) + PEFT LoRA |
| LoRA rank | 16 |
| Target modules | q_proj, v_proj |
| Training epochs | 3 |
| Task | SRE Runbook Q&A |
Before vs After (ROUGE scores)
See eval_results.json for full before/after comparison on the test set.
Usage
python
from peft import PeftModelfrom transformers import AutoModelForCausalLM, AutoTokenizerimport torchbase = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-4k-instruct",torch_dtype=torch.float16,device_map="auto",trust_remote_code=True,)model = PeftModel.from_pretrained(base, "amarshiv86/p07-sre-lora-phi3")tokenizer = AutoTokenizer.from_pretrained("amarshiv86/p07-sre-lora-phi3")prompt = "<|user|>\nWhat steps should I take when a pod is in CrashLoopBackOff?<|end|>\n<|assistant|>\n"inputs = tokenizer(prompt, return_tensors="pt")output = model.generate(**inputs, max_new_tokens=200)print(tokenizer.decode(output[0], skip_special_tokens=True))
Training data
SRE runbook Q&A pairs covering: incident response, Kubernetes troubleshooting, SLO/SLI definitions, on-call procedures, and post-mortem templates.
Links
Model provider
amarshiv86
Model tree
Base
microsoft/Phi-3-mini-4k-instruct
Adapter
this model
Modalities
Input
Text
Output
Text
Pricing
Dedicated Endpoints
View detailsSupported Functionality
Model APIs
Dedicated Endpoints
Container
More information