-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(llama.cpp): with Llama v3.1 model support
- Loading branch information
Showing
6 changed files
with
46 additions
and
4 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
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,4 @@ | ||
# Gemma Assistant | ||
|
||
This example should be run with Gemma-style models that are tuned to behave like an instruction-following assistant chatbot. | ||
Most importantly, the model must have special `<start_of_turn>` and `<end_of_turn>` tokens. |
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,8 @@ | ||
<|start_header_id|>system<|end_header_id|> | ||
|
||
Cutting Knowledge Date: December 2023 | ||
|
||
You are a helpful assistant<|eot_id|> | ||
<|start_header_id|>user<|end_header_id|> | ||
|
||
Hello!<|eot_id|> |
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,32 @@ | ||
(chat_prefixes (()) | ||
(m | ||
(prefix "<|start_header_id|>user<|end_header_id|>\n\n") | ||
(suffix "<|eot_id|>\n") | ||
(m | ||
(prefix "<|start_header_id|>assistant<|end_header_id|>\n\n") | ||
(suffix "<|eot_id|>\n") | ||
) | ||
) | ||
(substitution | ||
(special_tokens (()) | ||
(() (name "<start_of_turn>")) | ||
(() (name "<|start_header_id|>")) | ||
(() (name "<|end_header_id|>")) | ||
(() (name "<|eot_id|>")) | ||
) | ||
) | ||
|
||
(x_priming "priming.txt") | ||
(o_rolling "../../../bld/example/prompt/assistant_llama.txt") | ||
|
||
; No starting space. | ||
(startspace_on +false) | ||
; No token penalization. | ||
(repeat_window 0) | ||
|
||
; 10 reasonably-long sentences at a time. | ||
(sentence_limit 10) | ||
(sentence_token_limit 100) | ||
|
||
; Limit context to avoid blowing up RAM on large context models. | ||
(model_token_limit 8000) |
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