llama.cpp
Replace EOS with newline to prevent context/memory being flushed by EOS in interactive mode
#333
Merged

Replace EOS with newline to prevent context/memory being flushed by EOS in interactive mode #333

ggerganov merged 29 commits into ggml-org:master from interactive-eos-fix
rabidcopy
rabidcopy Improve interactive mode's coherence after EOS
4fe9734e
slaren
rabidcopy
rabidcopy Make newline token a constant
330b86ee
slaren
gjmulder gjmulder added enhancement
gjmulder gjmulder added generation quality
rabidcopy dynamically determine newline token
3eca29ec
rabidcopy
slaren
rabidcopy
rabidcopy relocate previous newline token const
94edeaf7
rabidcopy cleanup whitespace
ac6a9d97
rabidcopy
rabidcopy print a new line on end of text in interactive
46607389
eous
tjohnman
rabidcopy
slaren
rabidcopy only print manual newline with reverse prompt
d9284a58
rabidcopy
slaren
rabidcopy
slaren
rabidcopy
rabidcopy
slaren
rabidcopy
rabidcopy alternate approach to replace end of text tokens
2479c78b
slaren Inject the reverse prompt again after eos in interactive mode
8009a8dd
jarcen
ggerganov
rabidcopy
tjohnman
rabidcopy
slaren
rabidcopy
rabidcopy Merge pull request #2 from slaren/interactive-eos-fix
1f4abb8d
rabidcopy
tjohnman
rabidcopy
rabidcopy tokenize reverse prompt when needed
3c211c64
rabidcopy
tjohnman
tjohnman requested changes on 2023-03-21
tjohnman
rabidcopy
rabidcopy tokenize and inject only first reverse prompt
e33df8e1
tjohnman
tjohnman requested changes on 2023-03-21
slaren
rabidcopy
tjohnman
rabidcopy tokenize first reverse prompt once
52f46ef7
tjohnman
tjohnman requested changes on 2023-03-21
rabidcopy Merge branch 'master' into interactive-eos-fix
6bcbe507
tjohnman
tjohnman approved these changes on 2023-03-21
rabidcopy
tjohnman
slaren
slaren approved these changes on 2023-03-21
rabidcopy
rabidcopy Merge branch 'master' into interactive-eos-fix
6fb0db31
rabidcopy add newline token
1752bc92
rabidcopy add newline token
23bb78fb
rabidcopy
rabidcopy tokenize/inject reverse prompt for refactor
da0837f5
rabidcopy
rabidcopy tokenize nothing for antiprompt if no reverse
c4efdb22
rabidcopy Update main.cpp
879da33a
rabidcopy Update main.cpp
e590787a
rabidcopy tokenize and inject reverse prompt as needed
4e4cfdfb
rabidcopy
rabidcopy rabidcopy requested a review from tjohnman tjohnman 2 years ago
rabidcopy not needed
6a4cfc4d
slaren
slaren commented on 2023-03-22
rabidcopy remove newline token
10206d03
rabidcopy remove newline token
8f83ce83
rabidcopy tokenize newline token
7864eef9
rabidcopy Merge branch 'master' into interactive-eos-fix
666c5a03
rabidcopy rabidcopy changed the title Improve interactive mode's coherence after EOS Replace EOS with newline to prevent context/memory being flushed by EOS in interactive mode 2 years ago
rabidcopy add space to comment
88df270f
tjohnman
tjohnman approved these changes on 2023-03-22
ggerganov
ggerganov requested changes on 2023-03-23
rabidcopy Update main.cpp
55b899b8
rabidcopy
ggerganov
ggerganov approved these changes on 2023-03-23
ggerganov ggerganov merged 2e17dfd8 into master 2 years ago
rabidcopy rabidcopy deleted the interactive-eos-fix branch 2 years ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone