Skip to content

Commit

Permalink
Dependencies: Switch to LM-format-enforcer fork
Browse files Browse the repository at this point in the history
LM format enforcer has some latency on token ingestion, so use an
optimized fork instead. Also add this in as a base dependency since
the size is small.

Signed-off-by: kingbri <[email protected]>
  • Loading branch information
bdashore3 committed Apr 14, 2024
1 parent 3d14283 commit ed05f37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backends/exllamav2/grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def add_json_schema_filter(
"Skipping JSON schema parsing because "
"lm-format-enforcer is not installed.\n"
"Please run the following command in your environment "
"to install extra packages:\n"
"pip install -U .[extras]"
"to reinstall dependencies:\n"
"pip install -U ."
)

return
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@ dependencies = [
"sse-starlette",
"packaging",
"tokenizers",
"lm-format-enforcer @ git+https://github.com/theroyallab/lm-format-enforcer",
]

[project.urls]
"Homepage" = "https://github.com/theroyallab/tabbyAPI"

[project.optional-dependencies]
extras = [
"outlines",
"lm-format-enforcer",
# Heavy dependencies that aren't for everyday use
"outlines"
]
dev = [
"ruff == 0.3.2"
Expand Down

0 comments on commit ed05f37

Please sign in to comment.