From 34ac11d0c0422450eaa1aa644f83e3500ee62575 Mon Sep 17 00:00:00 2001 From: Enno Hermann Date: Wed, 3 Apr 2024 16:29:55 +0200 Subject: [PATCH] feat(analytics): remove telemetry --- .github/workflows/tests.yml | 3 --- README.md | 5 ----- trainer/analytics.py | 12 ------------ trainer/trainer.py | 2 -- 4 files changed, 22 deletions(-) delete mode 100644 trainer/analytics.py diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bc4ae55..26f2bd0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,9 +31,6 @@ jobs: cache-dependency-path: 'requirements*' - name: check OS run: cat /etc/os-release - - name: Telemetry off - run: | - export TRAINER_TELEMETRY=0 - name: Install dependencies run: | sudo apt-get update diff --git a/README.md b/README.md index b6c2aa7..e8f6095 100644 --- a/README.md +++ b/README.md @@ -165,8 +165,3 @@ trainer.fit() - [WandDB](https://wandb.ai/) To add a new logger, you must subclass [BaseDashboardLogger](trainer/logging/base_dash_logger.py) and overload its functions. - -## Anonymized Telemetry -We constantly seek to improve 🐸 for the community. To understand the community's needs better and address them accordingly, we collect stripped-down anonymized usage stats when you run the trainer. - -Of course, if you don't want, you can opt out by setting the environment variable `TRAINER_TELEMETRY=0`. diff --git a/trainer/analytics.py b/trainer/analytics.py deleted file mode 100644 index 6c090a8..0000000 --- a/trainer/analytics.py +++ /dev/null @@ -1,12 +0,0 @@ -import os - -import requests - -telemetry = os.environ.get("TRAINER_TELEMETRY") - - -def ping_training_run(): - if telemetry == "0": - return - URL = "https://coqui.gateway.scarf.sh/trainer/training_run" - _ = requests.get(URL, timeout=5) diff --git a/trainer/trainer.py b/trainer/trainer.py index e28a607..75378c0 100644 --- a/trainer/trainer.py +++ b/trainer/trainer.py @@ -20,7 +20,6 @@ from torch.nn.parallel import DistributedDataParallel as DDP_th from torch.utils.data import DataLoader -from trainer.analytics import ping_training_run from trainer.callbacks import TrainerCallback from trainer.generic_utils import ( KeepAverage, @@ -580,7 +579,6 @@ def __init__( # pylint: disable=dangerous-default-value self.callbacks.on_init_end(self) self.dashboard_logger.add_config(config) self.save_training_script() - ping_training_run() @property def use_apex(self):