Philipp-Sc
commited on
Commit
•
2a670fb
1
Parent(s):
ecf44e5
Update inst_format.gbnf
Browse files- inst_format.gbnf +3 -3
inst_format.gbnf
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# GBNF grammar for [INST] format
|
2 |
-
root ::= "[INST]\n### System:\n"
|
3 |
|
4 |
# `system` represents the system information
|
5 |
system ::= string
|
@@ -8,10 +8,10 @@ system ::= string
|
|
8 |
instruction ::= string
|
9 |
|
10 |
string ::=
|
11 |
-
"
|
12 |
[^"\\] |
|
13 |
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes
|
14 |
-
)* "
|
15 |
|
16 |
|
17 |
# Optional space: by convention, applied in this grammar after literal chars when allowed
|
|
|
1 |
# GBNF grammar for [INST] format
|
2 |
+
root ::= "[INST]\n### System:\n"system"\n### Instruction:\n"instruction"\n[/INST]\n"
|
3 |
|
4 |
# `system` represents the system information
|
5 |
system ::= string
|
|
|
8 |
instruction ::= string
|
9 |
|
10 |
string ::=
|
11 |
+
"" (
|
12 |
[^"\\] |
|
13 |
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes
|
14 |
+
)* "" ws
|
15 |
|
16 |
|
17 |
# Optional space: by convention, applied in this grammar after literal chars when allowed
|