foundation-model-stack / fms-hf-tuning

🚀 Collection of tuning recipes with HuggingFace SFTTrainer and PyTorch FSDP.
Apache License 2.0
28 stars 48 forks source link

feat: send logs to a file specified in LOG_FILE environment variable #327

Open HarikrishnanBalagopal opened 2 months ago

HarikrishnanBalagopal commented 2 months ago

Description of the change

Related issue number

How to verify the PR

Was the PR tested

HarikrishnanBalagopal commented 2 months ago

Related https://github.com/foundation-model-stack/fms-hf-tuning/blob/6cfb2ffdc2b1a47656ebbcc9d8d35e6df228151c/tuning/utils/error_logging.py#L36

https://github.com/foundation-model-stack/fms-hf-tuning/blob/6cfb2ffdc2b1a47656ebbcc9d8d35e6df228151c/tuning/config/tracker_configs.py#L19-L21