Skip to content

Commit

Permalink
Update docs/articles_en/openvino-workflow/model-optimization-guide/we…
Browse files Browse the repository at this point in the history
…ight-compression.rst

Co-authored-by: Tatiana Savina <[email protected]>
  • Loading branch information
l-bat and tsavina authored Oct 21, 2024
1 parent f9909b5 commit 106c10e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,14 @@ only when a better dataset is not available. Refer to the
`example <https://github.com/openvinotoolkit/nncf/tree/develop/examples/llm_compression/openvino/tiny_llama_synthetic_data>`__
for details of the usage.

.. code-block:: python
.. code-block:: python
from nncf import Dataset
from nncf.data import generate_text_data
from nncf import Dataset
from nncf.data import generate_text_data
# Example: Generating synthetic dataset
synthetic_data = generate_text_data(model, tokenizer)
nncf_dataset = nncf.Dataset(synthetic_data, transform_fn)
# Example: Generating synthetic dataset
synthetic_data = generate_text_data(model, tokenizer)
nncf_dataset = nncf.Dataset(synthetic_data, transform_fn)
For data-aware weight compression refer to the following
`example <https://github.com/openvinotoolkit/nncf/tree/develop/examples/llm_compression/openvino/tiny_llama>`__.
Expand Down

0 comments on commit 106c10e

Please sign in to comment.