premrajreddy commited on
Commit
31ca237
·
verified ·
1 Parent(s): 13b049e

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: apache-2.0
4
+ tags:
5
+ - home-assistant
6
+ - voice-assistant
7
+ - automation
8
+ - assistant
9
+ - home
10
+ pipeline_tag: text-generation
11
+ datasets:
12
+ - acon96/Home-Assistant-Requests
13
+ base_model:
14
+ - TinyLlama/TinyLlama-1.1B-Chat-v1.0
15
+ base_model_relation: finetune
16
+ ---
17
+
18
+ # 🏠 TinyLLaMA-1.1B Home Assistant Voice Model
19
+
20
+ This model is a **fine-tuned version** of [TinyLlama/TinyLlama-1.1B-Chat-v1.0](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0), trained with [acon96/Home-Assistant-Requests](https://huggingface.co/datasets/acon96/Home-Assistant-Requests).
21
+ It is designed to act as a **voice-controlled smart home assistant** that takes natural language instructions and outputs **Home Assistant commands**.
22
+
23
+ ---
24
+
25
+ ## ✨ Features
26
+ - Converts **natural language voice commands** into Home Assistant automation calls.
27
+ - Produces **friendly confirmations** and **structured JSON service commands**.
28
+ - Lightweight (1.1B parameters) – runs efficiently on CPUs, GPUs, and via **Ollama** with quantization.
29
+
30
+ ---
31
+
32
+ ## 🔧 Example Usage (Transformers)
33
+
34
+ ```python
35
+ from transformers import AutoModelForCausalLM, AutoTokenizer
36
+
37
+ tokenizer = AutoTokenizer.from_pretrained("premrajreddy/tinyllama-1.1b-home-llm")
38
+ model = AutoModelForCausalLM.from_pretrained("premrajreddy/tinyllama-1.1b-home-llm")
39
+
40
+ query = "turn on the kitchen lights"
41
+ inputs = tokenizer(query, return_tensors="pt")
42
+ outputs = model.generate(**inputs, max_new_tokens=80)
43
+
44
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))