Skip to content

Update reference for examples #4121

Open
AlexanderDokuchaev wants to merge 5 commits into
openvinotoolkit:developfrom
AlexanderDokuchaev:ad/fix_exmp_ref
Open

Update reference for examples #4121
AlexanderDokuchaev wants to merge 5 commits into
openvinotoolkit:developfrom
AlexanderDokuchaev:ad/fix_exmp_ref

Conversation

@AlexanderDokuchaev

@AlexanderDokuchaev AlexanderDokuchaev commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Changes

Updated reference for examples llm_compression and llm_compression_fx after fix hawq aggrtegator

Reason for changes

https://github.com/openvinotoolkit/nncf/actions/runs/28485355378

Related tickets

#4106

Tests

Test examples - success

@AlexanderDokuchaev

Copy link
Copy Markdown
Collaborator Author

llm_compression_fx

Before

Statistics collection ━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 128/128 • 0:02:19 • 0:00:00
Mixed-Precision assignment ━━━━━━━━━━━━━━━━━━━━ 100% 154/154 • 0:00:01 • 0:00:00
INFO:nncf:Statistics of the bitwidth distribution:
┍━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┑
│ Weight compression mode   │ % all parameters (layers)   │ % ratio-defining parameters (layers)   │
┝━━━━━━━━━━━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┥
│ int8_asym, per-channel    │ 30% (19 / 156)              │ 20% (17 / 154)                         │
├───────────────────────────┼─────────────────────────────┼────────────────────────────────────────┤
│ int4_sym, group size 128  │ 70% (137 / 156)             │ 80% (137 / 154)                        │
┕━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┙
Applying Weight Compression ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% • 0:00:03 • 0:00:00
This model does not support `Cache` instances. `cache_implementation` (set to static) will be ignored.
Warmup...
Elapsed time:  36.76417016983032
<|system|>
You are a friendly chatbot who always responds in the style of a pirate</s> 
<|user|>
How many helicopters can a human eat in one sitting?</s> 
<|assistant|>
A human can eat around 10-12 helicopters in one sitting. However, it is not recommended to eat more than that as it can lead to overeating and weight gain.</s>
Process returncode = 0
{'word_count': 56}

After

Statistics collection ━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 128/128 • 0:02:19 • 0:00:00
Mixed-Precision assignment ━━━━━━━━━━━━━━━━━━━━ 100% 154/154 • 0:00:01 • 0:00:00
INFO:nncf:Statistics of the bitwidth distribution:
┍━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┑
│ Weight compression mode   │ % all parameters (layers)   │ % ratio-defining parameters (layers)   │
┝━━━━━━━━━━━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┥
│ int8_asym, per-channel    │ 30% (26 / 156)              │ 21% (24 / 154)                         │
├───────────────────────────┼─────────────────────────────┼────────────────────────────────────────┤
│ int4_sym, group size 128  │ 70% (130 / 156)             │ 79% (130 / 154)                        │
┕━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┙
Applying Weight Compression ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% • 0:00:03 • 0:00:00
This model does not support `Cache` instances. `cache_implementation` (set to static) will be ignored.
Warmup...
Elapsed time:  55.67981743812561
<|system|>
You are a friendly chatbot who always responds in the style of a pirate</s> 
<|user|>
How many helicopters can a human eat in one sitting?</s> 
<|assistant|>
A human can eat around 100-150 helicopters in one sitting, depending on their appetite and the quality of the food. However, it is not recommended to eat too many helicopters in one sitting as it can lead to overeating and weight gain.</s>
Process returncode = 0
{'word_count': 69}

llm_compression

Before

Statistics collection ━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 128/128 • 0:00:40 • 0:00:00
Mixed-Precision assignment ━━━━━━━━━━━━━━━━━━━━ 100% 154/154 • 0:00:02 • 0:00:00
INFO:nncf:Statistics of the bitwidth distribution:
┍━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┑
│ Weight compression mode   │ % all parameters (layers)   │ % ratio-defining parameters (layers)   │
┝━━━━━━━━━━━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┥
│ int8_asym, per-channel    │ 30% (19 / 156)              │ 20% (17 / 154)                         │
├───────────────────────────┼─────────────────────────────┼────────────────────────────────────────┤
│ int4_sym, group size 128  │ 70% (137 / 156)             │ 80% (137 / 154)                        │
┕━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┙
Applying Weight Compression ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% • 0:00:06 • 0:00:00
Elapsed time:  3.1341938972473145
<|user|>
What is PyTorch?</s> 
<|assistant|>
PyTorch is a popular open-source machine learning library developed by Facebook AI Research. It is designed to be easy to use and provides a powerful set of tools for building and training deep learning models. PyTorch is built on top of the C++ programming language and is designed to be highly optimized for performance. It supports a wide range of machine learning algorithms, including neural networks, deep learning, and reinforcement learning. PyTorch is widely used in the machine learning community and
Process returncode = 0
{'word_count': 86}

Aftrer

Statistics collection ━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 128/128 • 0:00:40 • 0:00:00
Mixed-Precision assignment ━━━━━━━━━━━━━━━━━━━━ 100% 154/154 • 0:00:02 • 0:00:00
INFO:nncf:Statistics of the bitwidth distribution:
┍━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┑
│ Weight compression mode   │ % all parameters (layers)   │ % ratio-defining parameters (layers)   │
┝━━━━━━━━━━━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┥
│ int8_asym, per-channel    │ 30% (26 / 156)              │ 21% (24 / 154)                         │
├───────────────────────────┼─────────────────────────────┼────────────────────────────────────────┤
│ int4_sym, group size 128  │ 70% (130 / 156)             │ 79% (130 / 154)                        │
┕━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┙
Applying Weight Compression ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% • 0:00:06 • 0:00:00
Elapsed time:  3.2469756603240967
<|user|>
What is PyTorch?</s> 
<|assistant|>
PyTorch is a popular open-source machine learning library developed by Facebook AI Research. It is designed to be easy to use and provides a wide range of functionalities for deep learning applications. PyTorch is built on top of CUDA (Compute Unified Device Architecture) and supports various hardware platforms, including CPUs, GPUs, and TPUs (Tensor Processing Units). PyTorch is also compatible with other popular machine learning frameworks such as TensorFlow
Process returncode = 0
{'word_count': 74}

@AlexanderDokuchaev AlexanderDokuchaev marked this pull request as ready for review July 9, 2026 10:30
@AlexanderDokuchaev AlexanderDokuchaev requested a review from a team as a code owner July 9, 2026 10:30
Copilot AI review requested due to automatic review settings July 9, 2026 10:30

Copilot AI left a comment

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.

Pull request overview

Updates the cross-framework examples test scope to reflect new expected outputs for LLM compression examples after the HAWQ aggregator fix, and adjusts expected behavior for a Windows-specific mismatch.

Changes:

  • Updated word_count reference metrics for llm_compression and llm_compression_fx.
  • Added an xfail marker for llm_compression_fx to account for Windows output differences.

Comment thread tests/cross_fw/examples/example_scope.json
Comment thread tests/cross_fw/examples/example_scope.json
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.

2 participants