Skip to content

Commit

Permalink
support granite-code models
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Newberry committed Jun 4, 2024
1 parent 672f4cf commit 6a9e416
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/lib/llm_clients/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Client
MODEL_TEMPLATE_MAP = {
"^gemma:" => { prefix: "<start_of_turn>user\n", suffix: "<end_of_turn>\n<start_of_turn>model" },
"^mi[xs]tral:" => { prefix: "<s>[INST]", suffix: "[/INST] " },
"^granite-code:" => { prefix: "<|user|>", suffix: "<|assistant|>" },
}.freeze
TIMEOUT_RETRIES = 3

Expand Down

0 comments on commit 6a9e416

Please sign in to comment.