Downloads · 30 days
22
21% of all-time downloads
Dogacel/Qwen3-Coder-30B-A3B-Kubernetes-Instruct-LoRA
Qwen3-Coder-30B-A3B-Kubernetes-Instruct-LoRA is a machine learning model from Dogacel. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
⚠️ IMPORTANT: This is an adapter, not a full model. You must load it on top of the base model. The full model is also available at Dogacel/Qwen3-Coder-30B-A3B-Kubernetes-Instruct.
Downloads · 30 days
22
21% of all-time downloads
All-time downloads
107
Public
Repo size
118 MB
Likes
2
Public
Click a slice to open those files.
.safetensors107 MB · 87%
From the Hugging Face model README
⚠️ IMPORTANT: This is an adapter, not a full model. You must load it on top of the base model. The full model is also available at Dogacel/Qwen3-Coder-30B-A3B-Kubernetes-Instruct.
Qwen3-Coder-30B-A3B-Kubernetes-Instruct is a specialized fine-tune of Qwen3-Coder-30B-A3B-Instruct.
It is designed to act as an assistant for yoru Kubernetes related configuration troubleshooting, specifically optimized for YAML generation.
Developed by: Doğaç Eldenk, Robin Luo – Northwestern University
Model type: Large Language Model (Fine-tune)
Language(s) (NLP): English, YAML
License: Apache-2.0
Finetuned from model: Qwen/Qwen3-Coder-30B-A3B-Instruct
This model is designed to assist Site Reliability Engineers (SREs), DevOps professionals, and Platform Engineers. It acts as an expert assistant for:
kubectl describe outputs, and CrashLoopBackOff scenarios.kubectl apply --dry-run=client -f ...) before applying to production.extensions/v1beta1) or be unaware of very recent Alpha features.privileged: true) if not explicitly instructed otherwise.Users should treat this model as a "Copilot" rather than an autonomous operator. All generated YAML should be reviewed by a human and scanned by static code analyzers before deployment.
Use the code below to get started with the model.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# 1. Define Model IDs
base_model_id = "Qwen/Qwen3-Coder-30B-A3B-Instruct"
adapter_id = "Dogacel/Qwen3-Coder-30B-A3B-Kubernetes-Instruct-LoRA"
# 2. Load Base Model (with device_map for memory efficiency)
model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.float16,
device_map="auto",
low_cpu_mem_usage=True
)
# 3. Load the LoRA Adapter
model = PeftModel.from_pretrained(model, adapter_id)
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
# 4. Run Inference
messages = [
{"role": "system", "content": "You are a Kubernetes expert. Diagnose issues step-by-step, then provide the fixed YAML configuration."},
{"role": "user", "content": "When I run kubectl apply, I get the following error: error validation data: [ValidationError(Deployment.spec.template.spec.containers[0]): unknown field \"imagePullPolicy\" in io.k8s.api.core.v1.Container]"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=2048)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model is fine-tuned on over 20,000 samples of Kubernetes related Q&A pairs from the community forums.
Training took 2 epochs on 4 x H100 GPUs over 14 hours.
All Q&A pairs are processed by another LLM (GPT 4.1-mini) to have the same formatting,
["v_proj", "q_proj", "k_proj", "o_proj"]The evaluation is run on a validation set of 100 Q&A pairs and we compared YAML similarities of the generated fixes.

BibTeX:
[TODO]