File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020import torch
2121from transformers import PreTrainedTokenizerBase
22- from wandb import Table
22+ try :
23+ from wandb import Table
24+ except ImportError :
25+ Table = None
2326
2427from nemo_rl .data .interfaces import DatumSpec
2528from nemo_rl .distributed .batched_data_dict import BatchedDataDict
Original file line number Diff line number Diff line change 3030import torch
3131from pydantic import BaseModel
3232from transformers import PreTrainedTokenizerBase
33- from wandb import Histogram , Table
33+ try :
34+ from wandb import Histogram , Table
35+ except ImportError :
36+ Histogram = Table = None
3437
3538from nemo_rl .data .interfaces import (
3639 DatumSpec ,
Original file line number Diff line number Diff line change 3030import requests
3131import swanlab
3232import torch
33- import wandb
33+ try :
34+ import wandb
35+ except ImportError :
36+ wandb = None
3437from matplotlib import pyplot as plt
3538from prometheus_client .parser import text_string_to_metric_families
3639from prometheus_client .samples import Sample
You can’t perform that action at this time.
0 commit comments