jc132 commited on
Commit
fb5df22
1 Parent(s): 900c181

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +33 -11
README.md CHANGED
@@ -1,22 +1,44 @@
1
  ---
2
- base_model: unsloth/meta-llama-3.1-8b-instruct-bnb-4bit
 
 
 
3
  language:
4
  - en
5
  license: apache-2.0
6
  tags:
7
  - text-generation-inference
8
- - transformers
9
- - unsloth
10
- - llama
11
- - trl
12
  ---
13
 
14
- # Uploaded model
15
 
16
- - **Developed by:** jc132
17
- - **License:** apache-2.0
18
- - **Finetuned from model :** unsloth/meta-llama-3.1-8b-instruct-bnb-4bit
19
 
20
- This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
21
 
22
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ datasets:
3
+ - acon96/Home-Assistant-Requests
4
+ base_model:
5
+ - meta-llama/Llama-3.1-8B-Instruct
6
  language:
7
  - en
8
  license: apache-2.0
9
  tags:
10
  - text-generation-inference
11
+ - home
12
+ - assistant
13
+ status: available
 
14
  ---
15
 
 
16
 
17
+ This model is a fine-tuned version of the [Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct) model, designed to interact with and control smart home devices via a Home Assistant integration. The fine-tuning dataset, [Home-Assistant-Requests](https://github.com/acon96/home-llm), focuses on function calling and includes real-world smart home interaction scenarios.
 
 
18
 
19
+ The model follows the Llama 3.1 prompt format. It can provide information about the Home Assistant environment, including available devices and services, and can generate function-calling code to execute specific tasks within the Home Assistant ecosystem.
20
 
21
+
22
+ Example "system" prompt:
23
+ ```
24
+ You are 'Al', a helpful AI Assistant that controls the devices in a house. Complete the following task as instructed or answer the following question with the information provided only.
25
+ The current time and date is 08:12 AM on Thursday March 14, 2024
26
+ Services: light.turn_off(), light.turn_on(rgb_color,brightness), fan.turn_on(), fan.turn_off()
27
+ Devices:
28
+ light.office 'Office Light' = on;80%
29
+ fan.office 'Office fan' = off
30
+ light.kitchen 'Kitchen Light' = on;80%;red
31
+ light.bedroom 'Bedroom Light' = off
32
+
33
+ ```
34
+
35
+
36
+ Output from the model will consist of a response that should be relayed back to the user, along with an optional code block that will invoke different Home Assistant "services". The output format from the model for function calling is as follows:
37
+
38
+
39
+ `````
40
+ turning on the kitchen lights for you now
41
+ ```homeassistant
42
+ { "service": "light.turn_on", "target_device": "light.kitchen" }
43
+ ```
44
+ `````