Skip to content

Logger Module For Efficient Transformers - #696

Closed
Abhishek Kumar Singh (abhishek-singh591) wants to merge 27 commits into
qualcomm:mainfrom
abhishek-singh591:logger_support
Closed

Abhishek Kumar Singh (abhishek-singh591) wants to merge 27 commits into
qualcomm:mainfrom
abhishek-singh591:logger_support

Conversation

@abhishek-singh591

Copy link
Copy Markdown
Contributor

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.

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>
Comment thread QEfficient/base/modeling_qeff.py Resolved
Comment thread QEfficient/utils/logging_utils.py Resolved
Comment thread QEfficient/utils/logging_utils.py Resolved
Comment thread QEfficient/utils/logging_utils.py Resolved
Comment thread QEfficient/utils/logging_utils.py Resolved
Comment thread pyproject.toml Resolved
Comment thread QEfficient/base/modeling_qeff.py Resolved
Comment thread QEfficient/utils/logging_utils.py Resolved
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>
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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Signed-off-by: abhishek-singh591 <sabhis@qti.qualcomm.com>
@quic-rishinr

Copy link
Copy Markdown
Contributor

Can we include the export and compile time in the logs?

@quic-rishinr

Copy link
Copy Markdown
Contributor

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?

@abhishek-singh591

Copy link
Copy Markdown
Contributor Author

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?

@quic-rishinr

Copy link
Copy Markdown
Contributor

Lets take it as a separate PR. lets get the PR merged. Please rebase the PR
Hem Agnihotri (@quic-hemagnih) could you please review and merge the PR

@quic-rishinr

Copy link
Copy Markdown
Contributor

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.

@quic-hemagnih

Copy link
Copy Markdown
Contributor

Abhishek Kumar Singh (@abhishek-singh591) we can close this PR as its been taken up by the PR #1282

Rishin Raj (quic-rishinr) pushed a commit that referenced this pull request Oct 5, 2026
## 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>
Mamta Singh (quic-mamta) pushed a commit to quic-mamta/efficient-transformers that referenced this pull request Oct 23, 2026
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>
Mamta Singh (quic-mamta) pushed a commit to quic-mamta/efficient-transformers that referenced this pull request Oct 23, 2026
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>
Onkar Chougule (ochougul) pushed a commit to quic-mamta/efficient-transformers that referenced this pull request Oct 30, 2026
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>
kdulla pushed a commit to kdulla/efficient-transformers that referenced this pull request Oct 30, 2026
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>
kdulla pushed a commit to kdulla/efficient-transformers that referenced this pull request Nov 4, 2026
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>
kdulla pushed a commit to kdulla/efficient-transformers that referenced this pull request Nov 5, 2026
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>
kdulla pushed a commit to kdulla/efficient-transformers that referenced this pull request Nov 5, 2026
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>
kdulla pushed a commit to kdulla/efficient-transformers that referenced this pull request Nov 11, 2026
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>
Amit Raj (quic-amitraj) pushed a commit to kdulla/efficient-transformers that referenced this pull request Nov 12, 2026
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>
kdulla pushed a commit to kdulla/efficient-transformers that referenced this pull request Nov 12, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants