mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-24 22:56:42 +00:00
17 lines
339 B
Plaintext
17 lines
339 B
Plaintext
|
# - 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")
|