Buckets:
| import{s as ur,o as lr,n as mr}from"../chunks/scheduler.8c3d61f6.js";import{S as pr,i as cr,g as a,s as n,r as u,A as gr,h as o,f as r,c as s,j as _,u as l,x as b,k as $,y as t,a as h,v as m,d as p,t as c,w as g}from"../chunks/index.da70eac4.js";import{T as hr}from"../chunks/Tip.1d9b8c37.js";import{D as v}from"../chunks/Docstring.dcbc19b1.js";import{H as $e,E as _r}from"../chunks/getInferenceSnippets.86beaec3.js";function $r(Ae){let y,V='Learn how to quantize models in the <a href="../quantization/overview">Quantization</a> guide.';return{c(){y=a("p"),y.innerHTML=V},l(z){y=o(z,"P",{"data-svelte-h":!0}),b(y)!=="svelte-1dd515k"&&(y.innerHTML=V)},m(z,ve){h(z,y,ve)},p:mr,d(z){z&&r(y)}}}function vr(Ae){let y,V,z,ve,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,q,Ge,B,Be,x,U,ct,be,Ot='Configuration class to be used when applying quantization on-the-fly to <a href="/docs/diffusers/pr_11783/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,re,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,ne,$t,xe,Wt="adjust max_memory argument for infer_auto_device_map() if extra memory is needed for quantization",vt,C,se,bt,qe,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,ie,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.`,xt,k,ae,qt,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,er=`Post-process the model post weights loading. Make sure to override the abstract method | |
| <code>_process_model_after_weight_loading</code>.`,Pt,P,le,Et,Le,tr=`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,me,It,Me,rr=`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,nr="Override this method if you want to adjust the <code>missing_keys</code>.",jt,I,ce,Gt,Ee,sr=`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,ir=`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"}}),q=new hr({props:{$$slots:{default:[$r]},$$scope:{ctx:Ae}}}),B=new $e({props:{title:"PipelineQuantizationConfig",local:"diffusers.PipelineQuantizationConfig",headingTag:"h2"}}),U=new v({props:{name:"class diffusers.PipelineQuantizationConfig",anchor:"diffusers.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.PipelineQuantizationConfig.quant_backend",description:`<strong>quant_backend</strong> (<code>str</code>) — 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.PipelineQuantizationConfig.quant_kwargs",description:"<strong>quant_kwargs</strong> (<code>dict</code>) — Params to initialize the quantization backend class.",name:"quant_kwargs"},{anchor:"diffusers.PipelineQuantizationConfig.components_to_quantize",description:"<strong>components_to_quantize</strong> (<code>list</code>) — Components of a pipeline to be quantized.",name:"components_to_quantize"},{anchor:"diffusers.PipelineQuantizationConfig.quant_mapping",description:`<strong>quant_mapping</strong> (<code>dict</code>) — 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/vr_11783/src/diffusers/quantizers/__init__.py#L35"}}),F=new $e({props:{title:"BitsAndBytesConfig",local:"diffusers.BitsAndBytesConfig",headingTag:"h2"}}),S=new v({props:{name:"class diffusers.BitsAndBytesConfig",anchor:"diffusers.BitsAndBytesConfig",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/utils/dummy_bitsandbytes_objects.py#L5"}}),N=new $e({props:{title:"GGUFQuantizationConfig",local:"diffusers.GGUFQuantizationConfig",headingTag:"h2"}}),R=new v({props:{name:"class diffusers.GGUFQuantizationConfig",anchor:"diffusers.GGUFQuantizationConfig",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/utils/dummy_gguf_objects.py#L5"}}),Y=new $e({props:{title:"QuantoConfig",local:"diffusers.QuantoConfig",headingTag:"h2"}}),K=new v({props:{name:"class diffusers.QuantoConfig",anchor:"diffusers.QuantoConfig",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/utils/dummy_optimum_quanto_objects.py#L5"}}),X=new $e({props:{title:"TorchAoConfig",local:"diffusers.TorchAoConfig",headingTag:"h2"}}),ee=new v({props:{name:"class diffusers.TorchAoConfig",anchor:"diffusers.TorchAoConfig",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/utils/dummy_torchao_objects.py#L5"}}),te=new $e({props:{title:"DiffusersQuantizer",local:"diffusers.DiffusersQuantizer",headingTag:"h2"}}),re=new v({props:{name:"class diffusers.DiffusersQuantizer",anchor:"diffusers.DiffusersQuantizer",parameters:[{name:"quantization_config",val:": QuantizationConfigMixin"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/quantizers/base.py#L34"}}),ne=new v({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/vr_11783/src/diffusers/quantizers/base.py#L133"}}),se=new v({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>) — | |
| The torch_dtype that is used to compute the device_map.`,name:"torch_dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/quantizers/base.py#L91"}}),ie=new v({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/vr_11783/src/diffusers/quantizers/base.py#L137"}}),ae=new v({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/vr_11783/src/diffusers/quantizers/base.py#L157"}}),oe=new v({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/vr_11783/src/diffusers/quantizers/base.py#L151"}}),de=new v({props:{name:"dequantize",anchor:"diffusers.DiffusersQuantizer.dequantize",parameters:[{name:"model",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/quantizers/base.py#L200"}}),fe=new v({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>) — | |
| The model to quantize`,name:"model"},{anchor:"diffusers.DiffusersQuantizer.get_special_dtypes_update.torch_dtype",description:`<strong>torch_dtype</strong> (<code>torch.dtype</code>) — | |
| The dtype passed in <code>from_pretrained</code> method.`,name:"torch_dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/quantizers/base.py#L113"}}),ue=new v({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>) — | |
| The model to quantize`,name:"model"},{anchor:"diffusers.DiffusersQuantizer.postprocess_model.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| The keyword arguments that are passed along <code>_process_model_after_weight_loading</code>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/quantizers/base.py#L187"}}),le=new v({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>) — | |
| The model to quantize`,name:"model"},{anchor:"diffusers.DiffusersQuantizer.preprocess_model.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| The keyword arguments that are passed along <code>_process_model_before_weight_loading</code>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/quantizers/base.py#L171"}}),me=new v({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>) — | |
| The device_map that is passed through the <code>from_pretrained</code> method.`,name:"device_map"}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/quantizers/base.py#L79"}}),pe=new v({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>) — | |
| 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/vr_11783/src/diffusers/quantizers/base.py#L103"}}),ce=new v({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>) — | |
| The input dtype that is passed in <code>from_pretrained</code>`,name:"torch_dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/quantizers/base.py#L68"}}),ge=new v({props:{name:"validate_environment",anchor:"diffusers.DiffusersQuantizer.validate_environment",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_11783/src/diffusers/quantizers/base.py#L163"}}),he=new _r({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/quantization.md"}}),{c(){y=a("meta"),V=n(),z=a("p"),ve=n(),u(j.$$.fragment),Ve=n(),G=a("p"),G.textContent=Ft,je=n(),u(q.$$.fragment),Ge=n(),u(B.$$.fragment),Be=n(),x=a("div"),u(U.$$.fragment),ct=n(),be=a("p"),be.innerHTML=Ot,Ue=n(),u(F.$$.fragment),Fe=n(),O=a("div"),u(S.$$.fragment),Oe=n(),u(N.$$.fragment),Se=n(),W=a("div"),u(R.$$.fragment),Ne=n(),u(Y.$$.fragment),We=n(),J=a("div"),u(K.$$.fragment),Re=n(),u(X.$$.fragment),Ye=n(),Z=a("div"),u(ee.$$.fragment),Je=n(),u(te.$$.fragment),Ke=n(),d=a("div"),u(re.$$.fragment),gt=n(),ye=a("p"),ye.textContent=St,ht=n(),ze=a("p"),ze.innerHTML=Nt,_t=n(),w=a("div"),u(ne.$$.fragment),$t=n(),xe=a("p"),xe.textContent=Wt,vt=n(),C=a("div"),u(se.$$.fragment),bt=n(),qe=a("p"),qe.innerHTML=Rt,yt=n(),D=a("div"),u(ie.$$.fragment),zt=n(),we=a("p"),we.textContent=Yt,xt=n(),k=a("div"),u(ae.$$.fragment),qt=n(),Ce=a("p"),Ce.textContent=Jt,wt=n(),Q=a("div"),u(oe.$$.fragment),Ct=n(),De=a("p"),De.textContent=Kt,Dt=n(),T=a("div"),u(de.$$.fragment),kt=n(),ke=a("p"),ke.textContent=Xt,Qt=n(),L=a("div"),u(fe.$$.fragment),Tt=n(),Qe=a("p"),Qe.innerHTML=Zt,Lt=n(),M=a("div"),u(ue.$$.fragment),Mt=n(),Te=a("p"),Te.innerHTML=er,Pt=n(),P=a("div"),u(le.$$.fragment),Et=n(),Le=a("p"),Le.innerHTML=tr,Ht=n(),E=a("div"),u(me.$$.fragment),It=n(),Me=a("p"),Me.innerHTML=rr,At=n(),H=a("div"),u(pe.$$.fragment),Vt=n(),Pe=a("p"),Pe.innerHTML=nr,jt=n(),I=a("div"),u(ce.$$.fragment),Gt=n(),Ee=a("p"),Ee.textContent=sr,Bt=n(),A=a("div"),u(ge.$$.fragment),Ut=n(),He=a("p"),He.innerHTML=ir,Xe=n(),u(he.$$.fragment),Ze=n(),Ie=a("p"),this.h()},l(e){const i=gr("svelte-u9bgzb",document.head);y=o(i,"META",{name:!0,content:!0}),i.forEach(r),V=s(e),z=o(e,"P",{}),_(z).forEach(r),ve=s(e),l(j.$$.fragment,e),Ve=s(e),G=o(e,"P",{"data-svelte-h":!0}),b(G)!=="svelte-1balldr"&&(G.textContent=Ft),je=s(e),l(q.$$.fragment,e),Ge=s(e),l(B.$$.fragment,e),Be=s(e),x=o(e,"DIV",{class:!0});var _e=_(x);l(U.$$.fragment,_e),ct=s(_e),be=o(_e,"P",{"data-svelte-h":!0}),b(be)!=="svelte-197jxwi"&&(be.innerHTML=Ot),_e.forEach(r),Ue=s(e),l(F.$$.fragment,e),Fe=s(e),O=o(e,"DIV",{class:!0});var ar=_(O);l(S.$$.fragment,ar),ar.forEach(r),Oe=s(e),l(N.$$.fragment,e),Se=s(e),W=o(e,"DIV",{class:!0});var or=_(W);l(R.$$.fragment,or),or.forEach(r),Ne=s(e),l(Y.$$.fragment,e),We=s(e),J=o(e,"DIV",{class:!0});var dr=_(J);l(K.$$.fragment,dr),dr.forEach(r),Re=s(e),l(X.$$.fragment,e),Ye=s(e),Z=o(e,"DIV",{class:!0});var fr=_(Z);l(ee.$$.fragment,fr),fr.forEach(r),Je=s(e),l(te.$$.fragment,e),Ke=s(e),d=o(e,"DIV",{class:!0});var f=_(d);l(re.$$.fragment,f),gt=s(f),ye=o(f,"P",{"data-svelte-h":!0}),b(ye)!=="svelte-n1gm3c"&&(ye.textContent=St),ht=s(f),ze=o(f,"P",{"data-svelte-h":!0}),b(ze)!=="svelte-1fnduym"&&(ze.innerHTML=Nt),_t=s(f),w=o(f,"DIV",{class:!0});var tt=_(w);l(ne.$$.fragment,tt),$t=s(tt),xe=o(tt,"P",{"data-svelte-h":!0}),b(xe)!=="svelte-1d4i4z7"&&(xe.textContent=Wt),tt.forEach(r),vt=s(f),C=o(f,"DIV",{class:!0});var rt=_(C);l(se.$$.fragment,rt),bt=s(rt),qe=o(rt,"P",{"data-svelte-h":!0}),b(qe)!=="svelte-eyxa3y"&&(qe.innerHTML=Rt),rt.forEach(r),yt=s(f),D=o(f,"DIV",{class:!0});var nt=_(D);l(ie.$$.fragment,nt),zt=s(nt),we=o(nt,"P",{"data-svelte-h":!0}),b(we)!=="svelte-y0lxmf"&&(we.textContent=Yt),nt.forEach(r),xt=s(f),k=o(f,"DIV",{class:!0});var st=_(k);l(ae.$$.fragment,st),qt=s(st),Ce=o(st,"P",{"data-svelte-h":!0}),b(Ce)!=="svelte-1170ss6"&&(Ce.textContent=Jt),st.forEach(r),wt=s(f),Q=o(f,"DIV",{class:!0});var it=_(Q);l(oe.$$.fragment,it),Ct=s(it),De=o(it,"P",{"data-svelte-h":!0}),b(De)!=="svelte-odkanz"&&(De.textContent=Kt),it.forEach(r),Dt=s(f),T=o(f,"DIV",{class:!0});var at=_(T);l(de.$$.fragment,at),kt=s(at),ke=o(at,"P",{"data-svelte-h":!0}),b(ke)!=="svelte-upajm7"&&(ke.textContent=Xt),at.forEach(r),Qt=s(f),L=o(f,"DIV",{class:!0});var ot=_(L);l(fe.$$.fragment,ot),Tt=s(ot),Qe=o(ot,"P",{"data-svelte-h":!0}),b(Qe)!=="svelte-1cb2fzf"&&(Qe.innerHTML=Zt),ot.forEach(r),Lt=s(f),M=o(f,"DIV",{class:!0});var dt=_(M);l(ue.$$.fragment,dt),Mt=s(dt),Te=o(dt,"P",{"data-svelte-h":!0}),b(Te)!=="svelte-6rgq61"&&(Te.innerHTML=er),dt.forEach(r),Pt=s(f),P=o(f,"DIV",{class:!0});var ft=_(P);l(le.$$.fragment,ft),Et=s(ft),Le=o(ft,"P",{"data-svelte-h":!0}),b(Le)!=="svelte-wiwxpv"&&(Le.innerHTML=tr),ft.forEach(r),Ht=s(f),E=o(f,"DIV",{class:!0});var ut=_(E);l(me.$$.fragment,ut),It=s(ut),Me=o(ut,"P",{"data-svelte-h":!0}),b(Me)!=="svelte-5g503h"&&(Me.innerHTML=rr),ut.forEach(r),At=s(f),H=o(f,"DIV",{class:!0});var lt=_(H);l(pe.$$.fragment,lt),Vt=s(lt),Pe=o(lt,"P",{"data-svelte-h":!0}),b(Pe)!=="svelte-13hqoy0"&&(Pe.innerHTML=nr),lt.forEach(r),jt=s(f),I=o(f,"DIV",{class:!0});var mt=_(I);l(ce.$$.fragment,mt),Gt=s(mt),Ee=o(mt,"P",{"data-svelte-h":!0}),b(Ee)!=="svelte-udr2k7"&&(Ee.textContent=sr),mt.forEach(r),Bt=s(f),A=o(f,"DIV",{class:!0});var pt=_(A);l(ge.$$.fragment,pt),Ut=s(pt),He=o(pt,"P",{"data-svelte-h":!0}),b(He)!=="svelte-1ra2q1u"&&(He.innerHTML=ir),pt.forEach(r),f.forEach(r),Xe=s(e),l(he.$$.fragment,e),Ze=s(e),Ie=o(e,"P",{}),_(Ie).forEach(r),this.h()},h(){$(y,"name","hf:doc:metadata"),$(y,"content",br),$(x,"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,i){t(document.head,y),h(e,V,i),h(e,z,i),h(e,ve,i),m(j,e,i),h(e,Ve,i),h(e,G,i),h(e,je,i),m(q,e,i),h(e,Ge,i),m(B,e,i),h(e,Be,i),h(e,x,i),m(U,x,null),t(x,ct),t(x,be),h(e,Ue,i),m(F,e,i),h(e,Fe,i),h(e,O,i),m(S,O,null),h(e,Oe,i),m(N,e,i),h(e,Se,i),h(e,W,i),m(R,W,null),h(e,Ne,i),m(Y,e,i),h(e,We,i),h(e,J,i),m(K,J,null),h(e,Re,i),m(X,e,i),h(e,Ye,i),h(e,Z,i),m(ee,Z,null),h(e,Je,i),m(te,e,i),h(e,Ke,i),h(e,d,i),m(re,d,null),t(d,gt),t(d,ye),t(d,ht),t(d,ze),t(d,_t),t(d,w),m(ne,w,null),t(w,$t),t(w,xe),t(d,vt),t(d,C),m(se,C,null),t(C,bt),t(C,qe),t(d,yt),t(d,D),m(ie,D,null),t(D,zt),t(D,we),t(d,xt),t(d,k),m(ae,k,null),t(k,qt),t(k,Ce),t(d,wt),t(d,Q),m(oe,Q,null),t(Q,Ct),t(Q,De),t(d,Dt),t(d,T),m(de,T,null),t(T,kt),t(T,ke),t(d,Qt),t(d,L),m(fe,L,null),t(L,Tt),t(L,Qe),t(d,Lt),t(d,M),m(ue,M,null),t(M,Mt),t(M,Te),t(d,Pt),t(d,P),m(le,P,null),t(P,Et),t(P,Le),t(d,Ht),t(d,E),m(me,E,null),t(E,It),t(E,Me),t(d,At),t(d,H),m(pe,H,null),t(H,Vt),t(H,Pe),t(d,jt),t(d,I),m(ce,I,null),t(I,Gt),t(I,Ee),t(d,Bt),t(d,A),m(ge,A,null),t(A,Ut),t(A,He),h(e,Xe,i),m(he,e,i),h(e,Ze,i),h(e,Ie,i),et=!0},p(e,[i]){const _e={};i&2&&(_e.$$scope={dirty:i,ctx:e}),q.$set(_e)},i(e){et||(p(j.$$.fragment,e),p(q.$$.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(re.$$.fragment,e),p(ne.$$.fragment,e),p(se.$$.fragment,e),p(ie.$$.fragment,e),p(ae.$$.fragment,e),p(oe.$$.fragment,e),p(de.$$.fragment,e),p(fe.$$.fragment,e),p(ue.$$.fragment,e),p(le.$$.fragment,e),p(me.$$.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(q.$$.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(re.$$.fragment,e),c(ne.$$.fragment,e),c(se.$$.fragment,e),c(ie.$$.fragment,e),c(ae.$$.fragment,e),c(oe.$$.fragment,e),c(de.$$.fragment,e),c(fe.$$.fragment,e),c(ue.$$.fragment,e),c(le.$$.fragment,e),c(me.$$.fragment,e),c(pe.$$.fragment,e),c(ce.$$.fragment,e),c(ge.$$.fragment,e),c(he.$$.fragment,e),et=!1},d(e){e&&(r(V),r(z),r(ve),r(Ve),r(G),r(je),r(Ge),r(Be),r(x),r(Ue),r(Fe),r(O),r(Oe),r(Se),r(W),r(Ne),r(We),r(J),r(Re),r(Ye),r(Z),r(Je),r(Ke),r(d),r(Xe),r(Ze),r(Ie)),r(y),g(j,e),g(q,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(re),g(ne),g(se),g(ie),g(ae),g(oe),g(de),g(fe),g(ue),g(le),g(me),g(pe),g(ce),g(ge),g(he,e)}}}const br='{"title":"Quantization","local":"quantization","sections":[{"title":"PipelineQuantizationConfig","local":"diffusers.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 yr(Ae){return lr(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Dr extends pr{constructor(y){super(),cr(this,y,yr,vr,ur,{})}}export{Dr as component}; | |
Xet Storage Details
- Size:
- 25.6 kB
- Xet hash:
- d5e5bfaab29a070b90fe28bbc0bc4af8bc6b8e72e9055efa00fa8522cd6c0bc3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.