Dedicated Endpoints

Run this model inference on single tenant GPU with unmatched speed and reliability at scale.

Learn more
Container

Run this model inference with full control and performance in your environment.

Learn more

Get help setting up a custom Dedicated Endpoints.

Talk with our engineer to get a quote for reserved GPU instances with discounts.

README

License: mit

Model details

FieldValue
Base modelmicrosoft/Phi-3-mini-4k-instruct
Fine-tuning methodQLoRA (4-bit) + PEFT LoRA
LoRA rank16
Target modulesq_proj, v_proj
Training epochs3
TaskSRE 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 PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
base = 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 details

Supported Functionality

Model APIs

Dedicated Endpoints

Container

More information

Explore FriendliAI today