Spaces:
Build error
Build error
Download llama.cpp/grammars/json.gbnf from YZ-TAN/flask-llama: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/spaces/YZ-TAN/flask-llama/resolve/5a292634f6a0d0358b4ea9a6e2ca2bcc779f3785/llama.cpp/grammars/json.gbnf
- Command line
-
hf download hf://spaces/YZ-TAN/flask-llama@5a292634f6a0d0358b4ea9a6e2ca2bcc779f3785/llama.cpp/grammars/json.gbnf
-
curl -L -o json.gbnf https://huggingface.co/spaces/YZ-TAN/flask-llama/resolve/5a292634f6a0d0358b4ea9a6e2ca2bcc779f3785/llama.cpp/grammars/json.gbnf
626 Bytes
| root ::= object | |
| value ::= object | array | string | number | ("true" | "false" | "null") ws | |
| object ::= | |
| "{" ws ( | |
| string ":" ws value | |
| ("," ws string ":" ws value)* | |
| )? "}" ws | |
| array ::= | |
| "[" ws ( | |
| value | |
| ("," ws value)* | |
| )? "]" ws | |
| string ::= | |
| "\"" ( | |
| [^"\\\x7F\x00-\x1F] | | |
| "\\" (["\\bfnrt] | "u" [0-9a-fA-F]{4}) # escapes | |
| )* "\"" ws | |
| number ::= ("-"? ([0-9] | [1-9] [0-9]{0,15})) ("." [0-9]+)? ([eE] [-+]? [0-9] [1-9]{0,15})? ws | |
| # Optional space: by convention, applied in this grammar after literal chars when allowed | |
| ws ::= | " " | "\n" [ \t]{0,20} | |