use logger

This commit is contained in:
justheuristic 2022-06-14 08:25:06 +03:00
parent ce5dedd2c7
commit 3215945882

View File

@ -5,9 +5,10 @@ import os
import psutil
import torch.backends.quantized
import transformers
from hivemind.utils.logging import get_logger
from hivemind.utils.logging import get_logger, use_hivemind_log_handler
from tqdm.auto import trange
use_hivemind_log_handler("in_root_logger")
logger = get_logger(__file__)
DTYPE_MAP = dict(bfloat16=torch.bfloat16, float16=torch.float16, float32=torch.float32, auto="auto")