Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2ddce72

Browse filesBrowse files
authored
print_grammar to stderr (abetlen#1052)
1 parent 431cb3e commit 2ddce72
Copy full SHA for 2ddce72

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎llama_cpp/llama_grammar.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_grammar.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def from_string(cls, grammar: str, verbose: bool = True) -> "LlamaGrammar":
7272
)
7373
if verbose:
7474
print(f"{cls.from_string.__name__} grammar:", file=sys.stderr)
75-
print_grammar(sys.stdout, parsed_grammar)
75+
print_grammar(sys.stderr, parsed_grammar)
7676
print(file=sys.stderr)
7777
return cls(parsed_grammar)
7878

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.