init
This commit is contained in:
16
whisper.cpp-1.5.2/grammars/colors.gbnf
Normal file
16
whisper.cpp-1.5.2/grammars/colors.gbnf
Normal file
@@ -0,0 +1,16 @@
|
||||
# - red
|
||||
# - green
|
||||
# - blue
|
||||
#
|
||||
# example:
|
||||
#
|
||||
# ./command -m ./models/ggml-tiny.en.bin -t 8 --grammar ./grammars/colors.gbnf --prompt "red, green, blue," --context "green, red, blue,"
|
||||
#
|
||||
|
||||
root ::= init color "."
|
||||
prompt ::= init "."
|
||||
|
||||
# leading space is very important!
|
||||
init ::= " red, green, blue"
|
||||
|
||||
color ::= ", " ("red" | "green" | "blue")
|
||||
Reference in New Issue
Block a user