Whats the difference between input prefix / suffix (inp_pfx/inp_sfx) and line prefix / suffix (line_pfx/line_sfx)? #3691
-
I'm looking to integrate prompt templates directly into code for my app and I would like to know what each of these variables mean? They both seem to have the same purpose so why have both? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Trying to understand the logic in
llama.cpp/examples/main/main.cpp Lines 321 to 323 in 465219b The values are hardcoded to the old Alpaca format. On the other hand, llama.cpp/examples/main/main.cpp Lines 765 to 768 in 465219b If that's not enough information to do what you want then you might also try looking at the log file and even adding a few of your own |
Beta Was this translation helpful? Give feedback.
Trying to understand the logic in
main
? Good luck!inp_pfx
andinp_sfx
are (as far as I know) only used when instruct mode is turned on.llama.cpp/examples/main/main.cpp
Lines 321 to 323 in 465219b
The values are hardcoded to the old Alpaca format.
On the other hand,
line_prefix
andline_suffix
seem to come from the user specified parameters (on the commandline--in-prefix
,--in-suffix
)llama.cpp/examples/main/main.cpp
Lines 765 to 768 in 465219b