Skip to content

Commit

Permalink
comments for new grammar sampling config
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Feb 3, 2025
1 parent 8a9fed5 commit a3e38b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llama_msgs/msg/SamplingConfig.msg
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ string samplers_sequence "edkypmxt" # PENALTIES

string grammar "" # optional BNF-like grammar to constrain sampling
string grammar_schema "" # grammar schema that defines a JSON BNF grammar
bool grammar_lazy
GrammarTrigger[] grammar_trigger_words
int32[] grammar_trigger_tokens
int32[] preserved_tokens
bool grammar_lazy # whether to use lazy grammar
GrammarTrigger[] grammar_trigger_words # trigger words for lazy grammar
int32[] grammar_trigger_tokens # trigger tokens for lazy grammar
int32[] preserved_tokens # tokens to preserve

int32[] penalty_prompt_tokens # list of tokens to penalize
bool use_penalty_prompt_tokens false # whether to penalize tokens

0 comments on commit a3e38b0

Please sign in to comment.