Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions spyre_inference/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
SPYRE_ATTN_RECORD: bool = True
SPYRE_ATTN_KV_BUCKETS: str | None = None
SPYRE_ATTN_QUERY_BUCKETS: str | None = None
SPYRE_BUCKETED_DECODE: bool = False
SPYRE_BATCHED_DECODE: bool = False
SPYRE_NUM_CPUS: int = 0
SPYRE_UPDATE_THREAD_CONFIG: bool = True

Expand Down Expand Up @@ -63,10 +63,10 @@
# Comma-separated query_len buckets to record, unset uses the default buckets
# [1] + multiples of min(512, max_num_batched_tokens) up to max_num_batched_tokens.
"SPYRE_ATTN_QUERY_BUCKETS": lambda: os.getenv("SPYRE_ATTN_QUERY_BUCKETS"),
# When "1", enables the bucketed multi-sequence decode kernel. Off by default
# When "1", enables the batched multi-sequence decode kernel. Off by default
# pending performance characterisation at small batch sizes (num_seqs <= 4).
# Re-enable to measure the path or to restore it after calibration.
"SPYRE_BUCKETED_DECODE": lambda: bool(int(os.getenv("SPYRE_BUCKETED_DECODE", "0"))),
"SPYRE_BATCHED_DECODE": lambda: bool(int(os.getenv("SPYRE_BATCHED_DECODE", "0"))),
# CPU budget used to size thread pools. "0" (default) auto-detects the budget
# (cgroup CPU quota, then physical core count).
"SPYRE_NUM_CPUS": lambda: int(os.getenv("SPYRE_NUM_CPUS", "0")),
Expand Down
Loading
Loading