Skip to content
Snippets Groups Projects
Commit 09b0d4d8 authored by Fabian Rybinski's avatar Fabian Rybinski
Browse files

Update file aie-gemma-finetuned.yaml

parent c65cb277
No related branches found
No related tags found
No related merge requests found
...@@ -12,15 +12,22 @@ config_file: | ...@@ -12,15 +12,22 @@ config_file: |
parameters: parameters:
model: downloads/llama_backend/AIE_Gemma2_2B_IT_Q4_K_M.gguf model: downloads/llama_backend/AIE_Gemma2_2B_IT_Q4_K_M.gguf
roles: roles:
assistant: 'Assistant:' assistant: 'assistant:'
system: 'System:' system: 'system:'
user: 'User:' user: 'user:'
template: template:
chat_message: |- chat_message: |-
<start_of_turn>{{if eq .RoleName "assistant" }}model{{else}}{{ .RoleName }}{{end}} {{- range $i, $_ := .Messages }}
{{ if .Content -}} {{- $last := eq (len (slice $.Messages $i)) 1 }}
{{.Content -}} {{- if or (eq .Role "user") (eq .Role "system") }}<start_of_turn>user
{{ end -}}<end_of_turn> {{ .Content }}<end_of_turn>
{{ if $last }}<start_of_turn>model
{{ end }}
{{- else if eq .Role "assistant" }}<start_of_turn>model
{{ .Content }}{{ if not $last }}<end_of_turn>
{{ end }}
{{- end }}
{{- end }}
chat: | chat: |
{{.Input }} {{.Input }}
<start_of_turn>model <start_of_turn>model
...@@ -30,7 +37,16 @@ config_file: | ...@@ -30,7 +37,16 @@ config_file: |
- '<|im_end|>' - '<|im_end|>'
- '<end_of_turn>' - '<end_of_turn>'
- '<start_of_turn>' - '<start_of_turn>'
context_size: 4096 context_size: 8192
system_prompt: |
You are a helpful and energy consumption aware assistant operating in a smart environment hosted using "Home Assistant".
As input, you will receive Home Assistant data, where each line represents a state change for an entity.
The data is limited to entities within a specific room and covers the past few minutes.
Analyze the provided data for patterns in entity state changes, where energy is used poorly.
Use the entity_ids from the provided historical data and create a Home Assistant automation that prevents the poor energy usage.
Do not provide any other information but the ```yaml formatted Home Assistant automation.
Use the "description" field inside your ```yaml response to explain your reasoning.
If there are no indicators for poor energy usage, answer with "NO".
usage: | usage: |
...@@ -44,3 +60,4 @@ files: ...@@ -44,3 +60,4 @@ files:
- filename: "downloads/llama_backend/AIE_Gemma2_2B_IT_Q4_K_M.gguf" - filename: "downloads/llama_backend/AIE_Gemma2_2B_IT_Q4_K_M.gguf"
sha256: "" sha256: ""
uri: "https://huggingface.co/Phabby/AIE-Gemma-2-2B-IT/resolve/main/AIE_Gemma2_2B_IT_Q4_K_M.gguf" uri: "https://huggingface.co/Phabby/AIE-Gemma-2-2B-IT/resolve/main/AIE_Gemma2_2B_IT_Q4_K_M.gguf"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment