mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
Grammar: Fix syntax, lint
This commit is contained in:
@@ -93,9 +93,8 @@ class ExLlamaV2Grammar:
|
||||
# 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(
|
||||
|
||||
@@ -39,7 +39,6 @@ from common.health import HealthManager
|
||||
|
||||
from backends.exllamav2.grammar import (
|
||||
ExLlamaV2Grammar,
|
||||
clear_grammar_func_cache,
|
||||
)
|
||||
from backends.exllamav2.utils import (
|
||||
exllama_disabled_flash_attn,
|
||||
|
||||
Reference in New Issue
Block a user