-
Notifications
You must be signed in to change notification settings - Fork 211
[LLM Runtime] Control printing information using NEURAL_SPEED_VERBOSE #1054
Conversation
Signed-off-by: zhenwei-intel <[email protected]>
Signed-off-by: zhenwei-intel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: zhenwei-intel <[email protected]>
Signed-off-by: zhenwei-intel <[email protected]>
intel_extension_for_transformers/llm/runtime/graph/scripts/python_api_example.py
Outdated
Show resolved
Hide resolved
Signed-off-by: zhenwei-intel <[email protected]>
Signed-off-by: zhenwei-intel <[email protected]>
Signed-off-by: zhenwei-intel <[email protected]>
Signed-off-by: zhenwei-intel <[email protected]>
NEURAL_SPEED_VERBOSE
@a32543254 , help review this design
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: zhenwei-intel <[email protected]>
Signed-off-by: zhenwei-intel <[email protected]>
Signed-off-by: zhenwei-intel <[email protected]>
@hshen14 @kevinintel @airMeng @DDEle , redesign log, help review again~ |
- 0: Print all tracing information. Comprehensive output, including: evaluation time and operator profiling. | ||
- 1: Print evaluation time. Time taken for each evaluation. | ||
- 2: Profile individual operator. Identify performance bottleneck within the model. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why 0 is the most comprehensive, which is quite rare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the same as log level, which 0 for debug and larger the less info. not rare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about 1. 2. 3. because VERBOSE=0 we usually think it is disabling verbose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got your point, agreed~
@zhenwei-intel could you help change this 0 for disable and 1 for print all .
Type of Change
feature
API changed
Description
NEURAL_SPEED_VERBOSE for c++ and python api.
Enable verbose mode and control tracing information using the
NEURAL_SPEED_VERBOSE
environment variable.Available modes:
example:
Expected Behavior & Potential Risk
the expected behavior that triggered by this PR
How has this PR been tested?
how to reproduce the test (including hardware information)
Dependency Change?
any library dependency introduced or removed