This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from dave-gray101/llama2
"LLAMA2 Chat" model gallery base model
- Loading branch information
Showing
4 changed files
with
136 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
model-gallery | ||
model-gallery.exe | ||
_test.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "llama2-13b-chat" | ||
|
||
description: | | ||
Llama 2 13B Chat -> Llama 2 is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. | ||
|
||
license: "https://ai.meta.com/llama/license/" | ||
urls: | ||
- https://ai.meta.com/llama/ | ||
|
||
config_file: | | ||
name: llama2-13b-chat | ||
backend: "llama" | ||
parameters: | ||
top_k: 80 | ||
temperature: 0.2 | ||
top_p: 0.7 | ||
context_size: 4096 | ||
template: | ||
chat_message: llama2-chat-message | ||
system_prompt: | | ||
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. | ||
If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information. | ||
prompt_templates: | ||
- name: "llama2-chat-message" | ||
content: | | ||
{{if eq .RoleName "assistant"}}{{.Content}}{{else}} | ||
[INST] | ||
{{if .SystemPrompt}}{{.SystemPrompt}}{{else if eq .RoleName "system"}}<<SYS>>{{.Content}}<</SYS>> | ||
{{else if .Content}}{{.Content}}{{end}} | ||
[/INST] | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package main | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestSmallSearch(t *testing.T) { | ||
parallelSearch([]string{"Llama-2-13B-chat-GGML"}, 1, "_test.yaml") | ||
} |