import{s as _o,o as bo,n as ho}from"../chunks/scheduler.8c3d61f6.js";import{S as yo,i as vo,g as i,s as n,r as l,A as $o,h as a,f as s,c as o,j as b,u,x as h,k as y,y as t,a as _,v as f,d as c,t as m,w as p}from"../chunks/index.da70eac4.js";import{T as wo}from"../chunks/Tip.1d9b8c37.js";import{D as $}from"../chunks/Docstring.c021b19a.js";import{C as zo}from"../chunks/CodeBlock.a9c4becf.js";import{E as qo}from"../chunks/ExampleCodeBlock.56b4589c.js";import{H as Be,E as xo}from"../chunks/getInferenceSnippets.725ed3d4.js";function Co(Pe){let v,L='Learn how to quantize models in the <a href="../quantization/overview">Quantization</a> guide.';return{c(){v=i("p"),v.innerHTML=L},l(x){v=a(x,"P",{"data-svelte-h":!0}),h(v)!=="svelte-1dd515k"&&(v.innerHTML=L)},m(x,C){_(x,v,C)},p:ho,d(x){x&&s(v)}}}function To(Pe){let v,L="Example:",x,C,k;return C=new zo({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsdXhUcmFuc2Zvcm1lcjJETW9kZWwlMkMlMjBUb3JjaEFvQ29uZmlnJTBBJTBBcXVhbnRpemF0aW9uX2NvbmZpZyUyMCUzRCUyMFRvcmNoQW9Db25maWcoJTIyaW50OHdvJTIyKSUwQXRyYW5zZm9ybWVyJTIwJTNEJTIwRmx1eFRyYW5zZm9ybWVyMkRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyYmxhY2stZm9yZXN0LWxhYnMlMkZGbHV4LjEtRGV2JTIyJTJDJTBBJTIwJTIwJTIwJTIwc3ViZm9sZGVyJTNEJTIydHJhbnNmb3JtZXIlMjIlMkMlMEElMjAlMjAlMjAlMjBxdWFudGl6YXRpb25fY29uZmlnJTNEcXVhbnRpemF0aW9uX2NvbmZpZyUyQyUwQSUyMCUyMCUyMCUyMHRvcmNoX2R0eXBlJTNEdG9yY2guYmZsb2F0MTYlMkMlMEEp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> FluxTransformer2DModel, TorchAoConfig

quantization_config = TorchAoConfig(<span class="hljs-string">&quot;int8wo&quot;</span>)
transformer = FluxTransformer2DModel.from_pretrained(
    <span class="hljs-string">&quot;black-forest-labs/Flux.1-Dev&quot;</span>,
    subfolder=<span class="hljs-string">&quot;transformer&quot;</span>,
    quantization_config=quantization_config,
    torch_dtype=torch.bfloat16,
)`,wrap:!1}}),{c(){v=i("p"),v.textContent=L,x=n(),l(C.$$.fragment)},l(z){v=a(z,"P",{"data-svelte-h":!0}),h(v)!=="svelte-11lpom8"&&(v.textContent=L),x=o(z),u(C.$$.fragment,z)},m(z,M){_(z,v,M),_(z,x,M),f(C,z,M),k=!0},p:ho,i(z){k||(c(C.$$.fragment,z),k=!0)},o(z){m(C.$$.fragment,z),k=!1},d(z){z&&(s(v),s(x)),p(C,z)}}}function ko(Pe){let v,L,x,C,k,z,M,Vn="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.",ft,P,ct,te,mt,Q,ne,Zt,Ae,Un='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>.',pt,oe,gt,w,ie,Rt,Fe,Jn=`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>.`,Wt,Ie,Nn="This replaces <code>load_in_8bit</code> or <code>load_in_4bit</code> therefore both options are mutually exclusive.",St,Ee,Gn=`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.`,Xt,A,ae,Yt,He,jn="Returns <code>True</code> if the model is quantizable, <code>False</code> otherwise.",Ot,F,se,Kt,Ve,Zn="Safety checker that arguments are correct - also replaces some NoneType arguments with their default values.",en,I,re,tn,Ue,Rn=`This method returns the quantization method used for the model. If the model is not quantizable, it returns
<code>None</code>.`,nn,E,de,on,Je,Wn=`Removes all attributes from config which correspond to the default config attributes for better readability and
serializes to a Python dictionary.`,ht,le,_t,B,ue,an,Ne,Sn="This is a config class for GGUF Quantization techniques.",bt,fe,yt,T,ce,sn,Ge,Xn=`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>.`,rn,je,Yn=`modules_to_not_convert (<code>list</code>, <em>optional</em>, default to <code>None</code>):
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).`,dn,H,me,ln,Ze,On="Safety checker that arguments are correct",vt,pe,$t,D,ge,un,Re,Kn="This is a config class for torchao quantization/sparsity techniques.",fn,V,wt,he,zt,d,_e,cn,We,eo=`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.`,mn,Se,to=`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.`,pn,U,be,gn,Xe,no="adjust max_memory argument for infer_auto_device_map() if extra memory is needed for quantization",hn,J,ye,_n,Ye,oo=`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>.`,bn,N,ve,yn,Oe,io=`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.`,vn,G,$e,$n,Ke,ao="checks if the quantized param has expected shape.",wn,j,we,zn,et,so="takes needed components from state_dict and creates quantized param.",qn,Z,ze,xn,tt,ro=`Potentially dequantize the model to retrieve the original model, with some loss in accuracy / performance. Note
not all quantization schemes support this.`,Cn,R,qe,Tn,nt,lo=`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.`,kn,W,xe,Mn,ot,uo=`Post-process the model post weights loading. Make sure to override the abstract method
<code>_process_model_after_weight_loading</code>.`,Dn,S,Ce,Ln,it,fo=`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>.`,Qn,X,Te,Bn,at,co=`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”“`,Pn,Y,ke,An,st,mo="Override this method if you want to adjust the <code>missing_keys</code>.",Fn,O,Me,In,rt,po=`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`,En,K,De,Hn,dt,go=`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.`,qt,Le,xt,ut,Ct;return k=new Be({props:{title:"Quantization",local:"quantization",headingTag:"h1"}}),P=new wo({props:{$$slots:{default:[Co]},$$scope:{ctx:Pe}}}),te=new Be({props:{title:"PipelineQuantizationConfig",local:"diffusers.PipelineQuantizationConfig",headingTag:"h2"}}),ne=new $({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>) &#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.PipelineQuantizationConfig.quant_kwargs",description:"<strong>quant_kwargs</strong> (<code>dict</code>) &#x2014; 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>) &#x2014; Components of a pipeline to be quantized.",name:"components_to_quantize"},{anchor:"diffusers.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/pipe_quant_config.py#L33"}}),oe=new Be({props:{title:"BitsAndBytesConfig",local:"diffusers.BitsAndBytesConfig",headingTag:"h2"}}),ie=new $({props:{name:"class diffusers.BitsAndBytesConfig",anchor:"diffusers.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:"diffusers.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:"diffusers.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:"diffusers.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://huggingface.co/papers/2208.07339" rel="nofollow">https://huggingface.co/papers/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:"diffusers.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 typically kept in its original <code>dtype</code>.`,name:"llm_int8_skip_modules"},{anchor:"diffusers.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:"diffusers.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:"diffusers.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:"diffusers.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:"diffusers.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:"diffusers.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:"diffusers.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/diffusers/blob/main/src/diffusers/quantizers/quantization_config.py#L176"}}),ae=new $({props:{name:"is_quantizable",anchor:"diffusers.BitsAndBytesConfig.is_quantizable",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/quantization_config.py#L349"}}),se=new $({props:{name:"post_init",anchor:"diffusers.BitsAndBytesConfig.post_init",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/quantization_config.py#L312"}}),re=new $({props:{name:"quantization_method",anchor:"diffusers.BitsAndBytesConfig.quantization_method",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/quantization_config.py#L355"}}),de=new $({props:{name:"to_diff_dict",anchor:"diffusers.BitsAndBytesConfig.to_diff_dict",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/quantization_config.py#L386",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>
`}}),le=new Be({props:{title:"GGUFQuantizationConfig",local:"diffusers.GGUFQuantizationConfig",headingTag:"h2"}}),ue=new $({props:{name:"class diffusers.GGUFQuantizationConfig",anchor:"diffusers.GGUFQuantizationConfig",parameters:[{name:"compute_dtype",val:": typing.Optional[ForwardRef('torch.dtype')] = None"}],parametersDescription:[{anchor:"diffusers.GGUFQuantizationConfig.compute_dtype",description:`<strong>compute_dtype</strong> &#x2014; (<code>torch.dtype</code>, defaults to <code>torch.float32</code>):
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:"compute_dtype"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/quantization_config.py#L409"}}),fe=new Be({props:{title:"QuantoConfig",local:"diffusers.QuantoConfig",headingTag:"h2"}}),ce=new $({props:{name:"class diffusers.QuantoConfig",anchor:"diffusers.QuantoConfig",parameters:[{name:"weights_dtype",val:": str = 'int8'"},{name:"modules_to_not_convert",val:": typing.Optional[typing.List[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.QuantoConfig.weights_dtype",description:`<strong>weights_dtype</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_dtype"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/quantization_config.py#L694"}}),me=new $({props:{name:"post_init",anchor:"diffusers.QuantoConfig.post_init",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/quantizers/quantization_config.py#L720"}}),pe=new Be({props:{title:"TorchAoConfig",local:"diffusers.TorchAoConfig",headingTag:"h2"}}),ge=new $({props:{name:"class diffusers.TorchAoConfig",anchor:"diffusers.TorchAoConfig",parameters:[{name:"quant_type",val:": str"},{name:"modules_to_not_convert",val:": typing.Optional[typing.List[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.TorchAoConfig.quant_type",description:`<strong>quant_type</strong> (<code>str</code>) &#x2014;
The type of quantization we want to use, currently supporting:</p>
<ul>
<li>
<p><strong>Integer quantization:</strong></p>
<ul>
<li>Full function names: <code>int4_weight_only</code>, <code>int8_dynamic_activation_int4_weight</code>,
<code>int8_weight_only</code>, <code>int8_dynamic_activation_int8_weight</code></li>
<li>Shorthands: <code>int4wo</code>, <code>int4dq</code>, <code>int8wo</code>, <code>int8dq</code></li>
</ul>
</li>
<li>
<p><strong>Floating point 8-bit quantization:</strong></p>
<ul>
<li>Full function names: <code>float8_weight_only</code>, <code>float8_dynamic_activation_float8_weight</code>,
<code>float8_static_activation_float8_weight</code></li>
<li>Shorthands: <code>float8wo</code>, <code>float8wo_e5m2</code>, <code>float8wo_e4m3</code>, <code>float8dq</code>, <code>float8dq_e4m3</code>,
<code>float8_e4m3_tensor</code>, <code>float8_e4m3_row</code>,</li>
</ul>
</li>
<li>
<p><strong>Floating point X-bit quantization:</strong></p>
<ul>
<li>Full function names: <code>fpx_weight_only</code></li>
<li>Shorthands: <code>fpX_eAwB</code>, where <code>X</code> is the number of bits (between <code>1</code> to <code>7</code>), <code>A</code> is the number
of exponent bits and <code>B</code> is the number of mantissa bits. The constraint of <code>X == A + B + 1</code> must
be satisfied for a given shorthand notation.</li>
</ul>
</li>
<li>
<p><strong>Unsigned Integer quantization:</strong></p>
<ul>
<li>Full function names: <code>uintx_weight_only</code></li>
<li>Shorthands: <code>uint1wo</code>, <code>uint2wo</code>, <code>uint3wo</code>, <code>uint4wo</code>, <code>uint5wo</code>, <code>uint6wo</code>, <code>uint7wo</code></li>
</ul>
</li>
</ul>`,name:"quant_type"},{anchor:"diffusers.TorchAoConfig.modules_to_not_convert",description:`<strong>modules_to_not_convert</strong> (<code>List[str]</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:"diffusers.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/diffusers/blob/main/src/diffusers/quantizers/quantization_config.py#L432"}}),V=new qo({props:{anchor:"diffusers.TorchAoConfig.example",$$slots:{default:[To]},$$scope:{ctx:Pe}}}),he=new Be({props:{title:"DiffusersQuantizer",local:"diffusers.DiffusersQuantizer",headingTag:"h2"}}),_e=new $({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"}}),be=new $({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"}}),ye=new $({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"}}),ve=new $({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"}}),$e=new $({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"}}),we=new $({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"}}),ze=new $({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"}}),qe=new $({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"}}),xe=new $({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"}}),Ce=new $({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"}}),Te=new $({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"}}),ke=new $({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"}}),Me=new $({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"}}),De=new $({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"}}),Le=new xo({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/quantization.md"}}),{c(){v=i("meta"),L=n(),x=i("p"),C=n(),l(k.$$.fragment),z=n(),M=i("p"),M.textContent=Vn,ft=n(),l(P.$$.fragment),ct=n(),l(te.$$.fragment),mt=n(),Q=i("div"),l(ne.$$.fragment),Zt=n(),Ae=i("p"),Ae.innerHTML=Un,pt=n(),l(oe.$$.fragment),gt=n(),w=i("div"),l(ie.$$.fragment),Rt=n(),Fe=i("p"),Fe.innerHTML=Jn,Wt=n(),Ie=i("p"),Ie.innerHTML=Nn,St=n(),Ee=i("p"),Ee.innerHTML=Gn,Xt=n(),A=i("div"),l(ae.$$.fragment),Yt=n(),He=i("p"),He.innerHTML=jn,Ot=n(),F=i("div"),l(se.$$.fragment),Kt=n(),Ve=i("p"),Ve.textContent=Zn,en=n(),I=i("div"),l(re.$$.fragment),tn=n(),Ue=i("p"),Ue.innerHTML=Rn,nn=n(),E=i("div"),l(de.$$.fragment),on=n(),Je=i("p"),Je.textContent=Wn,ht=n(),l(le.$$.fragment),_t=n(),B=i("div"),l(ue.$$.fragment),an=n(),Ne=i("p"),Ne.textContent=Sn,bt=n(),l(fe.$$.fragment),yt=n(),T=i("div"),l(ce.$$.fragment),sn=n(),Ge=i("p"),Ge.innerHTML=Xn,rn=n(),je=i("p"),je.innerHTML=Yn,dn=n(),H=i("div"),l(me.$$.fragment),ln=n(),Ze=i("p"),Ze.textContent=On,vt=n(),l(pe.$$.fragment),$t=n(),D=i("div"),l(ge.$$.fragment),un=n(),Re=i("p"),Re.textContent=Kn,fn=n(),l(V.$$.fragment),wt=n(),l(he.$$.fragment),zt=n(),d=i("div"),l(_e.$$.fragment),cn=n(),We=i("p"),We.textContent=eo,mn=n(),Se=i("p"),Se.innerHTML=to,pn=n(),U=i("div"),l(be.$$.fragment),gn=n(),Xe=i("p"),Xe.textContent=no,hn=n(),J=i("div"),l(ye.$$.fragment),_n=n(),Ye=i("p"),Ye.innerHTML=oo,bn=n(),N=i("div"),l(ve.$$.fragment),yn=n(),Oe=i("p"),Oe.textContent=io,vn=n(),G=i("div"),l($e.$$.fragment),$n=n(),Ke=i("p"),Ke.textContent=ao,wn=n(),j=i("div"),l(we.$$.fragment),zn=n(),et=i("p"),et.textContent=so,qn=n(),Z=i("div"),l(ze.$$.fragment),xn=n(),tt=i("p"),tt.textContent=ro,Cn=n(),R=i("div"),l(qe.$$.fragment),Tn=n(),nt=i("p"),nt.innerHTML=lo,kn=n(),W=i("div"),l(xe.$$.fragment),Mn=n(),ot=i("p"),ot.innerHTML=uo,Dn=n(),S=i("div"),l(Ce.$$.fragment),Ln=n(),it=i("p"),it.innerHTML=fo,Qn=n(),X=i("div"),l(Te.$$.fragment),Bn=n(),at=i("p"),at.innerHTML=co,Pn=n(),Y=i("div"),l(ke.$$.fragment),An=n(),st=i("p"),st.innerHTML=mo,Fn=n(),O=i("div"),l(Me.$$.fragment),In=n(),rt=i("p"),rt.textContent=po,En=n(),K=i("div"),l(De.$$.fragment),Hn=n(),dt=i("p"),dt.innerHTML=go,qt=n(),l(Le.$$.fragment),xt=n(),ut=i("p"),this.h()},l(e){const r=$o("svelte-u9bgzb",document.head);v=a(r,"META",{name:!0,content:!0}),r.forEach(s),L=o(e),x=a(e,"P",{}),b(x).forEach(s),C=o(e),u(k.$$.fragment,e),z=o(e),M=a(e,"P",{"data-svelte-h":!0}),h(M)!=="svelte-1balldr"&&(M.textContent=Vn),ft=o(e),u(P.$$.fragment,e),ct=o(e),u(te.$$.fragment,e),mt=o(e),Q=a(e,"DIV",{class:!0});var Qe=b(Q);u(ne.$$.fragment,Qe),Zt=o(Qe),Ae=a(Qe,"P",{"data-svelte-h":!0}),h(Ae)!=="svelte-l98qrs"&&(Ae.innerHTML=Un),Qe.forEach(s),pt=o(e),u(oe.$$.fragment,e),gt=o(e),w=a(e,"DIV",{class:!0});var q=b(w);u(ie.$$.fragment,q),Rt=o(q),Fe=a(q,"P",{"data-svelte-h":!0}),h(Fe)!=="svelte-woamwr"&&(Fe.innerHTML=Jn),Wt=o(q),Ie=a(q,"P",{"data-svelte-h":!0}),h(Ie)!=="svelte-izpi0w"&&(Ie.innerHTML=Nn),St=o(q),Ee=a(q,"P",{"data-svelte-h":!0}),h(Ee)!=="svelte-8qsk2q"&&(Ee.innerHTML=Gn),Xt=o(q),A=a(q,"DIV",{class:!0});var Tt=b(A);u(ae.$$.fragment,Tt),Yt=o(Tt),He=a(Tt,"P",{"data-svelte-h":!0}),h(He)!=="svelte-10tvzyv"&&(He.innerHTML=jn),Tt.forEach(s),Ot=o(q),F=a(q,"DIV",{class:!0});var kt=b(F);u(se.$$.fragment,kt),Kt=o(kt),Ve=a(kt,"P",{"data-svelte-h":!0}),h(Ve)!=="svelte-gy26u4"&&(Ve.textContent=Zn),kt.forEach(s),en=o(q),I=a(q,"DIV",{class:!0});var Mt=b(I);u(re.$$.fragment,Mt),tn=o(Mt),Ue=a(Mt,"P",{"data-svelte-h":!0}),h(Ue)!=="svelte-19bn0da"&&(Ue.innerHTML=Rn),Mt.forEach(s),nn=o(q),E=a(q,"DIV",{class:!0});var Dt=b(E);u(de.$$.fragment,Dt),on=o(Dt),Je=a(Dt,"P",{"data-svelte-h":!0}),h(Je)!=="svelte-1p6bdas"&&(Je.textContent=Wn),Dt.forEach(s),q.forEach(s),ht=o(e),u(le.$$.fragment,e),_t=o(e),B=a(e,"DIV",{class:!0});var Lt=b(B);u(ue.$$.fragment,Lt),an=o(Lt),Ne=a(Lt,"P",{"data-svelte-h":!0}),h(Ne)!=="svelte-1r606z3"&&(Ne.textContent=Sn),Lt.forEach(s),bt=o(e),u(fe.$$.fragment,e),yt=o(e),T=a(e,"DIV",{class:!0});var ee=b(T);u(ce.$$.fragment,ee),sn=o(ee),Ge=a(ee,"P",{"data-svelte-h":!0}),h(Ge)!=="svelte-b8v0f"&&(Ge.innerHTML=Xn),rn=o(ee),je=a(ee,"P",{"data-svelte-h":!0}),h(je)!=="svelte-7hlgr"&&(je.innerHTML=Yn),dn=o(ee),H=a(ee,"DIV",{class:!0});var Qt=b(H);u(me.$$.fragment,Qt),ln=o(Qt),Ze=a(Qt,"P",{"data-svelte-h":!0}),h(Ze)!=="svelte-1ozftb6"&&(Ze.textContent=On),Qt.forEach(s),ee.forEach(s),vt=o(e),u(pe.$$.fragment,e),$t=o(e),D=a(e,"DIV",{class:!0});var lt=b(D);u(ge.$$.fragment,lt),un=o(lt),Re=a(lt,"P",{"data-svelte-h":!0}),h(Re)!=="svelte-1pwo8e0"&&(Re.textContent=Kn),fn=o(lt),u(V.$$.fragment,lt),lt.forEach(s),wt=o(e),u(he.$$.fragment,e),zt=o(e),d=a(e,"DIV",{class:!0});var g=b(d);u(_e.$$.fragment,g),cn=o(g),We=a(g,"P",{"data-svelte-h":!0}),h(We)!=="svelte-n1gm3c"&&(We.textContent=eo),mn=o(g),Se=a(g,"P",{"data-svelte-h":!0}),h(Se)!=="svelte-1fnduym"&&(Se.innerHTML=to),pn=o(g),U=a(g,"DIV",{class:!0});var Bt=b(U);u(be.$$.fragment,Bt),gn=o(Bt),Xe=a(Bt,"P",{"data-svelte-h":!0}),h(Xe)!=="svelte-1d4i4z7"&&(Xe.textContent=no),Bt.forEach(s),hn=o(g),J=a(g,"DIV",{class:!0});var Pt=b(J);u(ye.$$.fragment,Pt),_n=o(Pt),Ye=a(Pt,"P",{"data-svelte-h":!0}),h(Ye)!=="svelte-eyxa3y"&&(Ye.innerHTML=oo),Pt.forEach(s),bn=o(g),N=a(g,"DIV",{class:!0});var At=b(N);u(ve.$$.fragment,At),yn=o(At),Oe=a(At,"P",{"data-svelte-h":!0}),h(Oe)!=="svelte-y0lxmf"&&(Oe.textContent=io),At.forEach(s),vn=o(g),G=a(g,"DIV",{class:!0});var Ft=b(G);u($e.$$.fragment,Ft),$n=o(Ft),Ke=a(Ft,"P",{"data-svelte-h":!0}),h(Ke)!=="svelte-1170ss6"&&(Ke.textContent=ao),Ft.forEach(s),wn=o(g),j=a(g,"DIV",{class:!0});var It=b(j);u(we.$$.fragment,It),zn=o(It),et=a(It,"P",{"data-svelte-h":!0}),h(et)!=="svelte-odkanz"&&(et.textContent=so),It.forEach(s),qn=o(g),Z=a(g,"DIV",{class:!0});var Et=b(Z);u(ze.$$.fragment,Et),xn=o(Et),tt=a(Et,"P",{"data-svelte-h":!0}),h(tt)!=="svelte-upajm7"&&(tt.textContent=ro),Et.forEach(s),Cn=o(g),R=a(g,"DIV",{class:!0});var Ht=b(R);u(qe.$$.fragment,Ht),Tn=o(Ht),nt=a(Ht,"P",{"data-svelte-h":!0}),h(nt)!=="svelte-1cb2fzf"&&(nt.innerHTML=lo),Ht.forEach(s),kn=o(g),W=a(g,"DIV",{class:!0});var Vt=b(W);u(xe.$$.fragment,Vt),Mn=o(Vt),ot=a(Vt,"P",{"data-svelte-h":!0}),h(ot)!=="svelte-6rgq61"&&(ot.innerHTML=uo),Vt.forEach(s),Dn=o(g),S=a(g,"DIV",{class:!0});var Ut=b(S);u(Ce.$$.fragment,Ut),Ln=o(Ut),it=a(Ut,"P",{"data-svelte-h":!0}),h(it)!=="svelte-wiwxpv"&&(it.innerHTML=fo),Ut.forEach(s),Qn=o(g),X=a(g,"DIV",{class:!0});var Jt=b(X);u(Te.$$.fragment,Jt),Bn=o(Jt),at=a(Jt,"P",{"data-svelte-h":!0}),h(at)!=="svelte-5g503h"&&(at.innerHTML=co),Jt.forEach(s),Pn=o(g),Y=a(g,"DIV",{class:!0});var Nt=b(Y);u(ke.$$.fragment,Nt),An=o(Nt),st=a(Nt,"P",{"data-svelte-h":!0}),h(st)!=="svelte-13hqoy0"&&(st.innerHTML=mo),Nt.forEach(s),Fn=o(g),O=a(g,"DIV",{class:!0});var Gt=b(O);u(Me.$$.fragment,Gt),In=o(Gt),rt=a(Gt,"P",{"data-svelte-h":!0}),h(rt)!=="svelte-udr2k7"&&(rt.textContent=po),Gt.forEach(s),En=o(g),K=a(g,"DIV",{class:!0});var jt=b(K);u(De.$$.fragment,jt),Hn=o(jt),dt=a(jt,"P",{"data-svelte-h":!0}),h(dt)!=="svelte-1ra2q1u"&&(dt.innerHTML=go),jt.forEach(s),g.forEach(s),qt=o(e),u(Le.$$.fragment,e),xt=o(e),ut=a(e,"P",{}),b(ut).forEach(s),this.h()},h(){y(v,"name","hf:doc:metadata"),y(v,"content",Mo),y(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(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,r){t(document.head,v),_(e,L,r),_(e,x,r),_(e,C,r),f(k,e,r),_(e,z,r),_(e,M,r),_(e,ft,r),f(P,e,r),_(e,ct,r),f(te,e,r),_(e,mt,r),_(e,Q,r),f(ne,Q,null),t(Q,Zt),t(Q,Ae),_(e,pt,r),f(oe,e,r),_(e,gt,r),_(e,w,r),f(ie,w,null),t(w,Rt),t(w,Fe),t(w,Wt),t(w,Ie),t(w,St),t(w,Ee),t(w,Xt),t(w,A),f(ae,A,null),t(A,Yt),t(A,He),t(w,Ot),t(w,F),f(se,F,null),t(F,Kt),t(F,Ve),t(w,en),t(w,I),f(re,I,null),t(I,tn),t(I,Ue),t(w,nn),t(w,E),f(de,E,null),t(E,on),t(E,Je),_(e,ht,r),f(le,e,r),_(e,_t,r),_(e,B,r),f(ue,B,null),t(B,an),t(B,Ne),_(e,bt,r),f(fe,e,r),_(e,yt,r),_(e,T,r),f(ce,T,null),t(T,sn),t(T,Ge),t(T,rn),t(T,je),t(T,dn),t(T,H),f(me,H,null),t(H,ln),t(H,Ze),_(e,vt,r),f(pe,e,r),_(e,$t,r),_(e,D,r),f(ge,D,null),t(D,un),t(D,Re),t(D,fn),f(V,D,null),_(e,wt,r),f(he,e,r),_(e,zt,r),_(e,d,r),f(_e,d,null),t(d,cn),t(d,We),t(d,mn),t(d,Se),t(d,pn),t(d,U),f(be,U,null),t(U,gn),t(U,Xe),t(d,hn),t(d,J),f(ye,J,null),t(J,_n),t(J,Ye),t(d,bn),t(d,N),f(ve,N,null),t(N,yn),t(N,Oe),t(d,vn),t(d,G),f($e,G,null),t(G,$n),t(G,Ke),t(d,wn),t(d,j),f(we,j,null),t(j,zn),t(j,et),t(d,qn),t(d,Z),f(ze,Z,null),t(Z,xn),t(Z,tt),t(d,Cn),t(d,R),f(qe,R,null),t(R,Tn),t(R,nt),t(d,kn),t(d,W),f(xe,W,null),t(W,Mn),t(W,ot),t(d,Dn),t(d,S),f(Ce,S,null),t(S,Ln),t(S,it),t(d,Qn),t(d,X),f(Te,X,null),t(X,Bn),t(X,at),t(d,Pn),t(d,Y),f(ke,Y,null),t(Y,An),t(Y,st),t(d,Fn),t(d,O),f(Me,O,null),t(O,In),t(O,rt),t(d,En),t(d,K),f(De,K,null),t(K,Hn),t(K,dt),_(e,qt,r),f(Le,e,r),_(e,xt,r),_(e,ut,r),Ct=!0},p(e,[r]){const Qe={};r&2&&(Qe.$$scope={dirty:r,ctx:e}),P.$set(Qe);const q={};r&2&&(q.$$scope={dirty:r,ctx:e}),V.$set(q)},i(e){Ct||(c(k.$$.fragment,e),c(P.$$.fragment,e),c(te.$$.fragment,e),c(ne.$$.fragment,e),c(oe.$$.fragment,e),c(ie.$$.fragment,e),c(ae.$$.fragment,e),c(se.$$.fragment,e),c(re.$$.fragment,e),c(de.$$.fragment,e),c(le.$$.fragment,e),c(ue.$$.fragment,e),c(fe.$$.fragment,e),c(ce.$$.fragment,e),c(me.$$.fragment,e),c(pe.$$.fragment,e),c(ge.$$.fragment,e),c(V.$$.fragment,e),c(he.$$.fragment,e),c(_e.$$.fragment,e),c(be.$$.fragment,e),c(ye.$$.fragment,e),c(ve.$$.fragment,e),c($e.$$.fragment,e),c(we.$$.fragment,e),c(ze.$$.fragment,e),c(qe.$$.fragment,e),c(xe.$$.fragment,e),c(Ce.$$.fragment,e),c(Te.$$.fragment,e),c(ke.$$.fragment,e),c(Me.$$.fragment,e),c(De.$$.fragment,e),c(Le.$$.fragment,e),Ct=!0)},o(e){m(k.$$.fragment,e),m(P.$$.fragment,e),m(te.$$.fragment,e),m(ne.$$.fragment,e),m(oe.$$.fragment,e),m(ie.$$.fragment,e),m(ae.$$.fragment,e),m(se.$$.fragment,e),m(re.$$.fragment,e),m(de.$$.fragment,e),m(le.$$.fragment,e),m(ue.$$.fragment,e),m(fe.$$.fragment,e),m(ce.$$.fragment,e),m(me.$$.fragment,e),m(pe.$$.fragment,e),m(ge.$$.fragment,e),m(V.$$.fragment,e),m(he.$$.fragment,e),m(_e.$$.fragment,e),m(be.$$.fragment,e),m(ye.$$.fragment,e),m(ve.$$.fragment,e),m($e.$$.fragment,e),m(we.$$.fragment,e),m(ze.$$.fragment,e),m(qe.$$.fragment,e),m(xe.$$.fragment,e),m(Ce.$$.fragment,e),m(Te.$$.fragment,e),m(ke.$$.fragment,e),m(Me.$$.fragment,e),m(De.$$.fragment,e),m(Le.$$.fragment,e),Ct=!1},d(e){e&&(s(L),s(x),s(C),s(z),s(M),s(ft),s(ct),s(mt),s(Q),s(pt),s(gt),s(w),s(ht),s(_t),s(B),s(bt),s(yt),s(T),s(vt),s($t),s(D),s(wt),s(zt),s(d),s(qt),s(xt),s(ut)),s(v),p(k,e),p(P,e),p(te,e),p(ne),p(oe,e),p(ie),p(ae),p(se),p(re),p(de),p(le,e),p(ue),p(fe,e),p(ce),p(me),p(pe,e),p(ge),p(V),p(he,e),p(_e),p(be),p(ye),p(ve),p($e),p(we),p(ze),p(qe),p(xe),p(Ce),p(Te),p(ke),p(Me),p(De),p(Le,e)}}}const Mo='{"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 Do(Pe){return bo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Eo extends yo{constructor(v){super(),vo(this,v,Do,ko,_o,{})}}export{Eo as component};
