8000 print_grammar to stderr (#1052) · sjanaX01/llama-cpp-python@2ddce72 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ddce72

Browse files
authored
print_grammar to stderr (abetlen#1052)
1 parent 431cb3e commit 2ddce72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama_grammar.py

Lines 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