Skip to content

Commit

Permalink
Merge pull request #115 from lrq3000/fix-instruct-default-stop-sequence
Browse files Browse the repository at this point in the history
fix: undetected stop sequence tokens because of line returns for phi3 and StableLM-Zephyr models families
  • Loading branch information
Vali-98 authored Nov 18, 2024
2 parents cdd6657 + 6363fe6 commit 724941b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/constants/Instructs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const defaultInstructs: InstructType[] = [
output_prefix: '<|assistant|>\n',
last_output_prefix: '<|assistant|>\n',
output_suffix: '<|endoftext|>\n',
stop_sequence: '<|endoftext|>\n',
stop_sequence: '<|endoftext|>',
user_alignment_message: '',
activation_regex: '',
name: 'StableLM-Zephyr',
Expand All @@ -94,7 +94,7 @@ const defaultInstructs: InstructType[] = [
output_prefix: '<|assistant|>\n',
last_output_prefix: '<|assistant|>\n',
output_suffix: '<|end|>\n',
stop_sequence: '<|end|>\n',
stop_sequence: '<|end|>',
user_alignment_message: '',
activation_regex: '',
name: 'phi3',
Expand Down

0 comments on commit 724941b

Please sign in to comment.