🛡️ DevOps-Healer-3B (QLoRA Fine-Tuned GGUF & LoRA)
devops-healer-3b-gguf is a specialized 3.2B-parameter Large Language Model fine-tuned using 4-bit QLoRA (NF4) on Llama-3.2-3B-Instruct for autonomous Docker & Kubernetes incident diagnosis and self-healing remediation.
It powers the Self-Healing DevOps Agent multi-agent system built with CrewAI, FAISS Vector Memory, and Langfuse.
🎯 What Does This Model Do?
Given raw container/pod state, exit codes, Kubernetes Warning Events, and tail logs, the model outputs a deterministic, structured remediation plan:
ERROR_TYPE: <classification> | ACTION: <remediation_tool> | SEVERITY: <low|medium|high|critical> | ROOT_CAUSE: <entity-aware diagnosis>
Supported Failure Modes (Docker & Kubernetes)
| Runtime | Error Type | Recommended Action | Description |
|---|---|---|---|
| Docker | OOM_KILLED | increase_memory | Container killed by cgroup OOM killer (ExitCode 137 / OOMKilled: true) |
| Docker | PORT_CONFLICT | free_port | EADDRINUSE / bind() failed: Address already in use |
| Docker | DISK_FULL | prune_docker | Errno 28: No space left on device |
| Docker | CONFIG_ERROR | check_env_vars | Missing required environment variables or credentials |
| Docker | NETWORK_ERROR | restart_with_delay | Upstream dependency connection refused (Redis, Postgres, Kafka, etc.) |
| Docker | CLEAN_EXIT | restart | Graceful exit (ExitCode 0) |
| Kubernetes | K8S_OOM_KILLED | patch_deployment_memory | Pod OOMKilled (ExitCode 137) — computes scaled Deployment memory limit (128Mi -> 512Mi) |
| Kubernetes | K8S_IMAGE_PULL_BACKOFF | rollback_deployment | ImagePullBackOff / ErrImagePull — rolls back Deployment to previous revision |
| Kubernetes | K8S_CONFIG_ERROR | slack_alert | CreateContainerConfigError (missing K8s Secret or ConfigMap) |
| Kubernetes | K8S_CRASH_LOOP | rollback_and_alert | CrashLoopBackOff due to application exception or panic |
| Kubernetes | K8S_PROBE_FAILURE | restart_pod | Liveness/Readiness probe timeout or worker deadlock |
| Kubernetes | K8S_UNSCHEDULABLE | slack_alert | Pod stuck Pending due to insufficient cluster CPU/memory |
🚀 Quickstart
1. Run Locally with Ollama
ollama run hf.co/nikhiill/devops-healer-3b-gguf
2. Use with CrewAI
from crewai import LLM
llm = LLM(
model="ollama/hf.co/nikhiill/devops-healer-3b-gguf",
base_url="http://localhost:11434"
)
🏋️ Training Details (QLoRA)
- Base Model:
Llama-3.2-3B-Instruct - Fine-Tuning Method: 4-bit QLoRA (
nf4double quantization +float32LoRA adapters) - LoRA Hyperparameters: Rank
r=16,lora_alpha=16,lora_dropout=0.05, target modules:q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj(~24.3Mtrainable parameters /0.75%of total 3.23B) - Optimizer & Schedule:
paged_adamw_8bit, learning rate2e-4, cosine schedule - Dataset: 800 unique Docker & Kubernetes failure logs with 80 validation examples across 12 failure categories.
👤 Author
Built by Nikhil Ganorkar — DevOps & AI/ML Engineer GitHub Repository: niikkkhiil/Orchestrating_agent