Skip to content

Commit

Permalink
Grammar: Fix syntax, lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DocShotgun committed Nov 24, 2024
1 parent 8f209ef commit 6f2dc2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions backends/exllamav2/grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ def add_kbnf_filter(
# Validate KBNF and create formatter
f = FormatterBuilder()
f.append_line(
f"{f.extractor(
lambda nonterminal: CFGExtractor(nonterminal, kbnf_string)
)}"
f"""{f.extractor(lambda nonterminal:
CFGExtractor(nonterminal, kbnf_string))}"""
)
except Exception:
logger.error(
Expand Down
1 change: 0 additions & 1 deletion backends/exllamav2/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

from backends.exllamav2.grammar import (
ExLlamaV2Grammar,
clear_grammar_func_cache,
)
from backends.exllamav2.utils import (
exllama_disabled_flash_attn,
Expand Down

0 comments on commit 6f2dc2e

Please sign in to comment.