def loss2logname(self, loss: str, split: str):
        '''Convert the loss name to a log name.'''
        if loss == "total":
            log_name = f"{loss}/{split}"
        else:
            loss_type, name = loss.split("_")
            log_name = f"{loss_type}/{name}/{split}"
        return log_name
Convert the loss name to a log name.
mGPT/losses/base.py