Qwen2.5-Coder RTU Assistant
Fine-tuned model for generating PowerShell scripts to configure RTU devices.
Model Description
This is a fine-tuned version of Qwen2.5-Coder (1.5B) specialized for RTU device management.
Base Model: Qwen2.5-Coder-1.5B
Quantization: Q4_K_M (GGUF)
Use Case: Industrial automation, RTU configuration, PowerShell script generation
Training Data
The model was fine-tuned on PowerShell scripting examples for:
- Backup Generation - Creating and retrieving device backups
- Configuration Upload - Uploading RCD configuration files
- Firmware Updates - Uploading and applying firmware updates
- User Management - Managing user accounts and roles
Usage
With Ollama
# Pull the model
ollama pull hf.co/Courbeau/qwen-1.5b-rtu
# Run interactively
ollama run hf.co/Courbeau/qwen-1.5b-rtu
With Modelfile (Custom Configuration)
Create a Modelfile:
FROM hf.co/Courbeau/qwen-1.5b-rtu
SYSTEM """
You are an expert assistant for configuring RTU devices. Always respond as a JSON object with exactly these keys: "reasoning" (string, concise numbered plan, max 6 lines), and EITHER "powershell" (string, script only) OR "clarification" (string, single question).
Assume $connection active. DO NOT OUTPUT Connect-RTU or Disconnect-RTU commands.
"""
PARAMETER temperature 0.1
PARAMETER top_p 0.9
Then create your custom model:
ollama create qwen-rtu -f Modelfile
ollama run qwen-rtu
Example Prompts
Backup Generation:
Create a backup named RTU530ABackup and save it to C://backups/RTU530ABackup.bakpkg
Firmware Upload:
Upload firmware file from C://firmware/RTU_v2.bin and restart the device
User Management:
Create a new user named "Engineer1" with password "SecurePass123" and grant Engineer role
Output Format
The model generates JSON responses with:
reasoning: Step-by-step planpowershell: PowerShell script (when sufficient information is provided)clarification: Question for missing information (when needed)
Example output:
{
"reasoning": "1. Create backup named RTU530ABackup.\n2. Download to specified path.",
"powershell": "{Backup commands}"
}
Requirements
- Ollama installed
- PowerShell 5.1 or higher
License
Please refer to the Qwen2.5 license for base model terms.
Citation
If you use this model, please cite:
@misc{qwen-rtu,
author = {Courbeau},
title = {Qwen2.5-Coder RTU Assistant},
year = {2025},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/Courbeau/qwen-1.5b-rtu}}
}
- Downloads last month
- 125
Hardware compatibility
Log In
to view the estimation
We're not able to determine the quantization variants.