Buckets:
| import{s as bl,o as _l,n as Be}from"../chunks/scheduler.8c3d61f6.js";import{S as yl,i as Ml,g as u,s as n,r,A as wl,h as g,f as l,c as o,j as Ye,u as f,x as _,k as Ne,y as T,a as t,v as p,d,t as c,w as m}from"../chunks/index.589a98e8.js";import{T as Ni}from"../chunks/Tip.42aa8582.js";import{D as Bi}from"../chunks/Docstring.27406313.js";import{C as U}from"../chunks/CodeBlock.36627b28.js";import{E as hl}from"../chunks/ExampleCodeBlock.3dc467a7.js";import{H as M,E as Jl}from"../chunks/EditOnGithub.e5a8d9cb.js";function Tl($){let s,y="Most of the time you do not need to explicitly set a <code>config</code> argument. <code>from_single_file</code> will automatically map the checkpoint to the appropriate model repository. However, this option can be useful in cases where model components in the checkpoint might have been changed from what was originally distributed, or in cases where a checkpoint file might not have the necessary metadata to correctly determine the configuration to use for the pipeline.";return{c(){s=u("p"),s.innerHTML=y},l(a){s=g(a,"P",{"data-svelte-h":!0}),_(s)!=="svelte-1ocl3mu"&&(s.innerHTML=y)},m(a,b){t(a,s,b)},p:Be,d(a){a&&l(s)}}}function $l($){let s,y='To learn more about how to load single file weights, see the <a href="../../using-diffusers/other-formats">Load different Stable Diffusion formats</a> loading guide.';return{c(){s=u("p"),s.innerHTML=y},l(a){s=g(a,"P",{"data-svelte-h":!0}),_(s)!=="svelte-1d80t6b"&&(s.innerHTML=y)},m(a,b){t(a,s,b)},p:Be,d(a){a&&l(s)}}}function Ul($){let s,y="As of <code>huggingface_hub>=0.23.0</code> the <code>local_dir_use_symlinks</code> argument isn’t necessary for the <code>hf_hub_download</code> and <code>snapshot_download</code> functions.";return{c(){s=u("p"),s.innerHTML=y},l(a){s=g(a,"P",{"data-svelte-h":!0}),_(s)!=="svelte-1wapj81"&&(s.innerHTML=y)},m(a,b){t(a,s,b)},p:Be,d(a){a&&l(s)}}}function Zl($){let s,y="When using <code>original_config</code> with <code>local_files_only=True</code>, Diffusers will attempt to infer the components of the pipeline based on the type signatures of pipeline class, rather than attempting to fetch the configuration files from a model repository on the Hugging Face Hub. This is to prevent backward breaking changes in existing code that might not be able to connect to the internet to fetch the necessary configuration files.",a,b,w="This is not as reliable as providing a path to a local model repository using the <code>config</code> argument and might lead to errors when configuring the pipeline. To avoid this, please run the pipeline with <code>local_files_only=False</code> once to download the appropriate pipeline configuration files to the local cache.";return{c(){s=u("p"),s.innerHTML=y,a=n(),b=u("p"),b.innerHTML=w},l(h){s=g(h,"P",{"data-svelte-h":!0}),_(s)!=="svelte-18lsa05"&&(s.innerHTML=y),a=o(h),b=g(h,"P",{"data-svelte-h":!0}),_(b)!=="svelte-jc8gvd"&&(b.innerHTML=w)},m(h,J){t(h,s,J),t(h,a,J),t(h,b,J)},p:Be,d(h){h&&(l(s),l(a),l(b))}}}function xl($){let s,y="Examples:",a,b,w;return b=new U({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTBBJTBBJTIzJTIwRG93bmxvYWQlMjBwaXBlbGluZSUyMGZyb20lMjBodWdnaW5nZmFjZS5jbyUyMGFuZCUyMGNhY2hlLiUwQXBpcGVsaW5lJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9zaW5nbGVfZmlsZSglMEElMjAlMjAlMjAlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGV2Fycmlvck1hbWE3NzclMkZPcmFuZ2VNaXhzJTJGYmxvYiUyRm1haW4lMkZNb2RlbHMlMkZBYnlzc09yYW5nZU1peCUyRkFieXNzT3JhbmdlTWl4LnNhZmV0ZW5zb3JzJTIyJTBBKSUwQSUwQSUyMyUyMERvd25sb2FkJTIwcGlwZWxpbmUlMjBmcm9tJTIwbG9jYWwlMjBmaWxlJTBBJTIzJTIwZmlsZSUyMGlzJTIwZG93bmxvYWRlZCUyMHVuZGVyJTIwLiUyRnYxLTUtcHJ1bmVkLWVtYW9ubHkuY2twdCUwQXBpcGVsaW5lJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9zaW5nbGVfZmlsZSglMjIuJTJGdjEtNS1wcnVuZWQtZW1hb25seS5ja3B0JTIyKSUwQSUwQSUyMyUyMEVuYWJsZSUyMGZsb2F0MTYlMjBhbmQlMjBtb3ZlJTIwdG8lMjBHUFUlMEFwaXBlbGluZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fc2luZ2xlX2ZpbGUoJTBBJTIwJTIwJTIwJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTJGYmxvYiUyRm1haW4lMkZ2MS01LXBydW5lZC1lbWFvbmx5LmNrcHQlMjIlMkMlMEElMjAlMjAlMjAlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMkMlMEEpJTBBcGlwZWxpbmUudG8oJTIyY3VkYSUyMik=",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Download pipeline from huggingface.co and cache.</span> | |
| <span class="hljs-meta">>>> </span>pipeline = StableDiffusionPipeline.from_single_file( | |
| <span class="hljs-meta">... </span> <span class="hljs-string">"https://huggingface.co/WarriorMama777/OrangeMixs/blob/main/Models/AbyssOrangeMix/AbyssOrangeMix.safetensors"</span> | |
| <span class="hljs-meta">... </span>) | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Download pipeline from local file</span> | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># file is downloaded under ./v1-5-pruned-emaonly.ckpt</span> | |
| <span class="hljs-meta">>>> </span>pipeline = StableDiffusionPipeline.from_single_file(<span class="hljs-string">"./v1-5-pruned-emaonly.ckpt"</span>) | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Enable float16 and move to GPU</span> | |
| <span class="hljs-meta">>>> </span>pipeline = StableDiffusionPipeline.from_single_file( | |
| <span class="hljs-meta">... </span> <span class="hljs-string">"https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned-emaonly.ckpt"</span>, | |
| <span class="hljs-meta">... </span> torch_dtype=torch.float16, | |
| <span class="hljs-meta">... </span>) | |
| <span class="hljs-meta">>>> </span>pipeline.to(<span class="hljs-string">"cuda"</span>)`,wrap:!1}}),{c(){s=u("p"),s.textContent=y,a=n(),r(b.$$.fragment)},l(h){s=g(h,"P",{"data-svelte-h":!0}),_(s)!=="svelte-kvfsh7"&&(s.textContent=y),a=o(h),f(b.$$.fragment,h)},m(h,J){t(h,s,J),t(h,a,J),p(b,h,J),w=!0},p:Be,i(h){w||(d(b.$$.fragment,h),w=!0)},o(h){c(b.$$.fragment,h),w=!1},d(h){h&&(l(s),l(a)),m(b,h)}}}function jl($){let s,y;return s=new U({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZUNhc2NhZGVVTmV0JTBBJTBBY2twdF9wYXRoJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRnN0YWJpbGl0eWFpJTJGc3RhYmxlLWNhc2NhZGUlMkZibG9iJTJGbWFpbiUyRnN0YWdlX2JfbGl0ZS5zYWZldGVuc29ycyUyMiUwQW1vZGVsJTIwJTNEJTIwU3RhYmxlQ2FzY2FkZVVOZXQuZnJvbV9zaW5nbGVfZmlsZShja3B0X3BhdGgp",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableCascadeUNet | |
| <span class="hljs-meta">>>> </span>ckpt_path = <span class="hljs-string">"https://huggingface.co/stabilityai/stable-cascade/blob/main/stage_b_lite.safetensors"</span> | |
| <span class="hljs-meta">>>> </span>model = StableCascadeUNet.from_single_file(ckpt_path)`,wrap:!1}}),{c(){r(s.$$.fragment)},l(a){f(s.$$.fragment,a)},m(a,b){p(s,a,b),y=!0},p:Be,i(a){y||(d(s.$$.fragment,a),y=!0)},o(a){c(s.$$.fragment,a),y=!1},d(a){m(s,a)}}}function kl($){let s,y,a,b,w,h,J,qi="The <code>from_single_file</code> method allows you to load supported pipelines using a single checkpoint file as opposed to Diffusers’ multiple folders format. This is useful if you are working with Stable Diffusion Web UI’s (such as A1111) that rely on a single file format to distribute all the components of a model.",Xe,C,Qi="The <code>from_single_file</code> method also supports loading models in their originally distributed format. This means that supported models that have been finetuned with other services can be loaded directly into Diffusers model objects and pipelines.",Le,X,He,L,zi='<li><a href="/docs/diffusers/pr_8376/en/api/pipelines/stable_diffusion/text2img#diffusers.StableDiffusionPipeline">StableDiffusionPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/stable_diffusion/img2img#diffusers.StableDiffusionImg2ImgPipeline">StableDiffusionImg2ImgPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/stable_diffusion/inpaint#diffusers.StableDiffusionInpaintPipeline">StableDiffusionInpaintPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetPipeline">StableDiffusionControlNetPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetImg2ImgPipeline">StableDiffusionControlNetImg2ImgPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetInpaintPipeline">StableDiffusionControlNetInpaintPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/stable_diffusion/upscale#diffusers.StableDiffusionUpscalePipeline">StableDiffusionUpscalePipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/stable_diffusion/stable_diffusion_xl#diffusers.StableDiffusionXLPipeline">StableDiffusionXLPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/stable_diffusion/stable_diffusion_xl#diffusers.StableDiffusionXLImg2ImgPipeline">StableDiffusionXLImg2ImgPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/stable_diffusion/stable_diffusion_xl#diffusers.StableDiffusionXLInpaintPipeline">StableDiffusionXLInpaintPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/pix2pix#diffusers.StableDiffusionXLInstructPix2PixPipeline">StableDiffusionXLInstructPix2PixPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/controlnet_sdxl#diffusers.StableDiffusionXLControlNetPipeline">StableDiffusionXLControlNetPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/stable_diffusion/k_diffusion#diffusers.StableDiffusionXLKDiffusionPipeline">StableDiffusionXLKDiffusionPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/latent_consistency_models#diffusers.LatentConsistencyModelPipeline">LatentConsistencyModelPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/latent_consistency_models#diffusers.LatentConsistencyModelImg2ImgPipeline">LatentConsistencyModelImg2ImgPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/controlnetxs#diffusers.StableDiffusionControlNetXSPipeline">StableDiffusionControlNetXSPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/controlnetxs_sdxl#diffusers.StableDiffusionXLControlNetXSPipeline">StableDiffusionXLControlNetXSPipeline</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/ledits_pp#diffusers.LEditsPPPipelineStableDiffusion">LEditsPPPipelineStableDiffusion</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/ledits_pp#diffusers.LEditsPPPipelineStableDiffusionXL">LEditsPPPipelineStableDiffusionXL</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/pipelines/pia#diffusers.PIAPipeline">PIAPipeline</a></li>',Ve,H,Ee,V,Ai='<li><a href="/docs/diffusers/pr_8376/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a></li> <li><code>StableCascadeUNet</code></li> <li><a href="/docs/diffusers/pr_8376/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a></li> <li><a href="/docs/diffusers/pr_8376/en/api/models/controlnet#diffusers.ControlNetModel">ControlNetModel</a></li>',Pe,E,De,P,qe,D,Qe,q,ze,Q,Oi="Set components of a pipeline by passing them directly to the <code>from_single_file</code> method. For example, here we are swapping out the pipeline’s default scheduler with the <code>DDIMScheduler</code>.",Ae,z,Oe,A,Ki="Here we are passing in a ControlNet model to the <code>StableDiffusionControlNetPipeline</code>.",Ke,O,ei,K,ii,ee,li,ie,ti,le,el="Under the hood, <code>from_single_file</code> will try to automatically determine a model repository to use to configure the components of a pipeline. You can also explicitly set the model repository to configure the pipeline with the <code>config</code> argument.",ni,te,oi,ne,il='In the example above, since we explicitly passed <code>repo_id="segmind/SSD-1B"</code> to the <code>config</code> argument, it will use this <a href="https://huggingface.co/segmind/SSD-1B/blob/main/unet/config.json" rel="nofollow">configuration file</a> from the <code>unet</code> subfolder in <code>"segmind/SSD-1B"</code> to configure the <code>unet</code> component of the pipeline; Similarly, it will use the <code>config.json</code> file from <code>vae</code> subfolder to configure the <code>vae</code> model, <code>config.json</code> file from <code>text_encoder</code> folder to configure <code>text_encoder</code> and so on.',si,F,ai,oe,ri,se,ll="Override the default model or pipeline configuration options by providing the relevant arguments directly to the <code>from_single_file</code> method. Any argument supported by the model or pipeline class can be configured in this way:",fi,ae,pi,re,di,fe,ci,pe,mi,I,ui,de,gi,ce,tl="As of <code>diffusers>=0.28.0</code> the <code>from_single_file</code> method will attempt to configure a pipeline or model by first inferring the model type from the keys in the checkpoint file. This inferred model type is then used to determine the appropriate model repository on the Hugging Face Hub to configure the model or pipeline.",hi,me,nl='For example, any single file checkpoint based on the Stable Diffusion XL base model will use the <a href="https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0" rel="nofollow"><code>stabilityai/stable-diffusion-xl-base-1.0</code></a> model repository to configure the pipeline.',bi,ue,ol="If you are working in an environment with restricted internet access, it is recommended that you download the config files and checkpoints for the model to your preferred directory and pass the local paths to the <code>pretrained_model_link_or_path</code> and <code>config</code> arguments of the <code>from_single_file</code> method.",_i,ge,yi,he,sl='By default this will download the checkpoints and config files to the <a href="https://huggingface.co/docs/huggingface_hub/en/guides/manage-cache" rel="nofollow">Hugging Face Hub cache directory</a>. You can also specify a local directory to download the files to by passing the <code>local_dir</code> argument to the <code>hf_hub_download</code> and <code>snapshot_download</code> functions.',Mi,be,wi,_e,Ji,ye,al="By default the <code>from_single_file</code> method relies on the <code>huggingface_hub</code> caching mechanism to fetch and store checkpoints and config files for models and pipelines. If you are working with a file system that does not support symlinking, it is recommended that you first download the checkpoint file to a local directory and disable symlinking by passing the <code>local_dir_use_symlink=False</code> argument to the <code>hf_hub_download</code> and <code>snapshot_download</code> functions.",Ti,Me,$i,we,rl="Then pass the local paths to the <code>pretrained_model_link_or_path</code> and <code>config</code> arguments of the <code>from_single_file</code> method.",Ui,Je,Zi,R,xi,Te,ji,$e,fl="If you would like to configure the model components in a pipeline using the orignal YAML configuration file, you can pass a local path or url to the original configuration file via the <code>original_config</code> argument.",ki,Ue,Gi,Y,vi,Ze,Wi,Z,xe,Ci,Se,pl='Load model weights saved in the <code>.ckpt</code> format into a <a href="/docs/diffusers/pr_8376/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>.',Xi,j,je,Li,Fe,dl=`Instantiate a <a href="/docs/diffusers/pr_8376/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a> from pretrained pipeline weights saved in the <code>.ckpt</code> or <code>.safetensors</code> | |
| format. The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.`,Hi,N,Si,ke,Fi,x,Ge,Vi,Ie,cl="Load pretrained weights saved in the <code>.ckpt</code> or <code>.safetensors</code> format into a model.",Ei,k,ve,Pi,Re,ml=`Instantiate a model from pretrained weights saved in the original <code>.ckpt</code> or <code>.safetensors</code> format. The model | |
| is set in evaluation mode (<code>model.eval()</code>) by default.`,Di,B,Ii,We,Ri,Ce,Yi;return w=new M({props:{title:"Loading Pipelines and Models via from_single_file",local:"loading-pipelines-and-models-via-fromsinglefile",headingTag:"h1"}}),X=new M({props:{title:"Pipelines that currently support from_single_file loading",local:"pipelines-that-currently-support-fromsinglefile-loading",headingTag:"h2"}}),H=new M({props:{title:"Models that currently support from_single_file loading",local:"models-that-currently-support-fromsinglefile-loading",headingTag:"h2"}}),E=new M({props:{title:"Usage Examples",local:"usage-examples",headingTag:"h2"}}),P=new M({props:{title:"Loading a Pipeline using from_single_file",local:"loading-a-pipeline-using-fromsinglefile",headingTag:"h2"}}),D=new U({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblhMUGlwZWxpbmUlMEElMEFja3B0X3BhdGglMjAlM0QlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTJGYmxvYiUyRm1haW4lMkZzZF94bF9iYXNlXzEuMF8wLjl2YWUuc2FmZXRlbnNvcnMlMjIlMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uWExQaXBlbGluZS5mcm9tX3NpbmdsZV9maWxlKGNrcHRfcGF0aCk=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionXLPipeline | |
| ckpt_path = <span class="hljs-string">"https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/sd_xl_base_1.0_0.9vae.safetensors"</span> | |
| pipe = StableDiffusionXLPipeline.from_single_file(ckpt_path)`,wrap:!1}}),q=new M({props:{title:"Setting components in a Pipeline using from_single_file",local:"setting-components-in-a-pipeline-using-fromsinglefile",headingTag:"h2"}}),z=new U({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblhMUGlwZWxpbmUlMkMlMjBERElNU2NoZWR1bGVyJTBBJTBBY2twdF9wYXRoJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRnN0YWJpbGl0eWFpJTJGc3RhYmxlLWRpZmZ1c2lvbi14bC1iYXNlLTEuMCUyRmJsb2IlMkZtYWluJTJGc2RfeGxfYmFzZV8xLjBfMC45dmFlLnNhZmV0ZW5zb3JzJTIyJTBBJTBBc2NoZWR1bGVyJTIwJTNEJTIwRERJTVNjaGVkdWxlcigpJTBBcGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblhMUGlwZWxpbmUuZnJvbV9zaW5nbGVfZmlsZShja3B0X3BhdGglMkMlMjBzY2hlZHVsZXIlM0RzY2hlZHVsZXIpJTBB",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionXLPipeline, DDIMScheduler | |
| ckpt_path = <span class="hljs-string">"https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/sd_xl_base_1.0_0.9vae.safetensors"</span> | |
| scheduler = DDIMScheduler() | |
| pipe = StableDiffusionXLPipeline.from_single_file(ckpt_path, scheduler=scheduler) | |
| `,wrap:!1}}),O=new U({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvbkNvbnRyb2xOZXRQaXBlbGluZSUyQyUyMENvbnRyb2xOZXRNb2RlbCUwQSUwQWNrcHRfcGF0aCUyMCUzRCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRmJsb2IlMkZtYWluJTJGdjEtNS1wcnVuZWQtZW1hb25seS5zYWZldGVuc29ycyUyMiUwQSUwQWNvbnRyb2xuZXQlMjAlM0QlMjBDb250cm9sTmV0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmxsbHlhc3ZpZWwlMkZjb250cm9sX3YxMXBfc2QxNV9jYW5ueSUyMiklMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uQ29udHJvbE5ldFBpcGVsaW5lLmZyb21fc2luZ2xlX2ZpbGUoY2twdF9wYXRoJTJDJTIwY29udHJvbG5ldCUzRGNvbnRyb2xuZXQpJTBB",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionControlNetPipeline, ControlNetModel | |
| ckpt_path = <span class="hljs-string">"https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned-emaonly.safetensors"</span> | |
| controlnet = ControlNetModel.from_pretrained(<span class="hljs-string">"lllyasviel/control_v11p_sd15_canny"</span>) | |
| pipe = StableDiffusionControlNetPipeline.from_single_file(ckpt_path, controlnet=controlnet) | |
| `,wrap:!1}}),K=new M({props:{title:"Loading a Model using from_single_file",local:"loading-a-model-using-fromsinglefile",headingTag:"h2"}}),ee=new U({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZUNhc2NhZGVVTmV0JTBBJTBBY2twdF9wYXRoJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRnN0YWJpbGl0eWFpJTJGc3RhYmxlLWNhc2NhZGUlMkZibG9iJTJGbWFpbiUyRnN0YWdlX2JfbGl0ZS5zYWZldGVuc29ycyUyMiUwQW1vZGVsJTIwJTNEJTIwU3RhYmxlQ2FzY2FkZVVOZXQuZnJvbV9zaW5nbGVfZmlsZShja3B0X3BhdGgpJTBB",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableCascadeUNet | |
| ckpt_path = <span class="hljs-string">"https://huggingface.co/stabilityai/stable-cascade/blob/main/stage_b_lite.safetensors"</span> | |
| model = StableCascadeUNet.from_single_file(ckpt_path) | |
| `,wrap:!1}}),ie=new M({props:{title:"Using a Diffusers model repository to configure single file loading",local:"using-a-diffusers-model-repository-to-configure-single-file-loading",headingTag:"h2"}}),te=new U({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblhMUGlwZWxpbmUlMEElMEFja3B0X3BhdGglMjAlM0QlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGc2VnbWluZCUyRlNTRC0xQiUyRmJsb2IlMkZtYWluJTJGU1NELTFCLnNhZmV0ZW5zb3JzJTIyJTBBcmVwb19pZCUyMCUzRCUyMCUyMnNlZ21pbmQlMkZTU0QtMUIlMjIlMEElMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uWExQaXBlbGluZS5mcm9tX3NpbmdsZV9maWxlKGNrcHRfcGF0aCUyQyUyMGNvbmZpZyUzRHJlcG9faWQpJTBB",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionXLPipeline | |
| ckpt_path = <span class="hljs-string">"https://huggingface.co/segmind/SSD-1B/blob/main/SSD-1B.safetensors"</span> | |
| repo_id = <span class="hljs-string">"segmind/SSD-1B"</span> | |
| pipe = StableDiffusionXLPipeline.from_single_file(ckpt_path, config=repo_id) | |
| `,wrap:!1}}),F=new Ni({props:{$$slots:{default:[Tl]},$$scope:{ctx:$}}}),oe=new M({props:{title:"Override configuration options when using single file loading",local:"override-configuration-options-when-using-single-file-loading",headingTag:"h2"}}),ae=new M({props:{title:"Setting a pipeline configuration option",local:"setting-a-pipeline-configuration-option",headingTag:"h3"}}),re=new U({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblhMSW5zdHJ1Y3RQaXgyUGl4UGlwZWxpbmUlMEElMEFja3B0X3BhdGglMjAlM0QlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGc3RhYmlsaXR5YWklMkZjb3N4bCUyRmJsb2IlMkZtYWluJTJGY29zeGxfZWRpdC5zYWZldGVuc29ycyUyMiUwQXBpcGUlMjAlM0QlMjBTdGFibGVEaWZmdXNpb25YTEluc3RydWN0UGl4MlBpeFBpcGVsaW5lLmZyb21fc2luZ2xlX2ZpbGUoY2twdF9wYXRoJTJDJTIwY29uZmlnJTNEJTIyZGlmZnVzZXJzJTJGc2R4bC1pbnN0cnVjdHBpeDJwaXgtNzY4JTIyJTJDJTIwaXNfY29zeGxfZWRpdCUzRFRydWUpJTBB",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionXLInstructPix2PixPipeline | |
| ckpt_path = <span class="hljs-string">"https://huggingface.co/stabilityai/cosxl/blob/main/cosxl_edit.safetensors"</span> | |
| pipe = StableDiffusionXLInstructPix2PixPipeline.from_single_file(ckpt_path, config=<span class="hljs-string">"diffusers/sdxl-instructpix2pix-768"</span>, is_cosxl_edit=<span class="hljs-literal">True</span>) | |
| `,wrap:!1}}),fe=new M({props:{title:"Setting a model configuration option",local:"setting-a-model-configuration-option",headingTag:"h3"}}),pe=new U({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTBBJTBBY2twdF9wYXRoJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRnN0YWJpbGl0eWFpJTJGc3RhYmxlLWRpZmZ1c2lvbi14bC1iYXNlLTEuMCUyRmJsb2IlMkZtYWluJTJGc2RfeGxfYmFzZV8xLjBfMC45dmFlLnNhZmV0ZW5zb3JzJTIyJTBBbW9kZWwlMjAlM0QlMjBVTmV0MkRDb25kaXRpb25Nb2RlbC5mcm9tX3NpbmdsZV9maWxlKGNrcHRfcGF0aCUyQyUyMHVwY2FzdF9hdHRlbnRpb24lM0RUcnVlKSUwQQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DConditionModel | |
| ckpt_path = <span class="hljs-string">"https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/sd_xl_base_1.0_0.9vae.safetensors"</span> | |
| model = UNet2DConditionModel.from_single_file(ckpt_path, upcast_attention=<span class="hljs-literal">True</span>) | |
| `,wrap:!1}}),I=new Ni({props:{$$slots:{default:[$l]},$$scope:{ctx:$}}}),de=new M({props:{title:"Working with local files",local:"working-with-local-files",headingTag:"h2"}}),ge=new U({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUyQyUyMHNuYXBzaG90X2Rvd25sb2FkJTBBJTBBbXlfbG9jYWxfY2hlY2twb2ludF9wYXRoJTIwJTNEJTIwaGZfaHViX2Rvd25sb2FkKCUwQSUyMCUyMCUyMCUyMHJlcG9faWQlM0QlMjJzZWdtaW5kJTJGU1NELTFCJTIyJTJDJTBBJTIwJTIwJTIwJTIwZmlsZW5hbWUlM0QlMjJTU0QtMUIuc2FmZXRlbnNvcnMlMjIlMEEpJTBBJTBBbXlfbG9jYWxfY29uZmlnX3BhdGglMjAlM0QlMjBzbmFwc2hvdF9kb3dubG9hZCglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIyc2VnbWluZCUyRlNTRC0xQiUyMiUyQyUwQSUyMCUyMCUyMCUyMGFsbG93ZWRfcGF0dGVybnMlM0QlNUIlMjIqLmpzb24lMjIlMkMlMjAlMjIqKiUyRiouanNvbiUyMiUyQyUyMCUyMioudHh0JTIyJTJDJTIwJTIyKiolMkYqLnR4dCUyMiU1RCUwQSklMEElMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uWExQaXBlbGluZS5mcm9tX3NpbmdsZV9maWxlKG15X2xvY2FsX2NoZWNrcG9pbnRfcGF0aCUyQyUyMGNvbmZpZyUzRG15X2xvY2FsX2NvbmZpZ19wYXRoJTJDJTIwbG9jYWxfZmlsZXNfb25seSUzRFRydWUpJTBB",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> hf_hub_download, snapshot_download | |
| my_local_checkpoint_path = hf_hub_download( | |
| repo_id=<span class="hljs-string">"segmind/SSD-1B"</span>, | |
| filename=<span class="hljs-string">"SSD-1B.safetensors"</span> | |
| ) | |
| my_local_config_path = snapshot_download( | |
| repo_id=<span class="hljs-string">"segmind/SSD-1B"</span>, | |
| allowed_patterns=[<span class="hljs-string">"*.json"</span>, <span class="hljs-string">"**/*.json"</span>, <span class="hljs-string">"*.txt"</span>, <span class="hljs-string">"**/*.txt"</span>] | |
| ) | |
| pipe = StableDiffusionXLPipeline.from_single_file(my_local_checkpoint_path, config=my_local_config_path, local_files_only=<span class="hljs-literal">True</span>) | |
| `,wrap:!1}}),be=new U({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUyQyUyMHNuYXBzaG90X2Rvd25sb2FkJTBBJTBBbXlfbG9jYWxfY2hlY2twb2ludF9wYXRoJTIwJTNEJTIwaGZfaHViX2Rvd25sb2FkKCUwQSUyMCUyMCUyMCUyMHJlcG9faWQlM0QlMjJzZWdtaW5kJTJGU1NELTFCJTIyJTJDJTBBJTIwJTIwJTIwJTIwZmlsZW5hbWUlM0QlMjJTU0QtMUIuc2FmZXRlbnNvcnMlMjIlMEElMjAlMjAlMjAlMjBsb2NhbF9kaXIlM0QlMjJteV9sb2NhbF9jaGVja3BvaW50cyUyMiUwQSklMEElMEFteV9sb2NhbF9jb25maWdfcGF0aCUyMCUzRCUyMHNuYXBzaG90X2Rvd25sb2FkKCUwQSUyMCUyMCUyMCUyMHJlcG9faWQlM0QlMjJzZWdtaW5kJTJGU1NELTFCJTIyJTJDJTBBJTIwJTIwJTIwJTIwYWxsb3dlZF9wYXR0ZXJucyUzRCU1QiUyMiouanNvbiUyMiUyQyUyMCUyMioqJTJGKi5qc29uJTIyJTJDJTIwJTIyKi50eHQlMjIlMkMlMjAlMjIqKiUyRioudHh0JTIyJTVEJTBBJTIwJTIwJTIwJTIwbG9jYWxfZGlyJTNEJTIybXlfbG9jYWxfY29uZmlnJTIyJTBBKSUwQSUwQXBpcGUlMjAlM0QlMjBTdGFibGVEaWZmdXNpb25YTFBpcGVsaW5lLmZyb21fc2luZ2xlX2ZpbGUobXlfbG9jYWxfY2hlY2twb2ludF9wYXRoJTJDJTIwY29uZmlnJTNEbXlfbG9jYWxfY29uZmlnX3BhdGglMkMlMjBsb2NhbF9maWxlc19vbmx5JTNEVHJ1ZSklMEE=",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> hf_hub_download, snapshot_download | |
| my_local_checkpoint_path = hf_hub_download( | |
| repo_id=<span class="hljs-string">"segmind/SSD-1B"</span>, | |
| filename=<span class="hljs-string">"SSD-1B.safetensors"</span> | |
| local_dir=<span class="hljs-string">"my_local_checkpoints"</span> | |
| ) | |
| my_local_config_path = snapshot_download( | |
| repo_id=<span class="hljs-string">"segmind/SSD-1B"</span>, | |
| allowed_patterns=[<span class="hljs-string">"*.json"</span>, <span class="hljs-string">"**/*.json"</span>, <span class="hljs-string">"*.txt"</span>, <span class="hljs-string">"**/*.txt"</span>] | |
| local_dir=<span class="hljs-string">"my_local_config"</span> | |
| ) | |
| pipe = StableDiffusionXLPipeline.from_single_file(my_local_checkpoint_path, config=my_local_config_path, local_files_only=<span class="hljs-literal">True</span>) | |
| `,wrap:!1}}),_e=new M({props:{title:"Working with local files on file systems that do not support symlinking",local:"working-with-local-files-on-file-systems-that-do-not-support-symlinking",headingTag:"h2"}}),Me=new U({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUyQyUyMHNuYXBzaG90X2Rvd25sb2FkJTBBJTBBbXlfbG9jYWxfY2hlY2twb2ludF9wYXRoJTIwJTNEJTIwaGZfaHViX2Rvd25sb2FkKCUwQSUyMCUyMCUyMCUyMHJlcG9faWQlM0QlMjJzZWdtaW5kJTJGU1NELTFCJTIyJTJDJTBBJTIwJTIwJTIwJTIwZmlsZW5hbWUlM0QlMjJTU0QtMUIuc2FmZXRlbnNvcnMlMjIlMEElMjAlMjAlMjAlMjBsb2NhbF9kaXIlM0QlMjJteV9sb2NhbF9jaGVja3BvaW50cyUyMiUyQyUwQSUyMCUyMCUyMCUyMGxvY2FsX2Rpcl91c2Vfc3ltbGlua3MlM0RGYWxzZSUwQSklMEFwcmludCglMjJNeSUyMGxvY2FsJTIwY2hlY2twb2ludCUzQSUyMCUyMiUyQyUyMG15X2xvY2FsX2NoZWNrcG9pbnRfcGF0aCklMEElMEFteV9sb2NhbF9jb25maWdfcGF0aCUyMCUzRCUyMHNuYXBzaG90X2Rvd25sb2FkKCUwQSUyMCUyMCUyMCUyMHJlcG9faWQlM0QlMjJzZWdtaW5kJTJGU1NELTFCJTIyJTJDJTBBJTIwJTIwJTIwJTIwYWxsb3dlZF9wYXR0ZXJucyUzRCU1QiUyMiouanNvbiUyMiUyQyUyMCUyMioqJTJGKi5qc29uJTIyJTJDJTIwJTIyKi50eHQlMjIlMkMlMjAlMjIqKiUyRioudHh0JTIyJTVEJTBBJTIwJTIwJTIwJTIwbG9jYWxfZGlyX3VzZV9zeW1saW5rcyUzREZhbHNlJTJDJTBBKSUwQXByaW50KCUyMk15JTIwbG9jYWwlMjBjb25maWclM0ElMjAlMjIlMkMlMjBteV9sb2NhbF9jb25maWdfcGF0aCklMEE=",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> hf_hub_download, snapshot_download | |
| my_local_checkpoint_path = hf_hub_download( | |
| repo_id=<span class="hljs-string">"segmind/SSD-1B"</span>, | |
| filename=<span class="hljs-string">"SSD-1B.safetensors"</span> | |
| local_dir=<span class="hljs-string">"my_local_checkpoints"</span>, | |
| local_dir_use_symlinks=<span class="hljs-literal">False</span> | |
| ) | |
| <span class="hljs-built_in">print</span>(<span class="hljs-string">"My local checkpoint: "</span>, my_local_checkpoint_path) | |
| my_local_config_path = snapshot_download( | |
| repo_id=<span class="hljs-string">"segmind/SSD-1B"</span>, | |
| allowed_patterns=[<span class="hljs-string">"*.json"</span>, <span class="hljs-string">"**/*.json"</span>, <span class="hljs-string">"*.txt"</span>, <span class="hljs-string">"**/*.txt"</span>] | |
| local_dir_use_symlinks=<span class="hljs-literal">False</span>, | |
| ) | |
| <span class="hljs-built_in">print</span>(<span class="hljs-string">"My local config: "</span>, my_local_config_path) | |
| `,wrap:!1}}),Je=new U({props:{code:"cGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblhMUGlwZWxpbmUuZnJvbV9zaW5nbGVfZmlsZShteV9sb2NhbF9jaGVja3BvaW50X3BhdGglMkMlMjBjb25maWclM0RteV9sb2NhbF9jb25maWdfcGF0aCUyQyUyMGxvY2FsX2ZpbGVzX29ubHklM0RUcnVlKSUwQQ==",highlighted:`pipe = StableDiffusionXLPipeline.from_single_file(my_local_checkpoint_path, config=my_local_config_path, local_files_only=<span class="hljs-literal">True</span>) | |
| `,wrap:!1}}),R=new Ni({props:{$$slots:{default:[Ul]},$$scope:{ctx:$}}}),Te=new M({props:{title:"Using the original configuration file of a model",local:"using-the-original-configuration-file-of-a-model",headingTag:"h2"}}),Ue=new U({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblhMUGlwZWxpbmUlMEElMEFja3B0X3BhdGglMjAlM0QlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTJGYmxvYiUyRm1haW4lMkZzZF94bF9iYXNlXzEuMF8wLjl2YWUuc2FmZXRlbnNvcnMlMjIlMEFyZXBvX2lkJTIwJTNEJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTBBb3JpZ2luYWxfY29uZmlnJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZyYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tJTJGU3RhYmlsaXR5LUFJJTJGZ2VuZXJhdGl2ZS1tb2RlbHMlMkZtYWluJTJGY29uZmlncyUyRmluZmVyZW5jZSUyRnNkX3hsX2Jhc2UueWFtbCUyMiUwQSUwQXBpcGUlMjAlM0QlMjBTdGFibGVEaWZmdXNpb25YTFBpcGVsaW5lLmZyb21fc2luZ2xlX2ZpbGUoY2twdF9wYXRoJTJDJTIwb3JpZ2luYWxfY29uZmlnJTNEb3JpZ2luYWxfY29uZmlnKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionXLPipeline | |
| ckpt_path = <span class="hljs-string">"https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/sd_xl_base_1.0_0.9vae.safetensors"</span> | |
| repo_id = <span class="hljs-string">"stabilityai/stable-diffusion-xl-base-1.0"</span> | |
| original_config = <span class="hljs-string">"https://raw.githubusercontent.com/Stability-AI/generative-models/main/configs/inference/sd_xl_base.yaml"</span> | |
| pipe = StableDiffusionXLPipeline.from_single_file(ckpt_path, original_config=original_config)`,wrap:!1}}),Y=new Ni({props:{$$slots:{default:[Zl]},$$scope:{ctx:$}}}),Ze=new M({props:{title:"FromSingleFileMixin",local:"diffusers.loaders.FromSingleFileMixin",headingTag:"h2"}}),xe=new Bi({props:{name:"class diffusers.loaders.FromSingleFileMixin",anchor:"diffusers.loaders.FromSingleFileMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_8376/src/diffusers/loaders/single_file.py#L253"}}),je=new Bi({props:{name:"from_single_file",anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file",parameters:[{name:"pretrained_model_link_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.pretrained_model_link_or_path",description:`<strong>pretrained_model_link_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) — | |
| Can be either:<ul> | |
| <li>A link to the <code>.ckpt</code> file (for example | |
| <code>"https://huggingface.co/<repo_id>/blob/main/<path_to_file>.ckpt"</code>) on the Hub.</li> | |
| <li>A path to a <em>file</em> containing all pipeline weights.</li> | |
| </ul>`,name:"pretrained_model_link_or_path"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) — | |
| Override the default <code>torch.dtype</code> and load the model with another dtype.`,name:"torch_dtype"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to force the (re-)download of the model weights and configuration files, overriding the | |
| cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used. | |
| resume_download — | |
| Deprecated and ignored. All downloads are now resumed by default when possible. Will be removed in v1 | |
| of Diffusers.`,name:"cache_dir"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.original_config_file",description:`<strong>original_config_file</strong> (<code>str</code>, <em>optional</em>) — | |
| The path to the original config file that was used to train the model. If not provided, the config file | |
| will be inferred from the checkpoint file.`,name:"original_config_file"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.config",description:`<strong>config</strong> (<code>str</code>, <em>optional</em>) — | |
| Can be either:<ul> | |
| <li>A string, the <em>repo id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline | |
| hosted on the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing the pipeline | |
| component configs in Diffusers format.</li> | |
| </ul>`,name:"config"},{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) — | |
| Can be used to overwrite load and saveable variables (the pipeline components of the specific pipeline | |
| class). The overwritten components are passed directly to the pipelines <code>__init__</code> method. See example | |
| below for more information.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_8376/src/diffusers/loaders/single_file.py#L258"}}),N=new hl({props:{anchor:"diffusers.loaders.FromSingleFileMixin.from_single_file.example",$$slots:{default:[xl]},$$scope:{ctx:$}}}),ke=new M({props:{title:"FromOriginalModelMixin",local:"diffusers.loaders.FromOriginalModelMixin",headingTag:"h2"}}),Ge=new Bi({props:{name:"class diffusers.loaders.FromOriginalModelMixin",anchor:"diffusers.loaders.FromOriginalModelMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_8376/src/diffusers/loaders/single_file_model.py#L81"}}),ve=new Bi({props:{name:"from_single_file",anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file",parameters:[{name:"pretrained_model_link_or_path_or_dict",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.pretrained_model_link_or_path_or_dict",description:`<strong>pretrained_model_link_or_path_or_dict</strong> (<code>str</code>, <em>optional</em>) — | |
| Can be either:<ul> | |
| <li>A link to the <code>.safetensors</code> or <code>.ckpt</code> file (for example | |
| <code>"https://huggingface.co/<repo_id>/blob/main/<path_to_file>.safetensors"</code>) on the Hub.</li> | |
| <li>A path to a local <em>file</em> containing the weights of the component model.</li> | |
| <li>A state dict containing the component model weights.</li> | |
| </ul>`,name:"pretrained_model_link_or_path_or_dict"},{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.config",description:`<strong>config</strong> (<code>str</code>, <em>optional</em>) —<ul> | |
| <li>A string, the <em>repo id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline hosted | |
| on the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing the pipeline component | |
| configs in Diffusers format.</li> | |
| </ul>`,name:"config"},{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.original_config",description:`<strong>original_config</strong> (<code>str</code>, <em>optional</em>) — | |
| Dict or path to a yaml file containing the configuration for the model in its original format. | |
| If a dict is provided, it will be used to initialize the model configuration.`,name:"original_config"},{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) — | |
| Override the default <code>torch.dtype</code> and load the model with another dtype. If <code>"auto"</code> is passed, the | |
| dtype is automatically derived from the model’s weights.`,name:"torch_dtype"},{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to force the (re-)download of the model weights and configuration files, overriding the | |
| cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any | |
| incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to True, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) — | |
| Can be used to overwrite load and saveable variables (for example the pipeline components of the | |
| specific pipeline class). The overwritten components are directly passed to the pipelines <code>__init__</code> | |
| method. See example below for more information.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_8376/src/diffusers/loaders/single_file_model.py#L86"}}),B=new hl({props:{anchor:"diffusers.loaders.FromOriginalModelMixin.from_single_file.example",$$slots:{default:[jl]},$$scope:{ctx:$}}}),We=new Jl({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/loaders/single_file.md"}}),{c(){s=u("meta"),y=n(),a=u("p"),b=n(),r(w.$$.fragment),h=n(),J=u("p"),J.innerHTML=qi,Xe=n(),C=u("p"),C.innerHTML=Qi,Le=n(),r(X.$$.fragment),He=n(),L=u("ul"),L.innerHTML=zi,Ve=n(),r(H.$$.fragment),Ee=n(),V=u("ul"),V.innerHTML=Ai,Pe=n(),r(E.$$.fragment),De=n(),r(P.$$.fragment),qe=n(),r(D.$$.fragment),Qe=n(),r(q.$$.fragment),ze=n(),Q=u("p"),Q.innerHTML=Oi,Ae=n(),r(z.$$.fragment),Oe=n(),A=u("p"),A.innerHTML=Ki,Ke=n(),r(O.$$.fragment),ei=n(),r(K.$$.fragment),ii=n(),r(ee.$$.fragment),li=n(),r(ie.$$.fragment),ti=n(),le=u("p"),le.innerHTML=el,ni=n(),r(te.$$.fragment),oi=n(),ne=u("p"),ne.innerHTML=il,si=n(),r(F.$$.fragment),ai=n(),r(oe.$$.fragment),ri=n(),se=u("p"),se.innerHTML=ll,fi=n(),r(ae.$$.fragment),pi=n(),r(re.$$.fragment),di=n(),r(fe.$$.fragment),ci=n(),r(pe.$$.fragment),mi=n(),r(I.$$.fragment),ui=n(),r(de.$$.fragment),gi=n(),ce=u("p"),ce.innerHTML=tl,hi=n(),me=u("p"),me.innerHTML=nl,bi=n(),ue=u("p"),ue.innerHTML=ol,_i=n(),r(ge.$$.fragment),yi=n(),he=u("p"),he.innerHTML=sl,Mi=n(),r(be.$$.fragment),wi=n(),r(_e.$$.fragment),Ji=n(),ye=u("p"),ye.innerHTML=al,Ti=n(),r(Me.$$.fragment),$i=n(),we=u("p"),we.innerHTML=rl,Ui=n(),r(Je.$$.fragment),Zi=n(),r(R.$$.fragment),xi=n(),r(Te.$$.fragment),ji=n(),$e=u("p"),$e.innerHTML=fl,ki=n(),r(Ue.$$.fragment),Gi=n(),r(Y.$$.fragment),vi=n(),r(Ze.$$.fragment),Wi=n(),Z=u("div"),r(xe.$$.fragment),Ci=n(),Se=u("p"),Se.innerHTML=pl,Xi=n(),j=u("div"),r(je.$$.fragment),Li=n(),Fe=u("p"),Fe.innerHTML=dl,Hi=n(),r(N.$$.fragment),Si=n(),r(ke.$$.fragment),Fi=n(),x=u("div"),r(Ge.$$.fragment),Vi=n(),Ie=u("p"),Ie.innerHTML=cl,Ei=n(),k=u("div"),r(ve.$$.fragment),Pi=n(),Re=u("p"),Re.innerHTML=ml,Di=n(),r(B.$$.fragment),Ii=n(),r(We.$$.fragment),Ri=n(),Ce=u("p"),this.h()},l(e){const i=wl("svelte-u9bgzb",document.head);s=g(i,"META",{name:!0,content:!0}),i.forEach(l),y=o(e),a=g(e,"P",{}),Ye(a).forEach(l),b=o(e),f(w.$$.fragment,e),h=o(e),J=g(e,"P",{"data-svelte-h":!0}),_(J)!=="svelte-1j698ul"&&(J.innerHTML=qi),Xe=o(e),C=g(e,"P",{"data-svelte-h":!0}),_(C)!=="svelte-1ukmajh"&&(C.innerHTML=Qi),Le=o(e),f(X.$$.fragment,e),He=o(e),L=g(e,"UL",{"data-svelte-h":!0}),_(L)!=="svelte-1dr94e1"&&(L.innerHTML=zi),Ve=o(e),f(H.$$.fragment,e),Ee=o(e),V=g(e,"UL",{"data-svelte-h":!0}),_(V)!=="svelte-10e71"&&(V.innerHTML=Ai),Pe=o(e),f(E.$$.fragment,e),De=o(e),f(P.$$.fragment,e),qe=o(e),f(D.$$.fragment,e),Qe=o(e),f(q.$$.fragment,e),ze=o(e),Q=g(e,"P",{"data-svelte-h":!0}),_(Q)!=="svelte-1di86uw"&&(Q.innerHTML=Oi),Ae=o(e),f(z.$$.fragment,e),Oe=o(e),A=g(e,"P",{"data-svelte-h":!0}),_(A)!=="svelte-lirgmp"&&(A.innerHTML=Ki),Ke=o(e),f(O.$$.fragment,e),ei=o(e),f(K.$$.fragment,e),ii=o(e),f(ee.$$.fragment,e),li=o(e),f(ie.$$.fragment,e),ti=o(e),le=g(e,"P",{"data-svelte-h":!0}),_(le)!=="svelte-8zwqii"&&(le.innerHTML=el),ni=o(e),f(te.$$.fragment,e),oi=o(e),ne=g(e,"P",{"data-svelte-h":!0}),_(ne)!=="svelte-1xr1std"&&(ne.innerHTML=il),si=o(e),f(F.$$.fragment,e),ai=o(e),f(oe.$$.fragment,e),ri=o(e),se=g(e,"P",{"data-svelte-h":!0}),_(se)!=="svelte-t4x39f"&&(se.innerHTML=ll),fi=o(e),f(ae.$$.fragment,e),pi=o(e),f(re.$$.fragment,e),di=o(e),f(fe.$$.fragment,e),ci=o(e),f(pe.$$.fragment,e),mi=o(e),f(I.$$.fragment,e),ui=o(e),f(de.$$.fragment,e),gi=o(e),ce=g(e,"P",{"data-svelte-h":!0}),_(ce)!=="svelte-1kkis7a"&&(ce.innerHTML=tl),hi=o(e),me=g(e,"P",{"data-svelte-h":!0}),_(me)!=="svelte-1w7qzn"&&(me.innerHTML=nl),bi=o(e),ue=g(e,"P",{"data-svelte-h":!0}),_(ue)!=="svelte-t49x7j"&&(ue.innerHTML=ol),_i=o(e),f(ge.$$.fragment,e),yi=o(e),he=g(e,"P",{"data-svelte-h":!0}),_(he)!=="svelte-delnnw"&&(he.innerHTML=sl),Mi=o(e),f(be.$$.fragment,e),wi=o(e),f(_e.$$.fragment,e),Ji=o(e),ye=g(e,"P",{"data-svelte-h":!0}),_(ye)!=="svelte-1nvseog"&&(ye.innerHTML=al),Ti=o(e),f(Me.$$.fragment,e),$i=o(e),we=g(e,"P",{"data-svelte-h":!0}),_(we)!=="svelte-1wi9kuq"&&(we.innerHTML=rl),Ui=o(e),f(Je.$$.fragment,e),Zi=o(e),f(R.$$.fragment,e),xi=o(e),f(Te.$$.fragment,e),ji=o(e),$e=g(e,"P",{"data-svelte-h":!0}),_($e)!=="svelte-ld5js"&&($e.innerHTML=fl),ki=o(e),f(Ue.$$.fragment,e),Gi=o(e),f(Y.$$.fragment,e),vi=o(e),f(Ze.$$.fragment,e),Wi=o(e),Z=g(e,"DIV",{class:!0});var G=Ye(Z);f(xe.$$.fragment,G),Ci=o(G),Se=g(G,"P",{"data-svelte-h":!0}),_(Se)!=="svelte-pi0hsw"&&(Se.innerHTML=pl),Xi=o(G),j=g(G,"DIV",{class:!0});var v=Ye(j);f(je.$$.fragment,v),Li=o(v),Fe=g(v,"P",{"data-svelte-h":!0}),_(Fe)!=="svelte-xonwr9"&&(Fe.innerHTML=dl),Hi=o(v),f(N.$$.fragment,v),v.forEach(l),G.forEach(l),Si=o(e),f(ke.$$.fragment,e),Fi=o(e),x=g(e,"DIV",{class:!0});var W=Ye(x);f(Ge.$$.fragment,W),Vi=o(W),Ie=g(W,"P",{"data-svelte-h":!0}),_(Ie)!=="svelte-1angwv3"&&(Ie.innerHTML=cl),Ei=o(W),k=g(W,"DIV",{class:!0});var S=Ye(k);f(ve.$$.fragment,S),Pi=o(S),Re=g(S,"P",{"data-svelte-h":!0}),_(Re)!=="svelte-vw4n4o"&&(Re.innerHTML=ml),Di=o(S),f(B.$$.fragment,S),S.forEach(l),W.forEach(l),Ii=o(e),f(We.$$.fragment,e),Ri=o(e),Ce=g(e,"P",{}),Ye(Ce).forEach(l),this.h()},h(){Ne(s,"name","hf:doc:metadata"),Ne(s,"content",Gl),Ne(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Ne(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Ne(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Ne(x,"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,s),t(e,y,i),t(e,a,i),t(e,b,i),p(w,e,i),t(e,h,i),t(e,J,i),t(e,Xe,i),t(e,C,i),t(e,Le,i),p(X,e,i),t(e,He,i),t(e,L,i),t(e,Ve,i),p(H,e,i),t(e,Ee,i),t(e,V,i),t(e,Pe,i),p(E,e,i),t(e,De,i),p(P,e,i),t(e,qe,i),p(D,e,i),t(e,Qe,i),p(q,e,i),t(e,ze,i),t(e,Q,i),t(e,Ae,i),p(z,e,i),t(e,Oe,i),t(e,A,i),t(e,Ke,i),p(O,e,i),t(e,ei,i),p(K,e,i),t(e,ii,i),p(ee,e,i),t(e,li,i),p(ie,e,i),t(e,ti,i),t(e,le,i),t(e,ni,i),p(te,e,i),t(e,oi,i),t(e,ne,i),t(e,si,i),p(F,e,i),t(e,ai,i),p(oe,e,i),t(e,ri,i),t(e,se,i),t(e,fi,i),p(ae,e,i),t(e,pi,i),p(re,e,i),t(e,di,i),p(fe,e,i),t(e,ci,i),p(pe,e,i),t(e,mi,i),p(I,e,i),t(e,ui,i),p(de,e,i),t(e,gi,i),t(e,ce,i),t(e,hi,i),t(e,me,i),t(e,bi,i),t(e,ue,i),t(e,_i,i),p(ge,e,i),t(e,yi,i),t(e,he,i),t(e,Mi,i),p(be,e,i),t(e,wi,i),p(_e,e,i),t(e,Ji,i),t(e,ye,i),t(e,Ti,i),p(Me,e,i),t(e,$i,i),t(e,we,i),t(e,Ui,i),p(Je,e,i),t(e,Zi,i),p(R,e,i),t(e,xi,i),p(Te,e,i),t(e,ji,i),t(e,$e,i),t(e,ki,i),p(Ue,e,i),t(e,Gi,i),p(Y,e,i),t(e,vi,i),p(Ze,e,i),t(e,Wi,i),t(e,Z,i),p(xe,Z,null),T(Z,Ci),T(Z,Se),T(Z,Xi),T(Z,j),p(je,j,null),T(j,Li),T(j,Fe),T(j,Hi),p(N,j,null),t(e,Si,i),p(ke,e,i),t(e,Fi,i),t(e,x,i),p(Ge,x,null),T(x,Vi),T(x,Ie),T(x,Ei),T(x,k),p(ve,k,null),T(k,Pi),T(k,Re),T(k,Di),p(B,k,null),t(e,Ii,i),p(We,e,i),t(e,Ri,i),t(e,Ce,i),Yi=!0},p(e,[i]){const G={};i&2&&(G.$$scope={dirty:i,ctx:e}),F.$set(G);const v={};i&2&&(v.$$scope={dirty:i,ctx:e}),I.$set(v);const W={};i&2&&(W.$$scope={dirty:i,ctx:e}),R.$set(W);const S={};i&2&&(S.$$scope={dirty:i,ctx:e}),Y.$set(S);const ul={};i&2&&(ul.$$scope={dirty:i,ctx:e}),N.$set(ul);const gl={};i&2&&(gl.$$scope={dirty:i,ctx:e}),B.$set(gl)},i(e){Yi||(d(w.$$.fragment,e),d(X.$$.fragment,e),d(H.$$.fragment,e),d(E.$$.fragment,e),d(P.$$.fragment,e),d(D.$$.fragment,e),d(q.$$.fragment,e),d(z.$$.fragment,e),d(O.$$.fragment,e),d(K.$$.fragment,e),d(ee.$$.fragment,e),d(ie.$$.fragment,e),d(te.$$.fragment,e),d(F.$$.fragment,e),d(oe.$$.fragment,e),d(ae.$$.fragment,e),d(re.$$.fragment,e),d(fe.$$.fragment,e),d(pe.$$.fragment,e),d(I.$$.fragment,e),d(de.$$.fragment,e),d(ge.$$.fragment,e),d(be.$$.fragment,e),d(_e.$$.fragment,e),d(Me.$$.fragment,e),d(Je.$$.fragment,e),d(R.$$.fragment,e),d(Te.$$.fragment,e),d(Ue.$$.fragment,e),d(Y.$$.fragment,e),d(Ze.$$.fragment,e),d(xe.$$.fragment,e),d(je.$$.fragment,e),d(N.$$.fragment,e),d(ke.$$.fragment,e),d(Ge.$$.fragment,e),d(ve.$$.fragment,e),d(B.$$.fragment,e),d(We.$$.fragment,e),Yi=!0)},o(e){c(w.$$.fragment,e),c(X.$$.fragment,e),c(H.$$.fragment,e),c(E.$$.fragment,e),c(P.$$.fragment,e),c(D.$$.fragment,e),c(q.$$.fragment,e),c(z.$$.fragment,e),c(O.$$.fragment,e),c(K.$$.fragment,e),c(ee.$$.fragment,e),c(ie.$$.fragment,e),c(te.$$.fragment,e),c(F.$$.fragment,e),c(oe.$$.fragment,e),c(ae.$$.fragment,e),c(re.$$.fragment,e),c(fe.$$.fragment,e),c(pe.$$.fragment,e),c(I.$$.fragment,e),c(de.$$.fragment,e),c(ge.$$.fragment,e),c(be.$$.fragment,e),c(_e.$$.fragment,e),c(Me.$$.fragment,e),c(Je.$$.fragment,e),c(R.$$.fragment,e),c(Te.$$.fragment,e),c(Ue.$$.fragment,e),c(Y.$$.fragment,e),c(Ze.$$.fragment,e),c(xe.$$.fragment,e),c(je.$$.fragment,e),c(N.$$.fragment,e),c(ke.$$.fragment,e),c(Ge.$$.fragment,e),c(ve.$$.fragment,e),c(B.$$.fragment,e),c(We.$$.fragment,e),Yi=!1},d(e){e&&(l(y),l(a),l(b),l(h),l(J),l(Xe),l(C),l(Le),l(He),l(L),l(Ve),l(Ee),l(V),l(Pe),l(De),l(qe),l(Qe),l(ze),l(Q),l(Ae),l(Oe),l(A),l(Ke),l(ei),l(ii),l(li),l(ti),l(le),l(ni),l(oi),l(ne),l(si),l(ai),l(ri),l(se),l(fi),l(pi),l(di),l(ci),l(mi),l(ui),l(gi),l(ce),l(hi),l(me),l(bi),l(ue),l(_i),l(yi),l(he),l(Mi),l(wi),l(Ji),l(ye),l(Ti),l($i),l(we),l(Ui),l(Zi),l(xi),l(ji),l($e),l(ki),l(Gi),l(vi),l(Wi),l(Z),l(Si),l(Fi),l(x),l(Ii),l(Ri),l(Ce)),l(s),m(w,e),m(X,e),m(H,e),m(E,e),m(P,e),m(D,e),m(q,e),m(z,e),m(O,e),m(K,e),m(ee,e),m(ie,e),m(te,e),m(F,e),m(oe,e),m(ae,e),m(re,e),m(fe,e),m(pe,e),m(I,e),m(de,e),m(ge,e),m(be,e),m(_e,e),m(Me,e),m(Je,e),m(R,e),m(Te,e),m(Ue,e),m(Y,e),m(Ze,e),m(xe),m(je),m(N),m(ke,e),m(Ge),m(ve),m(B),m(We,e)}}}const Gl='{"title":"Loading Pipelines and Models via from_single_file","local":"loading-pipelines-and-models-via-fromsinglefile","sections":[{"title":"Pipelines that currently support from_single_file loading","local":"pipelines-that-currently-support-fromsinglefile-loading","sections":[],"depth":2},{"title":"Models that currently support from_single_file loading","local":"models-that-currently-support-fromsinglefile-loading","sections":[],"depth":2},{"title":"Usage Examples","local":"usage-examples","sections":[],"depth":2},{"title":"Loading a Pipeline using from_single_file","local":"loading-a-pipeline-using-fromsinglefile","sections":[],"depth":2},{"title":"Setting components in a Pipeline using from_single_file","local":"setting-components-in-a-pipeline-using-fromsinglefile","sections":[],"depth":2},{"title":"Loading a Model using from_single_file","local":"loading-a-model-using-fromsinglefile","sections":[],"depth":2},{"title":"Using a Diffusers model repository to configure single file loading","local":"using-a-diffusers-model-repository-to-configure-single-file-loading","sections":[],"depth":2},{"title":"Override configuration options when using single file loading","local":"override-configuration-options-when-using-single-file-loading","sections":[{"title":"Setting a pipeline configuration option","local":"setting-a-pipeline-configuration-option","sections":[],"depth":3},{"title":"Setting a model configuration option","local":"setting-a-model-configuration-option","sections":[],"depth":3}],"depth":2},{"title":"Working with local files","local":"working-with-local-files","sections":[],"depth":2},{"title":"Working with local files on file systems that do not support symlinking","local":"working-with-local-files-on-file-systems-that-do-not-support-symlinking","sections":[],"depth":2},{"title":"Using the original configuration file of a model","local":"using-the-original-configuration-file-of-a-model","sections":[],"depth":2},{"title":"FromSingleFileMixin","local":"diffusers.loaders.FromSingleFileMixin","sections":[],"depth":2},{"title":"FromOriginalModelMixin","local":"diffusers.loaders.FromOriginalModelMixin","sections":[],"depth":2}],"depth":1}';function vl($){return _l(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Bl extends yl{constructor(s){super(),Ml(this,s,vl,kl,bl,{})}}export{Bl as component}; | |
Xet Storage Details
- Size:
- 55.6 kB
- Xet hash:
- 28ef8803516c59bf2921548a0c58947065950f95342414d3fce7bb0f5c0bbdd9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.