Files
sglang/python/sglang/global_config.py

30 lines
767 B
Python
Raw Normal View History

"""Global configurations"""
# FIXME: deprecate this file and move all usage to sglang.srt.environ or sglang.__init__.py
2024-09-15 08:52:18 -07:00
class GlobalConfig:
"""
Store some global constants.
"""
def __init__(self):
# Verbosity level
# 0: do not output anything
# 2: output final text after every run
self.verbosity = 0
2024-07-13 05:29:46 -07:00
# Default backend of the language
self.default_backend = None
2024-07-13 05:29:46 -07:00
# Output tokenization configs
self.skip_special_tokens_in_output = True
self.spaces_between_special_tokens_in_out = True
# Language frontend interpreter optimization configs
2024-05-13 15:56:00 -07:00
self.enable_precache_with_tracing = True
self.enable_parallel_encoding = True
2024-07-13 23:39:37 -07:00
global_config = GlobalConfig()