Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Create llama3.yml presets for llama3 family #862

Merged
merged 5 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions cortex-js/presets/alpaca.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 1.0
# Model Settings
prompt_template: |+
{system_message}
### Instruction: {prompt}
### Response:
ctx_len: 2048

# Results Preferences
stop:
- </s>
temperature: 0.7
top_p: 0.95
max_tokens: 2048
frequency_penalty: 0
presence_penalty: 0
18 changes: 18 additions & 0 deletions cortex-js/presets/chatml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 1.0
# Model Settings
prompt_template: |+
<|im_start|>system
{system_message}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
ctx_len: 2048

# Results Preferences
stop:
- <|im_end|>
temperature: 0.7
top_p: 0.95
max_tokens: 2048
frequency_penalty: 0
presence_penalty: 0
19 changes: 19 additions & 0 deletions cortex-js/presets/llama3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 1.0
# Model Settings
prompt_template: |+
<|begin_of_text|><|start_header_id|>system<|end_header_id|>

{system_message}<|eot_id|><|start_header_id|>user<|end_header_id|>

{prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
ctx_len: 2048

# Results Preferences
stop:
- <|eot_id|>
- <|<|end_header_id|>|>
temperature: 0.7
top_p: 0.95
max_tokens: 2048
frequency_penalty: 0
presence_penalty: 0
20 changes: 20 additions & 0 deletions cortex-js/presets/vicuna.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 1.0
# Model Settings
prompt_template: |-
<|begin_of_sentence|>{system_prompt}

User: {prompt}

Assistant:

ctx_len: 2048

# Results Preferences
stop:
- </s>
- end_of_sentence
temperature: 0.7
top_p: 0.95
max_tokens: 2048
frequency_penalty: 0
presence_penalty: 0
Loading