Buckets:

rtrm's picture
download
raw
18.6 kB
import{s as ct,o as ht,n as Ie}from"../chunks/scheduler.8c3d61f6.js";import{S as Mt,i as yt,g as o,s,r as m,A as bt,h as p,f as l,c as n,j as mt,u,x as f,k as ut,y as _t,a as i,v as d,d as c,t as h,w as M}from"../chunks/index.589a98e8.js";import{T as Be}from"../chunks/Tip.42aa8582.js";import{C as $}from"../chunks/CodeBlock.36627b28.js";import{H as dt,E as vt}from"../chunks/EditOnGithub.e5a8d9cb.js";function wt(_){let a,y='Refer to the <a href="https://huggingface.co/docs/accelerate/main/en/concept_guides/big_model_inference" rel="nofollow">Handling big models for inference</a> guide for general guidance when working with big models that are hard to fit into memory.';return{c(){a=o("p"),a.innerHTML=y},l(r){a=p(r,"P",{"data-svelte-h":!0}),f(a)!=="svelte-6g79u0"&&(a.innerHTML=y)},m(r,b){i(r,a,b)},p:Ie,d(r){r&&l(a)}}}function Ut(_){let a,y="This feature is experimental and its APIs might change in the future.";return{c(){a=o("p"),a.textContent=y},l(r){a=p(r,"P",{"data-svelte-h":!0}),f(a)!=="svelte-jtjc2m"&&(a.textContent=y)},m(r,b){i(r,a,b)},p:Ie,d(r){r&&l(a)}}}function $t(_){let a,y="Only the “balanced” strategy is supported at the moment, and we plan to support additional mapping strategies in the future.";return{c(){a=o("p"),a.textContent=y},l(r){a=p(r,"P",{"data-svelte-h":!0}),f(a)!=="svelte-qgg1n4"&&(a.textContent=y)},m(r,b){i(r,a,b)},p:Ie,d(r){r&&l(a)}}}function Tt(_){let a,y,r,b,T,ie,g,Ee='A modern diffusion model, like <a href="../using-diffusers/sdxl">Stable Diffusion XL (SDXL)</a>, is not just a single model, but a collection of multiple models. SDXL has four different model-level components:',se,C,qe="<li>A variational autoencoder (VAE)</li> <li>Two text encoders</li> <li>A UNet for denoising</li>",ne,J,Xe="Usually, the text encoders and the denoiser are much larger compared to the VAE.",ae,Z,Ne="As models get bigger and better, it’s possible your model is so big that even a single copy won’t fit in memory. But that doesn’t mean it can’t be loaded. If you have more than one GPU, there is more memory available to store your model. In this case, it’s better to split your model checkpoint into several smaller <em>checkpoint shards</em>.",oe,x,Se='When a text encoder checkpoint has multiple shards, like <a href="https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers/tree/main/text_encoder_3" rel="nofollow">T5-xxl for SD3</a>, it is automatically handled by the <a href="https://huggingface.co/docs/transformers/index" rel="nofollow">Transformers</a> library as it is a required dependency of Diffusers when using the <a href="/docs/diffusers/pr_7930/en/api/pipelines/stable_diffusion/stable_diffusion_3#diffusers.StableDiffusion3Pipeline">StableDiffusion3Pipeline</a>. More specifically, Transformers will automatically handle the loading of multiple shards within the requested model class and get it ready so that inference can be performed.',pe,G,Ye='The denoiser checkpoint can also have multiple shards and supports inference thanks to the <a href="https://huggingface.co/docs/accelerate/index" rel="nofollow">Accelerate</a> library.',fe,v,re,j,Qe='For example, let’s save a sharded checkpoint for the <a href="https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/main/unet" rel="nofollow">SDXL UNet</a>:',me,k,ue,W,Fe='The size of the fp32 variant of the SDXL UNet checkpoint is ~10.4GB. Set the <code>max_shard_size</code> parameter to 5GB to create 3 shards. After saving, you can load them in <a href="/docs/diffusers/pr_7930/en/api/pipelines/stable_diffusion/stable_diffusion_xl#diffusers.StableDiffusionXLPipeline">StableDiffusionXLPipeline</a>:',de,L,ce,R,De='If placing all the model-level components on the GPU at once is not feasible, use <a href="/docs/diffusers/pr_7930/en/api/pipelines/overview#diffusers.DiffusionPipeline.enable_model_cpu_offload">enable_model_cpu_offload()</a> to help you:',he,H,Me,V,ze="In general, we recommend sharding when a checkpoint is more than 5GB (in fp32).",ye,P,be,B,Ae="On distributed setups, you can run inference across multiple GPUs with Accelerate.",_e,w,ve,I,Ke="With Accelerate, you can use the <code>device_map</code> to determine how to distribute the models of a pipeline across multiple devices. This is useful in situations where you have more than one GPU.",we,E,Oe='For example, if you have two 8GB GPUs, then using <a href="/docs/diffusers/pr_7930/en/api/pipelines/overview#diffusers.DiffusionPipeline.enable_model_cpu_offload">enable_model_cpu_offload()</a> may not work so well because:',Ue,q,et='<li>it only works on a single GPU</li> <li>a single model might not fit on a single GPU (<a href="/docs/diffusers/pr_7930/en/api/pipelines/overview#diffusers.DiffusionPipeline.enable_sequential_cpu_offload">enable_sequential_cpu_offload()</a> might work but it will be extremely slow and it is also limited to a single GPU)</li>',$e,X,tt="To make use of both GPUs, you can use the “balanced” device placement strategy which splits the models across all available GPUs.",Te,U,ge,N,Ce,S,lt="You can also pass a dictionary to enforce the maximum GPU memory that can be used on each device:",Je,Y,Ze,Q,it="If a device is not present in <code>max_memory</code>, then it will be completely ignored and will not participate in the device placement.",xe,F,st='By default, Diffusers uses the maximum memory of all devices. If the models don’t fit on the GPUs, they are offloaded to the CPU. If the CPU doesn’t have enough memory, then you might see an error. In that case, you could defer to using <a href="/docs/diffusers/pr_7930/en/api/pipelines/overview#diffusers.DiffusionPipeline.enable_sequential_cpu_offload">enable_sequential_cpu_offload()</a> and <a href="/docs/diffusers/pr_7930/en/api/pipelines/overview#diffusers.DiffusionPipeline.enable_model_cpu_offload">enable_model_cpu_offload()</a>.',Ge,D,nt='Call <a href="/docs/diffusers/pr_7930/en/api/pipelines/overview#diffusers.DiffusionPipeline.reset_device_map">reset_device_map()</a> to reset the <code>device_map</code> of a pipeline. This is also necessary if you want to use methods like <code>to()</code>, <a href="/docs/diffusers/pr_7930/en/api/pipelines/overview#diffusers.DiffusionPipeline.enable_sequential_cpu_offload">enable_sequential_cpu_offload()</a>, and <a href="/docs/diffusers/pr_7930/en/api/pipelines/overview#diffusers.DiffusionPipeline.enable_model_cpu_offload">enable_model_cpu_offload()</a> on a pipeline that was device-mapped.',je,z,ke,A,at="Once a pipeline has been device-mapped, you can also access its device map via <code>hf_device_map</code>:",We,K,Le,O,ot="An example device map would look like so:",Re,ee,He,te,Ve,le,Pe;return T=new dt({props:{title:"Working with big models",local:"working-with-big-models",headingTag:"h1"}}),v=new Be({props:{warning:!1,$$slots:{default:[wt]},$$scope:{ctx:_}}}),k=new $({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTBBJTBBdW5ldCUyMCUzRCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24teGwtYmFzZS0xLjAlMjIlMkMlMjBzdWJmb2xkZXIlM0QlMjJ1bmV0JTIyJTBBKSUwQXVuZXQuc2F2ZV9wcmV0cmFpbmVkKCUyMnNkeGwtdW5ldC1zaGFyZGVkJTIyJTJDJTIwbWF4X3NoYXJkX3NpemUlM0QlMjI1R0IlMjIp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DConditionModel
unet = UNet2DConditionModel.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, subfolder=<span class="hljs-string">&quot;unet&quot;</span>
)
unet.save_pretrained(<span class="hljs-string">&quot;sdxl-unet-sharded&quot;</span>, max_shard_size=<span class="hljs-string">&quot;5GB&quot;</span>)`,wrap:!1}}),L=new $({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTJDJTIwU3RhYmxlRGlmZnVzaW9uWExQaXBlbGluZSUyMCUwQWltcG9ydCUyMHRvcmNoJTBBJTBBdW5ldCUyMCUzRCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzYXlha3BhdWwlMkZzZHhsLXVuZXQtc2hhcmRlZCUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUwQSklMEFwaXBlbGluZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvblhMUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnN0YWJpbGl0eWFpJTJGc3RhYmxlLWRpZmZ1c2lvbi14bC1iYXNlLTEuMCUyMiUyQyUyMHVuZXQlM0R1bmV0JTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQSUwQWltYWdlJTIwJTNEJTIwcGlwZWxpbmUoJTIyYSUyMGN1dGUlMjBkb2clMjBydW5uaW5nJTIwb24lMjB0aGUlMjBncmFzcyUyMiUyQyUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0QzMCkuaW1hZ2VzJTVCMCU1RCUwQWltYWdlLnNhdmUoJTIyZG9nLnBuZyUyMik=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DConditionModel, StableDiffusionXLPipeline
<span class="hljs-keyword">import</span> torch
unet = UNet2DConditionModel.from_pretrained(
<span class="hljs-string">&quot;sayakpaul/sdxl-unet-sharded&quot;</span>, torch_dtype=torch.float16
)
pipeline = StableDiffusionXLPipeline.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, unet=unet, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
image = pipeline(<span class="hljs-string">&quot;a cute dog running on the grass&quot;</span>, num_inference_steps=<span class="hljs-number">30</span>).images[<span class="hljs-number">0</span>]
image.save(<span class="hljs-string">&quot;dog.png&quot;</span>)`,wrap:!1}}),H=new $({props:{code:"LSUyMHBpcGVsaW5lLnRvKCUyMmN1ZGElMjIpJTBBJTJCJTIwcGlwZWxpbmUuZW5hYmxlX21vZGVsX2NwdV9vZmZsb2FkKCk=",highlighted:`<span class="hljs-deletion">- pipeline.to(&quot;cuda&quot;)</span>
<span class="hljs-addition">+ pipeline.enable_model_cpu_offload()</span>`,wrap:!1}}),P=new dt({props:{title:"Device placement",local:"device-placement",headingTag:"h2"}}),w=new Be({props:{warning:!0,$$slots:{default:[Ut]},$$scope:{ctx:_}}}),U=new Be({props:{warning:!0,$$slots:{default:[$t]},$$scope:{ctx:_}}}),N=new $({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlbGluZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEEtJTIwJTIwJTIwJTIwJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMkMlMjB1c2Vfc2FmZXRlbnNvcnMlM0RUcnVlJTJDJTBBJTJCJTIwJTIwJTIwJTIwJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMkMlMjB1c2Vfc2FmZXRlbnNvcnMlM0RUcnVlJTJDJTIwZGV2aWNlX21hcCUzRCUyMmJhbGFuY2VkJTIyJTBBKSUwQWltYWdlJTIwJTNEJTIwcGlwZWxpbmUoJTIyYSUyMGRvZyUyMikuaW1hZ2VzJTVCMCU1RCUwQWltYWdl",highlighted:`from diffusers import DiffusionPipeline
import torch
pipeline = DiffusionPipeline.from_pretrained(
<span class="hljs-deletion">- &quot;runwayml/stable-diffusion-v1-5&quot;, torch_dtype=torch.float16, use_safetensors=True,</span>
<span class="hljs-addition">+ &quot;runwayml/stable-diffusion-v1-5&quot;, torch_dtype=torch.float16, use_safetensors=True, device_map=&quot;balanced&quot;</span>
)
image = pipeline(&quot;a dog&quot;).images[0]
image`,wrap:!1}}),Y=new $({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFtYXhfbWVtb3J5JTIwJTNEJTIwJTdCMCUzQSUyMjFHQiUyMiUyQyUyMDElM0ElMjIxR0IlMjIlN0QlMEFwaXBlbGluZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUwQSUyMCUyMCUyMCUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUyQyUwQSUyMCUyMCUyMCUyMHVzZV9zYWZldGVuc29ycyUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjBkZXZpY2VfbWFwJTNEJTIyYmFsYW5jZWQlMjIlMkMlMEElMkIlMjAlMjAlMjBtYXhfbWVtb3J5JTNEbWF4X21lbW9yeSUwQSklMEFpbWFnZSUyMCUzRCUyMHBpcGVsaW5lKCUyMmElMjBkb2clMjIpLmltYWdlcyU1QjAlNUQlMEFpbWFnZQ==",highlighted:`from diffusers import DiffusionPipeline
import torch
max_memory = {0:&quot;1GB&quot;, 1:&quot;1GB&quot;}
pipeline = DiffusionPipeline.from_pretrained(
&quot;runwayml/stable-diffusion-v1-5&quot;,
torch_dtype=torch.float16,
use_safetensors=True,
device_map=&quot;balanced&quot;,
<span class="hljs-addition">+ max_memory=max_memory</span>
)
image = pipeline(&quot;a dog&quot;).images[0]
image`,wrap:!1}}),z=new $({props:{code:"cGlwZWxpbmUucmVzZXRfZGV2aWNlX21hcCgp",highlighted:"pipeline.reset_device_map()",wrap:!1}}),K=new $({props:{code:"cHJpbnQocGlwZWxpbmUuaGZfZGV2aWNlX21hcCk=",highlighted:'<span class="hljs-built_in">print</span>(pipeline.hf_device_map)',wrap:!1}}),ee=new $({props:{code:"JTdCJ3VuZXQnJTNBJTIwMSUyQyUyMCd2YWUnJTNBJTIwMSUyQyUyMCdzYWZldHlfY2hlY2tlciclM0ElMjAwJTJDJTIwJ3RleHRfZW5jb2RlciclM0ElMjAwJTdE",highlighted:'{<span class="hljs-string">&#x27;unet&#x27;</span>: 1, <span class="hljs-string">&#x27;vae&#x27;</span>: 1, <span class="hljs-string">&#x27;safety_checker&#x27;</span>: 0, <span class="hljs-string">&#x27;text_encoder&#x27;</span>: 0}',wrap:!1}}),te=new vt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/tutorials/inference_with_big_models.md"}}),{c(){a=o("meta"),y=s(),r=o("p"),b=s(),m(T.$$.fragment),ie=s(),g=o("p"),g.innerHTML=Ee,se=s(),C=o("ul"),C.innerHTML=qe,ne=s(),J=o("p"),J.textContent=Xe,ae=s(),Z=o("p"),Z.innerHTML=Ne,oe=s(),x=o("p"),x.innerHTML=Se,pe=s(),G=o("p"),G.innerHTML=Ye,fe=s(),m(v.$$.fragment),re=s(),j=o("p"),j.innerHTML=Qe,me=s(),m(k.$$.fragment),ue=s(),W=o("p"),W.innerHTML=Fe,de=s(),m(L.$$.fragment),ce=s(),R=o("p"),R.innerHTML=De,he=s(),m(H.$$.fragment),Me=s(),V=o("p"),V.textContent=ze,ye=s(),m(P.$$.fragment),be=s(),B=o("p"),B.textContent=Ae,_e=s(),m(w.$$.fragment),ve=s(),I=o("p"),I.innerHTML=Ke,we=s(),E=o("p"),E.innerHTML=Oe,Ue=s(),q=o("ul"),q.innerHTML=et,$e=s(),X=o("p"),X.textContent=tt,Te=s(),m(U.$$.fragment),ge=s(),m(N.$$.fragment),Ce=s(),S=o("p"),S.textContent=lt,Je=s(),m(Y.$$.fragment),Ze=s(),Q=o("p"),Q.innerHTML=it,xe=s(),F=o("p"),F.innerHTML=st,Ge=s(),D=o("p"),D.innerHTML=nt,je=s(),m(z.$$.fragment),ke=s(),A=o("p"),A.innerHTML=at,We=s(),m(K.$$.fragment),Le=s(),O=o("p"),O.textContent=ot,Re=s(),m(ee.$$.fragment),He=s(),m(te.$$.fragment),Ve=s(),le=o("p"),this.h()},l(e){const t=bt("svelte-u9bgzb",document.head);a=p(t,"META",{name:!0,content:!0}),t.forEach(l),y=n(e),r=p(e,"P",{}),mt(r).forEach(l),b=n(e),u(T.$$.fragment,e),ie=n(e),g=p(e,"P",{"data-svelte-h":!0}),f(g)!=="svelte-i5ki63"&&(g.innerHTML=Ee),se=n(e),C=p(e,"UL",{"data-svelte-h":!0}),f(C)!=="svelte-di8t2m"&&(C.innerHTML=qe),ne=n(e),J=p(e,"P",{"data-svelte-h":!0}),f(J)!=="svelte-1whm9ro"&&(J.textContent=Xe),ae=n(e),Z=p(e,"P",{"data-svelte-h":!0}),f(Z)!=="svelte-n27w9x"&&(Z.innerHTML=Ne),oe=n(e),x=p(e,"P",{"data-svelte-h":!0}),f(x)!=="svelte-1m2sq9s"&&(x.innerHTML=Se),pe=n(e),G=p(e,"P",{"data-svelte-h":!0}),f(G)!=="svelte-arg0yu"&&(G.innerHTML=Ye),fe=n(e),u(v.$$.fragment,e),re=n(e),j=p(e,"P",{"data-svelte-h":!0}),f(j)!=="svelte-bu4e6r"&&(j.innerHTML=Qe),me=n(e),u(k.$$.fragment,e),ue=n(e),W=p(e,"P",{"data-svelte-h":!0}),f(W)!=="svelte-3il8yj"&&(W.innerHTML=Fe),de=n(e),u(L.$$.fragment,e),ce=n(e),R=p(e,"P",{"data-svelte-h":!0}),f(R)!=="svelte-11g0hqk"&&(R.innerHTML=De),he=n(e),u(H.$$.fragment,e),Me=n(e),V=p(e,"P",{"data-svelte-h":!0}),f(V)!=="svelte-4tc6e7"&&(V.textContent=ze),ye=n(e),u(P.$$.fragment,e),be=n(e),B=p(e,"P",{"data-svelte-h":!0}),f(B)!=="svelte-17ssrfq"&&(B.textContent=Ae),_e=n(e),u(w.$$.fragment,e),ve=n(e),I=p(e,"P",{"data-svelte-h":!0}),f(I)!=="svelte-1y4i1fz"&&(I.innerHTML=Ke),we=n(e),E=p(e,"P",{"data-svelte-h":!0}),f(E)!=="svelte-6xamu4"&&(E.innerHTML=Oe),Ue=n(e),q=p(e,"UL",{"data-svelte-h":!0}),f(q)!=="svelte-7xvl4e"&&(q.innerHTML=et),$e=n(e),X=p(e,"P",{"data-svelte-h":!0}),f(X)!=="svelte-awezto"&&(X.textContent=tt),Te=n(e),u(U.$$.fragment,e),ge=n(e),u(N.$$.fragment,e),Ce=n(e),S=p(e,"P",{"data-svelte-h":!0}),f(S)!=="svelte-1y8b6l8"&&(S.textContent=lt),Je=n(e),u(Y.$$.fragment,e),Ze=n(e),Q=p(e,"P",{"data-svelte-h":!0}),f(Q)!=="svelte-fmsbbs"&&(Q.innerHTML=it),xe=n(e),F=p(e,"P",{"data-svelte-h":!0}),f(F)!=="svelte-r6ahyk"&&(F.innerHTML=st),Ge=n(e),D=p(e,"P",{"data-svelte-h":!0}),f(D)!=="svelte-pq1udh"&&(D.innerHTML=nt),je=n(e),u(z.$$.fragment,e),ke=n(e),A=p(e,"P",{"data-svelte-h":!0}),f(A)!=="svelte-17pbny5"&&(A.innerHTML=at),We=n(e),u(K.$$.fragment,e),Le=n(e),O=p(e,"P",{"data-svelte-h":!0}),f(O)!=="svelte-18o6tiw"&&(O.textContent=ot),Re=n(e),u(ee.$$.fragment,e),He=n(e),u(te.$$.fragment,e),Ve=n(e),le=p(e,"P",{}),mt(le).forEach(l),this.h()},h(){ut(a,"name","hf:doc:metadata"),ut(a,"content",gt)},m(e,t){_t(document.head,a),i(e,y,t),i(e,r,t),i(e,b,t),d(T,e,t),i(e,ie,t),i(e,g,t),i(e,se,t),i(e,C,t),i(e,ne,t),i(e,J,t),i(e,ae,t),i(e,Z,t),i(e,oe,t),i(e,x,t),i(e,pe,t),i(e,G,t),i(e,fe,t),d(v,e,t),i(e,re,t),i(e,j,t),i(e,me,t),d(k,e,t),i(e,ue,t),i(e,W,t),i(e,de,t),d(L,e,t),i(e,ce,t),i(e,R,t),i(e,he,t),d(H,e,t),i(e,Me,t),i(e,V,t),i(e,ye,t),d(P,e,t),i(e,be,t),i(e,B,t),i(e,_e,t),d(w,e,t),i(e,ve,t),i(e,I,t),i(e,we,t),i(e,E,t),i(e,Ue,t),i(e,q,t),i(e,$e,t),i(e,X,t),i(e,Te,t),d(U,e,t),i(e,ge,t),d(N,e,t),i(e,Ce,t),i(e,S,t),i(e,Je,t),d(Y,e,t),i(e,Ze,t),i(e,Q,t),i(e,xe,t),i(e,F,t),i(e,Ge,t),i(e,D,t),i(e,je,t),d(z,e,t),i(e,ke,t),i(e,A,t),i(e,We,t),d(K,e,t),i(e,Le,t),i(e,O,t),i(e,Re,t),d(ee,e,t),i(e,He,t),d(te,e,t),i(e,Ve,t),i(e,le,t),Pe=!0},p(e,[t]){const pt={};t&2&&(pt.$$scope={dirty:t,ctx:e}),v.$set(pt);const ft={};t&2&&(ft.$$scope={dirty:t,ctx:e}),w.$set(ft);const rt={};t&2&&(rt.$$scope={dirty:t,ctx:e}),U.$set(rt)},i(e){Pe||(c(T.$$.fragment,e),c(v.$$.fragment,e),c(k.$$.fragment,e),c(L.$$.fragment,e),c(H.$$.fragment,e),c(P.$$.fragment,e),c(w.$$.fragment,e),c(U.$$.fragment,e),c(N.$$.fragment,e),c(Y.$$.fragment,e),c(z.$$.fragment,e),c(K.$$.fragment,e),c(ee.$$.fragment,e),c(te.$$.fragment,e),Pe=!0)},o(e){h(T.$$.fragment,e),h(v.$$.fragment,e),h(k.$$.fragment,e),h(L.$$.fragment,e),h(H.$$.fragment,e),h(P.$$.fragment,e),h(w.$$.fragment,e),h(U.$$.fragment,e),h(N.$$.fragment,e),h(Y.$$.fragment,e),h(z.$$.fragment,e),h(K.$$.fragment,e),h(ee.$$.fragment,e),h(te.$$.fragment,e),Pe=!1},d(e){e&&(l(y),l(r),l(b),l(ie),l(g),l(se),l(C),l(ne),l(J),l(ae),l(Z),l(oe),l(x),l(pe),l(G),l(fe),l(re),l(j),l(me),l(ue),l(W),l(de),l(ce),l(R),l(he),l(Me),l(V),l(ye),l(be),l(B),l(_e),l(ve),l(I),l(we),l(E),l(Ue),l(q),l($e),l(X),l(Te),l(ge),l(Ce),l(S),l(Je),l(Ze),l(Q),l(xe),l(F),l(Ge),l(D),l(je),l(ke),l(A),l(We),l(Le),l(O),l(Re),l(He),l(Ve),l(le)),l(a),M(T,e),M(v,e),M(k,e),M(L,e),M(H,e),M(P,e),M(w,e),M(U,e),M(N,e),M(Y,e),M(z,e),M(K,e),M(ee,e),M(te,e)}}}const gt='{"title":"Working with big models","local":"working-with-big-models","sections":[{"title":"Device placement","local":"device-placement","sections":[],"depth":2}],"depth":1}';function Ct(_){return ht(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class kt extends Mt{constructor(a){super(),yt(this,a,Ct,Tt,ct,{})}}export{kt as component};

Xet Storage Details

Size:
18.6 kB
·
Xet hash:
428120129807a8c2a35fda80c0adda66084b3213c240dca2103f3bafa73a6dd0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.