mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
fix: improve logging and rebase syntax issue
This commit is contained in:
parent
5ec88a1b51
commit
d27131bfa8
@ -81,19 +81,16 @@ def serve(
|
||||
if otlp_endpoint is not None:
|
||||
setup_tracing(otlp_service_name=otlp_service_name, otlp_endpoint=otlp_endpoint)
|
||||
|
||||
lora_adapters = parse_lora_adapters(os.environ.get("LORA_ADAPTERS", None))
|
||||
|
||||
if len(lora_adapters) > 0:
|
||||
logger.warning(
|
||||
f"LoRA adapters are enabled. This is an experimental feature and may not work as expected."
|
||||
)
|
||||
lora_adapters = parse_lora_adapters(os.getenv("LORA_ADAPTERS"))
|
||||
|
||||
# TODO: enable lora with cuda graphs. for now disable cuda graphs if lora is enabled
|
||||
# and warn the user
|
||||
if len(lora_adapters) > 0 and os.getenv("CUDA_GRAPHS", None) is not None:
|
||||
log_master(
|
||||
logger.warning,
|
||||
f"LoRa adapter are not supported with CUDA Graphs. Disabling CUDA Graphs.",
|
||||
if lora_adapters:
|
||||
logger.warning("LoRA adapters enabled (experimental feature).")
|
||||
|
||||
if "CUDA_GRAPHS" in os.environ:
|
||||
logger.warning(
|
||||
"LoRA adapters incompatible with CUDA Graphs. Disabling CUDA Graphs."
|
||||
)
|
||||
global CUDA_GRAPHS
|
||||
CUDA_GRAPHS = None
|
||||
|
Loading…
Reference in New Issue
Block a user