Downloads · 30 days
19
5% of all-time downloads
rahulvk007/dockerllama
dockerllama is a text generation model from rahulvk007. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.2.
DockerLlama is a Transformers model designed to interpret natural language queries and generate Docker commands. This model facilitates quick and easy command generation for Docker operations, making it ideal for user…
Downloads · 30 days
19
5% of all-time downloads
All-time downloads
416
Public
Parameters
1.2B
2.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
DockerLlama is a Transformers model designed to interpret natural language queries and generate Docker commands. This model facilitates quick and easy command generation for Docker operations, making it ideal for users who want to interact with Docker without memorizing command syntax.
DockerLlama, developed as a command-generation model, translates user requests into precise Docker commands. It supports use cases like querying the health of containers, creating networks, and managing Docker resources. DockerLlama is particularly useful for DevOps engineers, software developers, and IT professionals working with containerized applications.
DockerLlama is used directly to translate natural language queries into Docker commands. For example, "Give me a list of running containers that are healthy" would be translated into docker ps --filter 'status=running' --filter 'health=healthy' command.
The model is not suited for general natural language tasks unrelated to Docker or for use cases outside of Docker command generation.
DockerLlama is focused on Docker commands, so its performance on unrelated queries or commands not supported by Docker may produce incorrect or irrelevant responses.
Users should verify the generated Docker commands before executing them to avoid unintended effects on their Docker environment.
To deploy the model locally, you can use VLLM. Here are some commands:
Command to deploy with VLLM:
docker run --runtime nvidia --gpus all -p 9000:8000 --ipc=host vllm/vllm-openai:latest --model rahulvk007/dockerllama
If you have a low-memory machine with an older GPU (like GTX 1650), try this:
docker run --gpus all -p 9000:8000 --ipc=host vllm/vllm-openai:latest --model rahulvk007/dockerllama --dtype=half --max-model-len=512
Use the following system prompt to ensure the model translates queries accurately:
translate this sentence in docker command
Example Request:
To interact with the deployed model, make a POST request to http://localhost:9000/v1/chat/completions (change the endpoint to your deployment url) with the following payload:
{
"model": "rahulvk007/dockerllama",
"messages": [
{"role": "system", "content": "translate this sentence in docker command"},
{"role": "user", "content": "Give me a list of running containers that are healthy."}
]
}
The model was fine-tuned using the dataset MattCoddity/dockerNLcommands, which includes natural language commands and their Docker command equivalents.