Skip to content

Commit

Permalink
phi-4 added
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Jan 9, 2025
1 parent d1a24c4 commit 17b8719
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
10 changes: 10 additions & 0 deletions llama_bringup/models/Phi-4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
n_ctx: 2048
n_batch: 8
n_gpu_layers: 0
n_threads: 1
n_predict: 2048

model_repo: "bartowski/phi-4-GGUF"
model_filename: "phi-4-IQ4_XS.gguf"

system_prompt_type: "Phi-4"
2 changes: 1 addition & 1 deletion llama_bringup/models/SmolLM2.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
n_ctx: 2048
n_batch: 8
n_gpu_layers: -1
n_gpu_layers: 0
n_threads: 1
n_predict: 2048

Expand Down
11 changes: 11 additions & 0 deletions llama_bringup/prompts/Phi-4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix: "\n<|im_start|>user<|im_sep|>\n"
suffix: "<|im_end|>\n<|assistant|>\n"
stopping_words: ["<|im_end|>"]

system_prompt: |-
<|im_start|>system<|im_sep|>
Below is an instruction that describes a task. Write a response that appropriately completes the request<|im_end|>
<|im_start|>user<|im_sep|>
Hello<|im_end|>
<|im_start|>assistant<|im_sep|>
Hello<|im_end|>

0 comments on commit 17b8719

Please sign in to comment.