Text Generation
Transformers
English
Spanish
iot
smart-home
home-assistant
tool-calling
agent
cybersecurity
devops
ollama
inference-pipeline
autonomous-agent
raspberry-pi
qwen3-coder
Instructions to use MrMoz33/tokioai-coder-iot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MrMoz33/tokioai-coder-iot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MrMoz33/tokioai-coder-iot")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MrMoz33/tokioai-coder-iot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MrMoz33/tokioai-coder-iot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MrMoz33/tokioai-coder-iot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MrMoz33/tokioai-coder-iot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MrMoz33/tokioai-coder-iot
- SGLang
How to use MrMoz33/tokioai-coder-iot with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "MrMoz33/tokioai-coder-iot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MrMoz33/tokioai-coder-iot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "MrMoz33/tokioai-coder-iot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MrMoz33/tokioai-coder-iot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MrMoz33/tokioai-coder-iot with Docker Model Runner:
docker model run hf.co/MrMoz33/tokioai-coder-iot
File size: 6,937 Bytes
4b97c3b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 | [
{
"type": "function",
"function": {
"name": "execute_local",
"description": "Execute a shell command on the local machine. Use for system operations: install packages, check processes, network scans, file operations.",
"parameters": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "Shell command to execute (bash)"
},
"timeout": {
"type": "integer",
"description": "Timeout in seconds (default 30, max 120)"
}
},
"required": ["command"]
}
}
},
{
"type": "function",
"function": {
"name": "execute_raspi",
"description": "Execute a command on a Raspberry Pi via SSH.",
"parameters": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "Command to run on Raspi"
},
"timeout": {
"type": "integer",
"description": "Timeout in seconds (default 30, max 120)"
}
},
"required": ["command"]
}
}
},
{
"type": "function",
"function": {
"name": "execute_gcp",
"description": "Execute a command on a GCP VM via SSH.",
"parameters": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "Command to run on GCP"
},
"timeout": {
"type": "integer",
"description": "Timeout in seconds (default 30, max 120)"
}
},
"required": ["command"]
}
}
},
{
"type": "function",
"function": {
"name": "execute_router",
"description": "Execute a command on the router via SSH (root).",
"parameters": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "Command to run on router as root"
}
},
"required": ["command"]
}
}
},
{
"type": "function",
"function": {
"name": "read_file",
"description": "Read a file from local or remote systems.",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "File path. Use raspi:/path or gcp:/path for remote"
},
"lines": {
"type": "integer",
"description": "Max lines to read (default: all)"
}
},
"required": ["path"]
}
}
},
{
"type": "function",
"function": {
"name": "write_file",
"description": "Write content to a file.",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "File path. Use raspi:/path or gcp:/path for remote"
},
"content": {
"type": "string",
"description": "File content to write"
}
},
"required": ["path", "content"]
}
}
},
{
"type": "function",
"function": {
"name": "edit_file",
"description": "Replace a specific string in a file. old_text must be unique.",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "File path"
},
"old_text": {
"type": "string",
"description": "Exact text to find (must be unique)"
},
"new_text": {
"type": "string",
"description": "Replacement text"
}
},
"required": ["path", "old_text", "new_text"]
}
}
},
{
"type": "function",
"function": {
"name": "search_files",
"description": "Search for text patterns across files. Like grep -rn.",
"parameters": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"description": "Text or regex pattern to search"
},
"path": {
"type": "string",
"description": "Directory to search"
},
"glob": {
"type": "string",
"description": "File filter glob (e.g., '*.py')"
}
},
"required": ["pattern"]
}
}
},
{
"type": "function",
"function": {
"name": "robot_vision",
"description": "Capture a photo from the robot's camera and analyze it with a vision AI model.",
"parameters": {
"type": "object",
"properties": {
"question": {
"type": "string",
"description": "What to look for in the image (e.g. 'how many people?', 'describe the room')"
}
},
"required": []
}
}
},
{
"type": "function",
"function": {
"name": "diagnose",
"description": "Run system health diagnostics.",
"parameters": {
"type": "object",
"properties": {
"target": {
"type": "string",
"enum": ["local", "raspi", "gcp", "router", "all"],
"description": "Target system"
}
},
"required": ["target"]
}
}
},
{
"type": "function",
"function": {
"name": "memory",
"description": "Persistent memory across sessions. Actions: read, write, append, clear.",
"parameters": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": ["read", "write", "append", "clear"],
"description": "Memory operation"
},
"content": {
"type": "string",
"description": "Content to write/append"
}
},
"required": ["action"]
}
}
},
{
"type": "function",
"function": {
"name": "task",
"description": "Persistent task tracker across sessions.",
"parameters": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": ["add", "update", "list", "remove", "clear_done"],
"description": "Task operation"
},
"task": {
"type": "string",
"description": "Task description (for add)"
},
"id": {
"type": "integer",
"description": "Task ID (for update/remove)"
},
"status": {
"type": "string",
"enum": ["pending", "in_progress", "done", "blocked"],
"description": "New status"
},
"note": {
"type": "string",
"description": "Note to add"
}
},
"required": ["action"]
}
}
}
]
|