Skip to content

Commit

Permalink
yo
Browse files Browse the repository at this point in the history
  • Loading branch information
snarayan21 committed Oct 24, 2024
1 parent b05c4ef commit 982b641
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions llmfoundry/callbacks/hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def _register_model_with_run_id_multiprocess(
logging.basicConfig(
format=
f'%(asctime)s: rank{dist.get_global_rank()}[%(process)d][%(threadName)s]: %(levelname)s: %(name)s: %(message)s',
force=True,
)
logging.getLogger('composer').setLevel(composer_logging_level)

Expand Down
1 change: 1 addition & 0 deletions llmfoundry/command_utils/data_prep/convert_text_to_mds.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ def _configure_logging(logging_level: str):
logging.basicConfig(
format=
f'%(asctime)s: [%(process)d][%(threadName)s]: %(levelname)s: %(name)s: %(message)s',
force=True,
)
logging_level = logging_level.upper()
logging.getLogger('llmfoundry').setLevel(logging_level)
Expand Down
1 change: 1 addition & 0 deletions llmfoundry/command_utils/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def evaluate(cfg: DictConfig) -> tuple[list[Trainer], pd.DataFrame]:
# 2022-06-29 11:22:26,152: rank0[822018][MainThread]: INFO: Message here
format=
f'%(asctime)s: rank{dist.get_global_rank()}[%(process)d][%(threadName)s]: %(levelname)s: %(name)s: %(message)s',
force=True,
)
logging.getLogger('llmfoundry').setLevel(
eval_config.python_log_level.upper(),
Expand Down
1 change: 1 addition & 0 deletions llmfoundry/command_utils/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def train(cfg: DictConfig) -> Trainer:
# 2022-06-29 11:22:26,152: rank0[822018][MainThread]: INFO: Message here
format=
f'%(asctime)s: rank{dist.get_global_rank()}[%(process)d][%(threadName)s]: %(levelname)s: %(name)s: %(message)s',
force=True,
)
logging.getLogger('llmfoundry').setLevel(
train_cfg.python_log_level.upper(),
Expand Down
6 changes: 5 additions & 1 deletion scripts/inference/endpoint_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@

from llmfoundry.utils import prompt_files as utils

logging.basicConfig(level=logging.INFO, format='%(asctime)s %(message)s')
logging.basicConfig(
format=
f'%(asctime)s: [%(process)d][%(threadName)s]: %(levelname)s: %(name)s: %(message)s',
force=True,
)
log = logging.getLogger(__name__)

ENDPOINT_API_KEY_ENV: str = 'ENDPOINT_API_KEY'
Expand Down
5 changes: 3 additions & 2 deletions scripts/misc/download_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
HF_TOKEN_ENV_VAR = 'HF_TOKEN'

logging.basicConfig(
format=f'%(asctime)s: %(levelname)s: %(name)s: %(message)s',
level=logging.INFO,
format=
f'%(asctime)s: [%(process)d][%(threadName)s]: %(levelname)s: %(name)s: %(message)s',
force=True,
)
log = logging.getLogger(__name__)

Expand Down

0 comments on commit 982b641

Please sign in to comment.