import{s as mn,o as ln,n as pn}from"../chunks/scheduler.8c3d61f6.js";import{S as cn,i as gn,g as i,s as r,r as u,A as hn,h as o,f as n,c as s,j as _,u as m,x as v,k as $,y as t,a as h,v as l,d as p,t as c,w as g}from"../chunks/index.da70eac4.js";import{T as _n}from"../chunks/Tip.1d9b8c37.js";import{D as b}from"../chunks/Docstring.f5e3af6d.js";import{H as $e,E as $n}from"../chunks/getInferenceSnippets.07305897.js";function bn(Ae){let y,V='Learn how to quantize models in the <a href="../quantization/overview">Quantization</a> guide.';return{c(){y=i("p"),y.innerHTML=V},l(z){y=o(z,"P",{"data-svelte-h":!0}),v(y)!=="svelte-1dd515k"&&(y.innerHTML=V)},m(z,be){h(z,y,be)},p:pn,d(z){z&&n(y)}}}function vn(Ae){let y,V,z,be,j,Ve,G,Ft="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.",je,x,Ge,B,Be,q,U,ct,ve,Ot='Configuration class to be used when applying quantization on-the-fly to <a href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline.from_pretrained">from_pretrained()</a>.',Ue,F,Fe,O,S,Oe,N,Se,W,R,Ne,Y,We,J,K,Re,X,Ye,Z,ee,Je,te,Ke,d,ne,gt,ye,St=`Abstract class of the HuggingFace quantizer. Supports for now quantizing HF diffusers models for inference and/or
quantization. This class is used only for diffusers.models.modeling_utils.ModelMixin.from_pretrained and cannot be
easily used outside the scope of that method yet.`,ht,ze,Nt=`Attributes
quantization_config (<code>diffusers.quantizers.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.`,_t,w,re,$t,qe,Wt="adjust max_memory argument for infer_auto_device_map() if extra memory is needed for quantization",bt,C,se,vt,xe,Rt=`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>.`,yt,D,ae,zt,we,Yt=`checks if a loaded state_dict component is part of quantized param + some validation; only defined for
quantization methods that require to create a new parameters for quantization.`,qt,k,ie,xt,Ce,Jt="checks if the quantized param has expected shape.",wt,Q,oe,Ct,De,Kt="takes needed components from state_dict and creates quantized param.",Dt,T,de,kt,ke,Xt=`Potentially dequantize the model to retrieve the original model, with some loss in accuracy / performance. Note
not all quantization schemes support this.`,Qt,L,fe,Tt,Qe,Zt=`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>. <code>diffusers</code> models don’t have any <code>modules_to_not_convert</code> attributes
yet but this can change soon in the future.`,Lt,M,ue,Mt,Te,en=`Post-process the model post weights loading. Make sure to override the abstract method
<code>_process_model_after_weight_loading</code>.`,Pt,P,me,Et,Le,tn=`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>.`,Ht,E,le,It,Me,nn=`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”“`,At,H,pe,Vt,Pe,rn="Override this method if you want to adjust the <code>missing_keys</code>.",jt,I,ce,Gt,Ee,sn=`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`,Bt,A,ge,Ut,He,an=`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 diffusers. If no
explicit check are needed, simply return nothing.`,Xe,he,Ze,Ie,et;return j=new $e({props:{title:"Quantization",local:"quantization",headingTag:"h1"}}),x=new _n({props:{$$slots:{default:[bn]},$$scope:{ctx:Ae}}}),B=new $e({props:{title:"PipelineQuantizationConfig",local:"diffusers.quantizers.PipelineQuantizationConfig",headingTag:"h2"}}),U=new b({props:{name:"class diffusers.quantizers.PipelineQuantizationConfig",anchor:"diffusers.quantizers.PipelineQuantizationConfig",parameters:[{name:"quant_backend",val:": str = None"},{name:"quant_kwargs",val:": typing.Dict[str, typing.Union[str, float, int, dict]] = None"},{name:"components_to_quantize",val:": typing.Optional[typing.List[str]] = None"},{name:"quant_mapping",val:": typing.Dict[str, typing.Union[diffusers.quantizers.quantization_config.QuantizationConfigMixin, ForwardRef('TransformersQuantConfigMixin')]] = None"}],parametersDescription:[{anchor:"diffusers.quantizers.PipelineQuantizationConfig.quant_backend",description:`<strong>quant_backend</strong> (<code>str</code>) &#x2014; Quantization backend to be used. When using this option, we assume that the backend
is available to both <code>diffusers</code> and <code>transformers</code>.`,name:"quant_backend"},{anchor:"diffusers.quantizers.PipelineQuantizationConfig.quant_kwargs",description:"<strong>quant_kwargs</strong> (<code>dict</code>) &#x2014; Params to initialize the quantization backend class.",name:"quant_kwargs"},{anchor:"diffusers.quantizers.PipelineQuantizationConfig.components_to_quantize",description:"<strong>components_to_quantize</strong> (<code>list</code>) &#x2014; Components of a pipeline to be quantized.",name:"components_to_quantize"},{anchor:"diffusers.quantizers.PipelineQuantizationConfig.quant_mapping",description:`<strong>quant_mapping</strong> (<code>dict</code>) &#x2014; Mapping defining the quantization specs to be used for the pipeline
components. When using this argument, users are not expected to provide <code>quant_backend</code>, <code>quant_kawargs</code>,
and <code>components_to_quantize</code>.`,name:"quant_mapping"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/__init__.py#L35"}}),F=new $e({props:{title:"BitsAndBytesConfig",local:"diffusers.BitsAndBytesConfig",headingTag:"h2"}}),S=new b({props:{name:"class diffusers.BitsAndBytesConfig",anchor:"diffusers.BitsAndBytesConfig",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/dummy_bitsandbytes_objects.py#L5"}}),N=new $e({props:{title:"GGUFQuantizationConfig",local:"diffusers.GGUFQuantizationConfig",headingTag:"h2"}}),R=new b({props:{name:"class diffusers.GGUFQuantizationConfig",anchor:"diffusers.GGUFQuantizationConfig",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/dummy_gguf_objects.py#L5"}}),Y=new $e({props:{title:"QuantoConfig",local:"diffusers.QuantoConfig",headingTag:"h2"}}),K=new b({props:{name:"class diffusers.QuantoConfig",anchor:"diffusers.QuantoConfig",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/dummy_optimum_quanto_objects.py#L5"}}),X=new $e({props:{title:"TorchAoConfig",local:"diffusers.TorchAoConfig",headingTag:"h2"}}),ee=new b({props:{name:"class diffusers.TorchAoConfig",anchor:"diffusers.TorchAoConfig",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/dummy_torchao_objects.py#L5"}}),te=new $e({props:{title:"DiffusersQuantizer",local:"diffusers.DiffusersQuantizer",headingTag:"h2"}}),ne=new b({props:{name:"class diffusers.DiffusersQuantizer",anchor:"diffusers.DiffusersQuantizer",parameters:[{name:"quantization_config",val:": QuantizationConfigMixin"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/base.py#L34"}}),re=new b({props:{name:"adjust_max_memory",anchor:"diffusers.DiffusersQuantizer.adjust_max_memory",parameters:[{name:"max_memory",val:": typing.Dict[str, typing.Union[int, str]]"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/base.py#L133"}}),se=new b({props:{name:"adjust_target_dtype",anchor:"diffusers.DiffusersQuantizer.adjust_target_dtype",parameters:[{name:"torch_dtype",val:": torch.dtype"}],parametersDescription:[{anchor:"diffusers.DiffusersQuantizer.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/diffusers/blob/main/src/diffusers/quantizers/base.py#L91"}}),ae=new b({props:{name:"check_if_quantized_param",anchor:"diffusers.DiffusersQuantizer.check_if_quantized_param",parameters:[{name:"model",val:": ModelMixin"},{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/diffusers/blob/main/src/diffusers/quantizers/base.py#L137"}}),ie=new b({props:{name:"check_quantized_param_shape",anchor:"diffusers.DiffusersQuantizer.check_quantized_param_shape",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/base.py#L157"}}),oe=new b({props:{name:"create_quantized_param",anchor:"diffusers.DiffusersQuantizer.create_quantized_param",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/base.py#L151"}}),de=new b({props:{name:"dequantize",anchor:"diffusers.DiffusersQuantizer.dequantize",parameters:[{name:"model",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/base.py#L200"}}),fe=new b({props:{name:"get_special_dtypes_update",anchor:"diffusers.DiffusersQuantizer.get_special_dtypes_update",parameters:[{name:"model",val:""},{name:"torch_dtype",val:": torch.dtype"}],parametersDescription:[{anchor:"diffusers.DiffusersQuantizer.get_special_dtypes_update.model",description:`<strong>model</strong> (<code>~diffusers.models.modeling_utils.ModelMixin</code>) &#x2014;
The model to quantize`,name:"model"},{anchor:"diffusers.DiffusersQuantizer.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/diffusers/blob/main/src/diffusers/quantizers/base.py#L113"}}),ue=new b({props:{name:"postprocess_model",anchor:"diffusers.DiffusersQuantizer.postprocess_model",parameters:[{name:"model",val:": ModelMixin"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.DiffusersQuantizer.postprocess_model.model",description:`<strong>model</strong> (<code>~diffusers.models.modeling_utils.ModelMixin</code>) &#x2014;
The model to quantize`,name:"model"},{anchor:"diffusers.DiffusersQuantizer.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/diffusers/blob/main/src/diffusers/quantizers/base.py#L187"}}),me=new b({props:{name:"preprocess_model",anchor:"diffusers.DiffusersQuantizer.preprocess_model",parameters:[{name:"model",val:": ModelMixin"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.DiffusersQuantizer.preprocess_model.model",description:`<strong>model</strong> (<code>~diffusers.models.modeling_utils.ModelMixin</code>) &#x2014;
The model to quantize`,name:"model"},{anchor:"diffusers.DiffusersQuantizer.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/diffusers/blob/main/src/diffusers/quantizers/base.py#L171"}}),le=new b({props:{name:"update_device_map",anchor:"diffusers.DiffusersQuantizer.update_device_map",parameters:[{name:"device_map",val:": typing.Optional[typing.Dict[str, typing.Any]]"}],parametersDescription:[{anchor:"diffusers.DiffusersQuantizer.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/diffusers/blob/main/src/diffusers/quantizers/base.py#L79"}}),pe=new b({props:{name:"update_missing_keys",anchor:"diffusers.DiffusersQuantizer.update_missing_keys",parameters:[{name:"model",val:""},{name:"missing_keys",val:": typing.List[str]"},{name:"prefix",val:": str"}],parametersDescription:[{anchor:"diffusers.DiffusersQuantizer.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/diffusers/blob/main/src/diffusers/quantizers/base.py#L103"}}),ce=new b({props:{name:"update_torch_dtype",anchor:"diffusers.DiffusersQuantizer.update_torch_dtype",parameters:[{name:"torch_dtype",val:": torch.dtype"}],parametersDescription:[{anchor:"diffusers.DiffusersQuantizer.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/diffusers/blob/main/src/diffusers/quantizers/base.py#L68"}}),ge=new b({props:{name:"validate_environment",anchor:"diffusers.DiffusersQuantizer.validate_environment",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/base.py#L163"}}),he=new $n({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/quantization.md"}}),{c(){y=i("meta"),V=r(),z=i("p"),be=r(),u(j.$$.fragment),Ve=r(),G=i("p"),G.textContent=Ft,je=r(),u(x.$$.fragment),Ge=r(),u(B.$$.fragment),Be=r(),q=i("div"),u(U.$$.fragment),ct=r(),ve=i("p"),ve.innerHTML=Ot,Ue=r(),u(F.$$.fragment),Fe=r(),O=i("div"),u(S.$$.fragment),Oe=r(),u(N.$$.fragment),Se=r(),W=i("div"),u(R.$$.fragment),Ne=r(),u(Y.$$.fragment),We=r(),J=i("div"),u(K.$$.fragment),Re=r(),u(X.$$.fragment),Ye=r(),Z=i("div"),u(ee.$$.fragment),Je=r(),u(te.$$.fragment),Ke=r(),d=i("div"),u(ne.$$.fragment),gt=r(),ye=i("p"),ye.textContent=St,ht=r(),ze=i("p"),ze.innerHTML=Nt,_t=r(),w=i("div"),u(re.$$.fragment),$t=r(),qe=i("p"),qe.textContent=Wt,bt=r(),C=i("div"),u(se.$$.fragment),vt=r(),xe=i("p"),xe.innerHTML=Rt,yt=r(),D=i("div"),u(ae.$$.fragment),zt=r(),we=i("p"),we.textContent=Yt,qt=r(),k=i("div"),u(ie.$$.fragment),xt=r(),Ce=i("p"),Ce.textContent=Jt,wt=r(),Q=i("div"),u(oe.$$.fragment),Ct=r(),De=i("p"),De.textContent=Kt,Dt=r(),T=i("div"),u(de.$$.fragment),kt=r(),ke=i("p"),ke.textContent=Xt,Qt=r(),L=i("div"),u(fe.$$.fragment),Tt=r(),Qe=i("p"),Qe.innerHTML=Zt,Lt=r(),M=i("div"),u(ue.$$.fragment),Mt=r(),Te=i("p"),Te.innerHTML=en,Pt=r(),P=i("div"),u(me.$$.fragment),Et=r(),Le=i("p"),Le.innerHTML=tn,Ht=r(),E=i("div"),u(le.$$.fragment),It=r(),Me=i("p"),Me.innerHTML=nn,At=r(),H=i("div"),u(pe.$$.fragment),Vt=r(),Pe=i("p"),Pe.innerHTML=rn,jt=r(),I=i("div"),u(ce.$$.fragment),Gt=r(),Ee=i("p"),Ee.textContent=sn,Bt=r(),A=i("div"),u(ge.$$.fragment),Ut=r(),He=i("p"),He.innerHTML=an,Xe=r(),u(he.$$.fragment),Ze=r(),Ie=i("p"),this.h()},l(e){const a=hn("svelte-u9bgzb",document.head);y=o(a,"META",{name:!0,content:!0}),a.forEach(n),V=s(e),z=o(e,"P",{}),_(z).forEach(n),be=s(e),m(j.$$.fragment,e),Ve=s(e),G=o(e,"P",{"data-svelte-h":!0}),v(G)!=="svelte-1balldr"&&(G.textContent=Ft),je=s(e),m(x.$$.fragment,e),Ge=s(e),m(B.$$.fragment,e),Be=s(e),q=o(e,"DIV",{class:!0});var _e=_(q);m(U.$$.fragment,_e),ct=s(_e),ve=o(_e,"P",{"data-svelte-h":!0}),v(ve)!=="svelte-l98qrs"&&(ve.innerHTML=Ot),_e.forEach(n),Ue=s(e),m(F.$$.fragment,e),Fe=s(e),O=o(e,"DIV",{class:!0});var on=_(O);m(S.$$.fragment,on),on.forEach(n),Oe=s(e),m(N.$$.fragment,e),Se=s(e),W=o(e,"DIV",{class:!0});var dn=_(W);m(R.$$.fragment,dn),dn.forEach(n),Ne=s(e),m(Y.$$.fragment,e),We=s(e),J=o(e,"DIV",{class:!0});var fn=_(J);m(K.$$.fragment,fn),fn.forEach(n),Re=s(e),m(X.$$.fragment,e),Ye=s(e),Z=o(e,"DIV",{class:!0});var un=_(Z);m(ee.$$.fragment,un),un.forEach(n),Je=s(e),m(te.$$.fragment,e),Ke=s(e),d=o(e,"DIV",{class:!0});var f=_(d);m(ne.$$.fragment,f),gt=s(f),ye=o(f,"P",{"data-svelte-h":!0}),v(ye)!=="svelte-n1gm3c"&&(ye.textContent=St),ht=s(f),ze=o(f,"P",{"data-svelte-h":!0}),v(ze)!=="svelte-1fnduym"&&(ze.innerHTML=Nt),_t=s(f),w=o(f,"DIV",{class:!0});var tt=_(w);m(re.$$.fragment,tt),$t=s(tt),qe=o(tt,"P",{"data-svelte-h":!0}),v(qe)!=="svelte-1d4i4z7"&&(qe.textContent=Wt),tt.forEach(n),bt=s(f),C=o(f,"DIV",{class:!0});var nt=_(C);m(se.$$.fragment,nt),vt=s(nt),xe=o(nt,"P",{"data-svelte-h":!0}),v(xe)!=="svelte-eyxa3y"&&(xe.innerHTML=Rt),nt.forEach(n),yt=s(f),D=o(f,"DIV",{class:!0});var rt=_(D);m(ae.$$.fragment,rt),zt=s(rt),we=o(rt,"P",{"data-svelte-h":!0}),v(we)!=="svelte-y0lxmf"&&(we.textContent=Yt),rt.forEach(n),qt=s(f),k=o(f,"DIV",{class:!0});var st=_(k);m(ie.$$.fragment,st),xt=s(st),Ce=o(st,"P",{"data-svelte-h":!0}),v(Ce)!=="svelte-1170ss6"&&(Ce.textContent=Jt),st.forEach(n),wt=s(f),Q=o(f,"DIV",{class:!0});var at=_(Q);m(oe.$$.fragment,at),Ct=s(at),De=o(at,"P",{"data-svelte-h":!0}),v(De)!=="svelte-odkanz"&&(De.textContent=Kt),at.forEach(n),Dt=s(f),T=o(f,"DIV",{class:!0});var it=_(T);m(de.$$.fragment,it),kt=s(it),ke=o(it,"P",{"data-svelte-h":!0}),v(ke)!=="svelte-upajm7"&&(ke.textContent=Xt),it.forEach(n),Qt=s(f),L=o(f,"DIV",{class:!0});var ot=_(L);m(fe.$$.fragment,ot),Tt=s(ot),Qe=o(ot,"P",{"data-svelte-h":!0}),v(Qe)!=="svelte-1cb2fzf"&&(Qe.innerHTML=Zt),ot.forEach(n),Lt=s(f),M=o(f,"DIV",{class:!0});var dt=_(M);m(ue.$$.fragment,dt),Mt=s(dt),Te=o(dt,"P",{"data-svelte-h":!0}),v(Te)!=="svelte-6rgq61"&&(Te.innerHTML=en),dt.forEach(n),Pt=s(f),P=o(f,"DIV",{class:!0});var ft=_(P);m(me.$$.fragment,ft),Et=s(ft),Le=o(ft,"P",{"data-svelte-h":!0}),v(Le)!=="svelte-wiwxpv"&&(Le.innerHTML=tn),ft.forEach(n),Ht=s(f),E=o(f,"DIV",{class:!0});var ut=_(E);m(le.$$.fragment,ut),It=s(ut),Me=o(ut,"P",{"data-svelte-h":!0}),v(Me)!=="svelte-5g503h"&&(Me.innerHTML=nn),ut.forEach(n),At=s(f),H=o(f,"DIV",{class:!0});var mt=_(H);m(pe.$$.fragment,mt),Vt=s(mt),Pe=o(mt,"P",{"data-svelte-h":!0}),v(Pe)!=="svelte-13hqoy0"&&(Pe.innerHTML=rn),mt.forEach(n),jt=s(f),I=o(f,"DIV",{class:!0});var lt=_(I);m(ce.$$.fragment,lt),Gt=s(lt),Ee=o(lt,"P",{"data-svelte-h":!0}),v(Ee)!=="svelte-udr2k7"&&(Ee.textContent=sn),lt.forEach(n),Bt=s(f),A=o(f,"DIV",{class:!0});var pt=_(A);m(ge.$$.fragment,pt),Ut=s(pt),He=o(pt,"P",{"data-svelte-h":!0}),v(He)!=="svelte-1ra2q1u"&&(He.innerHTML=an),pt.forEach(n),f.forEach(n),Xe=s(e),m(he.$$.fragment,e),Ze=s(e),Ie=o(e,"P",{}),_(Ie).forEach(n),this.h()},h(){$(y,"name","hf:doc:metadata"),$(y,"content",yn),$(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(O,"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"),$(J,"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"),$(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(D,"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"),$(Q,"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"),$(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,"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"),$(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(H,"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"),$(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(d,"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,a){t(document.head,y),h(e,V,a),h(e,z,a),h(e,be,a),l(j,e,a),h(e,Ve,a),h(e,G,a),h(e,je,a),l(x,e,a),h(e,Ge,a),l(B,e,a),h(e,Be,a),h(e,q,a),l(U,q,null),t(q,ct),t(q,ve),h(e,Ue,a),l(F,e,a),h(e,Fe,a),h(e,O,a),l(S,O,null),h(e,Oe,a),l(N,e,a),h(e,Se,a),h(e,W,a),l(R,W,null),h(e,Ne,a),l(Y,e,a),h(e,We,a),h(e,J,a),l(K,J,null),h(e,Re,a),l(X,e,a),h(e,Ye,a),h(e,Z,a),l(ee,Z,null),h(e,Je,a),l(te,e,a),h(e,Ke,a),h(e,d,a),l(ne,d,null),t(d,gt),t(d,ye),t(d,ht),t(d,ze),t(d,_t),t(d,w),l(re,w,null),t(w,$t),t(w,qe),t(d,bt),t(d,C),l(se,C,null),t(C,vt),t(C,xe),t(d,yt),t(d,D),l(ae,D,null),t(D,zt),t(D,we),t(d,qt),t(d,k),l(ie,k,null),t(k,xt),t(k,Ce),t(d,wt),t(d,Q),l(oe,Q,null),t(Q,Ct),t(Q,De),t(d,Dt),t(d,T),l(de,T,null),t(T,kt),t(T,ke),t(d,Qt),t(d,L),l(fe,L,null),t(L,Tt),t(L,Qe),t(d,Lt),t(d,M),l(ue,M,null),t(M,Mt),t(M,Te),t(d,Pt),t(d,P),l(me,P,null),t(P,Et),t(P,Le),t(d,Ht),t(d,E),l(le,E,null),t(E,It),t(E,Me),t(d,At),t(d,H),l(pe,H,null),t(H,Vt),t(H,Pe),t(d,jt),t(d,I),l(ce,I,null),t(I,Gt),t(I,Ee),t(d,Bt),t(d,A),l(ge,A,null),t(A,Ut),t(A,He),h(e,Xe,a),l(he,e,a),h(e,Ze,a),h(e,Ie,a),et=!0},p(e,[a]){const _e={};a&2&&(_e.$$scope={dirty:a,ctx:e}),x.$set(_e)},i(e){et||(p(j.$$.fragment,e),p(x.$$.fragment,e),p(B.$$.fragment,e),p(U.$$.fragment,e),p(F.$$.fragment,e),p(S.$$.fragment,e),p(N.$$.fragment,e),p(R.$$.fragment,e),p(Y.$$.fragment,e),p(K.$$.fragment,e),p(X.$$.fragment,e),p(ee.$$.fragment,e),p(te.$$.fragment,e),p(ne.$$.fragment,e),p(re.$$.fragment,e),p(se.$$.fragment,e),p(ae.$$.fragment,e),p(ie.$$.fragment,e),p(oe.$$.fragment,e),p(de.$$.fragment,e),p(fe.$$.fragment,e),p(ue.$$.fragment,e),p(me.$$.fragment,e),p(le.$$.fragment,e),p(pe.$$.fragment,e),p(ce.$$.fragment,e),p(ge.$$.fragment,e),p(he.$$.fragment,e),et=!0)},o(e){c(j.$$.fragment,e),c(x.$$.fragment,e),c(B.$$.fragment,e),c(U.$$.fragment,e),c(F.$$.fragment,e),c(S.$$.fragment,e),c(N.$$.fragment,e),c(R.$$.fragment,e),c(Y.$$.fragment,e),c(K.$$.fragment,e),c(X.$$.fragment,e),c(ee.$$.fragment,e),c(te.$$.fragment,e),c(ne.$$.fragment,e),c(re.$$.fragment,e),c(se.$$.fragment,e),c(ae.$$.fragment,e),c(ie.$$.fragment,e),c(oe.$$.fragment,e),c(de.$$.fragment,e),c(fe.$$.fragment,e),c(ue.$$.fragment,e),c(me.$$.fragment,e),c(le.$$.fragment,e),c(pe.$$.fragment,e),c(ce.$$.fragment,e),c(ge.$$.fragment,e),c(he.$$.fragment,e),et=!1},d(e){e&&(n(V),n(z),n(be),n(Ve),n(G),n(je),n(Ge),n(Be),n(q),n(Ue),n(Fe),n(O),n(Oe),n(Se),n(W),n(Ne),n(We),n(J),n(Re),n(Ye),n(Z),n(Je),n(Ke),n(d),n(Xe),n(Ze),n(Ie)),n(y),g(j,e),g(x,e),g(B,e),g(U),g(F,e),g(S),g(N,e),g(R),g(Y,e),g(K),g(X,e),g(ee),g(te,e),g(ne),g(re),g(se),g(ae),g(ie),g(oe),g(de),g(fe),g(ue),g(me),g(le),g(pe),g(ce),g(ge),g(he,e)}}}const yn='{"title":"Quantization","local":"quantization","sections":[{"title":"PipelineQuantizationConfig","local":"diffusers.quantizers.PipelineQuantizationConfig","sections":[],"depth":2},{"title":"BitsAndBytesConfig","local":"diffusers.BitsAndBytesConfig","sections":[],"depth":2},{"title":"GGUFQuantizationConfig","local":"diffusers.GGUFQuantizationConfig","sections":[],"depth":2},{"title":"QuantoConfig","local":"diffusers.QuantoConfig","sections":[],"depth":2},{"title":"TorchAoConfig","local":"diffusers.TorchAoConfig","sections":[],"depth":2},{"title":"DiffusersQuantizer","local":"diffusers.DiffusersQuantizer","sections":[],"depth":2}],"depth":1}';function zn(Ae){return ln(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class kn extends cn{constructor(y){super(),gn(this,y,zn,vn,mn,{})}}export{kn as component};
