mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 04:14:52 +00:00
fix: update ping delay and update doc.
This commit is contained in:
parent
19bb3bf355
commit
a8ba2542d8
@ -3,7 +3,8 @@
|
||||
|
||||
Text Generation Inference collects anonymous usage statistics to help us improve the service. The collected data is used to improve TGI and to understand what causes failures. The data is collected transparently and any sensitive information is omitted.
|
||||
|
||||
Data is sent twice, once on server startup and once when server stops. Also, usage statistics are only enabled when TGI is running in docker to avoid collecting data then TGI runs directly on the host machine.
|
||||
Usage statistics are only enabled when TGI is running in docker to avoid collecting data then TGI runs directly on the host machine. Data is sent on
|
||||
startup/shutdown events and a heartbeat every 15 minutes.
|
||||
|
||||
## What data is collected
|
||||
|
||||
|
@ -1918,7 +1918,7 @@ pub async fn run(
|
||||
start_event.send().await;
|
||||
let mut last_report = Instant::now();
|
||||
while !stop_usage_thread_clone.load(Ordering::Relaxed) {
|
||||
if last_report.elapsed() > Duration::from_secs(3600) {
|
||||
if last_report.elapsed() > Duration::from_secs(900) {
|
||||
let report_event = usage_stats::UsageStatsEvent::new(
|
||||
ua.clone(),
|
||||
usage_stats::EventType::Ping,
|
||||
|
Loading…
Reference in New Issue
Block a user