vllm.usage.usage_lib
¶
Classes:
-
UsageMessage–Collect platform information and send it to the usage stats server.
Functions:
-
is_usage_stats_enabled–Determine whether or not we can send usage stats to the server.
-
set_runtime_usage_data–Set global usage data that will be sent with every usage heartbeat.
UsageMessage
¶
Collect platform information and send it to the usage stats server.
_report_continuous_usage()
¶
Report usage every 10 minutes.
This helps us to collect more data points for uptime of vLLM usages. This function can also help send over performance metrics over time.
is_usage_stats_enabled()
¶
Determine whether or not we can send usage stats to the server. The logic is as follows: - By default, it should be enabled. - Three environment variables can disable it: - VLLM_DO_NOT_TRACK=1 - DO_NOT_TRACK=1 - VLLM_NO_USAGE_STATS=1 - A file in the home directory can disable it if it exists: - $HOME/.config/vllm/do_not_track
set_runtime_usage_data(key, value)
¶
Set global usage data that will be sent with every usage heartbeat.