Skip to content

Commit

Permalink
Early exit on server too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Aug 9, 2024
1 parent 3e607a7 commit af49d54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ server/exllama_kernels/exllama_kernels/exllama_ext_hip.cpp

data/
load_tests/*.json
server/fbgemmm
2 changes: 2 additions & 0 deletions server/text_generation_server/models/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from text_generation_server.utils.log import log_master

ATTENTION = os.getenv("ATTENTION", "paged")
_expected = {"paged", "flashdecoding", "flashinfer"}
assert ATTENTION in _expected, f"Attention is not valid {ATTENTION}, expected {_expected}"
log_master(logger.info, f"Using Attention = {ATTENTION}")

MEM_POOL = torch.cuda.graph_pool_handle() if torch.cuda.is_available() else None
Expand Down

0 comments on commit af49d54

Please sign in to comment.