Skip to content

Commit

Permalink
[Example] ggml: remove bos in llama3 prompt (#142)
Browse files Browse the repository at this point in the history
Signed-off-by: dm4 <dm4@secondstate.io>
  • Loading branch information
dm4 committed May 23, 2024
1 parent 2b61664 commit 8b3991c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wasmedge-ggml/llama-stream/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ fn main() {
if saved_prompt.is_empty() {
if options["llama3"].as_bool().unwrap() {
saved_prompt = format!(
"<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\n{}<|eot_id|>\n<|start_header_id|>user<|end_header_id|>\n\n{}<|eot_id|>\n<|start_header_id|>assistant<|end_header_id|>\n\n",
"<|start_header_id|>system<|end_header_id|>\n\n{}<|eot_id|>\n<|start_header_id|>user<|end_header_id|>\n\n{}<|eot_id|>\n<|start_header_id|>assistant<|end_header_id|>\n\n",
system_prompt, input
);
} else {
Expand Down
Binary file modified wasmedge-ggml/llama-stream/wasmedge-ggml-llama-stream.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion wasmedge-ggml/llama/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ fn main() {
if saved_prompt.is_empty() {
if options["llama3"].as_bool().unwrap() {
saved_prompt = format!(
"<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\n{}<|eot_id|>\n<|start_header_id|>user<|end_header_id|>\n\n{}<|eot_id|>\n<|start_header_id|>assistant<|end_header_id|>\n\n",
"<|start_header_id|>system<|end_header_id|>\n\n{}<|eot_id|>\n<|start_header_id|>user<|end_header_id|>\n\n{}<|eot_id|>\n<|start_header_id|>assistant<|end_header_id|>\n\n",
system_prompt, input
);
} else {
Expand Down
Binary file modified wasmedge-ggml/llama/wasmedge-ggml-llama.wasm
Binary file not shown.

0 comments on commit 8b3991c

Please sign in to comment.