Downloads · 30 days
39
3% of all-time downloads
lakhera2023/devops-slm
devops-slm is a text generation model from lakhera2023. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
DevOps-SLM is a specialized instruction-tuned language model designed exclusively for DevOps tasks, Kubernetes operations, and infrastructure management. This model provides accurate guidance and step-by-step instruct…
Downloads · 30 days
39
3% of all-time downloads
All-time downloads
1.2K
Public
Parameters
494M
1000 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors988 MB · 98%
From the Hugging Face model README
DevOps-SLM is a specialized instruction-tuned language model designed exclusively for DevOps tasks, Kubernetes operations, and infrastructure management. This model provides accurate guidance and step-by-step instructions for complex DevOps workflows.
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("lakhera2023/devops-slm")
model = AutoModelForCausalLM.from_pretrained("lakhera2023/devops-slm")
# Create a Kubernetes deployment
messages = [
{"role": "system", "content": "You are a specialized DevOps assistant."},
{"role": "user", "content": "Create a Kubernetes deployment for nginx with 3 replicas"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([text], return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Input: "Create a Kubernetes deployment for a web application" Output: Complete YAML manifest with proper selectors, replicas, and container specifications
Input: "Create a Dockerfile for a Python Flask application" Output: Optimized Dockerfile with proper layering and security practices
This model was created through specialized fine-tuning on DevOps domain data, focusing on:
Apache 2.0 License
@misc{devops-slm,
title={DevOps Specialized Language Model},
author={DevOps AI Team},
year={2024},
url={https://huggingface.co/lakhera2023/devops-slm}
}
For questions about model usage or performance, please open an issue in the repository or contact the DevOps AI Research Team.