From 3b15e8299f354786299bab1f61394208055ea2b4 Mon Sep 17 00:00:00 2001 From: Eugene Date: Mon, 28 Aug 2023 10:40:54 -0700 Subject: [PATCH 1/4] update requirements --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index fe5eb30..fd1b616 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ bittensor>=5.2.1,<6.0.0 -transformers<=4.28.0 +transformers==4.28.0 wandb==0.15.3 datasets==2.14.0 plotly==5.14.1 From 3cc89238a3422064c0cb5409690d9c732420da07 Mon Sep 17 00:00:00 2001 From: p-ferreira <38992619+p-ferreira@users.noreply.github.com> Date: Wed, 30 Aug 2023 14:38:14 -0400 Subject: [PATCH 2/4] fix print_exception function call --- openvalidators/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvalidators/run.py b/openvalidators/run.py index 47a85fc..aeaaf68 100644 --- a/openvalidators/run.py +++ b/openvalidators/run.py @@ -58,4 +58,4 @@ async def run_forward(): except Exception as e: bt.logging.error("Error in training loop", str(e)) - bt.logging.debug(print_exception(value=e)) + bt.logging.debug(print_exception(type(err), err, err.__traceback__)) From 1f3dfb10b53a67ebf84e936c79b3defbe4899972 Mon Sep 17 00:00:00 2001 From: p-ferreira <38992619+p-ferreira@users.noreply.github.com> Date: Thu, 31 Aug 2023 07:51:11 -0400 Subject: [PATCH 3/4] fix variable naming --- openvalidators/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvalidators/run.py b/openvalidators/run.py index aeaaf68..87ae91a 100644 --- a/openvalidators/run.py +++ b/openvalidators/run.py @@ -56,6 +56,6 @@ async def run_forward(): self.prev_block = ttl_get_block(self) self.step += 1 - except Exception as e: - bt.logging.error("Error in training loop", str(e)) + except Exception as err: + bt.logging.error("Error in training loop", str(err)) bt.logging.debug(print_exception(type(err), err, err.__traceback__)) From c17894ac88f507db81a9dc2de9f1a3206158e3aa Mon Sep 17 00:00:00 2001 From: p-ferreira <38992619+p-ferreira@users.noreply.github.com> Date: Thu, 31 Aug 2023 09:43:30 -0400 Subject: [PATCH 4/4] update print exception on data collector script --- scripts/data_collector.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/data_collector.py b/scripts/data_collector.py index a67c36d..3f5bb07 100644 --- a/scripts/data_collector.py +++ b/scripts/data_collector.py @@ -168,6 +168,6 @@ def create_mining_dataset( with_score=export_mining_with_scoring_dataset, export_openai_dataset=export_openai_dataset ) - except Exception as e: - bt.logging.error("Error in training loop", str(e)) - bt.logging.debug(print_exception(value=e)) + except Exception as err: + bt.logging.error("Error in data collector execution", str(err)) + bt.logging.debug(print_exception(type(err), err, err.__traceback__))