Repository navigation
Logger Module For Efficient Transformers - #696
Abhishek Kumar Singh (abhishek-singh591) wants to merge 27 commits into
Conversation
Signed-off-by: abhishek-singh591 <sabhis@qti.qualcomm.com>
Signed-off-by: abhishek-singh591 <sabhis@qti.qualcomm.com>
Signed-off-by: abhishek-singh591 <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: abhishek-singh591 <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
c1cf5eb to
9214991
Compare
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Hem Agnihotri (quic-hemagnih)
left a comment
There was a problem hiding this comment.
Can we please rebase it and also add this logger to all the FT files too, its inconsistent for FT.
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: Abhishek Kumar Singh <sabhis@qti.qualcomm.com>
Signed-off-by: abhishek-singh591 <sabhis@qti.qualcomm.com>
|
Can we include the export and compile time in the logs? |
|
Abhishek Kumar Singh (@abhishek-singh591) Hem Agnihotri (@quic-hemagnih) is there anything pending on this PR apart from export and compile time? Can we get it merged ASAP? |
Export and compile time are already being reported in the table. I haven’t added Qeff logging for the FT files yet Hem Agnihotri (@quic-hemagnih) should I include support for finetuning as part of this PR? |
|
Lets take it as a separate PR. lets get the PR merged. Please rebase the PR |
|
Hem Agnihotri (@quic-hemagnih) Abhishek Kumar Singh (@abhishek-singh591) any update on this PR? lets close the PR and migrate the changes to a new PR on top of mainline. Lets close this in next couple of weeks as its pending for a long time. |
|
Abhishek Kumar Singh (@abhishek-singh591) we can close this PR as its been taken up by the PR #1282 |
## Summary Adds a structured logging module (`QEFFLogger`) to the QEfficient library, based on [#696](#696). - `QEFFLogger` is a singleton logger with JSON formatter and rotating file handler. - Log level controlled project-wide via `QEFF_LOG_LEVEL` env var (default: INFO); log file path via `QEFF_LOG_PATH` or a timestamped default under `~/.cache/qefficient_logs/`. - Namespace support per module (`INFRA`, `MODEL`, `FT`) for targeted filtering and post-processing. - All existing `logging.getLogger(__name__)` and module-level `logger` imports migrated to `QEFFLogger.get_logger(namespace)`. - Jenkinsfile: all CI stages set `QEFF_LOG_PATH=/efficient-transformers/Qeff_logs`. - New unit tests in `tests/utils/test_logger.py`. - Generates process-aware filenames to avoid collisions between parallel workers: `QEFF_YYYYMMDD_HHMMSS_PID.log`. --------- Signed-off-by: Vishali Senthilkumar <vishsent@qti.qualcomm.com>
Adds a structured logging module (`QEFFLogger`) to the QEfficient library, based on [qualcomm#696](qualcomm#696). - `QEFFLogger` is a singleton logger with JSON formatter and rotating file handler. - Log level controlled project-wide via `QEFF_LOG_LEVEL` env var (default: INFO); log file path via `QEFF_LOG_PATH` or a timestamped default under `~/.cache/qefficient_logs/`. - Namespace support per module (`INFRA`, `MODEL`, `FT`) for targeted filtering and post-processing. - All existing `logging.getLogger(__name__)` and module-level `logger` imports migrated to `QEFFLogger.get_logger(namespace)`. - Jenkinsfile: all CI stages set `QEFF_LOG_PATH=/efficient-transformers/Qeff_logs`. - New unit tests in `tests/utils/test_logger.py`. - Generates process-aware filenames to avoid collisions between parallel workers: `QEFF_YYYYMMDD_HHMMSS_PID.log`. --------- Signed-off-by: Vishali Senthilkumar <vishsent@qti.qualcomm.com>
Adds a structured logging module (`QEFFLogger`) to the QEfficient library, based on [qualcomm#696](qualcomm#696). - `QEFFLogger` is a singleton logger with JSON formatter and rotating file handler. - Log level controlled project-wide via `QEFF_LOG_LEVEL` env var (default: INFO); log file path via `QEFF_LOG_PATH` or a timestamped default under `~/.cache/qefficient_logs/`. - Namespace support per module (`INFRA`, `MODEL`, `FT`) for targeted filtering and post-processing. - All existing `logging.getLogger(__name__)` and module-level `logger` imports migrated to `QEFFLogger.get_logger(namespace)`. - Jenkinsfile: all CI stages set `QEFF_LOG_PATH=/efficient-transformers/Qeff_logs`. - New unit tests in `tests/utils/test_logger.py`. - Generates process-aware filenames to avoid collisions between parallel workers: `QEFF_YYYYMMDD_HHMMSS_PID.log`. --------- Signed-off-by: Vishali Senthilkumar <vishsent@qti.qualcomm.com>
Adds a structured logging module (`QEFFLogger`) to the QEfficient library, based on [qualcomm#696](qualcomm#696). - `QEFFLogger` is a singleton logger with JSON formatter and rotating file handler. - Log level controlled project-wide via `QEFF_LOG_LEVEL` env var (default: INFO); log file path via `QEFF_LOG_PATH` or a timestamped default under `~/.cache/qefficient_logs/`. - Namespace support per module (`INFRA`, `MODEL`, `FT`) for targeted filtering and post-processing. - All existing `logging.getLogger(__name__)` and module-level `logger` imports migrated to `QEFFLogger.get_logger(namespace)`. - Jenkinsfile: all CI stages set `QEFF_LOG_PATH=/efficient-transformers/Qeff_logs`. - New unit tests in `tests/utils/test_logger.py`. - Generates process-aware filenames to avoid collisions between parallel workers: `QEFF_YYYYMMDD_HHMMSS_PID.log`. --------- Signed-off-by: Vishali Senthilkumar <vishsent@qti.qualcomm.com>
Adds a structured logging module (`QEFFLogger`) to the QEfficient library, based on [qualcomm#696](qualcomm#696). - `QEFFLogger` is a singleton logger with JSON formatter and rotating file handler. - Log level controlled project-wide via `QEFF_LOG_LEVEL` env var (default: INFO); log file path via `QEFF_LOG_PATH` or a timestamped default under `~/.cache/qefficient_logs/`. - Namespace support per module (`INFRA`, `MODEL`, `FT`) for targeted filtering and post-processing. - All existing `logging.getLogger(__name__)` and module-level `logger` imports migrated to `QEFFLogger.get_logger(namespace)`. - Jenkinsfile: all CI stages set `QEFF_LOG_PATH=/efficient-transformers/Qeff_logs`. - New unit tests in `tests/utils/test_logger.py`. - Generates process-aware filenames to avoid collisions between parallel workers: `QEFF_YYYYMMDD_HHMMSS_PID.log`. --------- Signed-off-by: Vishali Senthilkumar <vishsent@qti.qualcomm.com>
Adds a structured logging module (`QEFFLogger`) to the QEfficient library, based on [qualcomm#696](qualcomm#696). - `QEFFLogger` is a singleton logger with JSON formatter and rotating file handler. - Log level controlled project-wide via `QEFF_LOG_LEVEL` env var (default: INFO); log file path via `QEFF_LOG_PATH` or a timestamped default under `~/.cache/qefficient_logs/`. - Namespace support per module (`INFRA`, `MODEL`, `FT`) for targeted filtering and post-processing. - All existing `logging.getLogger(__name__)` and module-level `logger` imports migrated to `QEFFLogger.get_logger(namespace)`. - Jenkinsfile: all CI stages set `QEFF_LOG_PATH=/efficient-transformers/Qeff_logs`. - New unit tests in `tests/utils/test_logger.py`. - Generates process-aware filenames to avoid collisions between parallel workers: `QEFF_YYYYMMDD_HHMMSS_PID.log`. --------- Signed-off-by: Vishali Senthilkumar <vishsent@qti.qualcomm.com>
Adds a structured logging module (`QEFFLogger`) to the QEfficient library, based on [qualcomm#696](qualcomm#696). - `QEFFLogger` is a singleton logger with JSON formatter and rotating file handler. - Log level controlled project-wide via `QEFF_LOG_LEVEL` env var (default: INFO); log file path via `QEFF_LOG_PATH` or a timestamped default under `~/.cache/qefficient_logs/`. - Namespace support per module (`INFRA`, `MODEL`, `FT`) for targeted filtering and post-processing. - All existing `logging.getLogger(__name__)` and module-level `logger` imports migrated to `QEFFLogger.get_logger(namespace)`. - Jenkinsfile: all CI stages set `QEFF_LOG_PATH=/efficient-transformers/Qeff_logs`. - New unit tests in `tests/utils/test_logger.py`. - Generates process-aware filenames to avoid collisions between parallel workers: `QEFF_YYYYMMDD_HHMMSS_PID.log`. --------- Signed-off-by: Vishali Senthilkumar <vishsent@qti.qualcomm.com>
Adds a structured logging module (`QEFFLogger`) to the QEfficient library, based on [qualcomm#696](qualcomm#696). - `QEFFLogger` is a singleton logger with JSON formatter and rotating file handler. - Log level controlled project-wide via `QEFF_LOG_LEVEL` env var (default: INFO); log file path via `QEFF_LOG_PATH` or a timestamped default under `~/.cache/qefficient_logs/`. - Namespace support per module (`INFRA`, `MODEL`, `FT`) for targeted filtering and post-processing. - All existing `logging.getLogger(__name__)` and module-level `logger` imports migrated to `QEFFLogger.get_logger(namespace)`. - Jenkinsfile: all CI stages set `QEFF_LOG_PATH=/efficient-transformers/Qeff_logs`. - New unit tests in `tests/utils/test_logger.py`. - Generates process-aware filenames to avoid collisions between parallel workers: `QEFF_YYYYMMDD_HHMMSS_PID.log`. --------- Signed-off-by: Vishali Senthilkumar <vishsent@qti.qualcomm.com> Signed-off-by: Kushal Dulla <kdulla@qti.qualcomm.com>
Adds a structured logging module (`QEFFLogger`) to the QEfficient library, based on [qualcomm#696](qualcomm#696). - `QEFFLogger` is a singleton logger with JSON formatter and rotating file handler. - Log level controlled project-wide via `QEFF_LOG_LEVEL` env var (default: INFO); log file path via `QEFF_LOG_PATH` or a timestamped default under `~/.cache/qefficient_logs/`. - Namespace support per module (`INFRA`, `MODEL`, `FT`) for targeted filtering and post-processing. - All existing `logging.getLogger(__name__)` and module-level `logger` imports migrated to `QEFFLogger.get_logger(namespace)`. - Jenkinsfile: all CI stages set `QEFF_LOG_PATH=/efficient-transformers/Qeff_logs`. - New unit tests in `tests/utils/test_logger.py`. - Generates process-aware filenames to avoid collisions between parallel workers: `QEFF_YYYYMMDD_HHMMSS_PID.log`. --------- Signed-off-by: Vishali Senthilkumar <vishsent@qti.qualcomm.com> Signed-off-by: Kushal Dulla <kdulla@qti.qualcomm.com>
Adds a structured logging module (`QEFFLogger`) to the QEfficient library, based on [qualcomm#696](qualcomm#696). - `QEFFLogger` is a singleton logger with JSON formatter and rotating file handler. - Log level controlled project-wide via `QEFF_LOG_LEVEL` env var (default: INFO); log file path via `QEFF_LOG_PATH` or a timestamped default under `~/.cache/qefficient_logs/`. - Namespace support per module (`INFRA`, `MODEL`, `FT`) for targeted filtering and post-processing. - All existing `logging.getLogger(__name__)` and module-level `logger` imports migrated to `QEFFLogger.get_logger(namespace)`. - Jenkinsfile: all CI stages set `QEFF_LOG_PATH=/efficient-transformers/Qeff_logs`. - New unit tests in `tests/utils/test_logger.py`. - Generates process-aware filenames to avoid collisions between parallel workers: `QEFF_YYYYMMDD_HHMMSS_PID.log`. --------- Signed-off-by: Vishali Senthilkumar <vishsent@qti.qualcomm.com> Signed-off-by: Kushal Dulla <kdulla@qti.qualcomm.com>
Adds a structured logging module (`QEFFLogger`) to the QEfficient library, based on [qualcomm#696](qualcomm#696). - `QEFFLogger` is a singleton logger with JSON formatter and rotating file handler. - Log level controlled project-wide via `QEFF_LOG_LEVEL` env var (default: INFO); log file path via `QEFF_LOG_PATH` or a timestamped default under `~/.cache/qefficient_logs/`. - Namespace support per module (`INFRA`, `MODEL`, `FT`) for targeted filtering and post-processing. - All existing `logging.getLogger(__name__)` and module-level `logger` imports migrated to `QEFFLogger.get_logger(namespace)`. - Jenkinsfile: all CI stages set `QEFF_LOG_PATH=/efficient-transformers/Qeff_logs`. - New unit tests in `tests/utils/test_logger.py`. - Generates process-aware filenames to avoid collisions between parallel workers: `QEFF_YYYYMMDD_HHMMSS_PID.log`. --------- Signed-off-by: Vishali Senthilkumar <vishsent@qti.qualcomm.com> Signed-off-by: Kushal Dulla <kdulla@qti.qualcomm.com>
This PR is to add support for Logger Module in Efficient Transformer library. QEFFLogger will run in a low priority thread and shall have a thread safe queue waiting for logs coming from different modules running in single or multi threaded enviornment. This shall support capturing logs classified at various log levels and user can set different log levels for different namespace so that user can have control of logging and thereby easing the debugging. These logs are dumped in the JSON format so that post processing can be done easily.