import{s as gt,o as ht,n as _t}from"../chunks/scheduler.9bc65507.js";import{S as bt,i as vt,g as r,s as o,r as u,A as yt,h as s,f as n,c as a,j as y,u as f,x as v,k as $,y as t,a as d,v as p,d as g,t as h,w as _}from"../chunks/index.707bf1b6.js";import{T as $t}from"../chunks/Tip.c2ecdbf4.js";import{D as w}from"../chunks/Docstring.17db21ae.js";import{H as Qe}from"../chunks/Heading.342b1fa6.js";function xt(pe){let c,F='Learn how to quantize models in the <a href="../quantization">Quantization</a> guide.';return{c(){c=r("p"),c.innerHTML=F},l(x){c=s(x,"P",{"data-svelte-h":!0}),v(c)!=="svelte-1pv1tva"&&(c.innerHTML=F)},m(x,Z){d(x,c,Z)},p:_t,d(x){x&&n(c)}}}function qt(pe){let c,F,x,Z,N,ge,D,tt="Quantization techniques reduces memory and computational costs by representing weights and activations with lower-precision data types like 8-bit integers (int8). This enables loading larger models you normally wouldn’t be able to fit into memory, and speeding up inference. Transformers supports the AWQ and GPTQ quantization algorithms and it supports 8-bit and 4-bit quantization with bitsandbytes.",he,C,_e,E,be,q,H,Me,ee,nt=`This is a wrapper class about all possible attributes and features that you can play with a model that has been
loaded using <code>auto-awq</code> library awq quantization relying on auto_awq backend.`,Ge,k,V,Fe,te,ot="Safety checker that arguments are correct",ve,I,ye,b,W,Ne,ne,at=`This is a wrapper class about all possible attributes and features that you can play with a model that has been
loaded using <code>optimum</code> api for gptq quantization relying on auto_gptq backend.`,De,A,O,Ee,oe,rt="Get compatible class with optimum gptq config dict",He,P,S,Ve,ae,st="Safety checker that arguments are correct",Ie,L,U,We,re,it="Get compatible dict for optimum gptq config",$e,j,xe,l,R,Oe,se,lt=`This is a wrapper class about all possible attributes and features that you can play with a model that has been
loaded using <code>bitsandbytes</code>.`,Se,ie,dt="This replaces <code>load_in_8bit</code> or <code>load_in_4bit</code>therefore both options are mutually exclusive.",Ue,le,ct=`Currently only supports <code>LLM.int8()</code>, <code>FP4</code>, and <code>NF4</code> quantization. If more methods are added to <code>bitsandbytes</code>,
then more arguments will be added to this class.`,je,B,Y,Re,de,mt="Returns <code>True</code> if the model is quantizable, <code>False</code> otherwise.",Ye,Q,J,Je,ce,ut="Safety checker that arguments are correct - also replaces some NoneType arguments with their default values.",Ke,M,K,Xe,me,ft=`This method returns the quantization method used for the model. If the model is not quantizable, it returns
<code>None</code>.`,Ze,G,X,et,ue,pt=`Removes all attributes from config which correspond to the default config attributes for better readability and
serializes to a Python dictionary.`,qe,fe,we;return N=new Qe({props:{title:"Quantization",local:"quantization",headingTag:"h1"}}),C=new $t({props:{$$slots:{default:[xt]},$$scope:{ctx:pe}}}),E=new Qe({props:{title:"AwqConfig",local:"transformers.AwqConfig",headingTag:"h2"}}),H=new w({props:{name:"class transformers.AwqConfig",anchor:"transformers.AwqConfig",parameters:[{name:"bits",val:": int = 4"},{name:"group_size",val:": int = 128"},{name:"zero_point",val:": bool = True"},{name:"version",val:": AWQLinearVersion = <AWQLinearVersion.GEMM: 'gemm'>"},{name:"backend",val:": AwqBackendPackingMethod = <AwqBackendPackingMethod.AUTOAWQ: 'autoawq'>"},{name:"do_fuse",val:": typing.Optional[bool] = None"},{name:"fuse_max_seq_len",val:": typing.Optional[int] = None"},{name:"modules_to_fuse",val:": typing.Optional[dict] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AwqConfig.bits",description:`<strong>bits</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
The number of bits to quantize to.`,name:"bits"},{anchor:"transformers.AwqConfig.group_size",description:`<strong>group_size</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
The group size to use for quantization. Recommended value is 128 and -1 uses per-column quantization.`,name:"group_size"},{anchor:"transformers.AwqConfig.zero_point",description:`<strong>zero_point</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use zero point quantization.`,name:"zero_point"},{anchor:"transformers.AwqConfig.version",description:`<strong>version</strong> (<code>AWQLinearVersion</code>, <em>optional</em>, defaults to <code>AWQLinearVersion.GEMM</code>) &#x2014;
The version of the quantization algorithm to use. GEMM is better for big batch_size (e.g. &gt;= 8) otherwise,
GEMV is better (e.g. &lt; 8 )`,name:"version"},{anchor:"transformers.AwqConfig.backend",description:`<strong>backend</strong> (<code>AwqBackendPackingMethod</code>, <em>optional</em>, defaults to <code>AwqBackendPackingMethod.AUTOAWQ</code>) &#x2014;
The quantization backend. Some models might be quantized using <code>llm-awq</code> backend. This is useful for users
that quantize their own models using <code>llm-awq</code> library.`,name:"backend"},{anchor:"transformers.AwqConfig.do_fuse",description:`<strong>do_fuse</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to fuse attention and mlp layers together for faster inference`,name:"do_fuse"},{anchor:"transformers.AwqConfig.fuse_max_seq_len",description:`<strong>fuse_max_seq_len</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The Maximum sequence length to generate when using fusing.`,name:"fuse_max_seq_len"},{anchor:"transformers.AwqConfig.modules_to_fuse",description:`<strong>modules_to_fuse</strong> (<code>dict</code>, <em>optional</em>, default to <code>None</code>) &#x2014;
Overwrite the natively supported fusing scheme with the one specified by the users.`,name:"modules_to_fuse"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/utils/quantization_config.py#L528"}}),V=new w({props:{name:"post_init",anchor:"transformers.AwqConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/utils/quantization_config.py#L584"}}),I=new Qe({props:{title:"GPTQConfig",local:"transformers.GPTQConfig",headingTag:"h2"}}),W=new w({props:{name:"class transformers.GPTQConfig",anchor:"transformers.GPTQConfig",parameters:[{name:"bits",val:": int"},{name:"tokenizer",val:": typing.Any = None"},{name:"dataset",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"group_size",val:": int = 128"},{name:"damp_percent",val:": float = 0.1"},{name:"desc_act",val:": bool = False"},{name:"sym",val:": bool = True"},{name:"true_sequential",val:": bool = True"},{name:"use_cuda_fp16",val:": bool = False"},{name:"model_seqlen",val:": typing.Optional[int] = None"},{name:"block_name_to_quantize",val:": typing.Optional[str] = None"},{name:"module_name_preceding_first_block",val:": typing.Optional[typing.List[str]] = None"},{name:"batch_size",val:": int = 1"},{name:"pad_token_id",val:": typing.Optional[int] = None"},{name:"use_exllama",val:": typing.Optional[bool] = None"},{name:"max_input_length",val:": typing.Optional[int] = None"},{name:"exllama_config",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"cache_block_outputs",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.GPTQConfig.bits",description:`<strong>bits</strong> (<code>int</code>) &#x2014;
The number of bits to quantize to, supported numbers are (2, 3, 4, 8).`,name:"bits"},{anchor:"transformers.GPTQConfig.tokenizer",description:`<strong>tokenizer</strong> (<code>str</code> or <code>PreTrainedTokenizerBase</code>, <em>optional</em>) &#x2014;
The tokenizer used to process the dataset. You can pass either:<ul>
<li>A custom tokenizer object.</li>
<li>A string, the <em>model id</em> of a predefined tokenizer hosted inside a model repo on huggingface.co.
Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or namespaced under a
user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>A path to a <em>directory</em> containing vocabulary files required by the tokenizer, for instance saved
using the <a href="/docs/transformers/v4.36.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.save_pretrained">save_pretrained()</a> method, e.g., <code>./my_model_directory/</code>.</li>
</ul>`,name:"tokenizer"},{anchor:"transformers.GPTQConfig.dataset",description:`<strong>dataset</strong> (<code>Union[List[str]]</code>, <em>optional</em>) &#x2014;
The dataset used for quantization. You can provide your own dataset in a list of string or just use the
original datasets used in GPTQ paper [&#x2018;wikitext2&#x2019;,&#x2018;c4&#x2019;,&#x2018;c4-new&#x2019;,&#x2018;ptb&#x2019;,&#x2018;ptb-new&#x2019;]`,name:"dataset"},{anchor:"transformers.GPTQConfig.group_size",description:`<strong>group_size</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
The group size to use for quantization. Recommended value is 128 and -1 uses per-column quantization.`,name:"group_size"},{anchor:"transformers.GPTQConfig.damp_percent",description:`<strong>damp_percent</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The percent of the average Hessian diagonal to use for dampening. Recommended value is 0.1.`,name:"damp_percent"},{anchor:"transformers.GPTQConfig.desc_act",description:`<strong>desc_act</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to quantize columns in order of decreasing activation size. Setting it to False can significantly
speed up inference but the perplexity may become slightly worse. Also known as act-order.`,name:"desc_act"},{anchor:"transformers.GPTQConfig.sym",description:`<strong>sym</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use symetric quantization.`,name:"sym"},{anchor:"transformers.GPTQConfig.true_sequential",description:`<strong>true_sequential</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to perform sequential quantization even within a single Transformer block. Instead of quantizing
the entire block at once, we perform layer-wise quantization. As a result, each layer undergoes
quantization using inputs that have passed through the previously quantized layers.`,name:"true_sequential"},{anchor:"transformers.GPTQConfig.use_cuda_fp16",description:`<strong>use_cuda_fp16</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use optimized cuda kernel for fp16 model. Need to have model in fp16.`,name:"use_cuda_fp16"},{anchor:"transformers.GPTQConfig.model_seqlen",description:`<strong>model_seqlen</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum sequence length that the model can take.`,name:"model_seqlen"},{anchor:"transformers.GPTQConfig.block_name_to_quantize",description:`<strong>block_name_to_quantize</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The transformers block name to quantize.`,name:"block_name_to_quantize"},{anchor:"transformers.GPTQConfig.module_name_preceding_first_block",description:`<strong>module_name_preceding_first_block</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
The layers that are preceding the first Transformer block.`,name:"module_name_preceding_first_block"},{anchor:"transformers.GPTQConfig.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The batch size used when processing the dataset`,name:"batch_size"},{anchor:"transformers.GPTQConfig.pad_token_id",description:`<strong>pad_token_id</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The pad token id. Needed to prepare the dataset when <code>batch_size</code> &gt; 1.`,name:"pad_token_id"},{anchor:"transformers.GPTQConfig.use_exllama",description:`<strong>use_exllama</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to use exllama backend. Defaults to <code>True</code> if unset. Only works with <code>bits</code> = 4.`,name:"use_exllama"},{anchor:"transformers.GPTQConfig.max_input_length",description:`<strong>max_input_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum input length. This is needed to initialize a buffer that depends on the maximum expected input
length. It is specific to the exllama backend with act-order.`,name:"max_input_length"},{anchor:"transformers.GPTQConfig.exllama_config",description:`<strong>exllama_config</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
The exllama config. You can specify the version of the exllama kernel through the <code>version</code> key. Defaults
to <code>{&quot;version&quot;: 1}</code> if unset.`,name:"exllama_config"},{anchor:"transformers.GPTQConfig.cache_block_outputs",description:`<strong>cache_block_outputs</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to cache block outputs to reuse as inputs for the succeeding block.`,name:"cache_block_outputs"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/utils/quantization_config.py#L329"}}),O=new w({props:{name:"from_dict_optimum",anchor:"transformers.GPTQConfig.from_dict_optimum",parameters:[{name:"config_dict",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/utils/quantization_config.py#L512"}}),S=new w({props:{name:"post_init",anchor:"transformers.GPTQConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/utils/quantization_config.py#L435"}}),U=new w({props:{name:"to_dict_optimum",anchor:"transformers.GPTQConfig.to_dict_optimum",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/utils/quantization_config.py#L503"}}),j=new Qe({props:{title:"BitsAndBytesConfig",local:"transformers.BitsAndBytesConfig",headingTag:"h2"}}),R=new w({props:{name:"class transformers.BitsAndBytesConfig",anchor:"transformers.BitsAndBytesConfig",parameters:[{name:"load_in_8bit",val:" = False"},{name:"load_in_4bit",val:" = False"},{name:"llm_int8_threshold",val:" = 6.0"},{name:"llm_int8_skip_modules",val:" = None"},{name:"llm_int8_enable_fp32_cpu_offload",val:" = False"},{name:"llm_int8_has_fp16_weight",val:" = False"},{name:"bnb_4bit_compute_dtype",val:" = None"},{name:"bnb_4bit_quant_type",val:" = 'fp4'"},{name:"bnb_4bit_use_double_quant",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BitsAndBytesConfig.load_in_8bit",description:`<strong>load_in_8bit</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
This flag is used to enable 8-bit quantization with LLM.int8().`,name:"load_in_8bit"},{anchor:"transformers.BitsAndBytesConfig.load_in_4bit",description:`<strong>load_in_4bit</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
This flag is used to enable 4-bit quantization by replacing the Linear layers with FP4/NF4 layers from
<code>bitsandbytes</code>.`,name:"load_in_4bit"},{anchor:"transformers.BitsAndBytesConfig.llm_int8_threshold",description:`<strong>llm_int8_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 6.0) &#x2014;
This corresponds to the outlier threshold for outlier detection as described in <code>LLM.int8() : 8-bit Matrix Multiplication for Transformers at Scale</code> paper: <a href="https://arxiv.org/abs/2208.07339" rel="nofollow">https://arxiv.org/abs/2208.07339</a> Any hidden states value
that is above this threshold will be considered an outlier and the operation on those values will be done
in fp16. Values are usually normally distributed, that is, most values are in the range [-3.5, 3.5], but
there are some exceptional systematic outliers that are very differently distributed for large models.
These outliers are often in the interval [-60, -6] or [6, 60]. Int8 quantization works well for values of
magnitude ~5, but beyond that, there is a significant performance penalty. A good default threshold is 6,
but a lower threshold might be needed for more unstable models (small models, fine-tuning).`,name:"llm_int8_threshold"},{anchor:"transformers.BitsAndBytesConfig.llm_int8_skip_modules",description:`<strong>llm_int8_skip_modules</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
An explicit list of the modules that we do not want to convert in 8-bit. This is useful for models such as
Jukebox that has several heads in different places and not necessarily at the last position. For example
for <code>CausalLM</code> models, the last <code>lm_head</code> is kept in its original <code>dtype</code>.`,name:"llm_int8_skip_modules"},{anchor:"transformers.BitsAndBytesConfig.llm_int8_enable_fp32_cpu_offload",description:`<strong>llm_int8_enable_fp32_cpu_offload</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
This flag is used for advanced use cases and users that are aware of this feature. If you want to split
your model in different parts and run some parts in int8 on GPU and some parts in fp32 on CPU, you can use
this flag. This is useful for offloading large models such as <code>google/flan-t5-xxl</code>. Note that the int8
operations will not be run on CPU.`,name:"llm_int8_enable_fp32_cpu_offload"},{anchor:"transformers.BitsAndBytesConfig.llm_int8_has_fp16_weight",description:`<strong>llm_int8_has_fp16_weight</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
This flag runs LLM.int8() with 16-bit main weights. This is useful for fine-tuning as the weights do not
have to be converted back and forth for the backward pass.`,name:"llm_int8_has_fp16_weight"},{anchor:"transformers.BitsAndBytesConfig.bnb_4bit_compute_dtype",description:`<strong>bnb_4bit_compute_dtype</strong> (<code>torch.dtype</code> or str, <em>optional</em>, defaults to <code>torch.float32</code>) &#x2014;
This sets the computational type which might be different than the input time. For example, inputs might be
fp32, but computation can be set to bf16 for speedups.`,name:"bnb_4bit_compute_dtype"},{anchor:"transformers.BitsAndBytesConfig.bnb_4bit_quant_type",description:`<strong>bnb_4bit_quant_type</strong> (<code>str</code>,  <em>optional</em>, defaults to <code>&quot;fp4&quot;</code>) &#x2014;
This sets the quantization data type in the bnb.nn.Linear4Bit layers. Options are FP4 and NF4 data types
which are specified by <code>fp4</code> or <code>nf4</code>.`,name:"bnb_4bit_quant_type"},{anchor:"transformers.BitsAndBytesConfig.bnb_4bit_use_double_quant",description:`<strong>bnb_4bit_use_double_quant</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
This flag is used for nested quantization where the quantization constants from the first quantization are
quantized again.`,name:"bnb_4bit_use_double_quant"},{anchor:"transformers.BitsAndBytesConfig.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional parameters from which to initialize the configuration object.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/utils/quantization_config.py#L151"}}),Y=new w({props:{name:"is_quantizable",anchor:"transformers.BitsAndBytesConfig.is_quantizable",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/utils/quantization_config.py#L266"}}),J=new w({props:{name:"post_init",anchor:"transformers.BitsAndBytesConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/utils/quantization_config.py#L235"}}),K=new w({props:{name:"quantization_method",anchor:"transformers.BitsAndBytesConfig.quantization_method",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/utils/quantization_config.py#L272"}}),X=new w({props:{name:"to_diff_dict",anchor:"transformers.BitsAndBytesConfig.to_diff_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/utils/quantization_config.py#L300",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dictionary of all the attributes that make up this configuration instance,</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict[str, Any]</code></p>
`}}),{c(){c=r("meta"),F=o(),x=r("p"),Z=o(),u(N.$$.fragment),ge=o(),D=r("p"),D.textContent=tt,he=o(),u(C.$$.fragment),_e=o(),u(E.$$.fragment),be=o(),q=r("div"),u(H.$$.fragment),Me=o(),ee=r("p"),ee.innerHTML=nt,Ge=o(),k=r("div"),u(V.$$.fragment),Fe=o(),te=r("p"),te.textContent=ot,ve=o(),u(I.$$.fragment),ye=o(),b=r("div"),u(W.$$.fragment),Ne=o(),ne=r("p"),ne.innerHTML=at,De=o(),A=r("div"),u(O.$$.fragment),Ee=o(),oe=r("p"),oe.textContent=rt,He=o(),P=r("div"),u(S.$$.fragment),Ve=o(),ae=r("p"),ae.textContent=st,Ie=o(),L=r("div"),u(U.$$.fragment),We=o(),re=r("p"),re.textContent=it,$e=o(),u(j.$$.fragment),xe=o(),l=r("div"),u(R.$$.fragment),Oe=o(),se=r("p"),se.innerHTML=lt,Se=o(),ie=r("p"),ie.innerHTML=dt,Ue=o(),le=r("p"),le.innerHTML=ct,je=o(),B=r("div"),u(Y.$$.fragment),Re=o(),de=r("p"),de.innerHTML=mt,Ye=o(),Q=r("div"),u(J.$$.fragment),Je=o(),ce=r("p"),ce.textContent=ut,Ke=o(),M=r("div"),u(K.$$.fragment),Xe=o(),me=r("p"),me.innerHTML=ft,Ze=o(),G=r("div"),u(X.$$.fragment),et=o(),ue=r("p"),ue.textContent=pt,qe=o(),fe=r("p"),this.h()},l(e){const i=yt("svelte-u9bgzb",document.head);c=s(i,"META",{name:!0,content:!0}),i.forEach(n),F=a(e),x=s(e,"P",{}),y(x).forEach(n),Z=a(e),f(N.$$.fragment,e),ge=a(e),D=s(e,"P",{"data-svelte-h":!0}),v(D)!=="svelte-1m63e94"&&(D.textContent=tt),he=a(e),f(C.$$.fragment,e),_e=a(e),f(E.$$.fragment,e),be=a(e),q=s(e,"DIV",{class:!0});var z=y(q);f(H.$$.fragment,z),Me=a(z),ee=s(z,"P",{"data-svelte-h":!0}),v(ee)!=="svelte-1i667it"&&(ee.innerHTML=nt),Ge=a(z),k=s(z,"DIV",{class:!0});var Te=y(k);f(V.$$.fragment,Te),Fe=a(Te),te=s(Te,"P",{"data-svelte-h":!0}),v(te)!=="svelte-1ozftb6"&&(te.textContent=ot),Te.forEach(n),z.forEach(n),ve=a(e),f(I.$$.fragment,e),ye=a(e),b=s(e,"DIV",{class:!0});var T=y(b);f(W.$$.fragment,T),Ne=a(T),ne=s(T,"P",{"data-svelte-h":!0}),v(ne)!=="svelte-i3efvr"&&(ne.innerHTML=at),De=a(T),A=s(T,"DIV",{class:!0});var ze=y(A);f(O.$$.fragment,ze),Ee=a(ze),oe=s(ze,"P",{"data-svelte-h":!0}),v(oe)!=="svelte-4jdj2l"&&(oe.textContent=rt),ze.forEach(n),He=a(T),P=s(T,"DIV",{class:!0});var Ce=y(P);f(S.$$.fragment,Ce),Ve=a(Ce),ae=s(Ce,"P",{"data-svelte-h":!0}),v(ae)!=="svelte-1ozftb6"&&(ae.textContent=st),Ce.forEach(n),Ie=a(T),L=s(T,"DIV",{class:!0});var ke=y(L);f(U.$$.fragment,ke),We=a(ke),re=s(ke,"P",{"data-svelte-h":!0}),v(re)!=="svelte-pjgtd6"&&(re.textContent=it),ke.forEach(n),T.forEach(n),$e=a(e),f(j.$$.fragment,e),xe=a(e),l=s(e,"DIV",{class:!0});var m=y(l);f(R.$$.fragment,m),Oe=a(m),se=s(m,"P",{"data-svelte-h":!0}),v(se)!=="svelte-woamwr"&&(se.innerHTML=lt),Se=a(m),ie=s(m,"P",{"data-svelte-h":!0}),v(ie)!=="svelte-ki5gis"&&(ie.innerHTML=dt),Ue=a(m),le=s(m,"P",{"data-svelte-h":!0}),v(le)!=="svelte-8qsk2q"&&(le.innerHTML=ct),je=a(m),B=s(m,"DIV",{class:!0});var Ae=y(B);f(Y.$$.fragment,Ae),Re=a(Ae),de=s(Ae,"P",{"data-svelte-h":!0}),v(de)!=="svelte-10tvzyv"&&(de.innerHTML=mt),Ae.forEach(n),Ye=a(m),Q=s(m,"DIV",{class:!0});var Pe=y(Q);f(J.$$.fragment,Pe),Je=a(Pe),ce=s(Pe,"P",{"data-svelte-h":!0}),v(ce)!=="svelte-gy26u4"&&(ce.textContent=ut),Pe.forEach(n),Ke=a(m),M=s(m,"DIV",{class:!0});var Le=y(M);f(K.$$.fragment,Le),Xe=a(Le),me=s(Le,"P",{"data-svelte-h":!0}),v(me)!=="svelte-19bn0da"&&(me.innerHTML=ft),Le.forEach(n),Ze=a(m),G=s(m,"DIV",{class:!0});var Be=y(G);f(X.$$.fragment,Be),et=a(Be),ue=s(Be,"P",{"data-svelte-h":!0}),v(ue)!=="svelte-1p6bdas"&&(ue.textContent=pt),Be.forEach(n),m.forEach(n),qe=a(e),fe=s(e,"P",{}),y(fe).forEach(n),this.h()},h(){$(c,"name","hf:doc:metadata"),$(c,"content",wt),$(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(l,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,i){t(document.head,c),d(e,F,i),d(e,x,i),d(e,Z,i),p(N,e,i),d(e,ge,i),d(e,D,i),d(e,he,i),p(C,e,i),d(e,_e,i),p(E,e,i),d(e,be,i),d(e,q,i),p(H,q,null),t(q,Me),t(q,ee),t(q,Ge),t(q,k),p(V,k,null),t(k,Fe),t(k,te),d(e,ve,i),p(I,e,i),d(e,ye,i),d(e,b,i),p(W,b,null),t(b,Ne),t(b,ne),t(b,De),t(b,A),p(O,A,null),t(A,Ee),t(A,oe),t(b,He),t(b,P),p(S,P,null),t(P,Ve),t(P,ae),t(b,Ie),t(b,L),p(U,L,null),t(L,We),t(L,re),d(e,$e,i),p(j,e,i),d(e,xe,i),d(e,l,i),p(R,l,null),t(l,Oe),t(l,se),t(l,Se),t(l,ie),t(l,Ue),t(l,le),t(l,je),t(l,B),p(Y,B,null),t(B,Re),t(B,de),t(l,Ye),t(l,Q),p(J,Q,null),t(Q,Je),t(Q,ce),t(l,Ke),t(l,M),p(K,M,null),t(M,Xe),t(M,me),t(l,Ze),t(l,G),p(X,G,null),t(G,et),t(G,ue),d(e,qe,i),d(e,fe,i),we=!0},p(e,[i]){const z={};i&2&&(z.$$scope={dirty:i,ctx:e}),C.$set(z)},i(e){we||(g(N.$$.fragment,e),g(C.$$.fragment,e),g(E.$$.fragment,e),g(H.$$.fragment,e),g(V.$$.fragment,e),g(I.$$.fragment,e),g(W.$$.fragment,e),g(O.$$.fragment,e),g(S.$$.fragment,e),g(U.$$.fragment,e),g(j.$$.fragment,e),g(R.$$.fragment,e),g(Y.$$.fragment,e),g(J.$$.fragment,e),g(K.$$.fragment,e),g(X.$$.fragment,e),we=!0)},o(e){h(N.$$.fragment,e),h(C.$$.fragment,e),h(E.$$.fragment,e),h(H.$$.fragment,e),h(V.$$.fragment,e),h(I.$$.fragment,e),h(W.$$.fragment,e),h(O.$$.fragment,e),h(S.$$.fragment,e),h(U.$$.fragment,e),h(j.$$.fragment,e),h(R.$$.fragment,e),h(Y.$$.fragment,e),h(J.$$.fragment,e),h(K.$$.fragment,e),h(X.$$.fragment,e),we=!1},d(e){e&&(n(F),n(x),n(Z),n(ge),n(D),n(he),n(_e),n(be),n(q),n(ve),n(ye),n(b),n($e),n(xe),n(l),n(qe),n(fe)),n(c),_(N,e),_(C,e),_(E,e),_(H),_(V),_(I,e),_(W),_(O),_(S),_(U),_(j,e),_(R),_(Y),_(J),_(K),_(X)}}}const wt='{"title":"Quantization","local":"quantization","sections":[{"title":"AwqConfig","local":"transformers.AwqConfig","sections":[],"depth":2},{"title":"GPTQConfig","local":"transformers.GPTQConfig","sections":[],"depth":2},{"title":"BitsAndBytesConfig","local":"transformers.BitsAndBytesConfig","sections":[],"depth":2}],"depth":1}';function Tt(pe){return ht(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Lt extends bt{constructor(c){super(),vt(this,c,Tt,qt,gt,{})}}export{Lt as component};
