import{s as qi,o as ji,n as Qi}from"../chunks/scheduler.c90a44b2.js";import{S as Zi,i as Bi,e as o,s as a,c as r,h as $i,a as s,d as i,b as l,f as Wi,g as m,j as d,k as Le,q as w,l as Fi,m as n,n as c,t as p,o as u,p as y}from"../chunks/index.66c3f415.js";import{T as Ei}from"../chunks/Tip.4ffa6759.js";import{C as Ri,H as M}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.989ebcbf.js";import{C as T}from"../chunks/CodeBlock.aad838e0.js";function Xi(qt){let b,h="If quantization_config is not provided, model will be exported in 8 bits by default when it has more than 1 billion parameters. You can disable it with <code>load_in_8bit=False</code>.";return{c(){b=o("p"),b.innerHTML=h},l(f){b=s(f,"P",{"data-svelte-h":!0}),d(b)!=="svelte-1g2mh0l"&&(b.innerHTML=h)},m(f,It){n(f,b,It)},p:Qi,d(f){f&&i(b)}}}function Gi(qt){let b,h,f,It,_,jt,x,Qt,C,Se='🤗 Optimum Intel provides an <code>openvino</code> package that enables you to apply a variety of model quantization methods on many models hosted on the 🤗 hub using the <a href="https://docs.openvino.ai/2024/openvino-workflow/model-optimization.html" rel="nofollow">NNCF</a> framework.',Zt,k,He="Quantization is a technique to reduce the computational and memory costs of running inference by representing the weights and / or the activations with lower precision data types like 8-bit or 4-bit.",Bt,z,$t,U,Ne="Click on a ✅ to copy the command/code for the corresponding optimization case.",Ft,g,Ye="Command copied to clipboard",Et,V,Pe=`<thead><tr><th rowspan="3">Task<br/>(OV Model Class)</th> <th colspan="4">Weight-only Quantization</th> <th colspan="2" rowspan="2">Hybrid Quantization</th> <th colspan="2" rowspan="2">Full Quantization</th> <th colspan="2" rowspan="2">Mixed Quantization</th></tr> <tr><th colspan="2">Data-free</th> <th colspan="2">Data-aware</th></tr> <tr><th>CLI</th> <th>Python</th> <th>CLI</th> <th>Python</th> <th>CLI</th> <th>Python</th> <th>CLI</th> <th>Python</th> <th>CLI</th> <th>Python</th></tr></thead> <tbody><tr><td style="text-align: center; vertical-align: middle;">text-generation<br/>(OVModelForCausalLM)</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m TinyLlama/TinyLlama-1.1B-Chat-v1.0 --weight-format int8 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForCausalLM.from_pretrained(&#39;TinyLlama/TinyLlama-1.1B-Chat-v1.0&#39;, quantization_config=OVWeightQuantizationConfig(bits=8)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m TinyLlama/TinyLlama-1.1B-Chat-v1.0 --weight-format int4 --dataset wikitext2 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForCausalLM.from_pretrained(&#39;TinyLlama/TinyLlama-1.1B-Chat-v1.0&#39;, quantization_config=OVWeightQuantizationConfig(bits=4, dataset=&#39;wikitext2&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">-</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m TinyLlama/TinyLlama-1.1B-Chat-v1.0 --quant-mode int8 --dataset wikitext2 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForCausalLM.from_pretrained(&#39;TinyLlama/TinyLlama-1.1B-Chat-v1.0&#39;, quantization_config=OVQuantizationConfig(bits=8, dataset=&#39;wikitext2&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m TinyLlama/TinyLlama-1.1B-Chat-v1.0 --quant-mode nf4_f8e4m3 --dataset wikitext2 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForCausalLM.from_pretrained(&#39;TinyLlama/TinyLlama-1.1B-Chat-v1.0&#39;, quantization_config=OVMixedQuantizationConfig(OVWeightQuantizationConfig(bits=4, dtype=&#39;nf4&#39;), OVQuantizationConfig(dtype=&#39;f8e4m3&#39;, dataset=&#39;wikitext2&#39;))).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td></tr> <tr><td style="text-align: center; vertical-align: middle;">image-text-to-text<br/>(OVModelForVisualCausalLM)</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino --task image-text-to-text -m OpenGVLab/InternVL2-1B --trust-remote-code --weight-format int4 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForVisualCausalLM.from_pretrained(&#39;OpenGVLab/InternVL2-1B&#39;, trust_remote_code=True, quantization_config=OVWeightQuantizationConfig(bits=4)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino --task image-text-to-text -m OpenGVLab/InternVL2-1B --trust-remote-code --weight-format int4 --dataset contextual ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForVisualCausalLM.from_pretrained(&#39;OpenGVLab/InternVL2-1B&#39;, trust_remote_code=True, quantization_config=OVWeightQuantizationConfig(bits=4, dataset=&#39;contextual&#39;, trust_remote_code=True)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino --task image-text-to-text -m OpenGVLab/InternVL2-1B --trust-remote-code --quant-mode int8 --dataset contextual ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForVisualCausalLM.from_pretrained(&#39;OpenGVLab/InternVL2-1B&#39;, trust_remote_code=True, quantization_config=OVQuantizationConfig(bits=8, dataset=&#39;contextual&#39;, trust_remote_code=True)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td></tr> <tr><td style="text-align: center; vertical-align: middle;">text-to-image, text-to-video<br/>(OVDiffusionPipeline)</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m dreamlike-art/dreamlike-anime-1.0 --weight-format int8 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVDiffusionPipeline.from_pretrained(&#39;dreamlike-art/dreamlike-anime-1.0&#39;, quantization_config=OVWeightQuantizationConfig(bits=8)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m dreamlike-art/dreamlike-anime-1.0 --weight-format int8 --dataset conceptual_captions ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVDiffusionPipeline.from_pretrained(&#39;dreamlike-art/dreamlike-anime-1.0&#39;, quantization_config=OVWeightQuantizationConfig(bits=8, quant_method=&#39;hybrid&#39;, dataset=&#39;conceptual_captions&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m dreamlike-art/dreamlike-anime-1.0 --quant-mode int8 --dataset conceptual_captions ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVDiffusionPipeline.from_pretrained(&#39;dreamlike-art/dreamlike-anime-1.0&#39;, quantization_config=OVQuantizationConfig(bits=8, dataset=&#39;conceptual_captions&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td></tr> <tr><td style="text-align: center; vertical-align: middle;">automatic-speech-recognition<br/>(OVModelForSpeechSeq2Seq)</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m openai/whisper-large-v3-turbo --disable-stateful --quant-mode int8 --dataset librispeech --num-samples 10 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForSpeechSeq2Seq.from_pretrained(&#39;openai/whisper-large-v3-turbo&#39;, stateful=False, quantization_config=OVQuantizationConfig(bits=8, dataset=&#39;librispeech&#39;, num_samples=10)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td></tr> <tr><td style="text-align: center; vertical-align: middle;">feature-extraction<br/>(OVModelForFeatureExtraction)</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m microsoft/codebert-base --weight-format int8 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForFeatureExtraction.from_pretrained(&#39;microsoft/codebert-base&#39;, quantization_config=OVWeightQuantizationConfig(bits=8)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m microsoft/codebert-base --weight-format int4 --dataset wikitext2 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForFeatureExtraction.from_pretrained(&#39;microsoft/codebert-base&#39;, quantization_config=OVWeightQuantizationConfig(bits=4, dataset=&#39;wikitext2&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">-</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m microsoft/codebert-base --quant-mode int8 --dataset wikitext2 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForFeatureExtraction.from_pretrained(&#39;microsoft/codebert-base&#39;, quantization_config=OVQuantizationConfig(bits=8, dataset=&#39;wikitext2&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m microsoft/codebert-base --quant-mode nf4_f8e4m3 --dataset wikitext2 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForFeatureExtraction.from_pretrained(&#39;microsoft/codebert-base&#39;, quantization_config=OVMixedQuantizationConfig(OVWeightQuantizationConfig(bits=4, dtype=&#39;nf4&#39;), OVQuantizationConfig(dtype=&#39;f8e4m3&#39;, dataset=&#39;wikitext2&#39;))).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td></tr> <tr><td style="text-align: center; vertical-align: middle;">feature-extraction<br/>(OVSentenceTransformer)</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino --library sentence_transformers -m sentence-transformers/all-mpnet-base-v2 --weight-format int8 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVSentenceTransformer.from_pretrained(&#39;sentence-transformers/all-mpnet-base-v2&#39;, quantization_config=OVWeightQuantizationConfig(bits=8)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino --library sentence_transformers -m sentence-transformers/all-mpnet-base-v2 --weight-format int4 --dataset wikitext2 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVSentenceTransformer.from_pretrained(&#39;sentence-transformers/all-mpnet-base-v2&#39;, quantization_config=OVWeightQuantizationConfig(bits=4, dataset=&#39;wikitext2&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">-</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino --library sentence_transformers -m sentence-transformers/all-mpnet-base-v2 --quant-mode int8 --dataset wikitext2 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVSentenceTransformer.from_pretrained(&#39;sentence-transformers/all-mpnet-base-v2&#39;, quantization_config=OVQuantizationConfig(bits=8, dataset=&#39;wikitext2&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino --library sentence_transformers -m sentence-transformers/all-mpnet-base-v2 --quant-mode nf4_f8e4m3 --dataset wikitext2 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVSentenceTransformer.from_pretrained(&#39;sentence-transformers/all-mpnet-base-v2&#39;, quantization_config=OVMixedQuantizationConfig(OVWeightQuantizationConfig(bits=4, dtype=&#39;nf4&#39;), OVQuantizationConfig(dtype=&#39;f8e4m3&#39;, dataset=&#39;wikitext2&#39;))).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td></tr> <tr><td style="text-align: center; vertical-align: middle;">fill-mask<br/>(OVModelForMaskedLM)</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m FacebookAI/roberta-base --weight-format int8 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForMaskedLM.from_pretrained(&#39;FacebookAI/roberta-base&#39;, quantization_config=OVWeightQuantizationConfig(bits=8)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m FacebookAI/roberta-base --weight-format int4 --dataset wikitext2 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForMaskedLM.from_pretrained(&#39;FacebookAI/roberta-base&#39;, quantization_config=OVWeightQuantizationConfig(bits=4, dataset=&#39;wikitext2&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">-</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m FacebookAI/roberta-base --quant-mode int8 --dataset wikitext2 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForMaskedLM.from_pretrained(&#39;FacebookAI/roberta-base&#39;, quantization_config=OVQuantizationConfig(bits=8, dataset=&#39;wikitext2&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m FacebookAI/roberta-base --quant-mode nf4_f8e4m3 --dataset wikitext2 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForMaskedLM.from_pretrained(&#39;FacebookAI/roberta-base&#39;, quantization_config=OVMixedQuantizationConfig(OVWeightQuantizationConfig(bits=4, dtype=&#39;nf4&#39;), OVQuantizationConfig(dtype=&#39;f8e4m3&#39;, dataset=&#39;wikitext2&#39;))).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td></tr> <tr><td style="text-align: center; vertical-align: middle;">text2text-generation<br/>(OVModelForSeq2SeqLM)</td> <td style="text-align: center; vertical-align: middle;"><button onclick="navigator.clipboard.writeText(&#39;optimum-cli export openvino -m google-t5/t5-small --weight-format int8 ./save_dir&#39;)">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="navigator.clipboard.writeText(&#39;OVModelForSeq2SeqLM.from_pretrained(&#39;google-t5/t5-small&#39;, quantization_config=OVWeightQuantizationConfig(bits=8)).save_pretrained(&#39;save_dir&#39;)&#39;)">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="navigator.clipboard.writeText(&#39;optimum-cli export openvino -m google-t5/t5-small --weight-format int4 --dataset wikitext2 ./save_dir&#39;)">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="navigator.clipboard.writeText(&#39;OVModelForSeq2SeqLM.from_pretrained(&#39;google-t5/t5-small&#39;, quantization_config=OVWeightQuantizationConfig(bits=4, dataset=&#39;wikitext2&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;)">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">-</td> <td style="text-align: center; vertical-align: middle;"><button onclick="navigator.clipboard.writeText(&#39;optimum-cli export openvino -m google-t5/t5-small --quant-mode int8 --dataset wikitext2 --smooth-quant-alpha -1 ./save_dir&#39;)">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="navigator.clipboard.writeText(&#39;OVModelForSeq2SeqLM.from_pretrained(&#39;google-t5/t5-small&#39;, quantization_config=OVQuantizationConfig(bits=8, dataset=&#39;wikitext2&#39;, smooth_quant_alpha=-1)).save_pretrained(&#39;save_dir&#39;)&#39;)">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="navigator.clipboard.writeText(&#39;optimum-cli export openvino -m google-t5/t5-small --quant-mode nf4_f8e4m3 --dataset wikitext2 --smooth-quant-alpha -1 ./save_dir&#39;)">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="navigator.clipboard.writeText(&#39;OVModelForSeq2SeqLM.from_pretrained(&#39;google-t5/t5-small&#39;, quantization_config=OVMixedQuantizationConfig(OVWeightQuantizationConfig(bits=4, dtype=&#39;nf4&#39;), OVQuantizationConfig(dtype=&#39;f8e4m3&#39;, dataset=&#39;wikitext2&#39;, smooth_quant_alpha=-1))).save_pretrained(&#39;save_dir&#39;)&#39;)">✅</button></td></tr> <tr><td style="text-align: center; vertical-align: middle;">zero-shot-image-classification<br/>(OVModelForZeroShotImageClassification)</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m openai/clip-vit-base-patch16 --weight-format int8 ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForZeroShotImageClassification.from_pretrained(&#39;openai/clip-vit-base-patch16&#39;, quantization_config=OVWeightQuantizationConfig(bits=8)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m openai/clip-vit-base-patch16 --weight-format int4 --dataset conceptual_captions ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForZeroShotImageClassification.from_pretrained(&#39;openai/clip-vit-base-patch16&#39;, quantization_config=OVWeightQuantizationConfig(bits=4, dataset=&#39;conceptual_captions&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">-</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m openai/clip-vit-base-patch16 --quant-mode int8 --dataset conceptual_captions ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForZeroShotImageClassification.from_pretrained(&#39;openai/clip-vit-base-patch16&#39;, quantization_config=OVQuantizationConfig(bits=8, dataset=&#39;conceptual_captions&#39;)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m openai/clip-vit-base-patch16 --quant-mode nf4_f8e4m3 --dataset conceptual_captions ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForZeroShotImageClassification.from_pretrained(&#39;openai/clip-vit-base-patch16&#39;, quantization_config=OVMixedQuantizationConfig(OVWeightQuantizationConfig(bits=4, dtype=&#39;nf4&#39;), OVQuantizationConfig(dtype=&#39;f8e4m3&#39;, dataset=&#39;conceptual_captions&#39;))).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td></tr> <tr><td style="text-align: center; vertical-align: middle;">feature-extraction<br/>(OVSamModel)</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVSamModel.from_pretrained(&#39;facebook/sam-vit-base&#39;, quantization_config=OVPipelineQuantizationConfig(quantization_configs=dict(vision_encoder=OVWeightQuantizationConfig(bits=8)))).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVSamModel.from_pretrained(&#39;facebook/sam-vit-base&#39;, quantization_config=OVPipelineQuantizationConfig(quantization_configs=dict(vision_encoder=OVWeightQuantizationConfig(bits=4, dataset=&#39;coco&#39;)))).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">-</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;optimum-cli export openvino -m facebook/sam-vit-base --quant-mode int8 --dataset coco ./save_dir&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVSamModel.from_pretrained(&#39;facebook/sam-vit-base&#39;, quantization_config=OVPipelineQuantizationConfig(quantization_configs=dict(vision_encoder=OVQuantizationConfig(bits=8, dataset=&#39;coco&#39;)))).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td></tr> <tr><td style="text-align: center; vertical-align: middle;">text-to-audio<br/>(OVModelForTextToSpeechSeq2Seq)</td> <td style="text-align: center; vertical-align: middle;">✅</td> <td style="text-align: center; vertical-align: middle;"><button onclick="
                    navigator.clipboard.writeText(&#39;OVModelForTextToSpeechSeq2Seq.from_pretrained(&#39;microsoft/speecht5_tts&#39;, vocoder=&#39;microsoft/speecht5_hifigan&#39;, quantization_config=OVWeightQuantizationConfig(bits=8)).save_pretrained(&#39;save_dir&#39;)&#39;);
                    let m=document.getElementById(&#39;copyMsg&#39;);
                    m.style.display=&#39;block&#39;;
                    clearTimeout(window._copyTimeout);
                    window._copyTimeout=setTimeout(()=&gt;m.style.display=&#39;none&#39;, 2000);
                ">✅</button></td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td> <td style="text-align: center; vertical-align: middle;">–</td></tr></tbody>`,Rt,J,Xt,I,Ae="Quantization can be applied on the model’s Linear, Convolutional and Embedding layers, enabling the loading of large models on memory-limited devices. For example, when applying 8-bit quantization, the resulting model will be x4 smaller than its fp32 counterpart. For 4-bit quantization, the reduction in memory could theoretically reach x8, but is closer to x6 in practice.",Gt,W,Ot,q,De="For the 8-bit weight quantization you can provide <code>quantization_config</code> equal to <code>OVWeightQuantizationConfig(bits=8)</code> to load your model’s weights in 8-bit:",Lt,j,St,Q,Ke="Weights of language models inside vision-language pipelines can be quantized in a similar way:",Ht,Z,Nt,v,Yt,B,Pt,$,ti="4-bit weight quantization can be achieved in a similar way:",At,F,Dt,E,ei="Or for vision-language pipelines:",Kt,R,te,X,ii="You can tune quantization parameters to achieve a better performance accuracy trade-off as follows:",ee,G,ie,O,ni="Note: <code>OVWeightQuantizationConfig</code> also accepts keyword arguments that are not listed in its constructor. In this case such arguments will be passed directly to <code>nncf.compress_weights()</code> call. This is useful for passing additional parameters to the quantization algorithm.",ne,L,ai='By default the quantization scheme will be <a href="https://github.com/openvinotoolkit/nncf/blob/develop/docs/usage/training_time_compression/other_algorithms/LegacyQuantization.md#asymmetric-quantization" rel="nofollow">asymmetric</a>, to make it <a href="https://github.com/openvinotoolkit/nncf/blob/develop/docs/usage/training_time_compression/other_algorithms/LegacyQuantization.md#symmetric-quantization" rel="nofollow">symmetric</a> you can add <code>sym=True</code>.',ae,S,li="For 4-bit quantization you can also specify the following arguments in the quantization configuration :",le,H,oi="<li>The <code>group_size</code> parameter will define the group size to use for quantization, <code>-1</code> it will results in per-column quantization.</li> <li>The <code>ratio</code> parameter controls the ratio between 4-bit and 8-bit quantization. If set to 0.9, it means that 90% of the layers will be quantized to <code>int4</code> while 10% will be quantized to <code>int8</code>.</li>",oe,N,si="Smaller <code>group_size</code> and <code>ratio</code> values usually improve accuracy at the sacrifice of the model size and inference latency.",se,Y,di="Quality of 4-bit weight compressed model can further be improved by employing one of the following data-dependent methods:",de,P,ri="<li><strong>AWQ</strong> which stands for Activation Aware Quantization is an algorithm that tunes model weights for more accurate 4-bit compression. It slightly improves generation quality of compressed LLMs, but requires significant additional time and memory for tuning weights on a calibration dataset. Please note that it is possible that there will be no matching patterns in the model to apply AWQ, in such case it will be skipped. There is also a data-free version of AWQ available that relies on per-column magnitudes of weights instead of activations.</li> <li><strong>Scale Estimation</strong> is a method that tunes quantization scales to minimize the <code>L2</code> error between the original and compressed layers. Providing a dataset is required to run scale estimation. Using this method also incurs additional time and memory overhead.</li> <li><strong>GPTQ</strong> optimizes compressed weights in a layer-wise fashion to minimize the difference between activations of a compressed and original layer.</li> <li><strong>LoRA Correction</strong> mitigates quantization noise introduced during weight compression by leveraging low-rank adaptation.</li>",re,A,mi="Data-aware algorithms can be applied together or separately. For that, provide corresponding arguments to the 4-bit <code>OVWeightQuantizationConfig</code> together with a dataset. For example:",me,D,ce,K,ci="Note: GPTQ and LoRA Correction algorithms can’t be applied simultaneously.",pe,tt,ue,et,pi=`When applying post-training full quantization, both the weights and the activations are quantized.
To apply quantization on the activations, an additional calibration step is needed which consists in feeding a <code>calibration_dataset</code> to the network in order to estimate the quantization activations parameters.`,ye,it,ui="Here is how to apply full quantization on a fine-tuned DistilBERT given your own <code>calibration_dataset</code>:",ge,nt,be,at,yi="The calibration dataset can also be created easily using your <code>OVQuantizer</code>:",we,lt,Te,ot,gi="The <code>quantize()</code> method applies post-training quantization and export the resulting quantized model to the OpenVINO Intermediate Representation (IR). The resulting graph is represented with two files: an XML file describing the network topology and a binary file describing the weights. The resulting model can be run on any target Intel device.",fe,st,Me,dt,bi="The speech-to-text Whisper model can be quantized without the need for preparing a custom calibration dataset. Please see example below.",ve,rt,he,mt,wi="With this, encoder, decoder and decoder-with-past models of the Whisper pipeline will be fully quantized, including activations.",_e,ct,xe,pt,Ti=`Traditional optimization methods like post-training 8-bit quantization do not work well for Stable Diffusion (SD) models and can lead to poor generation results. On the other hand, weight compression does not improve performance significantly when applied to Stable Diffusion models, as the size of activations is comparable to weights.
The U-Net component takes up most of the overall execution time of the pipeline. Thus, optimizing just this one component can bring substantial benefits in terms of inference speed while keeping acceptable accuracy without fine-tuning. Quantizing the rest of the diffusion pipeline does not significantly improve inference performance but could potentially lead to substantial accuracy degradation.
Therefore, the proposal is to apply quantization in <em>hybrid mode</em> for the U-Net model and weight-only quantization for the rest of the pipeline components :`,Ce,ut,fi="<li>U-Net : quantization applied on both the weights and activations</li> <li>The text encoder, VAE encoder / decoder : quantization applied on the weights</li>",ke,yt,Mi="The hybrid mode involves the quantization of weights in MatMul and Embedding layers, and activations of other layers, facilitating accuracy preservation post-optimization while reducing the model size.",ze,gt,vi="The <code>quantization_config</code> is utilized to define optimization parameters for optimizing the SD pipeline. To enable hybrid quantization, specify the quantization dataset in the <code>quantization_config</code>. If the dataset is not defined, weight-only quantization will be applied on all components.",Ue,bt,Ve,wt,hi='For more details, please refer to the corresponding NNCF <a href="https://github.com/openvinotoolkit/nncf/blob/develop/docs/usage/post_training_compression/weights_compression/Usage.md" rel="nofollow">documentation</a>.',Je,Tt,Ie,ft,_i="Mixed quantization is a technique that combines weight-only quantization with full quantization. During mixed quantization we separately quantize:",We,Mt,xi="<li>weights of weighted layers to one precision, and</li> <li>activations (and possibly, weights, if some were skipped at the first step) of other supported layers to another precision.</li>",qe,vt,Ci="By default, weights of all weighted layers are quantized in the first step. In the second step activations of weighted and non-weighted layers are quantized. If some layers are instructed to be ignored in the first step with <code>weight_quantization_config.ignored_scope</code> parameter, both weights and activations of these layers are quantized to the precision given in the <code>full_quantization_config</code>.",je,ht,ki="When running this kind of optimization through Python API, <code>OVMixedQuantizationConfig</code> should be used. In such case the precision for the first step should be provided with <code>weight_quantization_config</code> argument and the precision for the second step with <code>full_quantization_config</code> argument. For example:",Qe,_t,Ze,xt,zi="To apply mixed quantization through CLI, the <code>--quant-mode</code> argument should be used. For example:",Be,Ct,$e,kt,Ui="Don’t forget to provide a dataset since it is required for the calibration procedure during full quantization.",Fe,zt,Ee,Ut,Vi="There are multimodal pipelines that consist of multiple components, such as Stable Diffusion or Visual Language models. In these cases, there may be a need to apply different quantization methods to different components of the pipeline. For example, you may want to apply int4 data-aware weight-only quantization to a language model in visual-language pipeline, while applying int8 weight-only quantization to other components. In this case you can use the <code>OVPipelineQuantizationConfig</code> class to specify the quantization configuration for each component of the pipeline.",Re,Vt,Ji="For example, the code below quantizes weights and activations of a language model inside InternVL2-1B, compresses weights of a text embedding model and skips any quantization for vision embedding model.",Xe,Jt,Ge,Wt,Oe;return _=new Ri({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),x=new M({props:{title:"Optimization",local:"optimization",headingTag:"h1"}}),z=new M({props:{title:"Optimization Support Matrix",local:"optimization-support-matrix",headingTag:"h2"}}),J=new M({props:{title:"Weight-only Quantization",local:"weight-only-quantization",headingTag:"h2"}}),W=new M({props:{title:"8-bit",local:"8-bit",headingTag:"h3"}}),j=new T({props:{code:"ZnJvbSUyMG9wdGltdW0uaW50ZWwlMjBpbXBvcnQlMjBPVk1vZGVsRm9yQ2F1c2FsTE0lMkMlMjBPVldlaWdodFF1YW50aXphdGlvbkNvbmZpZyUwQSUwQW1vZGVsX2lkJTIwJTNEJTIwJTIyaGVsZW5haSUyRmdwdDItb3YlMjIlMEFxdWFudGl6YXRpb25fY29uZmlnJTIwJTNEJTIwT1ZXZWlnaHRRdWFudGl6YXRpb25Db25maWcoYml0cyUzRDgpJTBBbW9kZWwlMjAlM0QlMjBPVk1vZGVsRm9yQ2F1c2FsTE0uZnJvbV9wcmV0cmFpbmVkKG1vZGVsX2lkJTJDJTIwcXVhbnRpemF0aW9uX2NvbmZpZyUzRHF1YW50aXphdGlvbl9jb25maWcpJTBBJTBBJTIzJTIwU2F2ZXMlMjB0aGUlMjBpbnQ4JTIwbW9kZWwlMjB0aGF0JTIwd2lsbCUyMGJlJTIweDQlMjBzbWFsbGVyJTIwdGhhbiUyMGl0cyUyMGZwMzIlMjBjb3VudGVycGFydCUwQW1vZGVsLnNhdmVfcHJldHJhaW5lZChzYXZpbmdfZGlyZWN0b3J5KQ==",highlighted:`<span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForCausalLM, OVWeightQuantizationConfig

model_id = <span class="hljs-string">&quot;helenai/gpt2-ov&quot;</span>
quantization_config = OVWeightQuantizationConfig(bits=<span class="hljs-number">8</span>)
model = OVModelForCausalLM.from_pretrained(model_id, quantization_config=quantization_config)

<span class="hljs-comment"># Saves the int8 model that will be x4 smaller than its fp32 counterpart</span>
model.save_pretrained(saving_directory)`,wrap:!1}}),Z=new T({props:{code:"bW9kZWwlMjAlM0QlMjBPVk1vZGVsRm9yVmlzdWFsQ2F1c2FsTE0uZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMmxsYXZhLWhmJTJGbGxhdmEtdjEuNi1taXN0cmFsLTdiLWhmJTIyJTJDJTBBJTIwJTIwJTIwJTIwcXVhbnRpemF0aW9uX2NvbmZpZyUzRHF1YW50aXphdGlvbl9jb25maWclMEEp",highlighted:`model = OVModelForVisualCausalLM.from_pretrained(
    <span class="hljs-string">&quot;llava-hf/llava-v1.6-mistral-7b-hf&quot;</span>,
    quantization_config=quantization_config
)`,wrap:!1}}),v=new Ei({props:{warning:!0,$$slots:{default:[Xi]},$$scope:{ctx:qt}}}),B=new M({props:{title:"4-bit",local:"4-bit",headingTag:"h3"}}),F=new T({props:{code:"ZnJvbSUyMG9wdGltdW0uaW50ZWwlMjBpbXBvcnQlMjBPVk1vZGVsRm9yQ2F1c2FsTE0lMkMlMjBPVldlaWdodFF1YW50aXphdGlvbkNvbmZpZyUwQSUwQXF1YW50aXphdGlvbl9jb25maWclMjAlM0QlMjBPVldlaWdodFF1YW50aXphdGlvbkNvbmZpZyhiaXRzJTNENCklMEFtb2RlbCUyMCUzRCUyME9WTW9kZWxGb3JDYXVzYWxMTS5mcm9tX3ByZXRyYWluZWQobW9kZWxfaWQlMkMlMjBxdWFudGl6YXRpb25fY29uZmlnJTNEcXVhbnRpemF0aW9uX2NvbmZpZyk=",highlighted:`<span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForCausalLM, OVWeightQuantizationConfig

quantization_config = OVWeightQuantizationConfig(bits=<span class="hljs-number">4</span>)
model = OVModelForCausalLM.from_pretrained(model_id, quantization_config=quantization_config)`,wrap:!1}}),R=new T({props:{code:"bW9kZWwlMjAlM0QlMjBPVk1vZGVsRm9yVmlzdWFsQ2F1c2FsTE0uZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMmxsYXZhLWhmJTJGbGxhdmEtdjEuNi1taXN0cmFsLTdiLWhmJTIyJTJDJTBBJTIwJTIwJTIwJTIwcXVhbnRpemF0aW9uX2NvbmZpZyUzRHF1YW50aXphdGlvbl9jb25maWclMEEp",highlighted:`model = OVModelForVisualCausalLM.from_pretrained(
    <span class="hljs-string">&quot;llava-hf/llava-v1.6-mistral-7b-hf&quot;</span>,
    quantization_config=quantization_config
)`,wrap:!1}}),G=new T({props:{code:"cXVhbnRpemF0aW9uX2NvbmZpZyUyMCUzRCUyME9WV2VpZ2h0UXVhbnRpemF0aW9uQ29uZmlnKCUwQSUyMCUyMCUyMCUyMGJpdHMlM0Q0JTJDJTBBJTIwJTIwJTIwJTIwc3ltJTNERmFsc2UlMkMlMEElMjAlMjAlMjAlMjByYXRpbyUzRDAuOCUyQyUwQSUyMCUyMCUyMCUyMHF1YW50X21ldGhvZCUzRCUyMmF3cSUyMiUyQyUwQSUyMCUyMCUyMCUyMGRhdGFzZXQlM0QlMjJ3aWtpdGV4dDIlMjIlMEEp",highlighted:`quantization_config = OVWeightQuantizationConfig(
    bits=<span class="hljs-number">4</span>,
    sym=<span class="hljs-literal">False</span>,
    ratio=<span class="hljs-number">0.8</span>,
    quant_method=<span class="hljs-string">&quot;awq&quot;</span>,
    dataset=<span class="hljs-string">&quot;wikitext2&quot;</span>
)`,wrap:!1}}),D=new T({props:{code:"cXVhbnRpemF0aW9uX2NvbmZpZyUyMCUzRCUyME9WV2VpZ2h0UXVhbnRpemF0aW9uQ29uZmlnKCUwQSUyMCUyMCUyMCUyMGJpdHMlM0Q0JTJDJTBBJTIwJTIwJTIwJTIwc3ltJTNERmFsc2UlMkMlMEElMjAlMjAlMjAlMjByYXRpbyUzRDAuOCUyQyUwQSUyMCUyMCUyMCUyMHF1YW50X21ldGhvZCUzRCUyMmF3cSUyMiUyQyUwQSUyMCUyMCUyMCUyMHNjYWxlX2VzdGltYXRpb24lM0RUcnVlJTJDJTBBJTIwJTIwJTIwJTIwZ3B0cSUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjBkYXRhc2V0JTNEJTIyd2lraXRleHQyJTIyJTBBKQ==",highlighted:`quantization_config = OVWeightQuantizationConfig(
    bits=<span class="hljs-number">4</span>,
    sym=<span class="hljs-literal">False</span>,
    ratio=<span class="hljs-number">0.8</span>,
    quant_method=<span class="hljs-string">&quot;awq&quot;</span>,
    scale_estimation=<span class="hljs-literal">True</span>,
    gptq=<span class="hljs-literal">True</span>,
    dataset=<span class="hljs-string">&quot;wikitext2&quot;</span>
)`,wrap:!1}}),tt=new M({props:{title:"Full quantization",local:"full-quantization",headingTag:"h2"}}),nt=new T({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFmcm9tJTIwb3B0aW11bS5pbnRlbCUyMGltcG9ydCUyME9WUXVhbnRpemVyJTJDJTIwT1ZNb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMkMlMjBPVkNvbmZpZyUyQyUyME9WUXVhbnRpemF0aW9uQ29uZmlnJTBBJTBBbW9kZWxfaWQlMjAlM0QlMjAlMjJkaXN0aWxiZXJ0LWJhc2UtdW5jYXNlZC1maW5ldHVuZWQtc3N0LTItZW5nbGlzaCUyMiUwQW1vZGVsJTIwJTNEJTIwT1ZNb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKG1vZGVsX2lkJTJDJTIwZXhwb3J0JTNEVHJ1ZSklMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZCklMEElMjMlMjBUaGUlMjBkaXJlY3RvcnklMjB3aGVyZSUyMHRoZSUyMHF1YW50aXplZCUyMG1vZGVsJTIwd2lsbCUyMGJlJTIwc2F2ZWQlMEFzYXZlX2RpciUyMCUzRCUyMCUyMnB0cV9tb2RlbCUyMiUwQSUwQXF1YW50aXplciUyMCUzRCUyME9WUXVhbnRpemVyLmZyb21fcHJldHJhaW5lZChtb2RlbCklMEElMEElMjMlMjBBcHBseSUyMGZ1bGwlMjBxdWFudGl6YXRpb24lMjBhbmQlMjBleHBvcnQlMjB0aGUlMjByZXN1bHRpbmclMjBxdWFudGl6ZWQlMjBtb2RlbCUyMHRvJTIwT3BlblZJTk8lMjBJUiUyMGZvcm1hdCUwQW92X2NvbmZpZyUyMCUzRCUyME9WQ29uZmlnKHF1YW50aXphdGlvbl9jb25maWclM0RPVlF1YW50aXphdGlvbkNvbmZpZygpKSUwQXF1YW50aXplci5xdWFudGl6ZShvdl9jb25maWclM0Rvdl9jb25maWclMkMlMjBjYWxpYnJhdGlvbl9kYXRhc2V0JTNEY2FsaWJyYXRpb25fZGF0YXNldCUyQyUyMHNhdmVfZGlyZWN0b3J5JTNEc2F2ZV9kaXIpJTBBJTIzJTIwU2F2ZSUyMHRoZSUyMHRva2VuaXplciUwQXRva2VuaXplci5zYXZlX3ByZXRyYWluZWQoc2F2ZV9kaXIp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVQuantizer, OVModelForSequenceClassification, OVConfig, OVQuantizationConfig

model_id = <span class="hljs-string">&quot;distilbert-base-uncased-finetuned-sst-2-english&quot;</span>
model = OVModelForSequenceClassification.from_pretrained(model_id, export=<span class="hljs-literal">True</span>)
tokenizer = AutoTokenizer.from_pretrained(model_id)
<span class="hljs-comment"># The directory where the quantized model will be saved</span>
save_dir = <span class="hljs-string">&quot;ptq_model&quot;</span>

quantizer = OVQuantizer.from_pretrained(model)

<span class="hljs-comment"># Apply full quantization and export the resulting quantized model to OpenVINO IR format</span>
ov_config = OVConfig(quantization_config=OVQuantizationConfig())
quantizer.quantize(ov_config=ov_config, calibration_dataset=calibration_dataset, save_directory=save_dir)
<span class="hljs-comment"># Save the tokenizer</span>
tokenizer.save_pretrained(save_dir)`,wrap:!1}}),lt=new T({props:{code:"ZnJvbSUyMGZ1bmN0b29scyUyMGltcG9ydCUyMHBhcnRpYWwlMEElMEFkZWYlMjBwcmVwcm9jZXNzX2Z1bmN0aW9uKGV4YW1wbGVzJTJDJTIwdG9rZW5pemVyKSUzQSUwQSUyMCUyMCUyMCUyMHJldHVybiUyMHRva2VuaXplcihleGFtcGxlcyU1QiUyMnNlbnRlbmNlJTIyJTVEJTJDJTIwcGFkZGluZyUzRCUyMm1heF9sZW5ndGglMjIlMkMlMjBtYXhfbGVuZ3RoJTNEMTI4JTJDJTIwdHJ1bmNhdGlvbiUzRFRydWUpJTBBJTBBJTIzJTIwQ3JlYXRlJTIwdGhlJTIwY2FsaWJyYXRpb24lMjBkYXRhc2V0JTIwdXNlZCUyMHRvJTIwcGVyZm9ybSUyMGZ1bGwlMjBxdWFudGl6YXRpb24lMEFjYWxpYnJhdGlvbl9kYXRhc2V0JTIwJTNEJTIwcXVhbnRpemVyLmdldF9jYWxpYnJhdGlvbl9kYXRhc2V0KCUwQSUyMCUyMCUyMCUyMCUyMmdsdWUlMjIlMkMlMEElMjAlMjAlMjAlMjBkYXRhc2V0X2NvbmZpZ19uYW1lJTNEJTIyc3N0MiUyMiUyQyUwQSUyMCUyMCUyMCUyMHByZXByb2Nlc3NfZnVuY3Rpb24lM0RwYXJ0aWFsKHByZXByb2Nlc3NfZnVuY3Rpb24lMkMlMjB0b2tlbml6ZXIlM0R0b2tlbml6ZXIpJTJDJTBBJTIwJTIwJTIwJTIwbnVtX3NhbXBsZXMlM0QzMDAlMkMlMEElMjAlMjAlMjAlMjBkYXRhc2V0X3NwbGl0JTNEJTIydHJhaW4lMjIlMkMlMEEp",highlighted:`<span class="hljs-keyword">from</span> functools <span class="hljs-keyword">import</span> partial

<span class="hljs-keyword">def</span> <span class="hljs-title function_">preprocess_function</span>(<span class="hljs-params">examples, tokenizer</span>):
    <span class="hljs-keyword">return</span> tokenizer(examples[<span class="hljs-string">&quot;sentence&quot;</span>], padding=<span class="hljs-string">&quot;max_length&quot;</span>, max_length=<span class="hljs-number">128</span>, truncation=<span class="hljs-literal">True</span>)

<span class="hljs-comment"># Create the calibration dataset used to perform full quantization</span>
calibration_dataset = quantizer.get_calibration_dataset(
    <span class="hljs-string">&quot;glue&quot;</span>,
    dataset_config_name=<span class="hljs-string">&quot;sst2&quot;</span>,
    preprocess_function=partial(preprocess_function, tokenizer=tokenizer),
    num_samples=<span class="hljs-number">300</span>,
    dataset_split=<span class="hljs-string">&quot;train&quot;</span>,
)`,wrap:!1}}),st=new M({props:{title:"Speech-to-text Models Quantization",local:"speech-to-text-models-quantization",headingTag:"h3"}}),rt=new T({props:{code:"bW9kZWxfaWQlMjAlM0QlMjAlMjJvcGVuYWklMkZ3aGlzcGVyLXRpbnklMjIlMEFvdl9tb2RlbCUyMCUzRCUyME9WTW9kZWxGb3JTcGVlY2hTZXEyU2VxLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjBtb2RlbF9pZCUyQyUwQSUyMCUyMCUyMCUyMHN0YXRlZnVsJTNERmFsc2UlMkMlMEElMjAlMjAlMjAlMjBxdWFudGl6YXRpb25fY29uZmlnJTNET1ZRdWFudGl6YXRpb25Db25maWcoJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbnVtX3NhbXBsZXMlM0QxMCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGRhdGFzZXQlM0QlMjJsaWJyaXNwZWVjaCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHByb2Nlc3NvciUzRG1vZGVsX2lkJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc21vb3RoX3F1YW50X2FscGhhJTNEMC45NSUyQyUwQSUyMCUyMCUyMCUyMCklMEEp",highlighted:`model_id = <span class="hljs-string">&quot;openai/whisper-tiny&quot;</span>
ov_model = OVModelForSpeechSeq2Seq.from_pretrained(
    model_id,
    stateful=<span class="hljs-literal">False</span>,
    quantization_config=OVQuantizationConfig(
        num_samples=<span class="hljs-number">10</span>,
        dataset=<span class="hljs-string">&quot;librispeech&quot;</span>,
        processor=model_id,
        smooth_quant_alpha=<span class="hljs-number">0.95</span>,
    )
)`,wrap:!1}}),ct=new M({props:{title:"Hybrid quantization",local:"hybrid-quantization",headingTag:"h2"}}),bt=new T({props:{code:"ZnJvbSUyMG9wdGltdW0uaW50ZWwlMjBpbXBvcnQlMjBPVlN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTJDJTIwT1ZXZWlnaHRRdWFudGl6YXRpb25Db25maWclMEElMEFtb2RlbCUyMCUzRCUyME9WU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMG1vZGVsX2lkJTJDJTBBJTIwJTIwJTIwJTIwZXhwb3J0JTNEVHJ1ZSUyQyUwQSUyMCUyMCUyMCUyMHF1YW50aXphdGlvbl9jb25maWclM0RPVldlaWdodFF1YW50aXphdGlvbkNvbmZpZyhiaXRzJTNEOCUyQyUyMGRhdGFzZXQlM0QlMjJjb25jZXB0dWFsX2NhcHRpb25zJTIyKSUyQyUwQSk=",highlighted:`<span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVStableDiffusionPipeline, OVWeightQuantizationConfig

model = OVStableDiffusionPipeline.from_pretrained(
    model_id,
    export=<span class="hljs-literal">True</span>,
    quantization_config=OVWeightQuantizationConfig(bits=<span class="hljs-number">8</span>, dataset=<span class="hljs-string">&quot;conceptual_captions&quot;</span>),
)`,wrap:!1}}),Tt=new M({props:{title:"Mixed Quantization",local:"mixed-quantization",headingTag:"h2"}}),_t=new T({props:{code:"bW9kZWwlMjAlM0QlMjBPVk1vZGVsRm9yQ2F1c2FsTE0uZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCdUaW55TGxhbWElMkZUaW55TGxhbWEtMS4xQi1DaGF0LXYxLjAnJTJDJTBBJTIwJTIwJTIwJTIwcXVhbnRpemF0aW9uX2NvbmZpZyUzRE9WTWl4ZWRRdWFudGl6YXRpb25Db25maWcoJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwd2VpZ2h0X3F1YW50aXphdGlvbl9jb25maWclM0RPVldlaWdodFF1YW50aXphdGlvbkNvbmZpZyhiaXRzJTNENCUyQyUyMGR0eXBlJTNEJ25mNCcpJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZnVsbF9xdWFudGl6YXRpb25fY29uZmlnJTNET1ZRdWFudGl6YXRpb25Db25maWcoZHR5cGUlM0QnZjhlNG0zJyUyQyUyMGRhdGFzZXQlM0Qnd2lraXRleHQyJyklMEElMjAlMjAlMjAlMjApJTBBKQ==",highlighted:`model = OVModelForCausalLM.from_pretrained(
    <span class="hljs-string">&#x27;TinyLlama/TinyLlama-1.1B-Chat-v1.0&#x27;</span>,
    quantization_config=OVMixedQuantizationConfig(
        weight_quantization_config=OVWeightQuantizationConfig(bits=<span class="hljs-number">4</span>, dtype=<span class="hljs-string">&#x27;nf4&#x27;</span>),
        full_quantization_config=OVQuantizationConfig(dtype=<span class="hljs-string">&#x27;f8e4m3&#x27;</span>, dataset=<span class="hljs-string">&#x27;wikitext2&#x27;</span>)
    )
)`,wrap:!1}}),Ct=new T({props:{code:"b3B0aW11bS1jbGklMjBleHBvcnQlMjBvcGVudmlubyUyMC1tJTIwVGlueUxsYW1hJTJGVGlueUxsYW1hLTEuMUItQ2hhdC12MS4wJTIwLS1xdWFudC1tb2RlJTIwbmY0X2Y4ZTRtMyUyMC0tZGF0YXNldCUyMHdpa2l0ZXh0MiUyMC4lMkZzYXZlX2Rpcg==",highlighted:'optimum-cli <span class="hljs-built_in">export</span> openvino -m TinyLlama/TinyLlama-1.1B-Chat-v1.0 --quant-mode nf4_f8e4m3 --dataset wikitext2 ./save_dir',wrap:!1}}),zt=new M({props:{title:"Pipeline Quantization",local:"pipeline-quantization",headingTag:"h2"}}),Jt=new T({props:{code:"ZnJvbSUyMG9wdGltdW0uaW50ZWwlMjBpbXBvcnQlMjBPVk1vZGVsRm9yVmlzdWFsQ2F1c2FsTE0lMEFmcm9tJTIwb3B0aW11bS5pbnRlbCUyMGltcG9ydCUyME9WUGlwZWxpbmVRdWFudGl6YXRpb25Db25maWclMkMlMjBPVlF1YW50aXphdGlvbkNvbmZpZyUyQyUyME9WV2VpZ2h0UXVhbnRpemF0aW9uQ29uZmlnJTBBJTBBbW9kZWxfaWQlMjAlM0QlMjAlMjJPcGVuR1ZMYWIlMkZJbnRlcm5WTDItMUIlMjIlMEFtb2RlbCUyMCUzRCUyME9WTW9kZWxGb3JWaXN1YWxDYXVzYWxMTS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwbW9kZWxfaWQlMkMlMEElMjAlMjAlMjAlMjBleHBvcnQlM0RUcnVlJTJDJTBBJTIwJTIwJTIwJTIwdHJ1c3RfcmVtb3RlX2NvZGUlM0RUcnVlJTJDJTBBJTIwJTIwJTIwJTIwcXVhbnRpemF0aW9uX2NvbmZpZyUzRE9WUGlwZWxpbmVRdWFudGl6YXRpb25Db25maWcoJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcXVhbnRpemF0aW9uX2NvbmZpZ3MlM0QlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsbV9tb2RlbCUyMiUzQSUyME9WUXVhbnRpemF0aW9uQ29uZmlnKGJpdHMlM0Q4KSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnRleHRfZW1iZWRkaW5nc19tb2RlbCUyMiUzQSUyME9WV2VpZ2h0UXVhbnRpemF0aW9uQ29uZmlnKGJpdHMlM0Q4KSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGRhdGFzZXQlM0QlMjJjb250ZXh0dWFsJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwdHJ1c3RfcmVtb3RlX2NvZGUlM0RUcnVlJTJDJTBBJTIwJTIwJTIwJTIwKSUwQSk=",highlighted:`<span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForVisualCausalLM
<span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVPipelineQuantizationConfig, OVQuantizationConfig, OVWeightQuantizationConfig

model_id = <span class="hljs-string">&quot;OpenGVLab/InternVL2-1B&quot;</span>
model = OVModelForVisualCausalLM.from_pretrained(
    model_id,
    export=<span class="hljs-literal">True</span>,
    trust_remote_code=<span class="hljs-literal">True</span>,
    quantization_config=OVPipelineQuantizationConfig(
        quantization_configs={
            <span class="hljs-string">&quot;lm_model&quot;</span>: OVQuantizationConfig(bits=<span class="hljs-number">8</span>),
            <span class="hljs-string">&quot;text_embeddings_model&quot;</span>: OVWeightQuantizationConfig(bits=<span class="hljs-number">8</span>),
        },
        dataset=<span class="hljs-string">&quot;contextual&quot;</span>,
        trust_remote_code=<span class="hljs-literal">True</span>,
    )
)`,wrap:!1}}),{c(){b=o("meta"),h=a(),f=o("p"),It=a(),r(_.$$.fragment),jt=a(),r(x.$$.fragment),Qt=a(),C=o("p"),C.innerHTML=Se,Zt=a(),k=o("p"),k.textContent=He,Bt=a(),r(z.$$.fragment),$t=a(),U=o("p"),U.textContent=Ne,Ft=a(),g=o("div"),g.textContent=Ye,Et=a(),V=o("table"),V.innerHTML=Pe,Rt=a(),r(J.$$.fragment),Xt=a(),I=o("p"),I.textContent=Ae,Gt=a(),r(W.$$.fragment),Ot=a(),q=o("p"),q.innerHTML=De,Lt=a(),r(j.$$.fragment),St=a(),Q=o("p"),Q.textContent=Ke,Ht=a(),r(Z.$$.fragment),Nt=a(),r(v.$$.fragment),Yt=a(),r(B.$$.fragment),Pt=a(),$=o("p"),$.textContent=ti,At=a(),r(F.$$.fragment),Dt=a(),E=o("p"),E.textContent=ei,Kt=a(),r(R.$$.fragment),te=a(),X=o("p"),X.textContent=ii,ee=a(),r(G.$$.fragment),ie=a(),O=o("p"),O.innerHTML=ni,ne=a(),L=o("p"),L.innerHTML=ai,ae=a(),S=o("p"),S.textContent=li,le=a(),H=o("ul"),H.innerHTML=oi,oe=a(),N=o("p"),N.innerHTML=si,se=a(),Y=o("p"),Y.textContent=di,de=a(),P=o("ul"),P.innerHTML=ri,re=a(),A=o("p"),A.innerHTML=mi,me=a(),r(D.$$.fragment),ce=a(),K=o("p"),K.textContent=ci,pe=a(),r(tt.$$.fragment),ue=a(),et=o("p"),et.innerHTML=pi,ye=a(),it=o("p"),it.innerHTML=ui,ge=a(),r(nt.$$.fragment),be=a(),at=o("p"),at.innerHTML=yi,we=a(),r(lt.$$.fragment),Te=a(),ot=o("p"),ot.innerHTML=gi,fe=a(),r(st.$$.fragment),Me=a(),dt=o("p"),dt.textContent=bi,ve=a(),r(rt.$$.fragment),he=a(),mt=o("p"),mt.textContent=wi,_e=a(),r(ct.$$.fragment),xe=a(),pt=o("p"),pt.innerHTML=Ti,Ce=a(),ut=o("ul"),ut.innerHTML=fi,ke=a(),yt=o("p"),yt.textContent=Mi,ze=a(),gt=o("p"),gt.innerHTML=vi,Ue=a(),r(bt.$$.fragment),Ve=a(),wt=o("p"),wt.innerHTML=hi,Je=a(),r(Tt.$$.fragment),Ie=a(),ft=o("p"),ft.textContent=_i,We=a(),Mt=o("ol"),Mt.innerHTML=xi,qe=a(),vt=o("p"),vt.innerHTML=Ci,je=a(),ht=o("p"),ht.innerHTML=ki,Qe=a(),r(_t.$$.fragment),Ze=a(),xt=o("p"),xt.innerHTML=zi,Be=a(),r(Ct.$$.fragment),$e=a(),kt=o("p"),kt.textContent=Ui,Fe=a(),r(zt.$$.fragment),Ee=a(),Ut=o("p"),Ut.innerHTML=Vi,Re=a(),Vt=o("p"),Vt.textContent=Ji,Xe=a(),r(Jt.$$.fragment),Ge=a(),Wt=o("p"),this.h()},l(t){const e=$i("svelte-u9bgzb",document.head);b=s(e,"META",{name:!0,content:!0}),e.forEach(i),h=l(t),f=s(t,"P",{}),Wi(f).forEach(i),It=l(t),m(_.$$.fragment,t),jt=l(t),m(x.$$.fragment,t),Qt=l(t),C=s(t,"P",{"data-svelte-h":!0}),d(C)!=="svelte-1kqt85y"&&(C.innerHTML=Se),Zt=l(t),k=s(t,"P",{"data-svelte-h":!0}),d(k)!=="svelte-1bioojp"&&(k.textContent=He),Bt=l(t),m(z.$$.fragment,t),$t=l(t),U=s(t,"P",{"data-svelte-h":!0}),d(U)!=="svelte-yz1bv9"&&(U.textContent=Ne),Ft=l(t),g=s(t,"DIV",{id:!0,style:!0,"data-svelte-h":!0}),d(g)!=="svelte-lctq22"&&(g.textContent=Ye),Et=l(t),V=s(t,"TABLE",{"data-svelte-h":!0}),d(V)!=="svelte-1cdjh6c"&&(V.innerHTML=Pe),Rt=l(t),m(J.$$.fragment,t),Xt=l(t),I=s(t,"P",{"data-svelte-h":!0}),d(I)!=="svelte-17xp9b"&&(I.textContent=Ae),Gt=l(t),m(W.$$.fragment,t),Ot=l(t),q=s(t,"P",{"data-svelte-h":!0}),d(q)!=="svelte-vqgrfh"&&(q.innerHTML=De),Lt=l(t),m(j.$$.fragment,t),St=l(t),Q=s(t,"P",{"data-svelte-h":!0}),d(Q)!=="svelte-16a1vs2"&&(Q.textContent=Ke),Ht=l(t),m(Z.$$.fragment,t),Nt=l(t),m(v.$$.fragment,t),Yt=l(t),m(B.$$.fragment,t),Pt=l(t),$=s(t,"P",{"data-svelte-h":!0}),d($)!=="svelte-1ynyujr"&&($.textContent=ti),At=l(t),m(F.$$.fragment,t),Dt=l(t),E=s(t,"P",{"data-svelte-h":!0}),d(E)!=="svelte-ckhwzy"&&(E.textContent=ei),Kt=l(t),m(R.$$.fragment,t),te=l(t),X=s(t,"P",{"data-svelte-h":!0}),d(X)!=="svelte-1oj65vk"&&(X.textContent=ii),ee=l(t),m(G.$$.fragment,t),ie=l(t),O=s(t,"P",{"data-svelte-h":!0}),d(O)!=="svelte-jq996k"&&(O.innerHTML=ni),ne=l(t),L=s(t,"P",{"data-svelte-h":!0}),d(L)!=="svelte-11zrdex"&&(L.innerHTML=ai),ae=l(t),S=s(t,"P",{"data-svelte-h":!0}),d(S)!=="svelte-1edxsd4"&&(S.textContent=li),le=l(t),H=s(t,"UL",{"data-svelte-h":!0}),d(H)!=="svelte-1xdcez2"&&(H.innerHTML=oi),oe=l(t),N=s(t,"P",{"data-svelte-h":!0}),d(N)!=="svelte-1pvf0nk"&&(N.innerHTML=si),se=l(t),Y=s(t,"P",{"data-svelte-h":!0}),d(Y)!=="svelte-27zu87"&&(Y.textContent=di),de=l(t),P=s(t,"UL",{"data-svelte-h":!0}),d(P)!=="svelte-o0edvn"&&(P.innerHTML=ri),re=l(t),A=s(t,"P",{"data-svelte-h":!0}),d(A)!=="svelte-1xeos13"&&(A.innerHTML=mi),me=l(t),m(D.$$.fragment,t),ce=l(t),K=s(t,"P",{"data-svelte-h":!0}),d(K)!=="svelte-19pmlig"&&(K.textContent=ci),pe=l(t),m(tt.$$.fragment,t),ue=l(t),et=s(t,"P",{"data-svelte-h":!0}),d(et)!=="svelte-9ojby0"&&(et.innerHTML=pi),ye=l(t),it=s(t,"P",{"data-svelte-h":!0}),d(it)!=="svelte-u6rwxg"&&(it.innerHTML=ui),ge=l(t),m(nt.$$.fragment,t),be=l(t),at=s(t,"P",{"data-svelte-h":!0}),d(at)!=="svelte-1bmrgi2"&&(at.innerHTML=yi),we=l(t),m(lt.$$.fragment,t),Te=l(t),ot=s(t,"P",{"data-svelte-h":!0}),d(ot)!=="svelte-1tr5712"&&(ot.innerHTML=gi),fe=l(t),m(st.$$.fragment,t),Me=l(t),dt=s(t,"P",{"data-svelte-h":!0}),d(dt)!=="svelte-2xlwma"&&(dt.textContent=bi),ve=l(t),m(rt.$$.fragment,t),he=l(t),mt=s(t,"P",{"data-svelte-h":!0}),d(mt)!=="svelte-1euukhf"&&(mt.textContent=wi),_e=l(t),m(ct.$$.fragment,t),xe=l(t),pt=s(t,"P",{"data-svelte-h":!0}),d(pt)!=="svelte-1r5icyl"&&(pt.innerHTML=Ti),Ce=l(t),ut=s(t,"UL",{"data-svelte-h":!0}),d(ut)!=="svelte-5q7f0v"&&(ut.innerHTML=fi),ke=l(t),yt=s(t,"P",{"data-svelte-h":!0}),d(yt)!=="svelte-5c3t0d"&&(yt.textContent=Mi),ze=l(t),gt=s(t,"P",{"data-svelte-h":!0}),d(gt)!=="svelte-1vn2n7x"&&(gt.innerHTML=vi),Ue=l(t),m(bt.$$.fragment,t),Ve=l(t),wt=s(t,"P",{"data-svelte-h":!0}),d(wt)!=="svelte-1w2f7fi"&&(wt.innerHTML=hi),Je=l(t),m(Tt.$$.fragment,t),Ie=l(t),ft=s(t,"P",{"data-svelte-h":!0}),d(ft)!=="svelte-5y3yhc"&&(ft.textContent=_i),We=l(t),Mt=s(t,"OL",{"data-svelte-h":!0}),d(Mt)!=="svelte-1shxxwh"&&(Mt.innerHTML=xi),qe=l(t),vt=s(t,"P",{"data-svelte-h":!0}),d(vt)!=="svelte-2bh5m6"&&(vt.innerHTML=Ci),je=l(t),ht=s(t,"P",{"data-svelte-h":!0}),d(ht)!=="svelte-m6e5t3"&&(ht.innerHTML=ki),Qe=l(t),m(_t.$$.fragment,t),Ze=l(t),xt=s(t,"P",{"data-svelte-h":!0}),d(xt)!=="svelte-d2xo64"&&(xt.innerHTML=zi),Be=l(t),m(Ct.$$.fragment,t),$e=l(t),kt=s(t,"P",{"data-svelte-h":!0}),d(kt)!=="svelte-4hpsr0"&&(kt.textContent=Ui),Fe=l(t),m(zt.$$.fragment,t),Ee=l(t),Ut=s(t,"P",{"data-svelte-h":!0}),d(Ut)!=="svelte-1e55rgb"&&(Ut.innerHTML=Vi),Re=l(t),Vt=s(t,"P",{"data-svelte-h":!0}),d(Vt)!=="svelte-17ga14b"&&(Vt.textContent=Ji),Xe=l(t),m(Jt.$$.fragment,t),Ge=l(t),Wt=s(t,"P",{}),Wi(Wt).forEach(i),this.h()},h(){Le(b,"name","hf:doc:metadata"),Le(b,"content",Oi),Le(g,"id","copyMsg"),w(g,"display","none"),w(g,"position","fixed"),w(g,"top","20px"),w(g,"left","50%"),w(g,"transform","translateX(-50%)"),w(g,"background","rgba(60, 179, 113, 0.95)"),w(g,"color","white"),w(g,"padding","10px 20px"),w(g,"border-radius","6px"),w(g,"box-shadow","0 4px 12px rgba(0, 0, 0, 0.15)"),w(g,"z-index","1000"),w(g,"font-family","'Segoe UI', sans-serif"),w(g,"font-size","14px"),w(g,"font-weight","500"),w(g,"letter-spacing","0.3px"),w(g,"white-space","nowrap")},m(t,e){Fi(document.head,b),n(t,h,e),n(t,f,e),n(t,It,e),c(_,t,e),n(t,jt,e),c(x,t,e),n(t,Qt,e),n(t,C,e),n(t,Zt,e),n(t,k,e),n(t,Bt,e),c(z,t,e),n(t,$t,e),n(t,U,e),n(t,Ft,e),n(t,g,e),n(t,Et,e),n(t,V,e),n(t,Rt,e),c(J,t,e),n(t,Xt,e),n(t,I,e),n(t,Gt,e),c(W,t,e),n(t,Ot,e),n(t,q,e),n(t,Lt,e),c(j,t,e),n(t,St,e),n(t,Q,e),n(t,Ht,e),c(Z,t,e),n(t,Nt,e),c(v,t,e),n(t,Yt,e),c(B,t,e),n(t,Pt,e),n(t,$,e),n(t,At,e),c(F,t,e),n(t,Dt,e),n(t,E,e),n(t,Kt,e),c(R,t,e),n(t,te,e),n(t,X,e),n(t,ee,e),c(G,t,e),n(t,ie,e),n(t,O,e),n(t,ne,e),n(t,L,e),n(t,ae,e),n(t,S,e),n(t,le,e),n(t,H,e),n(t,oe,e),n(t,N,e),n(t,se,e),n(t,Y,e),n(t,de,e),n(t,P,e),n(t,re,e),n(t,A,e),n(t,me,e),c(D,t,e),n(t,ce,e),n(t,K,e),n(t,pe,e),c(tt,t,e),n(t,ue,e),n(t,et,e),n(t,ye,e),n(t,it,e),n(t,ge,e),c(nt,t,e),n(t,be,e),n(t,at,e),n(t,we,e),c(lt,t,e),n(t,Te,e),n(t,ot,e),n(t,fe,e),c(st,t,e),n(t,Me,e),n(t,dt,e),n(t,ve,e),c(rt,t,e),n(t,he,e),n(t,mt,e),n(t,_e,e),c(ct,t,e),n(t,xe,e),n(t,pt,e),n(t,Ce,e),n(t,ut,e),n(t,ke,e),n(t,yt,e),n(t,ze,e),n(t,gt,e),n(t,Ue,e),c(bt,t,e),n(t,Ve,e),n(t,wt,e),n(t,Je,e),c(Tt,t,e),n(t,Ie,e),n(t,ft,e),n(t,We,e),n(t,Mt,e),n(t,qe,e),n(t,vt,e),n(t,je,e),n(t,ht,e),n(t,Qe,e),c(_t,t,e),n(t,Ze,e),n(t,xt,e),n(t,Be,e),c(Ct,t,e),n(t,$e,e),n(t,kt,e),n(t,Fe,e),c(zt,t,e),n(t,Ee,e),n(t,Ut,e),n(t,Re,e),n(t,Vt,e),n(t,Xe,e),c(Jt,t,e),n(t,Ge,e),n(t,Wt,e),Oe=!0},p(t,[e]){const Ii={};e&2&&(Ii.$$scope={dirty:e,ctx:t}),v.$set(Ii)},i(t){Oe||(p(_.$$.fragment,t),p(x.$$.fragment,t),p(z.$$.fragment,t),p(J.$$.fragment,t),p(W.$$.fragment,t),p(j.$$.fragment,t),p(Z.$$.fragment,t),p(v.$$.fragment,t),p(B.$$.fragment,t),p(F.$$.fragment,t),p(R.$$.fragment,t),p(G.$$.fragment,t),p(D.$$.fragment,t),p(tt.$$.fragment,t),p(nt.$$.fragment,t),p(lt.$$.fragment,t),p(st.$$.fragment,t),p(rt.$$.fragment,t),p(ct.$$.fragment,t),p(bt.$$.fragment,t),p(Tt.$$.fragment,t),p(_t.$$.fragment,t),p(Ct.$$.fragment,t),p(zt.$$.fragment,t),p(Jt.$$.fragment,t),Oe=!0)},o(t){u(_.$$.fragment,t),u(x.$$.fragment,t),u(z.$$.fragment,t),u(J.$$.fragment,t),u(W.$$.fragment,t),u(j.$$.fragment,t),u(Z.$$.fragment,t),u(v.$$.fragment,t),u(B.$$.fragment,t),u(F.$$.fragment,t),u(R.$$.fragment,t),u(G.$$.fragment,t),u(D.$$.fragment,t),u(tt.$$.fragment,t),u(nt.$$.fragment,t),u(lt.$$.fragment,t),u(st.$$.fragment,t),u(rt.$$.fragment,t),u(ct.$$.fragment,t),u(bt.$$.fragment,t),u(Tt.$$.fragment,t),u(_t.$$.fragment,t),u(Ct.$$.fragment,t),u(zt.$$.fragment,t),u(Jt.$$.fragment,t),Oe=!1},d(t){t&&(i(h),i(f),i(It),i(jt),i(Qt),i(C),i(Zt),i(k),i(Bt),i($t),i(U),i(Ft),i(g),i(Et),i(V),i(Rt),i(Xt),i(I),i(Gt),i(Ot),i(q),i(Lt),i(St),i(Q),i(Ht),i(Nt),i(Yt),i(Pt),i($),i(At),i(Dt),i(E),i(Kt),i(te),i(X),i(ee),i(ie),i(O),i(ne),i(L),i(ae),i(S),i(le),i(H),i(oe),i(N),i(se),i(Y),i(de),i(P),i(re),i(A),i(me),i(ce),i(K),i(pe),i(ue),i(et),i(ye),i(it),i(ge),i(be),i(at),i(we),i(Te),i(ot),i(fe),i(Me),i(dt),i(ve),i(he),i(mt),i(_e),i(xe),i(pt),i(Ce),i(ut),i(ke),i(yt),i(ze),i(gt),i(Ue),i(Ve),i(wt),i(Je),i(Ie),i(ft),i(We),i(Mt),i(qe),i(vt),i(je),i(ht),i(Qe),i(Ze),i(xt),i(Be),i($e),i(kt),i(Fe),i(Ee),i(Ut),i(Re),i(Vt),i(Xe),i(Ge),i(Wt)),i(b),y(_,t),y(x,t),y(z,t),y(J,t),y(W,t),y(j,t),y(Z,t),y(v,t),y(B,t),y(F,t),y(R,t),y(G,t),y(D,t),y(tt,t),y(nt,t),y(lt,t),y(st,t),y(rt,t),y(ct,t),y(bt,t),y(Tt,t),y(_t,t),y(Ct,t),y(zt,t),y(Jt,t)}}}const Oi='{"title":"Optimization","local":"optimization","sections":[{"title":"Optimization Support Matrix","local":"optimization-support-matrix","sections":[],"depth":2},{"title":"Weight-only Quantization","local":"weight-only-quantization","sections":[{"title":"8-bit","local":"8-bit","sections":[],"depth":3},{"title":"4-bit","local":"4-bit","sections":[],"depth":3}],"depth":2},{"title":"Full quantization","local":"full-quantization","sections":[{"title":"Speech-to-text Models Quantization","local":"speech-to-text-models-quantization","sections":[],"depth":3}],"depth":2},{"title":"Hybrid quantization","local":"hybrid-quantization","sections":[],"depth":2},{"title":"Mixed Quantization","local":"mixed-quantization","sections":[],"depth":2},{"title":"Pipeline Quantization","local":"pipeline-quantization","sections":[],"depth":2}],"depth":1}';function Li(qt){return ji(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ai extends Zi{constructor(b){super(),Bi(this,b,Li,Gi,qi,{})}}export{Ai as component};
