Rename customer label -> custom label (#10899)
Co-authored-by: Yingchun Lai <laiyingchun@apache.org> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -320,8 +320,8 @@ class TokenizerManager(TokenizerCommunicatorMixin):
|
||||
"model_name": self.server_args.served_model_name,
|
||||
# TODO: Add lora name/path in the future,
|
||||
}
|
||||
if server_args.tokenizer_metrics_allowed_customer_labels:
|
||||
for label in server_args.tokenizer_metrics_allowed_customer_labels:
|
||||
if server_args.tokenizer_metrics_allowed_custom_labels:
|
||||
for label in server_args.tokenizer_metrics_allowed_custom_labels:
|
||||
labels[label] = ""
|
||||
self.metrics_collector = TokenizerMetricsCollector(
|
||||
server_args=server_args,
|
||||
@@ -1633,10 +1633,10 @@ class TokenizerManager(TokenizerCommunicatorMixin):
|
||||
else 0
|
||||
)
|
||||
|
||||
customer_labels = getattr(state.obj, "customer_labels", None)
|
||||
custom_labels = getattr(state.obj, "custom_labels", None)
|
||||
labels = (
|
||||
{**self.metrics_collector.labels, **customer_labels}
|
||||
if customer_labels
|
||||
{**self.metrics_collector.labels, **custom_labels}
|
||||
if custom_labels
|
||||
else self.metrics_collector.labels
|
||||
)
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user