gagan3012 commited on
Commit
00891fd
·
1 Parent(s): e325aea

split added

Browse files
Files changed (1) hide show
  1. src/models/model.py +3 -3
src/models/model.py CHANGED
@@ -13,7 +13,7 @@ from pytorch_lightning.callbacks.early_stopping import EarlyStopping
13
  from pytorch_lightning import LightningDataModule
14
  from pytorch_lightning import LightningModule
15
  from datasets import load_metric
16
- from dagshub.pytorch_lightning import DAGsHubLogger
17
 
18
 
19
  torch.cuda.empty_cache()
@@ -324,7 +324,7 @@ class Summarization:
324
  MLlogger = MLFlowLogger(experiment_name="Summarization",
325
  tracking_uri="https://dagshub.com/gagan3012/summarization.mlflow")
326
 
327
- logger = DAGsHubLogger(metrics_path='reports/metrics.txt')
328
 
329
  early_stop_callback = (
330
  [
@@ -343,7 +343,7 @@ class Summarization:
343
  gpus = 1 if use_gpu else 0
344
 
345
  trainer = Trainer(
346
- logger=[logger, MLlogger],
347
  callbacks=early_stop_callback,
348
  max_epochs=max_epochs,
349
  gpus=gpus,
 
13
  from pytorch_lightning import LightningDataModule
14
  from pytorch_lightning import LightningModule
15
  from datasets import load_metric
16
+ #from dagshub.pytorch_lightning import DAGsHubLogger
17
 
18
 
19
  torch.cuda.empty_cache()
 
324
  MLlogger = MLFlowLogger(experiment_name="Summarization",
325
  tracking_uri="https://dagshub.com/gagan3012/summarization.mlflow")
326
 
327
+ #logger = DAGsHubLogger(metrics_path='reports/metrics.txt')
328
 
329
  early_stop_callback = (
330
  [
 
343
  gpus = 1 if use_gpu else 0
344
 
345
  trainer = Trainer(
346
+ logger=[MLlogger],
347
  callbacks=early_stop_callback,
348
  max_epochs=max_epochs,
349
  gpus=gpus,