Views
No views yet
| Property | Value |
|---|---|
| Base model | Qwen3.5-4B |
| Fine-tuning method | LoRA (r=8, alpha=8) |
| Training framework | Unsloth |
| Training examples | 810 |
| Epochs | 3 |
| Final training loss | ~0.023 |
| Quantization | Q4_K_M GGUF |
| Context length | 1024 tokens |
{"tool": "HassTurnOn", "parameters": {"name": "kitchen light", "domain": "light"}}{"tool": "HassLightSet", "parameters": {"area": "bedroom", "brightness": 50}}{"tool": "HassClimateSetTemperature", "parameters": {"temperature": 72}}1llama-server \
2 --model Qwen3.5-4B.Q4_K_M.gguf \
3 --port 8080 \
4 --host 0.0.0.0 \
5 --ctx-size 1024 \
6 --chat-template chatmlhttp://your-local-ip:8080/v1sk-local)1from llama_cpp import Llama
2
3llm = Llama.from_pretrained(
4 repo_id="luc-h/qwen3.5-4b-home-assistant",
5 filename="Qwen3.5-4B.Q4_K_M.gguf",
6)
7
8response = llm.create_chat_completion(messages=[
9 {"role": "system", "content": "You are a Home Assistant AI. Respond with JSON tool calls for device control."},
10 {"role": "user", "content": "turn off the kitchen lights"},
11])
12print(response["choices"][0]["message"]["content"])
13# {"tool": "HassTurnOff", "parameters": {"area": "kitchen", "domain": "light"}}