import{s as Is,o as Bs,n as Vs}from"../chunks/scheduler.25b97de1.js";import{S as Fs,i as Gs,g as a,s as n,r as d,A as js,h as s,f as r,c as o,j as h,u as l,x as u,k as _,y as t,a as g,v as m,d as c,t as p,w as f}from"../chunks/index.d9030fc9.js";import{T as Os}from"../chunks/Tip.baa67368.js";import{D as b}from"../chunks/Docstring.ffac8efa.js";import{C as Ws}from"../chunks/CodeBlock.e6cd0d95.js";import{E as Ss}from"../chunks/ExampleCodeBlock.22dfe688.js";import{H as L,E as Us}from"../chunks/EditOnGithub.91d95064.js";function Rs(Ft){let $,B='Learn how to quantize models in the <a href="../quantization">Quantization</a> guide.';return{c(){$=a("p"),$.innerHTML=B},l(z){$=s(z,"P",{"data-svelte-h":!0}),u($)!=="svelte-1pv1tva"&&($.innerHTML=B)},m(z,D){g(z,$,D)},p:Vs,d(z){z&&r($)}}}function Ys(Ft){let $,B="Example:",z,D,A;return D=new Ws({props:{code:"cXVhbnRpemF0aW9uX2NvbmZpZyUyMCUzRCUyMFRvcmNoQW9Db25maWcoJTIyaW50NF93ZWlnaHRfb25seSUyMiUyQyUyMGdyb3VwX3NpemUlM0QzMiklMEElMjMlMjBpbnQ0X3dlaWdodF9vbmx5JTIwcXVhbnQlMjBpcyUyMG9ubHklMjB3b3JraW5nJTIwd2l0aCUyMCp0b3JjaC5iZmxvYXQxNiolMjBkdHlwZSUyMHJpZ2h0JTIwbm93JTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JDYXVzYWxMTS5mcm9tX3ByZXRyYWluZWQobW9kZWxfaWQlMkMlMjBkZXZpY2VfbWFwJTNEJTIyY3VkYSUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guYmZsb2F0MTYlMkMlMjBxdWFudGl6YXRpb25fY29uZmlnJTNEcXVhbnRpemF0aW9uX2NvbmZpZyk=",highlighted:`quantization_config = TorchAoConfig(<span class="hljs-string">&quot;int4_weight_only&quot;</span>, group_size=<span class="hljs-number">32</span>)
<span class="hljs-comment"># int4_weight_only quant is only working with *torch.bfloat16* dtype right now</span>
model = AutoModelForCausalLM.from_pretrained(model_id, device_map=<span class="hljs-string">&quot;cuda&quot;</span>, torch_dtype=torch.bfloat16, quantization_config=quantization_config)`,wrap:!1}}),{c(){$=a("p"),$.textContent=B,z=n(),d(D.$$.fragment)},l(x){$=s(x,"P",{"data-svelte-h":!0}),u($)!=="svelte-11lpom8"&&($.textContent=B),z=o(x),l(D.$$.fragment,x)},m(x,H){g(x,$,H),g(x,z,H),m(D,x,H),A=!0},p:Vs,i(x){A||(c(D.$$.fragment,x),A=!0)},o(x){p(D.$$.fragment,x),A=!1},d(x){x&&(r($),r(z)),f(D,x)}}}function Zs(Ft){let $,B,z,D,A,x,H,Ia="Quantization techniques reduce 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.",Un,De,Ba="Quantization techniques that aren’t supported in Transformers can be added with the <code>HfQuantizer</code> class.",Rn,R,Yn,Pe,Zn,M,Ae,ir,Gt,Fa=`This is a wrapper class about all possible attributes and features that you can play with a model that has been
loaded using <code>quanto</code>.`,dr,Y,He,lr,jt,Ga="Safety checker that arguments are correct",Xn,Me,Jn,Q,Qe,mr,Ot,ja="This is a wrapper class about <code>aqlm</code> parameters.",cr,Z,Ne,pr,Wt,Oa="Safety checker that arguments are correct - also replaces some NoneType arguments with their default values.",Kn,Ee,eo,N,Ve,fr,St,Wa="This is a wrapper class about <code>vptq</code> parameters.",gr,X,Ie,ur,Ut,Sa="Safety checker that arguments are correct",to,Be,no,E,Fe,hr,Rt,Ua=`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.`,_r,J,Ge,br,Yt,Ra="Safety checker that arguments are correct",oo,je,ro,V,Oe,vr,Zt,Ya=`This is a wrapper class about all possible attributes and features that you can play with a model that has been
loaded using <code>eetq</code>.`,yr,K,We,$r,Xt,Za="Safety checker that arguments are correct",ao,Se,so,w,Ue,qr,Jt,Xa=`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.`,xr,ee,Re,zr,Kt,Ja="Get compatible class with optimum gptq config dict",Cr,te,Ye,wr,en,Ka="Safety checker that arguments are correct",Tr,ne,Ze,kr,tn,es="Get compatible dict for optimum gptq config",io,Xe,lo,q,Je,Lr,nn,ts=`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>.`,Dr,on,ns="This replaces <code>load_in_8bit</code> or <code>load_in_4bit</code>therefore both options are mutually exclusive.",Pr,rn,os=`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.`,Ar,oe,Ke,Hr,an,rs="Returns <code>True</code> if the model is quantizable, <code>False</code> otherwise.",Mr,re,et,Qr,sn,as="Safety checker that arguments are correct - also replaces some NoneType arguments with their default values.",Nr,ae,tt,Er,dn,ss=`This method returns the quantization method used for the model. If the model is not quantizable, it returns
<code>None</code>.`,Vr,se,nt,Ir,ln,is=`Removes all attributes from config which correspond to the default config attributes for better readability and
serializes to a Python dictionary.`,mo,ot,co,v,rt,Br,mn,ds=`Abstract class of the HuggingFace quantizer. Supports for now quantizing HF transformers models for inference and/or quantization.
This class is used only for transformers.PreTrainedModel.from_pretrained and cannot be easily used outside the scope of that method
yet.`,Fr,cn,ls=`Attributes
quantization_config (<code>transformers.utils.quantization_config.QuantizationConfigMixin</code>):
The quantization config that defines the quantization parameters of your model that you want to quantize.
modules_to_not_convert (<code>List[str]</code>, <em>optional</em>):
The list of module names to not convert when quantizing the model.
required_packages (<code>List[str]</code>, <em>optional</em>):
The list of required pip packages to install prior to using the quantizer
requires_calibration (<code>bool</code>):
Whether the quantization method requires to calibrate the model before using it.
requires_parameters_quantization (<code>bool</code>):
Whether the quantization method requires to create a new Parameter. For example, for bitsandbytes, it is
required to create a new xxxParameter in order to properly quantize the model.`,Gr,ie,at,jr,pn,ms="adjust max_memory argument for infer_auto_device_map() if extra memory is needed for quantization",Or,de,st,Wr,fn,cs=`Override this method if you want to adjust the <code>target_dtype</code> variable used in <code>from_pretrained</code>
to compute the device_map in case the device_map is a <code>str</code>. E.g. for bitsandbytes we force-set <code>target_dtype</code>
to <code>torch.int8</code> and for 4-bit we pass a custom enum <code>accelerate.CustomDtype.int4</code>.`,Sr,le,it,Ur,gn,ps=`checks if a loaded state_dict component is part of quantized param + some validation; only defined if
requires_parameters_quantization == True for quantization methods that require to create a new parameters
for quantization.`,Rr,me,dt,Yr,un,fs=`takes needed components from state_dict and creates quantized param; only applicable if
requires_parameters_quantization == True`,Zr,ce,lt,Xr,hn,gs=`Potentially dequantize the model to retrive the original model, with some loss in accuracy / performance.
Note not all quantization schemes support this.`,Jr,pe,mt,Kr,_n,us=`returns dtypes for modules that are not quantized - used for the computation of the device_map in case
one passes a str as a device_map. The method will use the <code>modules_to_not_convert</code> that is modified
in <code>_process_model_before_weight_loading</code>.`,ea,fe,ct,ta,bn,hs=`Post-process the model post weights loading.
Make sure to override the abstract method <code>_process_model_after_weight_loading</code>.`,na,ge,pt,oa,vn,_s=`Setting model attributes and/or converting model before weights loading. At this point
the model should be initialized on the meta device so you can freely manipulate the skeleton
of the model in order to replace modules in-place. Make sure to override the abstract method <code>_process_model_before_weight_loading</code>.`,ra,ue,ft,aa,yn,bs=`Override this method if you want to pass a override the existing device map with a new
one. E.g. for bitsandbytes, since <code>accelerate</code> is a hard requirement, if no device_map is
passed, the device_map is set to \`“auto”“`,sa,he,gt,ia,$n,vs="Override this method if you want to adjust the <code>update_expected_keys</code>.",da,_e,ut,la,qn,ys="Override this method if you want to adjust the <code>missing_keys</code>.",ma,be,ht,ca,xn,$s=`Some quantization methods require to explicitly set the dtype of the model to a
target dtype. You need to override this method in case you want to make sure that behavior is
preserved`,pa,ve,_t,fa,zn,qs=`This method is used to potentially check for potential conflicts with arguments that are
passed in <code>from_pretrained</code>. You need to define it for all future quantizers that are integrated with transformers.
If no explicit check are needed, simply return nothing.`,po,bt,fo,I,vt,ga,Cn,xs="HiggsConfig is a configuration class for quantization using the HIGGS method.",ua,ye,yt,ha,wn,zs="Safety checker that arguments are correct - also replaces some NoneType arguments with their default values.",go,$t,uo,T,qt,_a,Tn,Cs="This is wrapper around hqq’s BaseQuantizeConfig.",ba,$e,xt,va,kn,ws="Override from_dict, used in AutoQuantizationConfig.from_dict in quantizers/auto.py",ya,qe,zt,$a,Ln,Ts="Safety checker that arguments are correct - also replaces some NoneType arguments with their default values.",qa,xe,Ct,xa,Dn,ks=`Removes all attributes from config which correspond to the default config attributes for better readability and
serializes to a Python dictionary.`,ho,wt,_o,W,Tt,za,Pn,Ls=`This is a wrapper class about all possible attributes and features that you can play with a model that has been
loaded using fbgemm fp8 quantization.`,bo,kt,vo,k,Lt,Ca,An,Ds=`This is a wrapper class that handles compressed-tensors quantization config options.
It is a wrapper around <code>compressed_tensors.QuantizationConfig</code>`,wa,ze,Dt,Ta,Hn,Ps=`Instantiates a <a href="/docs/transformers/main/en/main_classes/quantization#transformers.CompressedTensorsConfig">CompressedTensorsConfig</a> from a Python dictionary of parameters.
Optionally unwraps any args from the nested quantization_config`,ka,F,Pt,La,Mn,As="Quantization config to be added to config.json",Da,Qn,Hs=`Serializes this instance to a Python dictionary. Returns:
<code>Dict[str, Any]</code>: Dictionary of all the attributes that make up this configuration instance.`,Pa,Ce,At,Aa,Nn,Ms=`Removes all attributes from config which correspond to the default config attributes for better readability and
serializes to a Python dictionary.`,yo,Ht,$o,P,Mt,Ha,En,Qs="This is a config class for torchao quantization/sparsity techniques.",Ma,we,Qa,Te,Qt,Na,Vn,Ns="Safety checker that arguments are correct - also replaces some NoneType arguments with their default values.",qo,Nt,xo,S,Et,Ea,ke,Vt,Va,In,Es="Safety checker that arguments are correct",zo,It,Co,Sn,wo;return A=new L({props:{title:"Quantization",local:"quantization",headingTag:"h1"}}),R=new Os({props:{$$slots:{default:[Rs]},$$scope:{ctx:Ft}}}),Pe=new L({props:{title:"QuantoConfig",local:"transformers.QuantoConfig",headingTag:"h2"}}),Ae=new b({props:{name:"class transformers.QuantoConfig",anchor:"transformers.QuantoConfig",parameters:[{name:"weights",val:" = 'int8'"},{name:"activations",val:" = None"},{name:"modules_to_not_convert",val:": typing.Optional[typing.List] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.QuantoConfig.weights",description:`<strong>weights</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;int8&quot;</code>) &#x2014;
The target dtype for the weights after quantization. Supported values are (&#x201C;float8&#x201D;,&#x201C;int8&#x201D;,&#x201C;int4&#x201D;,&#x201C;int2&#x201D;)`,name:"weights"},{anchor:"transformers.QuantoConfig.activations",description:`<strong>activations</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The target dtype for the activations after quantization. Supported values are (None,&#x201C;int8&#x201D;,&#x201C;float8&#x201D;)`,name:"activations"},{anchor:"transformers.QuantoConfig.modules_to_not_convert",description:`<strong>modules_to_not_convert</strong> (<code>list</code>, <em>optional</em>, default to <code>None</code>) &#x2014;
The list of modules to not quantize, useful for quantizing models that explicitly require to have
some modules left in their original precision (e.g. Whisper encoder, Llava encoder, Mixtral gate layers).`,name:"modules_to_not_convert"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1140"}}),He=new b({props:{name:"post_init",anchor:"transformers.QuantoConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1169"}}),Me=new L({props:{title:"AqlmConfig",local:"transformers.AqlmConfig",headingTag:"h2"}}),Qe=new b({props:{name:"class transformers.AqlmConfig",anchor:"transformers.AqlmConfig",parameters:[{name:"in_group_size",val:": int = 8"},{name:"out_group_size",val:": int = 1"},{name:"num_codebooks",val:": int = 1"},{name:"nbits_per_codebook",val:": int = 16"},{name:"linear_weights_not_to_quantize",val:": typing.Optional[typing.List[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AqlmConfig.in_group_size",description:`<strong>in_group_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The group size along the input dimension.`,name:"in_group_size"},{anchor:"transformers.AqlmConfig.out_group_size",description:`<strong>out_group_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The group size along the output dimension. It&#x2019;s recommended to always use 1.`,name:"out_group_size"},{anchor:"transformers.AqlmConfig.num_codebooks",description:`<strong>num_codebooks</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of codebooks for the Additive Quantization procedure.`,name:"num_codebooks"},{anchor:"transformers.AqlmConfig.nbits_per_codebook",description:`<strong>nbits_per_codebook</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
Number of bits encoding a single codebook vector. Codebooks size is 2**nbits_per_codebook.`,name:"nbits_per_codebook"},{anchor:"transformers.AqlmConfig.linear_weights_not_to_quantize",description:`<strong>linear_weights_not_to_quantize</strong> (<code>Optional[List[str]]</code>, <em>optional</em>) &#x2014;
List of full paths of <code>nn.Linear</code> weight parameters that shall not be quantized.`,name:"linear_weights_not_to_quantize"},{anchor:"transformers.AqlmConfig.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/main/src/transformers/utils/quantization_config.py#L984"}}),Ne=new b({props:{name:"post_init",anchor:"transformers.AqlmConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1022"}}),Ee=new L({props:{title:"VptqConfig",local:"transformers.VptqConfig",headingTag:"h2"}}),Ve=new b({props:{name:"class transformers.VptqConfig",anchor:"transformers.VptqConfig",parameters:[{name:"enable_proxy_error",val:": bool = False"},{name:"config_for_layers",val:": typing.Dict[str, typing.Any] = {}"},{name:"shared_layer_config",val:": typing.Dict[str, typing.Any] = {}"},{name:"modules_to_not_convert",val:": typing.Optional[typing.List] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VptqConfig.enable_proxy_error",description:"<strong>enable_proxy_error</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014; calculate proxy error for each layer",name:"enable_proxy_error"},{anchor:"transformers.VptqConfig.config_for_layers",description:"<strong>config_for_layers</strong> (<code>Dict</code>, <em>optional</em>, defaults to <code>{}</code>) &#x2014; quantization params for each layer",name:"config_for_layers"},{anchor:"transformers.VptqConfig.shared_layer_config",description:"<strong>shared_layer_config</strong> (<code>Dict</code>, <em>optional</em>, defaults to <code>{}</code>) &#x2014; shared quantization params among layers",name:"shared_layer_config"},{anchor:"transformers.VptqConfig.modules_to_not_convert",description:`<strong>modules_to_not_convert</strong> (<code>list</code>, <em>optional</em>, default to <code>None</code>) &#x2014;
The list of modules to not quantize, useful for quantizing models that explicitly require to have
some modules left in their original precision (e.g. Whisper encoder, Llava encoder, Mixtral gate layers).`,name:"modules_to_not_convert"},{anchor:"transformers.VptqConfig.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/main/src/transformers/utils/quantization_config.py#L1099"}}),Ie=new b({props:{name:"post_init",anchor:"transformers.VptqConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1130"}}),Be=new L({props:{title:"AwqConfig",local:"transformers.AwqConfig",headingTag:"h2"}}),Fe=new b({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:"modules_to_not_convert",val:": typing.Optional[typing.List] = None"},{name:"exllama_config",val:": typing.Optional[typing.Dict[str, int]] = 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 ). GEMM models are compatible with Exllama kernels.`,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"},{anchor:"transformers.AwqConfig.modules_to_not_convert",description:`<strong>modules_to_not_convert</strong> (<code>list</code>, <em>optional</em>, default to <code>None</code>) &#x2014;
The list of modules to not quantize, useful for quantizing models that explicitly require to have
some modules left in their original precision (e.g. Whisper encoder, Llava encoder, Mixtral gate layers).
Note you cannot quantize directly with transformers, please refer to <code>AutoAWQ</code> documentation for quantizing HF models.`,name:"modules_to_not_convert"},{anchor:"transformers.AwqConfig.exllama_config",description:`<strong>exllama_config</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
You can specify the version of the exllama kernel through the <code>version</code> key, the maximum sequence
length through the <code>max_input_len</code> key, and the maximum batch size through the <code>max_batch_size</code> key.
Defaults to <code>{&quot;version&quot;: 2, &quot;max_input_len&quot;: 2048, &quot;max_batch_size&quot;: 8}</code> if unset.`,name:"exllama_config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L811"}}),Ge=new b({props:{name:"post_init",anchor:"transformers.AwqConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L880"}}),je=new L({props:{title:"EetqConfig",local:"transformers.EetqConfig",headingTag:"h2"}}),Oe=new b({props:{name:"class transformers.EetqConfig",anchor:"transformers.EetqConfig",parameters:[{name:"weights",val:": str = 'int8'"},{name:"modules_to_not_convert",val:": typing.Optional[typing.List] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.EetqConfig.weights",description:`<strong>weights</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;int8&quot;</code>) &#x2014;
The target dtype for the weights. Supported value is only &#x201C;int8&#x201D;`,name:"weights"},{anchor:"transformers.EetqConfig.modules_to_not_convert",description:`<strong>modules_to_not_convert</strong> (<code>list</code>, <em>optional</em>, default to <code>None</code>) &#x2014;
The list of modules to not quantize, useful for quantizing models that explicitly require to have
some modules left in their original precision.`,name:"modules_to_not_convert"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1181"}}),We=new b({props:{name:"post_init",anchor:"transformers.EetqConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1206"}}),Se=new L({props:{title:"GPTQConfig",local:"transformers.GPTQConfig",headingTag:"h2"}}),Ue=new b({props:{name:"class transformers.GPTQConfig",anchor:"transformers.GPTQConfig",parameters:[{name:"bits",val:": int"},{name:"tokenizer",val:": typing.Any = None"},{name:"dataset",val:": typing.Union[typing.List[str], 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:"checkpoint_format",val:": str = 'gptq'"},{name:"meta",val:": typing.Optional[typing.Dict[str, <built-in function any>]] = None"},{name:"backend",val:": typing.Optional[str] = None"},{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.Optional[typing.Dict[str, typing.Any]] = None"},{name:"cache_block_outputs",val:": bool = True"},{name:"modules_in_block_to_quantize",val:": typing.Optional[typing.List[typing.List[str]]] = None"},{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.</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/main/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;]`,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.checkpoint_format",description:`<strong>checkpoint_format</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;gptq&quot;</code>) &#x2014;
GPTQ weight format. <code>gptq</code>(v1) is supported by both gptqmodel and auto-gptq. <code>gptq_v2</code> is gptqmodel only.`,name:"checkpoint_format"},{anchor:"transformers.GPTQConfig.meta",description:`<strong>meta</strong> (<code>Dict[str, any]</code>, <em>optional</em>) &#x2014;
Properties, such as tooling:version, that do not directly contributes to quantization or quant inference are stored in meta.
i.e. <code>meta.quantizer</code>: [&#x201C;optimum:<em>version</em>&#x201D;, &#x201C;gptqmodel:<em>version</em>&#x201D;]`,name:"meta"},{anchor:"transformers.GPTQConfig.backend",description:`<strong>backend</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Controls which gptq kernel to be used. Valid values for gptqmodel are <code>auto</code>, <code>auto_trainable</code> and more. For auto-gptq, only
valid value is None and <code>auto_trainable</code>. Ref gptqmodel backends: <a href="https://github.com/ModelCloud/GPTQModel/blob/main/gptqmodel/utils/backend.py" rel="nofollow">https://github.com/ModelCloud/GPTQModel/blob/main/gptqmodel/utils/backend.py</a>`,name:"backend"},{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. Auto-gptq only.`,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. If None, we will infer the block name using common patterns (e.g. model.layers)`,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"},{anchor:"transformers.GPTQConfig.modules_in_block_to_quantize",description:`<strong>modules_in_block_to_quantize</strong> (<code>List[List[str]]</code>, <em>optional</em>) &#x2014;
List of list of module names to quantize in the specified block. This argument is useful to exclude certain linear modules from being quantized.
The block to quantize can be specified by setting <code>block_name_to_quantize</code>. We will quantize each list sequentially. If not set, we will quantize all linear layers.
Example: <code>modules_in_block_to_quantize =[[&quot;self_attn.k_proj&quot;, &quot;self_attn.v_proj&quot;, &quot;self_attn.q_proj&quot;], [&quot;self_attn.o_proj&quot;]]</code>.
In this example, we will first quantize the q,k,v layers simultaneously since they are independent.
Then, we will quantize <code>self_attn.o_proj</code> layer with the q,k,v layers quantized. This way, we will get
better results since it reflects the real input <code>self_attn.o_proj</code> will get when the model is quantized.`,name:"modules_in_block_to_quantize"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L561"}}),Re=new b({props:{name:"from_dict_optimum",anchor:"transformers.GPTQConfig.from_dict_optimum",parameters:[{name:"config_dict",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L796"}}),Ye=new b({props:{name:"post_init",anchor:"transformers.GPTQConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L696"}}),Ze=new b({props:{name:"to_dict_optimum",anchor:"transformers.GPTQConfig.to_dict_optimum",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L787"}}),Xe=new L({props:{title:"BitsAndBytesConfig",local:"transformers.BitsAndBytesConfig",headingTag:"h2"}}),Je=new b({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:"bnb_4bit_quant_storage",val:" = None"},{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 type. 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.bnb_4bit_quant_storage",description:`<strong>bnb_4bit_quant_storage</strong> (<code>torch.dtype</code> or str, <em>optional</em>, defaults to <code>torch.uint8</code>) &#x2014;
This sets the storage type to pack the quanitzed 4-bit prarams.`,name:"bnb_4bit_quant_storage"},{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/main/src/transformers/utils/quantization_config.py#L325"}}),Ke=new b({props:{name:"is_quantizable",anchor:"transformers.BitsAndBytesConfig.is_quantizable",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L496"}}),et=new b({props:{name:"post_init",anchor:"transformers.BitsAndBytesConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L459"}}),tt=new b({props:{name:"quantization_method",anchor:"transformers.BitsAndBytesConfig.quantization_method",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L502"}}),nt=new b({props:{name:"to_diff_dict",anchor:"transformers.BitsAndBytesConfig.to_diff_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L533",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>
`}}),ot=new L({props:{title:"HfQuantizer",local:"transformers.quantizers.HfQuantizer",headingTag:"h2"}}),rt=new b({props:{name:"class transformers.quantizers.HfQuantizer",anchor:"transformers.quantizers.HfQuantizer",parameters:[{name:"quantization_config",val:": QuantizationConfigMixin"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L28"}}),at=new b({props:{name:"adjust_max_memory",anchor:"transformers.quantizers.HfQuantizer.adjust_max_memory",parameters:[{name:"max_memory",val:": typing.Dict[str, typing.Union[int, str]]"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L143"}}),st=new b({props:{name:"adjust_target_dtype",anchor:"transformers.quantizers.HfQuantizer.adjust_target_dtype",parameters:[{name:"torch_dtype",val:": torch.dtype"}],parametersDescription:[{anchor:"transformers.quantizers.HfQuantizer.adjust_target_dtype.torch_dtype",description:`<strong>torch_dtype</strong> (<code>torch.dtype</code>, <em>optional</em>) &#x2014;
The torch_dtype that is used to compute the device_map.`,name:"torch_dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L90"}}),it=new b({props:{name:"check_quantized_param",anchor:"transformers.quantizers.HfQuantizer.check_quantized_param",parameters:[{name:"model",val:": PreTrainedModel"},{name:"param_value",val:": torch.Tensor"},{name:"param_name",val:": str"},{name:"state_dict",val:": typing.Dict[str, typing.Any]"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L147"}}),dt=new b({props:{name:"create_quantized_param",anchor:"transformers.quantizers.HfQuantizer.create_quantized_param",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L162"}}),lt=new b({props:{name:"dequantize",anchor:"transformers.quantizers.HfQuantizer.dequantize",parameters:[{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L209"}}),mt=new b({props:{name:"get_special_dtypes_update",anchor:"transformers.quantizers.HfQuantizer.get_special_dtypes_update",parameters:[{name:"model",val:""},{name:"torch_dtype",val:": torch.dtype"}],parametersDescription:[{anchor:"transformers.quantizers.HfQuantizer.get_special_dtypes_update.model",description:`<strong>model</strong> (<code>~transformers.PreTrainedModel</code>) &#x2014;
The model to quantize`,name:"model"},{anchor:"transformers.quantizers.HfQuantizer.get_special_dtypes_update.torch_dtype",description:`<strong>torch_dtype</strong> (<code>torch.dtype</code>) &#x2014;
The dtype passed in <code>from_pretrained</code> method.`,name:"torch_dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L124"}}),ct=new b({props:{name:"postprocess_model",anchor:"transformers.quantizers.HfQuantizer.postprocess_model",parameters:[{name:"model",val:": PreTrainedModel"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.quantizers.HfQuantizer.postprocess_model.model",description:`<strong>model</strong> (<code>~transformers.PreTrainedModel</code>) &#x2014;
The model to quantize`,name:"model"},{anchor:"transformers.quantizers.HfQuantizer.postprocess_model.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
The keyword arguments that are passed along <code>_process_model_after_weight_loading</code>.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L196"}}),pt=new b({props:{name:"preprocess_model",anchor:"transformers.quantizers.HfQuantizer.preprocess_model",parameters:[{name:"model",val:": PreTrainedModel"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.quantizers.HfQuantizer.preprocess_model.model",description:`<strong>model</strong> (<code>~transformers.PreTrainedModel</code>) &#x2014;
The model to quantize`,name:"model"},{anchor:"transformers.quantizers.HfQuantizer.preprocess_model.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
The keyword arguments that are passed along <code>_process_model_before_weight_loading</code>.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L180"}}),ft=new b({props:{name:"update_device_map",anchor:"transformers.quantizers.HfQuantizer.update_device_map",parameters:[{name:"device_map",val:": typing.Optional[typing.Dict[str, typing.Any]]"}],parametersDescription:[{anchor:"transformers.quantizers.HfQuantizer.update_device_map.device_map",description:`<strong>device_map</strong> (<code>Union[dict, str]</code>, <em>optional</em>) &#x2014;
The device_map that is passed through the <code>from_pretrained</code> method.`,name:"device_map"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L78"}}),gt=new b({props:{name:"update_expected_keys",anchor:"transformers.quantizers.HfQuantizer.update_expected_keys",parameters:[{name:"model",val:""},{name:"expected_keys",val:": typing.List[str]"},{name:"loaded_keys",val:": typing.List[str]"}],parametersDescription:[{anchor:"transformers.quantizers.HfQuantizer.update_expected_keys.expected_keys",description:`<strong>expected_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
The list of the expected keys in the initialized model.`,name:"expected_keys"},{anchor:"transformers.quantizers.HfQuantizer.update_expected_keys.loaded_keys",description:`<strong>loaded_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
The list of the loaded keys in the checkpoint.`,name:"loaded_keys"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L112"}}),ut=new b({props:{name:"update_missing_keys",anchor:"transformers.quantizers.HfQuantizer.update_missing_keys",parameters:[{name:"model",val:""},{name:"missing_keys",val:": typing.List[str]"},{name:"prefix",val:": str"}],parametersDescription:[{anchor:"transformers.quantizers.HfQuantizer.update_missing_keys.missing_keys",description:`<strong>missing_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
The list of missing keys in the checkpoint compared to the state dict of the model`,name:"missing_keys"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L102"}}),ht=new b({props:{name:"update_torch_dtype",anchor:"transformers.quantizers.HfQuantizer.update_torch_dtype",parameters:[{name:"torch_dtype",val:": torch.dtype"}],parametersDescription:[{anchor:"transformers.quantizers.HfQuantizer.update_torch_dtype.torch_dtype",description:`<strong>torch_dtype</strong> (<code>torch.dtype</code>) &#x2014;
The input dtype that is passed in <code>from_pretrained</code>`,name:"torch_dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L66"}}),_t=new b({props:{name:"validate_environment",anchor:"transformers.quantizers.HfQuantizer.validate_environment",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/quantizers/base.py#L172"}}),bt=new L({props:{title:"HiggsConfig",local:"transformers.HiggsConfig",headingTag:"h2"}}),vt=new b({props:{name:"class transformers.HiggsConfig",anchor:"transformers.HiggsConfig",parameters:[{name:"bits",val:": int = 4"},{name:"p",val:": int = 2"},{name:"modules_to_not_convert",val:": typing.Optional[typing.List[str]] = None"},{name:"hadamard_size",val:": int = 512"},{name:"group_size",val:": int = 256"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.HiggsConfig.bits",description:`<strong>bits</strong> (int, <em>optional</em>, defaults to 4) &#x2014;
Number of bits to use for quantization. Can be 2, 3 or 4. Default is 4.`,name:"bits"},{anchor:"transformers.HiggsConfig.p",description:`<strong>p</strong> (int, <em>optional</em>, defaults to 2) &#x2014;
Quantization grid dimension. 1 and 2 are supported. 2 is always better in practice. Default is 2.`,name:"p"},{anchor:"transformers.HiggsConfig.modules_to_not_convert",description:`<strong>modules_to_not_convert</strong> (<code>list</code>, <em>optional</em>, default to [&#x201C;lm_head&#x201D;]) &#x2014;
List of linear layers that should not be quantized.`,name:"modules_to_not_convert"},{anchor:"transformers.HiggsConfig.hadamard_size",description:`<strong>hadamard_size</strong> (int, <em>optional</em>, defaults to 512) &#x2014;
Hadamard size for the HIGGS method. Default is 512. Input dimension of matrices is padded to this value. Decreasing this below 512 will reduce the quality of the quantization.`,name:"hadamard_size"},{anchor:"transformers.HiggsConfig.group_size",description:`<strong>group_size</strong> (int, <em>optional</em>, defaults to 256) &#x2014;
Group size for the HIGGS method. Can be 64, 128 or 256. Decreasing it barely affects the performance. Default is 256. Must be a divisor of hadamard_size.`,name:"group_size"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1389"}}),yt=new b({props:{name:"post_init",anchor:"transformers.HiggsConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1427"}}),$t=new L({props:{title:"HqqConfig",local:"transformers.HqqConfig",headingTag:"h2"}}),qt=new b({props:{name:"class transformers.HqqConfig",anchor:"transformers.HqqConfig",parameters:[{name:"nbits",val:": int = 4"},{name:"group_size",val:": int = 64"},{name:"view_as_float",val:": bool = False"},{name:"axis",val:": typing.Optional[int] = None"},{name:"dynamic_config",val:": typing.Optional[dict] = None"},{name:"skip_modules",val:": typing.List[str] = ['lm_head']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.HqqConfig.nbits",description:`<strong>nbits</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
Number of bits. Supported values are (8, 4, 3, 2, 1).`,name:"nbits"},{anchor:"transformers.HqqConfig.group_size",description:`<strong>group_size</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
Group-size value. Supported values are any value that is divisble by weight.shape[axis]).`,name:"group_size"},{anchor:"transformers.HqqConfig.view_as_float",description:`<strong>view_as_float</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
View the quantized weight as float (used in distributed training) if set to <code>True</code>.`,name:"view_as_float"},{anchor:"transformers.HqqConfig.axis",description:`<strong>axis</strong> (<code>Optional[int]</code>, <em>optional</em>) &#x2014;
Axis along which grouping is performed. Supported values are 0 or 1.`,name:"axis"},{anchor:"transformers.HqqConfig.dynamic_config",description:`<strong>dynamic_config</strong> (dict, <em>optional</em>) &#x2014;
Parameters for dynamic configuration. The key is the name tag of the layer and the value is a quantization config.
If set, each layer specified by its id will use its dedicated quantization configuration.`,name:"dynamic_config"},{anchor:"transformers.HqqConfig.skip_modules",description:`<strong>skip_modules</strong> (<code>List[str]</code>, <em>optional</em>, defaults to <code>[&apos;lm_head&apos;]</code>) &#x2014;
List of <code>nn.Linear</code> layers to skip.`,name:"skip_modules"},{anchor:"transformers.HqqConfig.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/main/src/transformers/utils/quantization_config.py#L200"}}),xt=new b({props:{name:"from_dict",anchor:"transformers.HqqConfig.from_dict",parameters:[{name:"config",val:": typing.Dict[str, typing.Any]"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L278"}}),zt=new b({props:{name:"post_init",anchor:"transformers.HqqConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L272"}}),Ct=new b({props:{name:"to_diff_dict",anchor:"transformers.HqqConfig.to_diff_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L303",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>
`}}),wt=new L({props:{title:"FbgemmFp8Config",local:"transformers.FbgemmFp8Config",headingTag:"h2"}}),Tt=new b({props:{name:"class transformers.FbgemmFp8Config",anchor:"transformers.FbgemmFp8Config",parameters:[{name:"activation_scale_ub",val:": float = 1200.0"},{name:"modules_to_not_convert",val:": typing.Optional[typing.List] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FbgemmFp8Config.activation_scale_ub",description:`<strong>activation_scale_ub</strong> (<code>float</code>, <em>optional</em>, defaults to 1200.0) &#x2014;
The activation scale upper bound. This is used when quantizing the input activation.`,name:"activation_scale_ub"},{anchor:"transformers.FbgemmFp8Config.modules_to_not_convert",description:`<strong>modules_to_not_convert</strong> (<code>list</code>, <em>optional</em>, default to <code>None</code>) &#x2014;
The list of modules to not quantize, useful for quantizing models that explicitly require to have
some modules left in their original precision.`,name:"modules_to_not_convert"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1358"}}),kt=new L({props:{title:"CompressedTensorsConfig",local:"transformers.CompressedTensorsConfig",headingTag:"h2"}}),Lt=new b({props:{name:"class transformers.CompressedTensorsConfig",anchor:"transformers.CompressedTensorsConfig",parameters:[{name:"config_groups",val:": typing.Dict[str, typing.Union[ForwardRef('QuantizationScheme'), typing.List[str]]] = None"},{name:"format",val:": str = 'dense'"},{name:"quantization_status",val:": QuantizationStatus = 'initialized'"},{name:"kv_cache_scheme",val:": typing.Optional[ForwardRef('QuantizationArgs')] = None"},{name:"global_compression_ratio",val:": typing.Optional[float] = None"},{name:"ignore",val:": typing.Optional[typing.List[str]] = None"},{name:"sparsity_config",val:": typing.Dict[str, typing.Any] = None"},{name:"quant_method",val:": str = 'compressed-tensors'"},{name:"run_compressed",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.CompressedTensorsConfig.config_groups",description:`<strong>config_groups</strong> (<code>typing.Dict[str, typing.Union[ForwardRef(&apos;QuantizationScheme&apos;), typing.List[str]]]</code>, <em>optional</em>) &#x2014;
dictionary mapping group name to a quantization scheme definition`,name:"config_groups"},{anchor:"transformers.CompressedTensorsConfig.format",description:`<strong>format</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;dense&quot;</code>) &#x2014;
format the model is represented as. Set <code>run_compressed</code> True to execute model as the
compressed format if not <code>dense</code>`,name:"format"},{anchor:"transformers.CompressedTensorsConfig.quantization_status",description:`<strong>quantization_status</strong> (<code>QuantizationStatus</code>, <em>optional</em>, defaults to <code>&quot;initialized&quot;</code>) &#x2014;
status of model in the quantization lifecycle, ie &#x2018;initialized&#x2019;, &#x2018;calibration&#x2019;, &#x2018;frozen&#x2019;`,name:"quantization_status"},{anchor:"transformers.CompressedTensorsConfig.kv_cache_scheme",description:`<strong>kv_cache_scheme</strong> (<code>typing.Union[QuantizationArgs, NoneType]</code>, <em>optional</em>) &#x2014;
specifies quantization of the kv cache. If None, kv cache is not quantized.`,name:"kv_cache_scheme"},{anchor:"transformers.CompressedTensorsConfig.global_compression_ratio",description:`<strong>global_compression_ratio</strong> (<code>typing.Union[float, NoneType]</code>, <em>optional</em>) &#x2014;
0-1 float percentage of model compression`,name:"global_compression_ratio"},{anchor:"transformers.CompressedTensorsConfig.ignore",description:`<strong>ignore</strong> (<code>typing.Union[typing.List[str], NoneType]</code>, <em>optional</em>) &#x2014;
layer names or types to not quantize, supports regex prefixed by &#x2018;re:&#x2019;`,name:"ignore"},{anchor:"transformers.CompressedTensorsConfig.sparsity_config",description:`<strong>sparsity_config</strong> (<code>typing.Dict[str, typing.Any]</code>, <em>optional</em>) &#x2014;
configuration for sparsity compression`,name:"sparsity_config"},{anchor:"transformers.CompressedTensorsConfig.quant_method",description:`<strong>quant_method</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;compressed-tensors&quot;</code>) &#x2014;
do not override, should be compressed-tensors`,name:"quant_method"},{anchor:"transformers.CompressedTensorsConfig.run_compressed",description:`<strong>run_compressed</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014; alter submodules (usually linear) in order to
emulate compressed model execution if True, otherwise use default submodule`,name:"run_compressed"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1215"}}),Dt=new b({props:{name:"from_dict",anchor:"transformers.CompressedTensorsConfig.from_dict",parameters:[{name:"config_dict",val:""},{name:"return_unused_kwargs",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.CompressedTensorsConfig.from_dict.config_dict",description:`<strong>config_dict</strong> (<code>Dict[str, Any]</code>) &#x2014;
Dictionary that will be used to instantiate the configuration object.`,name:"config_dict"},{anchor:"transformers.CompressedTensorsConfig.from_dict.return_unused_kwargs",description:`<strong>return_unused_kwargs</strong> (<code>bool</code>,<em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return a list of unused keyword arguments. Used for <code>from_pretrained</code> method in
<code>PreTrainedModel</code>.`,name:"return_unused_kwargs"},{anchor:"transformers.CompressedTensorsConfig.from_dict.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>) &#x2014;
Additional parameters from which to initialize the configuration object.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1285",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The configuration object instantiated from those parameters.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>QuantizationConfigMixin</code></p>
`}}),Pt=new b({props:{name:"to_dict",anchor:"transformers.CompressedTensorsConfig.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1313"}}),At=new b({props:{name:"to_diff_dict",anchor:"transformers.CompressedTensorsConfig.to_diff_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1333",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>
`}}),Ht=new L({props:{title:"TorchAoConfig",local:"transformers.TorchAoConfig",headingTag:"h2"}}),Mt=new b({props:{name:"class transformers.TorchAoConfig",anchor:"transformers.TorchAoConfig",parameters:[{name:"quant_type",val:": str"},{name:"modules_to_not_convert",val:": typing.Optional[typing.List] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TorchAoConfig.quant_type",description:`<strong>quant_type</strong> (<code>str</code>) &#x2014;
The type of quantization we want to use, currently supporting: <code>int4_weight_only</code>, <code>int8_weight_only</code> and <code>int8_dynamic_activation_int8_weight</code>.`,name:"quant_type"},{anchor:"transformers.TorchAoConfig.modules_to_not_convert",description:`<strong>modules_to_not_convert</strong> (<code>list</code>, <em>optional</em>, default to <code>None</code>) &#x2014;
The list of modules to not quantize, useful for quantizing models that explicitly require to have
some modules left in their original precision.`,name:"modules_to_not_convert"},{anchor:"transformers.TorchAoConfig.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
The keyword arguments for the chosen type of quantization, for example, int4_weight_only quantization supports two keyword arguments
<code>group_size</code> and <code>inner_k_tiles</code> currently. More API examples and documentation of arguments can be found in
<a href="https://github.com/pytorch/ao/tree/main/torchao/quantization#other-available-quantization-techniques" rel="nofollow">https://github.com/pytorch/ao/tree/main/torchao/quantization#other-available-quantization-techniques</a>`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1441"}}),we=new Ss({props:{anchor:"transformers.TorchAoConfig.example",$$slots:{default:[Ys]},$$scope:{ctx:Ft}}}),Qt=new b({props:{name:"post_init",anchor:"transformers.TorchAoConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1477"}}),Nt=new L({props:{title:"BitNetConfig",local:"transformers.BitNetConfig",headingTag:"h2"}}),Et=new b({props:{name:"class transformers.BitNetConfig",anchor:"transformers.BitNetConfig",parameters:[{name:"modules_to_not_convert",val:": typing.Optional[typing.List] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1535"}}),Vt=new b({props:{name:"post_init",anchor:"transformers.BitNetConfig.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/quantization_config.py#L1546"}}),It=new Us({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/main_classes/quantization.md"}}),{c(){$=a("meta"),B=n(),z=a("p"),D=n(),d(A.$$.fragment),x=n(),H=a("p"),H.textContent=Ia,Un=n(),De=a("p"),De.innerHTML=Ba,Rn=n(),d(R.$$.fragment),Yn=n(),d(Pe.$$.fragment),Zn=n(),M=a("div"),d(Ae.$$.fragment),ir=n(),Gt=a("p"),Gt.innerHTML=Fa,dr=n(),Y=a("div"),d(He.$$.fragment),lr=n(),jt=a("p"),jt.textContent=Ga,Xn=n(),d(Me.$$.fragment),Jn=n(),Q=a("div"),d(Qe.$$.fragment),mr=n(),Ot=a("p"),Ot.innerHTML=ja,cr=n(),Z=a("div"),d(Ne.$$.fragment),pr=n(),Wt=a("p"),Wt.textContent=Oa,Kn=n(),d(Ee.$$.fragment),eo=n(),N=a("div"),d(Ve.$$.fragment),fr=n(),St=a("p"),St.innerHTML=Wa,gr=n(),X=a("div"),d(Ie.$$.fragment),ur=n(),Ut=a("p"),Ut.textContent=Sa,to=n(),d(Be.$$.fragment),no=n(),E=a("div"),d(Fe.$$.fragment),hr=n(),Rt=a("p"),Rt.innerHTML=Ua,_r=n(),J=a("div"),d(Ge.$$.fragment),br=n(),Yt=a("p"),Yt.textContent=Ra,oo=n(),d(je.$$.fragment),ro=n(),V=a("div"),d(Oe.$$.fragment),vr=n(),Zt=a("p"),Zt.innerHTML=Ya,yr=n(),K=a("div"),d(We.$$.fragment),$r=n(),Xt=a("p"),Xt.textContent=Za,ao=n(),d(Se.$$.fragment),so=n(),w=a("div"),d(Ue.$$.fragment),qr=n(),Jt=a("p"),Jt.innerHTML=Xa,xr=n(),ee=a("div"),d(Re.$$.fragment),zr=n(),Kt=a("p"),Kt.textContent=Ja,Cr=n(),te=a("div"),d(Ye.$$.fragment),wr=n(),en=a("p"),en.textContent=Ka,Tr=n(),ne=a("div"),d(Ze.$$.fragment),kr=n(),tn=a("p"),tn.textContent=es,io=n(),d(Xe.$$.fragment),lo=n(),q=a("div"),d(Je.$$.fragment),Lr=n(),nn=a("p"),nn.innerHTML=ts,Dr=n(),on=a("p"),on.innerHTML=ns,Pr=n(),rn=a("p"),rn.innerHTML=os,Ar=n(),oe=a("div"),d(Ke.$$.fragment),Hr=n(),an=a("p"),an.innerHTML=rs,Mr=n(),re=a("div"),d(et.$$.fragment),Qr=n(),sn=a("p"),sn.textContent=as,Nr=n(),ae=a("div"),d(tt.$$.fragment),Er=n(),dn=a("p"),dn.innerHTML=ss,Vr=n(),se=a("div"),d(nt.$$.fragment),Ir=n(),ln=a("p"),ln.textContent=is,mo=n(),d(ot.$$.fragment),co=n(),v=a("div"),d(rt.$$.fragment),Br=n(),mn=a("p"),mn.textContent=ds,Fr=n(),cn=a("p"),cn.innerHTML=ls,Gr=n(),ie=a("div"),d(at.$$.fragment),jr=n(),pn=a("p"),pn.textContent=ms,Or=n(),de=a("div"),d(st.$$.fragment),Wr=n(),fn=a("p"),fn.innerHTML=cs,Sr=n(),le=a("div"),d(it.$$.fragment),Ur=n(),gn=a("p"),gn.textContent=ps,Rr=n(),me=a("div"),d(dt.$$.fragment),Yr=n(),un=a("p"),un.textContent=fs,Zr=n(),ce=a("div"),d(lt.$$.fragment),Xr=n(),hn=a("p"),hn.textContent=gs,Jr=n(),pe=a("div"),d(mt.$$.fragment),Kr=n(),_n=a("p"),_n.innerHTML=us,ea=n(),fe=a("div"),d(ct.$$.fragment),ta=n(),bn=a("p"),bn.innerHTML=hs,na=n(),ge=a("div"),d(pt.$$.fragment),oa=n(),vn=a("p"),vn.innerHTML=_s,ra=n(),ue=a("div"),d(ft.$$.fragment),aa=n(),yn=a("p"),yn.innerHTML=bs,sa=n(),he=a("div"),d(gt.$$.fragment),ia=n(),$n=a("p"),$n.innerHTML=vs,da=n(),_e=a("div"),d(ut.$$.fragment),la=n(),qn=a("p"),qn.innerHTML=ys,ma=n(),be=a("div"),d(ht.$$.fragment),ca=n(),xn=a("p"),xn.textContent=$s,pa=n(),ve=a("div"),d(_t.$$.fragment),fa=n(),zn=a("p"),zn.innerHTML=qs,po=n(),d(bt.$$.fragment),fo=n(),I=a("div"),d(vt.$$.fragment),ga=n(),Cn=a("p"),Cn.textContent=xs,ua=n(),ye=a("div"),d(yt.$$.fragment),ha=n(),wn=a("p"),wn.textContent=zs,go=n(),d($t.$$.fragment),uo=n(),T=a("div"),d(qt.$$.fragment),_a=n(),Tn=a("p"),Tn.textContent=Cs,ba=n(),$e=a("div"),d(xt.$$.fragment),va=n(),kn=a("p"),kn.textContent=ws,ya=n(),qe=a("div"),d(zt.$$.fragment),$a=n(),Ln=a("p"),Ln.textContent=Ts,qa=n(),xe=a("div"),d(Ct.$$.fragment),xa=n(),Dn=a("p"),Dn.textContent=ks,ho=n(),d(wt.$$.fragment),_o=n(),W=a("div"),d(Tt.$$.fragment),za=n(),Pn=a("p"),Pn.textContent=Ls,bo=n(),d(kt.$$.fragment),vo=n(),k=a("div"),d(Lt.$$.fragment),Ca=n(),An=a("p"),An.innerHTML=Ds,wa=n(),ze=a("div"),d(Dt.$$.fragment),Ta=n(),Hn=a("p"),Hn.innerHTML=Ps,ka=n(),F=a("div"),d(Pt.$$.fragment),La=n(),Mn=a("p"),Mn.textContent=As,Da=n(),Qn=a("p"),Qn.innerHTML=Hs,Pa=n(),Ce=a("div"),d(At.$$.fragment),Aa=n(),Nn=a("p"),Nn.textContent=Ms,yo=n(),d(Ht.$$.fragment),$o=n(),P=a("div"),d(Mt.$$.fragment),Ha=n(),En=a("p"),En.textContent=Qs,Ma=n(),d(we.$$.fragment),Qa=n(),Te=a("div"),d(Qt.$$.fragment),Na=n(),Vn=a("p"),Vn.textContent=Ns,qo=n(),d(Nt.$$.fragment),xo=n(),S=a("div"),d(Et.$$.fragment),Ea=n(),ke=a("div"),d(Vt.$$.fragment),Va=n(),In=a("p"),In.textContent=Es,zo=n(),d(It.$$.fragment),Co=n(),Sn=a("p"),this.h()},l(e){const i=js("svelte-u9bgzb",document.head);$=s(i,"META",{name:!0,content:!0}),i.forEach(r),B=o(e),z=s(e,"P",{}),h(z).forEach(r),D=o(e),l(A.$$.fragment,e),x=o(e),H=s(e,"P",{"data-svelte-h":!0}),u(H)!=="svelte-1hsjm7z"&&(H.textContent=Ia),Un=o(e),De=s(e,"P",{"data-svelte-h":!0}),u(De)!=="svelte-bnel0f"&&(De.innerHTML=Ba),Rn=o(e),l(R.$$.fragment,e),Yn=o(e),l(Pe.$$.fragment,e),Zn=o(e),M=s(e,"DIV",{class:!0});var U=h(M);l(Ae.$$.fragment,U),ir=o(U),Gt=s(U,"P",{"data-svelte-h":!0}),u(Gt)!=="svelte-b8v0f"&&(Gt.innerHTML=Fa),dr=o(U),Y=s(U,"DIV",{class:!0});var Bt=h(Y);l(He.$$.fragment,Bt),lr=o(Bt),jt=s(Bt,"P",{"data-svelte-h":!0}),u(jt)!=="svelte-1ozftb6"&&(jt.textContent=Ga),Bt.forEach(r),U.forEach(r),Xn=o(e),l(Me.$$.fragment,e),Jn=o(e),Q=s(e,"DIV",{class:!0});var Bn=h(Q);l(Qe.$$.fragment,Bn),mr=o(Bn),Ot=s(Bn,"P",{"data-svelte-h":!0}),u(Ot)!=="svelte-1s7ccdx"&&(Ot.innerHTML=ja),cr=o(Bn),Z=s(Bn,"DIV",{class:!0});var To=h(Z);l(Ne.$$.fragment,To),pr=o(To),Wt=s(To,"P",{"data-svelte-h":!0}),u(Wt)!=="svelte-gy26u4"&&(Wt.textContent=Oa),To.forEach(r),Bn.forEach(r),Kn=o(e),l(Ee.$$.fragment,e),eo=o(e),N=s(e,"DIV",{class:!0});var Fn=h(N);l(Ve.$$.fragment,Fn),fr=o(Fn),St=s(Fn,"P",{"data-svelte-h":!0}),u(St)!=="svelte-w1pax1"&&(St.innerHTML=Wa),gr=o(Fn),X=s(Fn,"DIV",{class:!0});var ko=h(X);l(Ie.$$.fragment,ko),ur=o(ko),Ut=s(ko,"P",{"data-svelte-h":!0}),u(Ut)!=="svelte-1ozftb6"&&(Ut.textContent=Sa),ko.forEach(r),Fn.forEach(r),to=o(e),l(Be.$$.fragment,e),no=o(e),E=s(e,"DIV",{class:!0});var Gn=h(E);l(Fe.$$.fragment,Gn),hr=o(Gn),Rt=s(Gn,"P",{"data-svelte-h":!0}),u(Rt)!=="svelte-1i667it"&&(Rt.innerHTML=Ua),_r=o(Gn),J=s(Gn,"DIV",{class:!0});var Lo=h(J);l(Ge.$$.fragment,Lo),br=o(Lo),Yt=s(Lo,"P",{"data-svelte-h":!0}),u(Yt)!=="svelte-1ozftb6"&&(Yt.textContent=Ra),Lo.forEach(r),Gn.forEach(r),oo=o(e),l(je.$$.fragment,e),ro=o(e),V=s(e,"DIV",{class:!0});var jn=h(V);l(Oe.$$.fragment,jn),vr=o(jn),Zt=s(jn,"P",{"data-svelte-h":!0}),u(Zt)!=="svelte-438k9a"&&(Zt.innerHTML=Ya),yr=o(jn),K=s(jn,"DIV",{class:!0});var Do=h(K);l(We.$$.fragment,Do),$r=o(Do),Xt=s(Do,"P",{"data-svelte-h":!0}),u(Xt)!=="svelte-1ozftb6"&&(Xt.textContent=Za),Do.forEach(r),jn.forEach(r),ao=o(e),l(Se.$$.fragment,e),so=o(e),w=s(e,"DIV",{class:!0});var G=h(w);l(Ue.$$.fragment,G),qr=o(G),Jt=s(G,"P",{"data-svelte-h":!0}),u(Jt)!=="svelte-i3efvr"&&(Jt.innerHTML=Xa),xr=o(G),ee=s(G,"DIV",{class:!0});var Po=h(ee);l(Re.$$.fragment,Po),zr=o(Po),Kt=s(Po,"P",{"data-svelte-h":!0}),u(Kt)!=="svelte-4jdj2l"&&(Kt.textContent=Ja),Po.forEach(r),Cr=o(G),te=s(G,"DIV",{class:!0});var Ao=h(te);l(Ye.$$.fragment,Ao),wr=o(Ao),en=s(Ao,"P",{"data-svelte-h":!0}),u(en)!=="svelte-1ozftb6"&&(en.textContent=Ka),Ao.forEach(r),Tr=o(G),ne=s(G,"DIV",{class:!0});var Ho=h(ne);l(Ze.$$.fragment,Ho),kr=o(Ho),tn=s(Ho,"P",{"data-svelte-h":!0}),u(tn)!=="svelte-pjgtd6"&&(tn.textContent=es),Ho.forEach(r),G.forEach(r),io=o(e),l(Xe.$$.fragment,e),lo=o(e),q=s(e,"DIV",{class:!0});var C=h(q);l(Je.$$.fragment,C),Lr=o(C),nn=s(C,"P",{"data-svelte-h":!0}),u(nn)!=="svelte-woamwr"&&(nn.innerHTML=ts),Dr=o(C),on=s(C,"P",{"data-svelte-h":!0}),u(on)!=="svelte-ki5gis"&&(on.innerHTML=ns),Pr=o(C),rn=s(C,"P",{"data-svelte-h":!0}),u(rn)!=="svelte-8qsk2q"&&(rn.innerHTML=os),Ar=o(C),oe=s(C,"DIV",{class:!0});var Mo=h(oe);l(Ke.$$.fragment,Mo),Hr=o(Mo),an=s(Mo,"P",{"data-svelte-h":!0}),u(an)!=="svelte-10tvzyv"&&(an.innerHTML=rs),Mo.forEach(r),Mr=o(C),re=s(C,"DIV",{class:!0});var Qo=h(re);l(et.$$.fragment,Qo),Qr=o(Qo),sn=s(Qo,"P",{"data-svelte-h":!0}),u(sn)!=="svelte-gy26u4"&&(sn.textContent=as),Qo.forEach(r),Nr=o(C),ae=s(C,"DIV",{class:!0});var No=h(ae);l(tt.$$.fragment,No),Er=o(No),dn=s(No,"P",{"data-svelte-h":!0}),u(dn)!=="svelte-19bn0da"&&(dn.innerHTML=ss),No.forEach(r),Vr=o(C),se=s(C,"DIV",{class:!0});var Eo=h(se);l(nt.$$.fragment,Eo),Ir=o(Eo),ln=s(Eo,"P",{"data-svelte-h":!0}),u(ln)!=="svelte-1p6bdas"&&(ln.textContent=is),Eo.forEach(r),C.forEach(r),mo=o(e),l(ot.$$.fragment,e),co=o(e),v=s(e,"DIV",{class:!0});var y=h(v);l(rt.$$.fragment,y),Br=o(y),mn=s(y,"P",{"data-svelte-h":!0}),u(mn)!=="svelte-1xvcahi"&&(mn.textContent=ds),Fr=o(y),cn=s(y,"P",{"data-svelte-h":!0}),u(cn)!=="svelte-twdedh"&&(cn.innerHTML=ls),Gr=o(y),ie=s(y,"DIV",{class:!0});var Vo=h(ie);l(at.$$.fragment,Vo),jr=o(Vo),pn=s(Vo,"P",{"data-svelte-h":!0}),u(pn)!=="svelte-1d4i4z7"&&(pn.textContent=ms),Vo.forEach(r),Or=o(y),de=s(y,"DIV",{class:!0});var Io=h(de);l(st.$$.fragment,Io),Wr=o(Io),fn=s(Io,"P",{"data-svelte-h":!0}),u(fn)!=="svelte-4t526i"&&(fn.innerHTML=cs),Io.forEach(r),Sr=o(y),le=s(y,"DIV",{class:!0});var Bo=h(le);l(it.$$.fragment,Bo),Ur=o(Bo),gn=s(Bo,"P",{"data-svelte-h":!0}),u(gn)!=="svelte-1meey31"&&(gn.textContent=ps),Bo.forEach(r),Rr=o(y),me=s(y,"DIV",{class:!0});var Fo=h(me);l(dt.$$.fragment,Fo),Yr=o(Fo),un=s(Fo,"P",{"data-svelte-h":!0}),u(un)!=="svelte-1j1vsi1"&&(un.textContent=fs),Fo.forEach(r),Zr=o(y),ce=s(y,"DIV",{class:!0});var Go=h(ce);l(lt.$$.fragment,Go),Xr=o(Go),hn=s(Go,"P",{"data-svelte-h":!0}),u(hn)!=="svelte-1qo65te"&&(hn.textContent=gs),Go.forEach(r),Jr=o(y),pe=s(y,"DIV",{class:!0});var jo=h(pe);l(mt.$$.fragment,jo),Kr=o(jo),_n=s(jo,"P",{"data-svelte-h":!0}),u(_n)!=="svelte-i8h8td"&&(_n.innerHTML=us),jo.forEach(r),ea=o(y),fe=s(y,"DIV",{class:!0});var Oo=h(fe);l(ct.$$.fragment,Oo),ta=o(Oo),bn=s(Oo,"P",{"data-svelte-h":!0}),u(bn)!=="svelte-1uznum5"&&(bn.innerHTML=hs),Oo.forEach(r),na=o(y),ge=s(y,"DIV",{class:!0});var Wo=h(ge);l(pt.$$.fragment,Wo),oa=o(Wo),vn=s(Wo,"P",{"data-svelte-h":!0}),u(vn)!=="svelte-mjhdcv"&&(vn.innerHTML=_s),Wo.forEach(r),ra=o(y),ue=s(y,"DIV",{class:!0});var So=h(ue);l(ft.$$.fragment,So),aa=o(So),yn=s(So,"P",{"data-svelte-h":!0}),u(yn)!=="svelte-1e5epn5"&&(yn.innerHTML=bs),So.forEach(r),sa=o(y),he=s(y,"DIV",{class:!0});var Uo=h(he);l(gt.$$.fragment,Uo),ia=o(Uo),$n=s(Uo,"P",{"data-svelte-h":!0}),u($n)!=="svelte-1idnt2e"&&($n.innerHTML=vs),Uo.forEach(r),da=o(y),_e=s(y,"DIV",{class:!0});var Ro=h(_e);l(ut.$$.fragment,Ro),la=o(Ro),qn=s(Ro,"P",{"data-svelte-h":!0}),u(qn)!=="svelte-13hqoy0"&&(qn.innerHTML=ys),Ro.forEach(r),ma=o(y),be=s(y,"DIV",{class:!0});var Yo=h(be);l(ht.$$.fragment,Yo),ca=o(Yo),xn=s(Yo,"P",{"data-svelte-h":!0}),u(xn)!=="svelte-1kpdm09"&&(xn.textContent=$s),Yo.forEach(r),pa=o(y),ve=s(y,"DIV",{class:!0});var Zo=h(ve);l(_t.$$.fragment,Zo),fa=o(Zo),zn=s(Zo,"P",{"data-svelte-h":!0}),u(zn)!=="svelte-1lxocan"&&(zn.innerHTML=qs),Zo.forEach(r),y.forEach(r),po=o(e),l(bt.$$.fragment,e),fo=o(e),I=s(e,"DIV",{class:!0});var On=h(I);l(vt.$$.fragment,On),ga=o(On),Cn=s(On,"P",{"data-svelte-h":!0}),u(Cn)!=="svelte-i9o5pz"&&(Cn.textContent=xs),ua=o(On),ye=s(On,"DIV",{class:!0});var Xo=h(ye);l(yt.$$.fragment,Xo),ha=o(Xo),wn=s(Xo,"P",{"data-svelte-h":!0}),u(wn)!=="svelte-gy26u4"&&(wn.textContent=zs),Xo.forEach(r),On.forEach(r),go=o(e),l($t.$$.fragment,e),uo=o(e),T=s(e,"DIV",{class:!0});var j=h(T);l(qt.$$.fragment,j),_a=o(j),Tn=s(j,"P",{"data-svelte-h":!0}),u(Tn)!=="svelte-h0fjpw"&&(Tn.textContent=Cs),ba=o(j),$e=s(j,"DIV",{class:!0});var Jo=h($e);l(xt.$$.fragment,Jo),va=o(Jo),kn=s(Jo,"P",{"data-svelte-h":!0}),u(kn)!=="svelte-6lcv9o"&&(kn.textContent=ws),Jo.forEach(r),ya=o(j),qe=s(j,"DIV",{class:!0});var Ko=h(qe);l(zt.$$.fragment,Ko),$a=o(Ko),Ln=s(Ko,"P",{"data-svelte-h":!0}),u(Ln)!=="svelte-gy26u4"&&(Ln.textContent=Ts),Ko.forEach(r),qa=o(j),xe=s(j,"DIV",{class:!0});var er=h(xe);l(Ct.$$.fragment,er),xa=o(er),Dn=s(er,"P",{"data-svelte-h":!0}),u(Dn)!=="svelte-1p6bdas"&&(Dn.textContent=ks),er.forEach(r),j.forEach(r),ho=o(e),l(wt.$$.fragment,e),_o=o(e),W=s(e,"DIV",{class:!0});var tr=h(W);l(Tt.$$.fragment,tr),za=o(tr),Pn=s(tr,"P",{"data-svelte-h":!0}),u(Pn)!=="svelte-1a51md3"&&(Pn.textContent=Ls),tr.forEach(r),bo=o(e),l(kt.$$.fragment,e),vo=o(e),k=s(e,"DIV",{class:!0});var O=h(k);l(Lt.$$.fragment,O),Ca=o(O),An=s(O,"P",{"data-svelte-h":!0}),u(An)!=="svelte-3h2fkj"&&(An.innerHTML=Ds),wa=o(O),ze=s(O,"DIV",{class:!0});var nr=h(ze);l(Dt.$$.fragment,nr),Ta=o(nr),Hn=s(nr,"P",{"data-svelte-h":!0}),u(Hn)!=="svelte-1sqc0ks"&&(Hn.innerHTML=Ps),nr.forEach(r),ka=o(O),F=s(O,"DIV",{class:!0});var Wn=h(F);l(Pt.$$.fragment,Wn),La=o(Wn),Mn=s(Wn,"P",{"data-svelte-h":!0}),u(Mn)!=="svelte-1h5q4kg"&&(Mn.textContent=As),Da=o(Wn),Qn=s(Wn,"P",{"data-svelte-h":!0}),u(Qn)!=="svelte-4kfdpu"&&(Qn.innerHTML=Hs),Wn.forEach(r),Pa=o(O),Ce=s(O,"DIV",{class:!0});var or=h(Ce);l(At.$$.fragment,or),Aa=o(or),Nn=s(or,"P",{"data-svelte-h":!0}),u(Nn)!=="svelte-1p6bdas"&&(Nn.textContent=Ms),or.forEach(r),O.forEach(r),yo=o(e),l(Ht.$$.fragment,e),$o=o(e),P=s(e,"DIV",{class:!0});var Le=h(P);l(Mt.$$.fragment,Le),Ha=o(Le),En=s(Le,"P",{"data-svelte-h":!0}),u(En)!=="svelte-1pwo8e0"&&(En.textContent=Qs),Ma=o(Le),l(we.$$.fragment,Le),Qa=o(Le),Te=s(Le,"DIV",{class:!0});var rr=h(Te);l(Qt.$$.fragment,rr),Na=o(rr),Vn=s(rr,"P",{"data-svelte-h":!0}),u(Vn)!=="svelte-gy26u4"&&(Vn.textContent=Ns),rr.forEach(r),Le.forEach(r),qo=o(e),l(Nt.$$.fragment,e),xo=o(e),S=s(e,"DIV",{class:!0});var ar=h(S);l(Et.$$.fragment,ar),Ea=o(ar),ke=s(ar,"DIV",{class:!0});var sr=h(ke);l(Vt.$$.fragment,sr),Va=o(sr),In=s(sr,"P",{"data-svelte-h":!0}),u(In)!=="svelte-1ozftb6"&&(In.textContent=Es),sr.forEach(r),ar.forEach(r),zo=o(e),l(It.$$.fragment,e),Co=o(e),Sn=s(e,"P",{}),h(Sn).forEach(r),this.h()},h(){_($,"name","hf:doc:metadata"),_($,"content",Xs),_(Y,"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"),_(Z,"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"),_(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(se,"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"),_(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Te,"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"),_(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(S,"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,$),g(e,B,i),g(e,z,i),g(e,D,i),m(A,e,i),g(e,x,i),g(e,H,i),g(e,Un,i),g(e,De,i),g(e,Rn,i),m(R,e,i),g(e,Yn,i),m(Pe,e,i),g(e,Zn,i),g(e,M,i),m(Ae,M,null),t(M,ir),t(M,Gt),t(M,dr),t(M,Y),m(He,Y,null),t(Y,lr),t(Y,jt),g(e,Xn,i),m(Me,e,i),g(e,Jn,i),g(e,Q,i),m(Qe,Q,null),t(Q,mr),t(Q,Ot),t(Q,cr),t(Q,Z),m(Ne,Z,null),t(Z,pr),t(Z,Wt),g(e,Kn,i),m(Ee,e,i),g(e,eo,i),g(e,N,i),m(Ve,N,null),t(N,fr),t(N,St),t(N,gr),t(N,X),m(Ie,X,null),t(X,ur),t(X,Ut),g(e,to,i),m(Be,e,i),g(e,no,i),g(e,E,i),m(Fe,E,null),t(E,hr),t(E,Rt),t(E,_r),t(E,J),m(Ge,J,null),t(J,br),t(J,Yt),g(e,oo,i),m(je,e,i),g(e,ro,i),g(e,V,i),m(Oe,V,null),t(V,vr),t(V,Zt),t(V,yr),t(V,K),m(We,K,null),t(K,$r),t(K,Xt),g(e,ao,i),m(Se,e,i),g(e,so,i),g(e,w,i),m(Ue,w,null),t(w,qr),t(w,Jt),t(w,xr),t(w,ee),m(Re,ee,null),t(ee,zr),t(ee,Kt),t(w,Cr),t(w,te),m(Ye,te,null),t(te,wr),t(te,en),t(w,Tr),t(w,ne),m(Ze,ne,null),t(ne,kr),t(ne,tn),g(e,io,i),m(Xe,e,i),g(e,lo,i),g(e,q,i),m(Je,q,null),t(q,Lr),t(q,nn),t(q,Dr),t(q,on),t(q,Pr),t(q,rn),t(q,Ar),t(q,oe),m(Ke,oe,null),t(oe,Hr),t(oe,an),t(q,Mr),t(q,re),m(et,re,null),t(re,Qr),t(re,sn),t(q,Nr),t(q,ae),m(tt,ae,null),t(ae,Er),t(ae,dn),t(q,Vr),t(q,se),m(nt,se,null),t(se,Ir),t(se,ln),g(e,mo,i),m(ot,e,i),g(e,co,i),g(e,v,i),m(rt,v,null),t(v,Br),t(v,mn),t(v,Fr),t(v,cn),t(v,Gr),t(v,ie),m(at,ie,null),t(ie,jr),t(ie,pn),t(v,Or),t(v,de),m(st,de,null),t(de,Wr),t(de,fn),t(v,Sr),t(v,le),m(it,le,null),t(le,Ur),t(le,gn),t(v,Rr),t(v,me),m(dt,me,null),t(me,Yr),t(me,un),t(v,Zr),t(v,ce),m(lt,ce,null),t(ce,Xr),t(ce,hn),t(v,Jr),t(v,pe),m(mt,pe,null),t(pe,Kr),t(pe,_n),t(v,ea),t(v,fe),m(ct,fe,null),t(fe,ta),t(fe,bn),t(v,na),t(v,ge),m(pt,ge,null),t(ge,oa),t(ge,vn),t(v,ra),t(v,ue),m(ft,ue,null),t(ue,aa),t(ue,yn),t(v,sa),t(v,he),m(gt,he,null),t(he,ia),t(he,$n),t(v,da),t(v,_e),m(ut,_e,null),t(_e,la),t(_e,qn),t(v,ma),t(v,be),m(ht,be,null),t(be,ca),t(be,xn),t(v,pa),t(v,ve),m(_t,ve,null),t(ve,fa),t(ve,zn),g(e,po,i),m(bt,e,i),g(e,fo,i),g(e,I,i),m(vt,I,null),t(I,ga),t(I,Cn),t(I,ua),t(I,ye),m(yt,ye,null),t(ye,ha),t(ye,wn),g(e,go,i),m($t,e,i),g(e,uo,i),g(e,T,i),m(qt,T,null),t(T,_a),t(T,Tn),t(T,ba),t(T,$e),m(xt,$e,null),t($e,va),t($e,kn),t(T,ya),t(T,qe),m(zt,qe,null),t(qe,$a),t(qe,Ln),t(T,qa),t(T,xe),m(Ct,xe,null),t(xe,xa),t(xe,Dn),g(e,ho,i),m(wt,e,i),g(e,_o,i),g(e,W,i),m(Tt,W,null),t(W,za),t(W,Pn),g(e,bo,i),m(kt,e,i),g(e,vo,i),g(e,k,i),m(Lt,k,null),t(k,Ca),t(k,An),t(k,wa),t(k,ze),m(Dt,ze,null),t(ze,Ta),t(ze,Hn),t(k,ka),t(k,F),m(Pt,F,null),t(F,La),t(F,Mn),t(F,Da),t(F,Qn),t(k,Pa),t(k,Ce),m(At,Ce,null),t(Ce,Aa),t(Ce,Nn),g(e,yo,i),m(Ht,e,i),g(e,$o,i),g(e,P,i),m(Mt,P,null),t(P,Ha),t(P,En),t(P,Ma),m(we,P,null),t(P,Qa),t(P,Te),m(Qt,Te,null),t(Te,Na),t(Te,Vn),g(e,qo,i),m(Nt,e,i),g(e,xo,i),g(e,S,i),m(Et,S,null),t(S,Ea),t(S,ke),m(Vt,ke,null),t(ke,Va),t(ke,In),g(e,zo,i),m(It,e,i),g(e,Co,i),g(e,Sn,i),wo=!0},p(e,[i]){const U={};i&2&&(U.$$scope={dirty:i,ctx:e}),R.$set(U);const Bt={};i&2&&(Bt.$$scope={dirty:i,ctx:e}),we.$set(Bt)},i(e){wo||(c(A.$$.fragment,e),c(R.$$.fragment,e),c(Pe.$$.fragment,e),c(Ae.$$.fragment,e),c(He.$$.fragment,e),c(Me.$$.fragment,e),c(Qe.$$.fragment,e),c(Ne.$$.fragment,e),c(Ee.$$.fragment,e),c(Ve.$$.fragment,e),c(Ie.$$.fragment,e),c(Be.$$.fragment,e),c(Fe.$$.fragment,e),c(Ge.$$.fragment,e),c(je.$$.fragment,e),c(Oe.$$.fragment,e),c(We.$$.fragment,e),c(Se.$$.fragment,e),c(Ue.$$.fragment,e),c(Re.$$.fragment,e),c(Ye.$$.fragment,e),c(Ze.$$.fragment,e),c(Xe.$$.fragment,e),c(Je.$$.fragment,e),c(Ke.$$.fragment,e),c(et.$$.fragment,e),c(tt.$$.fragment,e),c(nt.$$.fragment,e),c(ot.$$.fragment,e),c(rt.$$.fragment,e),c(at.$$.fragment,e),c(st.$$.fragment,e),c(it.$$.fragment,e),c(dt.$$.fragment,e),c(lt.$$.fragment,e),c(mt.$$.fragment,e),c(ct.$$.fragment,e),c(pt.$$.fragment,e),c(ft.$$.fragment,e),c(gt.$$.fragment,e),c(ut.$$.fragment,e),c(ht.$$.fragment,e),c(_t.$$.fragment,e),c(bt.$$.fragment,e),c(vt.$$.fragment,e),c(yt.$$.fragment,e),c($t.$$.fragment,e),c(qt.$$.fragment,e),c(xt.$$.fragment,e),c(zt.$$.fragment,e),c(Ct.$$.fragment,e),c(wt.$$.fragment,e),c(Tt.$$.fragment,e),c(kt.$$.fragment,e),c(Lt.$$.fragment,e),c(Dt.$$.fragment,e),c(Pt.$$.fragment,e),c(At.$$.fragment,e),c(Ht.$$.fragment,e),c(Mt.$$.fragment,e),c(we.$$.fragment,e),c(Qt.$$.fragment,e),c(Nt.$$.fragment,e),c(Et.$$.fragment,e),c(Vt.$$.fragment,e),c(It.$$.fragment,e),wo=!0)},o(e){p(A.$$.fragment,e),p(R.$$.fragment,e),p(Pe.$$.fragment,e),p(Ae.$$.fragment,e),p(He.$$.fragment,e),p(Me.$$.fragment,e),p(Qe.$$.fragment,e),p(Ne.$$.fragment,e),p(Ee.$$.fragment,e),p(Ve.$$.fragment,e),p(Ie.$$.fragment,e),p(Be.$$.fragment,e),p(Fe.$$.fragment,e),p(Ge.$$.fragment,e),p(je.$$.fragment,e),p(Oe.$$.fragment,e),p(We.$$.fragment,e),p(Se.$$.fragment,e),p(Ue.$$.fragment,e),p(Re.$$.fragment,e),p(Ye.$$.fragment,e),p(Ze.$$.fragment,e),p(Xe.$$.fragment,e),p(Je.$$.fragment,e),p(Ke.$$.fragment,e),p(et.$$.fragment,e),p(tt.$$.fragment,e),p(nt.$$.fragment,e),p(ot.$$.fragment,e),p(rt.$$.fragment,e),p(at.$$.fragment,e),p(st.$$.fragment,e),p(it.$$.fragment,e),p(dt.$$.fragment,e),p(lt.$$.fragment,e),p(mt.$$.fragment,e),p(ct.$$.fragment,e),p(pt.$$.fragment,e),p(ft.$$.fragment,e),p(gt.$$.fragment,e),p(ut.$$.fragment,e),p(ht.$$.fragment,e),p(_t.$$.fragment,e),p(bt.$$.fragment,e),p(vt.$$.fragment,e),p(yt.$$.fragment,e),p($t.$$.fragment,e),p(qt.$$.fragment,e),p(xt.$$.fragment,e),p(zt.$$.fragment,e),p(Ct.$$.fragment,e),p(wt.$$.fragment,e),p(Tt.$$.fragment,e),p(kt.$$.fragment,e),p(Lt.$$.fragment,e),p(Dt.$$.fragment,e),p(Pt.$$.fragment,e),p(At.$$.fragment,e),p(Ht.$$.fragment,e),p(Mt.$$.fragment,e),p(we.$$.fragment,e),p(Qt.$$.fragment,e),p(Nt.$$.fragment,e),p(Et.$$.fragment,e),p(Vt.$$.fragment,e),p(It.$$.fragment,e),wo=!1},d(e){e&&(r(B),r(z),r(D),r(x),r(H),r(Un),r(De),r(Rn),r(Yn),r(Zn),r(M),r(Xn),r(Jn),r(Q),r(Kn),r(eo),r(N),r(to),r(no),r(E),r(oo),r(ro),r(V),r(ao),r(so),r(w),r(io),r(lo),r(q),r(mo),r(co),r(v),r(po),r(fo),r(I),r(go),r(uo),r(T),r(ho),r(_o),r(W),r(bo),r(vo),r(k),r(yo),r($o),r(P),r(qo),r(xo),r(S),r(zo),r(Co),r(Sn)),r($),f(A,e),f(R,e),f(Pe,e),f(Ae),f(He),f(Me,e),f(Qe),f(Ne),f(Ee,e),f(Ve),f(Ie),f(Be,e),f(Fe),f(Ge),f(je,e),f(Oe),f(We),f(Se,e),f(Ue),f(Re),f(Ye),f(Ze),f(Xe,e),f(Je),f(Ke),f(et),f(tt),f(nt),f(ot,e),f(rt),f(at),f(st),f(it),f(dt),f(lt),f(mt),f(ct),f(pt),f(ft),f(gt),f(ut),f(ht),f(_t),f(bt,e),f(vt),f(yt),f($t,e),f(qt),f(xt),f(zt),f(Ct),f(wt,e),f(Tt),f(kt,e),f(Lt),f(Dt),f(Pt),f(At),f(Ht,e),f(Mt),f(we),f(Qt),f(Nt,e),f(Et),f(Vt),f(It,e)}}}const Xs='{"title":"Quantization","local":"quantization","sections":[{"title":"QuantoConfig","local":"transformers.QuantoConfig","sections":[],"depth":2},{"title":"AqlmConfig","local":"transformers.AqlmConfig","sections":[],"depth":2},{"title":"VptqConfig","local":"transformers.VptqConfig","sections":[],"depth":2},{"title":"AwqConfig","local":"transformers.AwqConfig","sections":[],"depth":2},{"title":"EetqConfig","local":"transformers.EetqConfig","sections":[],"depth":2},{"title":"GPTQConfig","local":"transformers.GPTQConfig","sections":[],"depth":2},{"title":"BitsAndBytesConfig","local":"transformers.BitsAndBytesConfig","sections":[],"depth":2},{"title":"HfQuantizer","local":"transformers.quantizers.HfQuantizer","sections":[],"depth":2},{"title":"HiggsConfig","local":"transformers.HiggsConfig","sections":[],"depth":2},{"title":"HqqConfig","local":"transformers.HqqConfig","sections":[],"depth":2},{"title":"FbgemmFp8Config","local":"transformers.FbgemmFp8Config","sections":[],"depth":2},{"title":"CompressedTensorsConfig","local":"transformers.CompressedTensorsConfig","sections":[],"depth":2},{"title":"TorchAoConfig","local":"transformers.TorchAoConfig","sections":[],"depth":2},{"title":"BitNetConfig","local":"transformers.BitNetConfig","sections":[],"depth":2}],"depth":1}';function Js(Ft){return Bs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class si extends Fs{constructor($){super(),Gs(this,$,Js,Zs,Is,{})}}export{si as component};
