import{s as aM,o as MM,n as ea}from"../chunks/scheduler.6062bdaf.js";import{S as sM,i as nM,g as n,s as M,r as J,A as iM,h as i,f as t,c as s,j as tM,u as c,x as T,k as qt,y as TM,a,v as y,d as o,t as U,w}from"../chunks/index.4bca734e.js";import{T as Kt}from"../chunks/Tip.b9ac1f03.js";import{C as I}from"../chunks/CodeBlock.fa01571c.js";import{H as j,E as JM}from"../chunks/EditOnGithub.74ab2baa.js";function cM(f){let h,m=`<a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.cached_assets_path">cached_assets_path()</a> is the recommended way to store assets but is not mandatory. If
your library already uses its own cache, feel free to use it!`;return{c(){h=n("p"),h.innerHTML=m},l(d){h=i(d,"P",{"data-svelte-h":!0}),T(h)!=="svelte-1d1cydk"&&(h.innerHTML=m)},m(d,p){a(d,h,p)},p:ea,d(d){d&&t(h)}}}function yM(f){let h,m=`Revision hashes are unique across all repositories. This means you don’t need to
provide any <code>repo_id</code> or <code>repo_type</code> when removing revisions.`;return{c(){h=n("p"),h.innerHTML=m},l(d){h=i(d,"P",{"data-svelte-h":!0}),T(h)!=="svelte-pge9b4"&&(h.innerHTML=m)},m(d,p){a(d,h,p)},p:ea,d(d){d&&t(h)}}}function oM(f){let h,m=`If a revision is not found in the cache, it will be silently ignored. Besides, if a file
or folder cannot be found while trying to delete it, a warning will be logged but no
error is thrown. The deletion continues for other paths contained in the
<a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.DeleteCacheStrategy">DeleteCacheStrategy</a> object.`;return{c(){h=n("p"),h.innerHTML=m},l(d){h=i(d,"P",{"data-svelte-h":!0}),T(h)!=="svelte-y56bqo"&&(h.innerHTML=m)},m(d,p){a(d,h,p)},p:ea,d(d){d&&t(h)}}}function UM(f){let h,m,d,p,A,cl,g,yl,Z,la=`The Hugging Face Hub cache-system is designed to be the central cache shared across libraries
that depend on the Hub. It has been updated in v0.8.0 to prevent re-downloading same files
between revisions.`,ol,Y,ta="The caching system is designed as follows:",Ul,N,wl,k,aa="The <code>&lt;CACHE_DIR&gt;</code> is usually your user’s home directory. However, it is customizable with the <code>cache_dir</code> argument on all methods, or by specifying either <code>HF_HOME</code> or <code>HF_HUB_CACHE</code> environment variable.",hl,G,Ma=`Models, datasets and spaces share a common root. Each of these repositories contains the
repository type, the namespace (organization or username) if it exists and the
repository name:`,dl,S,jl,W,sa=`It is within these folders that all files will now be downloaded from the Hub. Caching ensures that
a file isn’t downloaded twice if it already exists and wasn’t updated; but if it was updated,
and you’re asking for the latest file, then it will download the latest file (while keeping
the previous file intact in case you need it again).`,Il,$,na="In order to achieve this, all folders contain the same skeleton:",ml,L,pl,R,ia="Each folder is designed to contain the following:",fl,v,rl,B,Ta=`The <code>refs</code> folder contains files which indicates the latest revision of the given reference. For example,
if we have previously fetched a file from the <code>main</code> branch of a repository, the <code>refs</code>
folder will contain a file named <code>main</code>, which will itself contain the commit identifier of the current head.`,Cl,F,Ja="If the latest commit of <code>main</code> has <code>aaaaaa</code> as identifier, then it will contain <code>aaaaaa</code>.",ul,x,ca=`If that same branch gets updated with a new commit, that has <code>bbbbbb</code> as an identifier, then
re-downloading a file from that reference will update the <code>refs/main</code> file to contain <code>bbbbbb</code>.`,bl,D,Al,E,ya="The <code>blobs</code> folder contains the actual files that we have downloaded. The name of each file is their hash.",gl,V,Zl,Q,oa=`The <code>snapshots</code> folder contains symlinks to the blobs mentioned above. It is itself made up of several folders:
one per known revision!`,Yl,_,Ua=`In the explanation above, we had initially fetched a file from the <code>aaaaaa</code> revision, before fetching a file from
the <code>bbbbbb</code> revision. In this situation, we would now have two folders in the <code>snapshots</code> folder: <code>aaaaaa</code>
and <code>bbbbbb</code>.`,Nl,O,wa=`In each of these folders, live symlinks that have the names of the files that we have downloaded. For example,
if we had downloaded the <code>README.md</code> file at revision <code>aaaaaa</code>, we would have the following path:`,kl,z,Gl,H,ha="That <code>README.md</code> file is actually a symlink linking to the blob that has the hash of the file.",Sl,X,da=`By creating the skeleton this way we open the mechanism to file sharing: if the same file was fetched in
revision <code>bbbbbb</code>, it would have the same hash and the file would not need to be re-downloaded.`,Wl,P,$l,q,ja=`In addition to the <code>blobs</code>, <code>refs</code> and <code>snapshots</code> folders, you might also find a <code>.no_exist</code> folder
in your cache. This folder keeps track of files that you’ve tried to download once but don’t exist
on the Hub. Its structure is the same as the <code>snapshots</code> folder with 1 subfolder per known revision:`,Ll,K,Rl,ee,Ia=`Unlike the <code>snapshots</code> folder, files are simple empty files (no symlinks). In this example,
the file <code>&quot;config_that_does_not_exist.json&quot;</code> does not exist on the Hub for the revision <code>&quot;aaaaaa&quot;</code>.
As it only stores empty files, this folder is neglectable in term of disk usage.`,vl,le,ma=`So now you might wonder, why is this information even relevant?
In some cases, a framework tries to load optional files for a model. Saving the non-existence
of optional files makes it faster to load a model as it saves 1 HTTP call per possible optional file.
This is for example the case in <code>transformers</code> where each tokenizer can support additional files.
The first time you load the tokenizer on your machine, it will cache which optional files exist (and
which doesn’t) to make the loading time faster for the next initializations.`,Bl,te,pa=`To test if a file is cached locally (without making any HTTP request), you can use the <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.try_to_load_from_cache">try_to_load_from_cache()</a>
helper. It will either return the filepath (if exists and cached), the object <code>_CACHED_NO_EXIST</code> (if non-existence
is cached) or <code>None</code> (if we don’t know).`,Fl,ae,xl,Me,Dl,se,fa="In practice, your cache should look like the following tree:",El,ne,Vl,ie,Ql,Te,ra=`In order to have an efficient cache-system, <code>huggingface-hub</code> uses symlinks. However,
symlinks are not supported on all machines. This is a known limitation especially on
Windows. When this is the case, <code>huggingface_hub</code> do not use the <code>blobs/</code> directory but
directly stores the files in the <code>snapshots/</code> directory instead. This workaround allows
users to download and cache files from the Hub exactly the same way. Tools to inspect
and delete the cache (see below) are also supported. However, the cache-system is less
efficient as a single file might be downloaded several times if multiple revisions of
the same repo is downloaded.`,_l,Je,Ca=`If you want to benefit from the symlink-based cache-system on a Windows machine, you
either need to <a href="https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development" rel="nofollow">activate Developer Mode</a>
or to run Python as an administrator.`,Ol,ce,ua=`When symlinks are not supported, a warning message is displayed to the user to alert
them they are using a degraded version of the cache-system. This warning can be disabled
by setting the <code>HF_HUB_DISABLE_SYMLINKS_WARNING</code> environment variable to true.`,zl,ye,Hl,oe,ba=`In addition to caching files from the Hub, downstream libraries often requires to cache
other files related to HF but not handled directly by <code>huggingface_hub</code> (example: file
downloaded from GitHub, preprocessed data, logs,…). In order to cache those files,
called <code>assets</code>, one can use <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.cached_assets_path">cached_assets_path()</a>. This small helper generates paths
in the HF cache in a unified way based on the name of the library requesting it and
optionally on a namespace and a subfolder name. The goal is to let every downstream
libraries manage its assets its own way (e.g. no rule on the structure) as long as it
stays in the right assets folder. Those libraries can then leverage tools from
<code>huggingface_hub</code> to manage the cache, in particular scanning and deleting parts of the
assets from a CLI command.`,Xl,Ue,Pl,r,ql,we,Kl,he,Aa="In practice, your assets cache should look like the following tree:",et,de,lt,je,tt,Ie,ga=`At the moment, cached files are never deleted from your local directory: when you download
a new revision of a branch, previous files are kept in case you need them again.
Therefore it can be useful to scan your cache directory in order to know which repos
and revisions are taking the most disk space. <code>huggingface_hub</code> provides an helper to
do so that can be used via <code>huggingface-cli</code> or in a python script.`,at,me,Mt,pe,Za=`The easiest way to scan your HF cache-system is to use the <code>scan-cache</code> command from
<code>huggingface-cli</code> tool. This command scans the cache and prints a report with information
like repo id, repo type, disk usage, refs and full local path.`,st,fe,Ya=`The snippet below shows a scan report in a folder in which 4 models and 2 datasets are
cached.`,nt,re,it,Ce,Na=`To get a more detailed report, use the <code>--verbose</code> option. For each repo, you get a
list of all revisions that have been downloaded. As explained above, the files that don’t
change between 2 revisions are shared thanks to the symlinks. This means that the size of
the repo on disk is expected to be less than the sum of the size of each of its revisions.
For example, here <code>bert-base-cased</code> has 2 revisions of 1.4G and 1.5G but the total disk
usage is only 1.9G.`,Tt,ue,Jt,be,ct,Ae,ka=`Since the output is in tabular format, you can combine it with any <code>grep</code>-like tools to
filter the entries. Here is an example to filter only revisions from the “t5-small”
model on a Unix-based machine.`,yt,ge,ot,Ze,Ut,Ye,Ga=`For a more advanced usage, use <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.scan_cache_dir">scan_cache_dir()</a> which is the python utility called by
the CLI tool.`,wt,Ne,Sa="You can use it to get a detailed report structured around 4 dataclasses:",ht,ke,Wa='<li><a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.HFCacheInfo">HFCacheInfo</a>: complete report returned by <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.scan_cache_dir">scan_cache_dir()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.CachedRepoInfo">CachedRepoInfo</a>: information about a cached repo</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.CachedRevisionInfo">CachedRevisionInfo</a>: information about a cached revision (e.g. “snapshot”) inside a repo</li> <li><a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.CachedFileInfo">CachedFileInfo</a>: information about a cached file in a snapshot</li>',dt,Ge,$a="Here is a simple usage example. See reference for details.",jt,Se,It,We,mt,$e,La=`Scanning your cache is interesting but what you really want to do next is usually to
delete some portions to free up some space on your drive. This is possible using the
<code>delete-cache</code> CLI command. One can also programmatically use the
<a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.HFCacheInfo.delete_revisions">delete_revisions()</a> helper from <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.HFCacheInfo">HFCacheInfo</a> object returned when
scanning the cache.`,pt,Le,ft,Re,Ra=`To delete some cache, you need to pass a list of revisions to delete. The tool will
define a strategy to free up the space based on this list. It returns a
<a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.DeleteCacheStrategy">DeleteCacheStrategy</a> object that describes which files and folders will be deleted.
The <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.DeleteCacheStrategy">DeleteCacheStrategy</a> allows give you how much space is expected to be freed.
Once you agree with the deletion, you must execute it to make the deletion effective. In
order to avoid discrepancies, you cannot edit a strategy object manually.`,rt,ve,va="The strategy to delete revisions is the following:",Ct,Be,Ba="<li>the <code>snapshot</code> folder containing the revision symlinks is deleted.</li> <li>blobs files that are targeted only by revisions to be deleted are deleted as well.</li> <li>if a revision is linked to 1 or more <code>refs</code>, references are deleted.</li> <li>if all revisions from a repo are deleted, the entire cached repository is deleted.</li>",ut,C,bt,u,At,Fe,gt,xe,Fa=`The easiest way to delete some revisions from your HF cache-system is to use the
<code>delete-cache</code> command from <code>huggingface-cli</code> tool. The command has two modes. By
default, a TUI (Terminal User Interface) is displayed to the user to select which
revisions to delete. This TUI is currently in beta as it has not been tested on all
platforms. If the TUI doesn’t work on your machine, you can disable it using the
<code>--disable-tui</code> flag.`,Zt,De,Yt,Ee,xa=`This is the default mode. To use it, you first need to install extra dependencies by
running the following command:`,Nt,Ve,kt,Qe,Da="Then run the command:",Gt,_e,St,Oe,Ea="You should now see a list of revisions that you can select/deselect:",Wt,b,Va='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/delete-cache-tui.png"/>',$t,ze,Qa="Instructions:",Lt,He,_a=`<li>Press keyboard arrow keys <code>&lt;up&gt;</code> and <code>&lt;down&gt;</code> to move the cursor.</li> <li>Press <code>&lt;space&gt;</code> to toggle (select/unselect) an item.</li> <li>When a revision is selected, the first line is updated to show you how much space
will be freed.</li> <li>Press <code>&lt;enter&gt;</code> to confirm your selection.</li> <li>If you want to cancel the operation and quit, you can select the first item
(“None of the following”). If this item is selected, the delete process will be
cancelled, no matter what other items are selected. Otherwise you can also press
<code>&lt;ctrl+c&gt;</code> to quit the TUI.</li>`,Rt,Xe,Oa=`Once you’ve selected the revisions you want to delete and pressed <code>&lt;enter&gt;</code>, a last
confirmation message will be prompted. Press <code>&lt;enter&gt;</code> again and the deletion will be
effective. If you want to cancel, enter <code>n</code>.`,vt,Pe,Bt,qe,Ft,Ke,za=`As mentioned above, the TUI mode is currently in beta and is optional. It may be the
case that it doesn’t work on your machine or that you don’t find it convenient.`,xt,el,Ha=`Another approach is to use the <code>--disable-tui</code> flag. The process is very similar as you
will be asked to manually review the list of revisions to delete. However, this manual
step will not take place in the terminal directly but in a temporary file generated on
the fly and that you can manually edit.`,Dt,ll,Xa=`This file has all the instructions you need in the header. Open it in your favorite text
editor. To select/deselect a revision, simply comment/uncomment it with a <code>#</code>. Once the
manual review is done and the file is edited, you can save it. Go back to your terminal
and press <code>&lt;enter&gt;</code>. By default it will compute how much space would be freed with the
updated list of revisions. You can continue to edit the file or confirm with <code>&quot;y&quot;</code>.`,Et,tl,Vt,al,Pa="Example of command file:",Qt,Ml,_t,sl,Ot,nl,qa=`For more flexibility, you can also use the <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.HFCacheInfo.delete_revisions">delete_revisions()</a> method
programmatically. Here is a simple example. See reference for details.`,zt,il,Ht,Tl,Xt,Jl,Pt;return A=new j({props:{title:"Manage huggingface_hub cache-system",local:"manage-huggingfacehub-cache-system",headingTag:"h1"}}),g=new j({props:{title:"Understand caching",local:"understand-caching",headingTag:"h2"}}),N=new I({props:{code:"JTNDQ0FDSEVfRElSJTNFJTBBJUUyJTk0JTlDJUUyJTk0JTgwJTIwJTNDTU9ERUxTJTNFJTBBJUUyJTk0JTlDJUUyJTk0JTgwJTIwJTNDREFUQVNFVFMlM0UlMEElRTIlOTQlOUMlRTIlOTQlODAlMjAlM0NTUEFDRVMlM0U=",highlighted:`<span class="hljs-tag">&lt;<span class="hljs-name">CACHE_DIR</span>&gt;</span>
├─ <span class="hljs-tag">&lt;<span class="hljs-name">MODELS</span>&gt;</span>
├─ <span class="hljs-tag">&lt;<span class="hljs-name">DATASETS</span>&gt;</span>
├─ <span class="hljs-tag">&lt;<span class="hljs-name">SPACES</span>&gt;</span>`,wrap:!1}}),S=new I({props:{code:"JTNDQ0FDSEVfRElSJTNFJTBBJUUyJTk0JTlDJUUyJTk0JTgwJTIwbW9kZWxzLS1qdWxpZW4tYy0tRXNwZXJCRVJUby1zbWFsbCUwQSVFMiU5NCU5QyVFMiU5NCU4MCUyMG1vZGVscy0tbHlzYW5kcmVqaWstLWFyeGl2LW5scCUwQSVFMiU5NCU5QyVFMiU5NCU4MCUyMG1vZGVscy0tYmVydC1iYXNlLWNhc2VkJTBBJUUyJTk0JTlDJUUyJTk0JTgwJTIwZGF0YXNldHMtLWdsdWUlMEElRTIlOTQlOUMlRTIlOTQlODAlMjBkYXRhc2V0cy0taHVnZ2luZ2ZhY2UtLURhdGFNZWFzdXJlbWVudHNGaWxlcyUwQSVFMiU5NCU5QyVFMiU5NCU4MCUyMHNwYWNlcy0tZGFsbGUtbWluaS0tZGFsbGUtbWluaQ==",highlighted:`&lt;<span class="hljs-comment">CACHE_DIR</span>&gt;
<span class="hljs-comment">├─ models</span><span class="hljs-literal">--</span><span class="hljs-comment">julien</span><span class="hljs-literal">-</span><span class="hljs-comment">c</span><span class="hljs-literal">--</span><span class="hljs-comment">EsperBERTo</span><span class="hljs-literal">-</span><span class="hljs-comment">small</span>
<span class="hljs-comment">├─ models</span><span class="hljs-literal">--</span><span class="hljs-comment">lysandrejik</span><span class="hljs-literal">--</span><span class="hljs-comment">arxiv</span><span class="hljs-literal">-</span><span class="hljs-comment">nlp</span>
<span class="hljs-comment">├─ models</span><span class="hljs-literal">--</span><span class="hljs-comment">bert</span><span class="hljs-literal">-</span><span class="hljs-comment">base</span><span class="hljs-literal">-</span><span class="hljs-comment">cased</span>
<span class="hljs-comment">├─ datasets</span><span class="hljs-literal">--</span><span class="hljs-comment">glue</span>
<span class="hljs-comment">├─ datasets</span><span class="hljs-literal">--</span><span class="hljs-comment">huggingface</span><span class="hljs-literal">--</span><span class="hljs-comment">DataMeasurementsFiles</span>
<span class="hljs-comment">├─ spaces</span><span class="hljs-literal">--</span><span class="hljs-comment">dalle</span><span class="hljs-literal">-</span><span class="hljs-comment">mini</span><span class="hljs-literal">--</span><span class="hljs-comment">dalle</span><span class="hljs-literal">-</span><span class="hljs-comment">mini</span>`,wrap:!1}}),L=new I({props:{code:"JTNDQ0FDSEVfRElSJTNFJTBBJUUyJTk0JTlDJUUyJTk0JTgwJTIwZGF0YXNldHMtLWdsdWUlMEElRTIlOTQlODIlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlMjByZWZzJTBBJUUyJTk0JTgyJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJTIwYmxvYnMlMEElRTIlOTQlODIlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlMjBzbmFwc2hvdHMlMEEuLi4=",highlighted:`&lt;CACHE_DIR&gt;
├─ datasets<span class="hljs-params">--glue</span>
│  ├─ refs
│  ├─ blobs
│  ├─ snapshots
<span class="hljs-string">...</span>`,wrap:!1}}),v=new j({props:{title:"Refs",local:"refs",headingTag:"h3"}}),D=new j({props:{title:"Blobs",local:"blobs",headingTag:"h3"}}),V=new j({props:{title:"Snapshots",local:"snapshots",headingTag:"h3"}}),z=new I({props:{code:"JTNDQ0FDSEVfRElSJTNFJTJGJTNDUkVQT19OQU1FJTNFJTJGc25hcHNob3RzJTJGYWFhYWFhJTJGUkVBRE1FLm1k",highlighted:'&lt;CACHE_DIR&gt;<span class="hljs-regexp">/&lt;REPO_NAME&gt;/</span>snapshots<span class="hljs-regexp">/aaaaaa/</span>README.md',wrap:!1}}),P=new j({props:{title:".no_exist (advanced)",local:"noexist-advanced",headingTag:"h3"}}),K=new I({props:{code:"JTNDQ0FDSEVfRElSJTNFJTJGJTNDUkVQT19OQU1FJTNFJTJGLm5vX2V4aXN0JTJGYWFhYWFhJTJGY29uZmlnX3RoYXRfZG9lc19ub3RfZXhpc3QuanNvbg==",highlighted:'&lt;CACHE_DIR&gt;<span class="hljs-regexp">/&lt;REPO_NAME&gt;/</span>.no_exist<span class="hljs-regexp">/aaaaaa/</span>config_that_does_not_exist.json',wrap:!1}}),ae=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHRyeV90b19sb2FkX2Zyb21fY2FjaGUlMkMlMjBfQ0FDSEVEX05PX0VYSVNUJTBBJTBBZmlsZXBhdGglMjAlM0QlMjB0cnlfdG9fbG9hZF9mcm9tX2NhY2hlKCklMEFpZiUyMGlzaW5zdGFuY2UoZmlsZXBhdGglMkMlMjBzdHIpJTNBJTBBJTIwJTIwJTIwJTIwJTIzJTIwZmlsZSUyMGV4aXN0cyUyMGFuZCUyMGlzJTIwY2FjaGVkJTBBJTIwJTIwJTIwJTIwLi4uJTBBZWxpZiUyMGZpbGVwYXRoJTIwaXMlMjBfQ0FDSEVEX05PX0VYSVNUJTNBJTBBJTIwJTIwJTIwJTIwJTIzJTIwbm9uLWV4aXN0ZW5jZSUyMG9mJTIwZmlsZSUyMGlzJTIwY2FjaGVkJTBBJTIwJTIwJTIwJTIwLi4uJTBBZWxzZSUzQSUwQSUyMCUyMCUyMCUyMCUyMyUyMGZpbGUlMjBpcyUyMG5vdCUyMGNhY2hlZCUwQSUyMCUyMCUyMCUyMC4uLg==",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> try_to_load_from_cache, _CACHED_NO_EXIST

filepath = try_to_load_from_cache()
<span class="hljs-keyword">if</span> <span class="hljs-built_in">isinstance</span>(filepath, <span class="hljs-built_in">str</span>):
    <span class="hljs-comment"># file exists and is cached</span>
    ...
<span class="hljs-keyword">elif</span> filepath <span class="hljs-keyword">is</span> _CACHED_NO_EXIST:
    <span class="hljs-comment"># non-existence of file is cached</span>
    ...
<span class="hljs-keyword">else</span>:
    <span class="hljs-comment"># file is not cached</span>
    ...`,wrap:!1}}),Me=new j({props:{title:"In practice",local:"in-practice",headingTag:"h3"}}),ne=new I({props:{code:"JTIwJTIwJTIwJTIwJTVCJTIwJTIwOTYlNUQlMjAlMjAuJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0J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QlODAlRTIlOTQlODAlMjAlNUIlMjAlMjA1MiU1RCUyMCUyMFJFQURNRS5tZCUyMC0lM0UlMjAuLiUyRi4uJTJGYmxvYnMlMkY3Y2IxOGRjOWJhZmJmY2Y3NDYyOWE0Yjc2MGFmMWIxNjA5NTdhODNlJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwJTVCJTIwJTIwNzYlNUQlMjAlMjBweXRvcmNoX21vZGVsLmJpbiUyMC0lM0UlMjAuLiUyRi4uJTJGYmxvYnMlMkY0MDM0NTBlMjM0ZDY1OTQzYTdkY2Y3ZTA1YTc3MWNlM2M5MmZhYTg0ZGQwN2RiNGFjMjBmNTkyMDM3YTFlNGJk",highlighted:`    [  96]  .
    └── [ 160]  models--julien-c--EsperBERTo-small
        ├── [ 160]  blobs
        │   ├── [321M]  403450e234d65943a7dcf7e05a771ce3c92faa84dd07db4ac20f592037a1e4bd
        │   ├── [ 398]  7cb18dc9bafbfcf74629a4b760af1b160957a83e
        │   └── [1.4K]  d7edf6bd2a681fb0175f7735299831ee1b22b812
        ├── [  96]  refs
        │   └── [  40]  main
        └── [ 128]  snapshots
            ├── [ 128]  2439f60ef33a0d46d85da5001d52aeda5b00ce9f
            │   ├── [  52]  README.md -&gt; ../../blobs/d7edf6bd2a681fb0175f7735299831ee1b22b812
            │   └── [  76]  pytorch_model.bin -&gt; ../../blobs/403450e234d65943a7dcf7e05a771ce3c92faa84dd07db4ac20f592037a1e4bd
            └── [ 128]  bbc77c8132af1cc5cf678da3f1ddf2de43606d48
                ├── [  52]  README.md -&gt; ../../blobs/7cb18dc9bafbfcf74629a4b760af1b160957a83e
                └── [  76]  pytorch_model.bin -&gt; ../../blobs/403450e234d65943a7dcf7e05a771ce3c92faa84dd07db4ac20f592037a1e4bd`,wrap:!1}}),ie=new j({props:{title:"Limitations",local:"limitations",headingTag:"h3"}}),ye=new j({props:{title:"Caching assets",local:"caching-assets",headingTag:"h2"}}),Ue=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNhY2hlZF9hc3NldHNfcGF0aCUwQSUwQWFzc2V0c19wYXRoJTIwJTNEJTIwY2FjaGVkX2Fzc2V0c19wYXRoKGxpYnJhcnlfbmFtZSUzRCUyMmRhdGFzZXRzJTIyJTJDJTIwbmFtZXNwYWNlJTNEJTIyU1F1QUQlMjIlMkMlMjBzdWJmb2xkZXIlM0QlMjJkb3dubG9hZCUyMiklMEFzb21ldGhpbmdfcGF0aCUyMCUzRCUyMGFzc2V0c19wYXRoJTIwJTJGJTIwJTIyc29tZXRoaW5nLmpzb24lMjIlMjAlMjMlMjBEbyUyMGFueXRoaW5nJTIweW91JTIwbGlrZSUyMGluJTIweW91ciUyMGFzc2V0cyUyMGZvbGRlciUyMCE=",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> cached_assets_path

assets_path = cached_assets_path(library_name=<span class="hljs-string">&quot;datasets&quot;</span>, namespace=<span class="hljs-string">&quot;SQuAD&quot;</span>, subfolder=<span class="hljs-string">&quot;download&quot;</span>)
something_path = assets_path / <span class="hljs-string">&quot;something.json&quot;</span> <span class="hljs-comment"># Do anything you like in your assets folder !</span>`,wrap:!1}}),r=new Kt({props:{$$slots:{default:[cM]},$$scope:{ctx:f}}}),we=new j({props:{title:"Assets in practice",local:"assets-in-practice",headingTag:"h3"}}),de=new I({props:{code:"JTIwJTIwJTIwJTIwYXNzZXRzJTJGJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwZGF0YXNldHMlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjBTUXVBRCUyRiUwQSUyMCUyMCUyMCUyMCVFMiU5NCU4MiUyMC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OTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAxMjglNUQlMjAlMjBzbmFwc2hvdHMlMkYlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyNDM5ZjYwZWYzM2EwZDQ2ZDg1ZGE1MDAxZDUyYWVkYTViMDBjZTlmJTJGJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwKC4uLiklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBiYmM3N2M4MTMyYWYxY2M1Y2Y2NzhkYTNmMWRkZjJkZTQzNjA2ZDQ4JTJGJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwKC4uLik=",highlighted:`    assets/
    └── datasets/
    │   ├── SQuAD/
    │   │   ├── downloaded/
    │   │   ├── extracted/
    │   │   └── processed/
    │   ├── Helsinki-NLP--tatoeba_mt/
    │       ├── downloaded/
    │       ├── extracted/
    │       └── processed/
    └── transformers/
        ├── default/
        │   ├── something/
        ├── bert-base-cased/
        │   ├── default/
        │   └── training/
    hub/
    └── models--julien-c--EsperBERTo-small/
        ├── blobs/
        │   ├── (...)
        │   ├── (...)
        ├── refs/
        │   └── (...)
        └── [ 128]  snapshots/
            ├── 2439f60ef33a0d46d85da5001d52aeda5b00ce9f/
            │   ├── (...)
            └── bbc77c8132af1cc5cf678da3f1ddf2de43606d48/
                └── (...)`,wrap:!1}}),je=new j({props:{title:"Scan your cache",local:"scan-your-cache",headingTag:"h2"}}),me=new j({props:{title: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MHJlcG8ocyklMjBmb3IlMjBhJTIwdG90YWwlMjBvZiUyMDMuNEcuJTBBR290JTIwMSUyMHdhcm5pbmcocyklMjB3aGlsZSUyMHNjYW5uaW5nLiUyMFVzZSUyMC12dnYlMjB0byUyMHByaW50JTIwZGV0YWlscy4=",highlighted:`➜ huggingface-cli scan-cache
REPO ID                     REPO TYPE SIZE ON DISK NB FILES LAST_ACCESSED LAST_MODIFIED REFS                LOCAL PATH
--------------------------- --------- ------------ -------- ------------- ------------- ------------------- -------------------------------------------------------------------------
glue                        dataset         116.3K       15 4 days ago    4 days ago    2.4.0, main, 1.17.0 /home/wauplin/.cache/huggingface/hub/datasets--glue
google/fleurs               dataset          64.9M        6 1 week ago    1 week ago    refs/pr/1, main     /home/wauplin/.cache/huggingface/hub/datasets--google--fleurs
Jean-Baptiste/camembert-ner model           441.0M        7 2 weeks ago   16 hours ago  main                /home/wauplin/.cache/huggingface/hub/models--Jean-Baptiste--camembert-ner
bert-base-cased             model             1.9G       13 1 week ago    2 years ago                       /home/wauplin/.cache/huggingface/hub/models--bert-base-cased
t5-base                     model            10.1K        3 3 months ago  3 months ago  main                /home/wauplin/.cache/huggingface/hub/models--t5-base
t5-small                    model           970.7M       11 3 days ago    3 days ago    refs/pr/1, main     /home/wauplin/.cache/huggingface/hub/models--t5-small

Done in 0.0s. Scanned 6 repo(s) for a total of 3.4G.
Got 1 warning(s) while scanning. Use -vvv to print details.`,wrap:!1}}),ue=new I({props:{code:" ",highlighted:`➜ huggingface-cli scan-cache -v
REPO ID                     REPO TYPE REVISION                                 SIZE ON DISK NB FILES LAST_MODIFIED REFS        LOCAL PATH
--------------------------- --------- ---------------------------------------- ------------ -------- ------------- ----------- ----------------------------------------------------------------------------------------------------------------------------
glue                        dataset   9338f7b671827df886678df2bdd7cc7b4f36dffd        97.7K       14 4 days ago    main, 2.4.0 /home/wauplin/.cache/huggingface/hub/datasets--glue/snapshots/9338f7b671827df886678df2bdd7cc7b4f36dffd
glue                        dataset   f021ae41c879fcabcf823648ec685e3fead91fe7        97.8K       14 1 week ago    1.17.0      /home/wauplin/.cache/huggingface/hub/datasets--glue/snapshots/f021ae41c879fcabcf823648ec685e3fead91fe7
google/fleurs               dataset   129b6e96cf1967cd5d2b9b6aec75ce6cce7c89e8        25.4K        3 2 weeks ago   refs/pr/1   /home/wauplin/.cache/huggingface/hub/datasets--google--fleurs/snapshots/129b6e96cf1967cd5d2b9b6aec75ce6cce7c89e8
google/fleurs               dataset   24f85a01eb955224ca3946e70050869c56446805        64.9M        4 1 week ago    main        /home/wauplin/.cache/huggingface/hub/datasets--google--fleurs/snapshots/24f85a01eb955224ca3946e70050869c56446805
Jean-Baptiste/camembert-ner model     dbec8489a1c44ecad9da8a9185115bccabd799fe       441.0M        7 16 hours ago  main        /home/wauplin/.cache/huggingface/hub/models--Jean-Baptiste--camembert-ner/snapshots/dbec8489a1c44ecad9da8a9185115bccabd799fe
bert-base-cased             model     378aa1bda6387fd00e824948ebe3488630ad8565         1.5G        9 2 years ago               /home/wauplin/.cache/huggingface/hub/models--bert-base-cased/snapshots/378aa1bda6387fd00e824948ebe3488630ad8565
bert-base-cased             model     a8d257ba9925ef39f3036bfc338acf5283c512d9         1.4G        9 3 days ago    main        /home/wauplin/.cache/huggingface/hub/models--bert-base-cased/snapshots/a8d257ba9925ef39f3036bfc338acf5283c512d9
t5-base                     model     23aa4f41cb7c08d4b05c8f327b22bfa0eb8c7ad9        10.1K        3 1 week ago    main        /home/wauplin/.cache/huggingface/hub/models--t5-base/snapshots/23aa4f41cb7c08d4b05c8f327b22bfa0eb8c7ad9
t5-small                    model     98ffebbb27340ec1b1abd7c45da12c253ee1882a       726.2M        6 1 week ago    refs/pr/1   /home/wauplin/.cache/huggingface/hub/models--t5-small/snapshots/98ffebbb27340ec1b1abd7c45da12c253ee1882a
t5-small                    model     d0a119eedb3718e34c648e594394474cf95e0617       485.8M        6 4 weeks ago               /home/wauplin/.cache/huggingface/hub/models--t5-small/snapshots/d0a119eedb3718e34c648e594394474cf95e0617
t5-small                    model     d78aea13fa7ecd06c29e3e46195d6341255065d5       970.7M        9 1 week ago    main        /home/wauplin/.cache/huggingface/hub/models--t5-small/snapshots/d78aea13fa7ecd06c29e3e46195d6341255065d5

Done in 0.0s. Scanned 6 repo(s) for a total of 3.4G.
Got 1 warning(s) while scanning. Use -vvv to print details.`,wrap:!1}}),be=new j({props:{title:"Grep example",local:"grep-example",headingTag:"h4"}}),ge=new I({props:{code:"JUUyJTlFJTlDJTIwZXZhbCUyMCUyMmh1Z2dpbmdmYWNlLWNsaSUyMHNjYW4tY2FjaGUlMjAtdiUyMiUyMCU3QyUyMGdyZXAlMjAlMjJ0NS1zbWFsbCUyMiUwQXQ1LXNtYWxsJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbW9kZWwlMjAlMjAlMjAlMjAlMjA5OGZmZWJiYjI3MzQwZWMxYjFhYmQ3YzQ1ZGExMmMyNTNlZTE4ODJhJTIwJTIwJTIwJTIwJTIwJTIwJTIwNzI2LjJNJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwNiUyMDElMjB3ZWVrJTIwYWdvJTIwJTIwJTIwJTIwcmVmcyUyRnByJTJGMSUyMCUyMCUyMCUyRmhvbWUlMkZ3YXVwbGluJTJGLmNhY2hlJTJGaHVnZ2luZ2ZhY2UlMkZodWIlMkZtb2RlbHMtLXQ1LXNtYWxsJTJGc25hcHNob3RzJTJGOThmZmViYmIyNzM0MGVjMWIxYWJkN2M0NWRhMTJjMjUzZWUxODgyYSUwQXQ1LXNtYWxsJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbW9kZWwlMjAlMjAlMjAlMjAlMjBkMGExMTllZWRiMzcxOGUzNGM2NDhlNTk0Mzk0NDc0Y2Y5NWUwNjE3JTIwJTIwJTIwJTIwJTIwJTIwJTIwNDg1LjhNJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwNiUyMDQlMjB3ZWVrcyUyMGFnbyUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyRmhvbWUlMkZ3YXVwbGluJTJGLmNhY2hlJTJGaHVnZ2luZ2ZhY2UlMkZodWIlMkZtb2RlbHMtLXQ1LXNtYWxsJTJGc25hcHNob3RzJTJGZDBhMTE5ZWVkYjM3MThlMzRjNjQ4ZTU5NDM5NDQ3NGNmOTVlMDYxNyUwQXQ1LXNtYWxsJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbW9kZWwlMjAlMjAlMjAlMjAlMjBkNzhhZWExM2ZhN2VjZDA2YzI5ZTNlNDYxOTVkNjM0MTI1NTA2NWQ1JTIwJTIwJTIwJTIwJTIwJTIwJTIwOTcwLjdNJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwOSUyMDElMjB3ZWVrJTIwYWdvJTIwJTIwJTIwJTIwbWFpbiUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyRmhvbWUlMkZ3YXVwbGluJTJGLmNhY2hlJTJGaHVnZ2luZ2ZhY2UlMkZodWIlMkZtb2RlbHMtLXQ1LXNtYWxsJTJGc25hcHNob3RzJTJGZDc4YWVhMTNmYTdlY2QwNmMyOWUzZTQ2MTk1ZDYzNDEyNTUwNjVkNQ==",highlighted:`➜ eval &quot;huggingface-cli scan-cache -v&quot; | grep &quot;t5-small&quot;
t5-small                    model     98ffebbb27340ec1b1abd7c45da12c253ee1882a       726.2M        6 1 week ago    refs/pr/1   /home/wauplin/.cache/huggingface/hub/models--t5-small/snapshots/98ffebbb27340ec1b1abd7c45da12c253ee1882a
t5-small                    model     d0a119eedb3718e34c648e594394474cf95e0617       485.8M        6 4 weeks ago               /home/wauplin/.cache/huggingface/hub/models--t5-small/snapshots/d0a119eedb3718e34c648e594394474cf95e0617
t5-small                    model     d78aea13fa7ecd06c29e3e46195d6341255065d5       970.7M        9 1 week ago    main        /home/wauplin/.cache/huggingface/hub/models--t5-small/snapshots/d78aea13fa7ecd06c29e3e46195d6341255065d5`,wrap:!1}}),Ze=new j({props:{title:"Scan cache from Python",local:"scan-cache-from-python",headingTag:"h3"}}),Se=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHNjYW5fY2FjaGVfZGlyJTBBJTBBaGZfY2FjaGVfaW5mbyUyMCUzRCUyMHNjYW5fY2FjaGVfZGlyKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> scan_cache_dir

<span class="hljs-meta">&gt;&gt;&gt; </span>hf_cache_info = scan_cache_dir()
HFCacheInfo(
    size_on_disk=<span class="hljs-number">3398085269</span>,
    repos=<span class="hljs-built_in">frozenset</span>({
        CachedRepoInfo(
            repo_id=<span class="hljs-string">&#x27;t5-small&#x27;</span>,
            repo_type=<span class="hljs-string">&#x27;model&#x27;</span>,
            repo_path=PosixPath(...),
            size_on_disk=<span class="hljs-number">970726914</span>,
            nb_files=<span class="hljs-number">11</span>,
            last_accessed=<span class="hljs-number">1662971707.3567169</span>,
            last_modified=<span class="hljs-number">1662971107.3567169</span>,
            revisions=<span class="hljs-built_in">frozenset</span>({
                CachedRevisionInfo(
                    commit_hash=<span class="hljs-string">&#x27;d78aea13fa7ecd06c29e3e46195d6341255065d5&#x27;</span>,
                    size_on_disk=<span class="hljs-number">970726339</span>,
                    snapshot_path=PosixPath(...),
                    <span class="hljs-comment"># No \`last_accessed\` as blobs are shared among revisions</span>
                    last_modified=<span class="hljs-number">1662971107.3567169</span>,
                    files=<span class="hljs-built_in">frozenset</span>({
                        CachedFileInfo(
                            file_name=<span class="hljs-string">&#x27;config.json&#x27;</span>,
                            size_on_disk=<span class="hljs-number">1197</span>
                            file_path=PosixPath(...),
                            blob_path=PosixPath(...),
                            blob_last_accessed=<span class="hljs-number">1662971707.3567169</span>,
                            blob_last_modified=<span class="hljs-number">1662971107.3567169</span>,
                        ),
                        CachedFileInfo(...),
                        ...
                    }),
                ),
                CachedRevisionInfo(...),
                ...
            }),
        ),
        CachedRepoInfo(...),
        ...
    }),
    warnings=[
        CorruptedCacheException(<span class="hljs-string">&quot;Snapshots dir doesn&#x27;t exist in cached repo: ...&quot;</span>),
        CorruptedCacheException(...),
        ...
    ],
)`,wrap:!1}}),We=new j({props:{title:"Clean your cache",local:"clean-your-cache",headingTag:"h2"}}),Le=new j({props:{title:"Delete strategy",local:"delete-strategy",headingTag:"h3"}}),C=new Kt({props:{$$slots:{default:[yM]},$$scope:{ctx:f}}}),u=new Kt({props:{warning:!0,$$slots:{default:[oM]},$$scope:{ctx:f}}}),Fe=new j({props:{title:"Clean cache from the terminal",local:"clean-cache-from-the-terminal",headingTag:"h3"}}),De=new j({props:{title:"Using the TUI",local:"using-the-tui",headingTag:"h4"}}),Ve=new I({props:{code:"cGlwJTIwaW5zdGFsbCUyMGh1Z2dpbmdmYWNlX2h1YiU1QiUyMmNsaSUyMiU1RA==",highlighted:'pip <span class="hljs-keyword">install</span> huggingface_hub[<span class="hljs-string">&quot;cli&quot;</span>]',wrap:!1}}),_e=new I({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwZGVsZXRlLWNhY2hl",highlighted:'huggingface-cli <span class="hljs-keyword">delete</span>-<span class="hljs-keyword">cache</span>',wrap:!1}}),Pe=new I({props:{code:"JUUyJTlDJTk3JTIwaHVnZ2luZ2ZhY2UtY2xpJTIwZGVsZXRlLWNhY2hlJTIwLS1kaXIlMjB+JTJGLmNhY2hlJTJGaHVnZ2luZ2ZhY2UlMkZodWIlMEElM0YlMjBTZWxlY3QlMjByZXZpc2lvbnMlMjB0byUyMGRlbGV0ZSUzQSUyMDIlMjByZXZpc2lvbihzKSUyMHNlbGVjdGVkLiUwQSUzRiUyMDIlMjByZXZpc2lvbnMlMjBzZWxlY3RlZCUyMGNvdW50aW5nJTIwZm9yJTIwMy4xRy4lMjBDb25maXJtJTIwZGVsZXRpb24lMjAlM0YlMjBZZXMlMEFTdGFydCUyMGRlbGV0aW9uLiUwQURvbmUuJTIwRGVsZXRlZCUyMDElMjByZXBvKHMpJTIwYW5kJTIwMCUyMHJldmlzaW9uKHMpJTIwZm9yJTIwYSUyMHRvdGFsJTIwb2YlMjAzLjFHLg==",highlighted:`✗ huggingface-cli delete-cache --dir ~/.cache/huggingface/hub
? Select revisions to delete: 2 revision(s) selected.
? 2 revisions selected counting for 3.1G. Confirm deletion ? Yes
Start deletion.
Done. Deleted 1 repo(s) and 0 revision(s) for a total of 3.1G.`,wrap:!1}}),qe=new j({props:{title:"Without TUI",local:"without-tui",headingTag:"h4"}}),tl=new I({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwZGVsZXRlLWNhY2hlJTIwLS1kaXNhYmxlLXR1aQ==",highlighted:"huggingface-cli delete-cache --disable-tui",wrap:!1}}),Ml=new I({props:{code:"JTIzJTIwSU5TVFJVQ1RJT05TJTBBJTIzJTIwLS0tLS0tLS0tLS0tJTBBJTIzJTIwVGhpcyUyMGlzJTIwYSUyMHRlbXBvcmFyeSUyMGZpbGUlMjBjcmVhdGVkJTIwYnklMjBydW5uaW5nJTIwJTYwaHVnZ2luZ2ZhY2UtY2xpJTIwZGVsZXRlLWNhY2hlJTYwJTIwd2l0aCUyMHRoZSUwQSUyMyUyMCU2MC0tZGlzYWJsZS10dWklNjAlMjBvcHRpb24uJTIwSXQlMjBjb250YWlucyUyMGElMjBzZXQlMjBvZiUyMHJldmlzaW9ucyUyMHRoYXQlMjBjYW4lMjBiZSUyMGRlbGV0ZWQlMjBmcm9tJTIweW91ciUwQSUyMyUyMGxvY2FsJTIwY2FjaGUlMjBkaXJlY3RvcnkuJTBBJTIzJTBBJTIzJTIwUGxlYXNlJTIwbWFudWFsbHklMjByZXZpZ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CUyMDUlMjBkYXlzJTIwYWdvKSUwQSUyMyUyMCUyMCUyMCUyMDljZmE1NjQ3YjMyYzBhMzBkMGFkZmNhMDZiZjE5OGQ4MjE5MmEwZDElMjAlMjMlMjBSZWZzJTNBJTIwbWFpbiUyMCUyMyUyMG1vZGlmaWVkJTIwNSUyMGRheXMlMjBhZ28=",highlighted:`# INSTRUCTIONS
# ------------
# This is a temporary file created by running \`huggingface-cli delete-cache\` with the
# \`--disable-tui\` option. It contains a set of revisions that can be deleted from your
# local cache directory.
#
# Please manually review the revisions you want to delete:
#   - Revision hashes can be commented out with &#x27;#&#x27;.
#   - Only non-commented revisions in this file will be deleted.
#   - Revision hashes that are removed from this file are ignored as well.
#   - If \`CANCEL_DELETION\` line is uncommented, the all cache deletion is cancelled and
#     no changes will be applied.
#
# Once you&#x27;ve manually reviewed this file, please confirm deletion in the terminal. This
# file will be automatically removed once done.
# ------------

# KILL SWITCH
# ------------
# Un-comment following line to completely cancel the deletion process
# CANCEL_DELETION
# ------------

# REVISIONS
# ------------
# Dataset chrisjay/crowd-speech-africa (761.7M, used 5 days ago)
    ebedcd8c55c90d39fd27126d29d8484566cd27ca # Refs: main # modified 5 days ago

# Dataset oscar (3.3M, used 4 days ago)
#    916f956518279c5e60c63902ebdf3ddf9fa9d629 # Refs: main # modified 4 days ago

# Dataset wikiann (804.1K, used 2 weeks ago)
    89d089624b6323d69dcd9e5eb2def0551887a73a # Refs: main # modified 2 weeks ago

# Dataset z-uo/male-LJSpeech-italian (5.5G, used 5 days ago)
#    9cfa5647b32c0a30d0adfca06bf198d82192a0d1 # Refs: main # modified 5 days ago`,wrap:!1}}),sl=new j({props:{title:"Clean cache from Python",local:"clean-cache-from-python",headingTag:"h3"}}),il=new I({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHNjYW5fY2FjaGVfZGlyJTBBJTBBZGVsZXRlX3N0cmF0ZWd5JTIwJTNEJTIwc2Nhbl9jYWNoZV9kaXIoKS5kZWxldGVfcmV2aXNpb25zKCUwQSUyMCUyMCUyMCUyMCUyMjgxZmQxZDZlNzg0N2M5OWY1ODYyYzlmYjgxMzg3OTU2ZDk5ZWM3YWElMjIlMEElMjAlMjAlMjAlMjAlMjJlMjk4M2IyMzdkY2NmM2FiNDkzN2M5N2ZhNzE3MzE5YTljYTFhOTZkJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyNmMwZTYwODA5NTNkYjU2Mzc1NzYwYzA0NzFhOGM1ZjI5MjliYWYxMSUyMiUyQyUwQSklMEFwcmludCglMjJXaWxsJTIwZnJlZSUyMCUyMiUyMCUyQiUyMGRlbGV0ZV9zdHJhdGVneS5leHBlY3RlZF9mcmVlZF9zaXplX3N0ciklMEElMEFkZWxldGVfc3RyYXRlZ3kuZXhlY3V0ZSgp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> scan_cache_dir

<span class="hljs-meta">&gt;&gt;&gt; </span>delete_strategy = scan_cache_dir().delete_revisions(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;81fd1d6e7847c99f5862c9fb81387956d99ec7aa&quot;</span>
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;e2983b237dccf3ab4937c97fa717319a9ca1a96d&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;6c0e6080953db56375760c0471a8c5f2929baf11&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;Will free &quot;</span> + delete_strategy.expected_freed_size_str)
Will free <span class="hljs-number">8.6</span>G

<span class="hljs-meta">&gt;&gt;&gt; </span>delete_strategy.execute()
Cache deletion done. Saved <span class="hljs-number">8.6</span>G.`,wrap:!1}}),Tl=new JM({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/guides/manage-cache.md"}}),{c(){h=n("meta"),m=M(),d=n("p"),p=M(),J(A.$$.fragment),cl=M(),J(g.$$.fragment),yl=M(),Z=n("p"),Z.textContent=la,ol=M(),Y=n("p"),Y.textContent=ta,Ul=M(),J(N.$$.fragment),wl=M(),k=n("p"),k.innerHTML=aa,hl=M(),G=n("p"),G.textContent=Ma,dl=M(),J(S.$$.fragment),jl=M(),W=n("p"),W.textContent=sa,Il=M(),$=n("p"),$.textContent=na,ml=M(),J(L.$$.fragment),pl=M(),R=n("p"),R.textContent=ia,fl=M(),J(v.$$.fragment),rl=M(),B=n("p"),B.innerHTML=Ta,Cl=M(),F=n("p"),F.innerHTML=Ja,ul=M(),x=n("p"),x.innerHTML=ca,bl=M(),J(D.$$.fragment),Al=M(),E=n("p"),E.innerHTML=ya,gl=M(),J(V.$$.fragment),Zl=M(),Q=n("p"),Q.innerHTML=oa,Yl=M(),_=n("p"),_.innerHTML=Ua,Nl=M(),O=n("p"),O.innerHTML=wa,kl=M(),J(z.$$.fragment),Gl=M(),H=n("p"),H.innerHTML=ha,Sl=M(),X=n("p"),X.innerHTML=da,Wl=M(),J(P.$$.fragment),$l=M(),q=n("p"),q.innerHTML=ja,Ll=M(),J(K.$$.fragment),Rl=M(),ee=n("p"),ee.innerHTML=Ia,vl=M(),le=n("p"),le.innerHTML=ma,Bl=M(),te=n("p"),te.innerHTML=pa,Fl=M(),J(ae.$$.fragment),xl=M(),J(Me.$$.fragment),Dl=M(),se=n("p"),se.textContent=fa,El=M(),J(ne.$$.fragment),Vl=M(),J(ie.$$.fragment),Ql=M(),Te=n("p"),Te.innerHTML=ra,_l=M(),Je=n("p"),Je.innerHTML=Ca,Ol=M(),ce=n("p"),ce.innerHTML=ua,zl=M(),J(ye.$$.fragment),Hl=M(),oe=n("p"),oe.innerHTML=ba,Xl=M(),J(Ue.$$.fragment),Pl=M(),J(r.$$.fragment),ql=M(),J(we.$$.fragment),Kl=M(),he=n("p"),he.textContent=Aa,et=M(),J(de.$$.fragment),lt=M(),J(je.$$.fragment),tt=M(),Ie=n("p"),Ie.innerHTML=ga,at=M(),J(me.$$.fragment),Mt=M(),pe=n("p"),pe.innerHTML=Za,st=M(),fe=n("p"),fe.textContent=Ya,nt=M(),J(re.$$.fragment),it=M(),Ce=n("p"),Ce.innerHTML=Na,Tt=M(),J(ue.$$.fragment),Jt=M(),J(be.$$.fragment),ct=M(),Ae=n("p"),Ae.innerHTML=ka,yt=M(),J(ge.$$.fragment),ot=M(),J(Ze.$$.fragment),Ut=M(),Ye=n("p"),Ye.innerHTML=Ga,wt=M(),Ne=n("p"),Ne.textContent=Sa,ht=M(),ke=n("ul"),ke.innerHTML=Wa,dt=M(),Ge=n("p"),Ge.textContent=$a,jt=M(),J(Se.$$.fragment),It=M(),J(We.$$.fragment),mt=M(),$e=n("p"),$e.innerHTML=La,pt=M(),J(Le.$$.fragment),ft=M(),Re=n("p"),Re.innerHTML=Ra,rt=M(),ve=n("p"),ve.textContent=va,Ct=M(),Be=n("ul"),Be.innerHTML=Ba,ut=M(),J(C.$$.fragment),bt=M(),J(u.$$.fragment),At=M(),J(Fe.$$.fragment),gt=M(),xe=n("p"),xe.innerHTML=Fa,Zt=M(),J(De.$$.fragment),Yt=M(),Ee=n("p"),Ee.textContent=xa,Nt=M(),J(Ve.$$.fragment),kt=M(),Qe=n("p"),Qe.textContent=Da,Gt=M(),J(_e.$$.fragment),St=M(),Oe=n("p"),Oe.textContent=Ea,Wt=M(),b=n("div"),b.innerHTML=Va,$t=M(),ze=n("p"),ze.textContent=Qa,Lt=M(),He=n("ul"),He.innerHTML=_a,Rt=M(),Xe=n("p"),Xe.innerHTML=Oa,vt=M(),J(Pe.$$.fragment),Bt=M(),J(qe.$$.fragment),Ft=M(),Ke=n("p"),Ke.textContent=za,xt=M(),el=n("p"),el.innerHTML=Ha,Dt=M(),ll=n("p"),ll.innerHTML=Xa,Et=M(),J(tl.$$.fragment),Vt=M(),al=n("p"),al.textContent=Pa,Qt=M(),J(Ml.$$.fragment),_t=M(),J(sl.$$.fragment),Ot=M(),nl=n("p"),nl.innerHTML=qa,zt=M(),J(il.$$.fragment),Ht=M(),J(Tl.$$.fragment),Xt=M(),Jl=n("p"),this.h()},l(e){const l=iM("svelte-u9bgzb",document.head);h=i(l,"META",{name:!0,content:!0}),l.forEach(t),m=s(e),d=i(e,"P",{}),tM(d).forEach(t),p=s(e),c(A.$$.fragment,e),cl=s(e),c(g.$$.fragment,e),yl=s(e),Z=i(e,"P",{"data-svelte-h":!0}),T(Z)!=="svelte-7434pt"&&(Z.textContent=la),ol=s(e),Y=i(e,"P",{"data-svelte-h":!0}),T(Y)!=="svelte-bm5pxs"&&(Y.textContent=ta),Ul=s(e),c(N.$$.fragment,e),wl=s(e),k=i(e,"P",{"data-svelte-h":!0}),T(k)!=="svelte-1bjsk1l"&&(k.innerHTML=aa),hl=s(e),G=i(e,"P",{"data-svelte-h":!0}),T(G)!=="svelte-1xsylbb"&&(G.textContent=Ma),dl=s(e),c(S.$$.fragment,e),jl=s(e),W=i(e,"P",{"data-svelte-h":!0}),T(W)!=="svelte-smirw4"&&(W.textContent=sa),Il=s(e),$=i(e,"P",{"data-svelte-h":!0}),T($)!=="svelte-hxzvg9"&&($.textContent=na),ml=s(e),c(L.$$.fragment,e),pl=s(e),R=i(e,"P",{"data-svelte-h":!0}),T(R)!=="svelte-1o80jr1"&&(R.textContent=ia),fl=s(e),c(v.$$.fragment,e),rl=s(e),B=i(e,"P",{"data-svelte-h":!0}),T(B)!=="svelte-z6cr2z"&&(B.innerHTML=Ta),Cl=s(e),F=i(e,"P",{"data-svelte-h":!0}),T(F)!=="svelte-15cx8ge"&&(F.innerHTML=Ja),ul=s(e),x=i(e,"P",{"data-svelte-h":!0}),T(x)!=="svelte-1u7b6sn"&&(x.innerHTML=ca),bl=s(e),c(D.$$.fragment,e),Al=s(e),E=i(e,"P",{"data-svelte-h":!0}),T(E)!=="svelte-9jec47"&&(E.innerHTML=ya),gl=s(e),c(V.$$.fragment,e),Zl=s(e),Q=i(e,"P",{"data-svelte-h":!0}),T(Q)!=="svelte-1mswky"&&(Q.innerHTML=oa),Yl=s(e),_=i(e,"P",{"data-svelte-h":!0}),T(_)!=="svelte-1f9g1u2"&&(_.innerHTML=Ua),Nl=s(e),O=i(e,"P",{"data-svelte-h":!0}),T(O)!=="svelte-1ezxfdw"&&(O.innerHTML=wa),kl=s(e),c(z.$$.fragment,e),Gl=s(e),H=i(e,"P",{"data-svelte-h":!0}),T(H)!=="svelte-7nae39"&&(H.innerHTML=ha),Sl=s(e),X=i(e,"P",{"data-svelte-h":!0}),T(X)!=="svelte-sjd8l1"&&(X.innerHTML=da),Wl=s(e),c(P.$$.fragment,e),$l=s(e),q=i(e,"P",{"data-svelte-h":!0}),T(q)!=="svelte-dxew1x"&&(q.innerHTML=ja),Ll=s(e),c(K.$$.fragment,e),Rl=s(e),ee=i(e,"P",{"data-svelte-h":!0}),T(ee)!=="svelte-f64xkc"&&(ee.innerHTML=Ia),vl=s(e),le=i(e,"P",{"data-svelte-h":!0}),T(le)!=="svelte-178rlr8"&&(le.innerHTML=ma),Bl=s(e),te=i(e,"P",{"data-svelte-h":!0}),T(te)!=="svelte-lua08t"&&(te.innerHTML=pa),Fl=s(e),c(ae.$$.fragment,e),xl=s(e),c(Me.$$.fragment,e),Dl=s(e),se=i(e,"P",{"data-svelte-h":!0}),T(se)!=="svelte-1cw24ss"&&(se.textContent=fa),El=s(e),c(ne.$$.fragment,e),Vl=s(e),c(ie.$$.fragment,e),Ql=s(e),Te=i(e,"P",{"data-svelte-h":!0}),T(Te)!=="svelte-1foktgq"&&(Te.innerHTML=ra),_l=s(e),Je=i(e,"P",{"data-svelte-h":!0}),T(Je)!=="svelte-x8ev9q"&&(Je.innerHTML=Ca),Ol=s(e),ce=i(e,"P",{"data-svelte-h":!0}),T(ce)!=="svelte-1ue61z6"&&(ce.innerHTML=ua),zl=s(e),c(ye.$$.fragment,e),Hl=s(e),oe=i(e,"P",{"data-svelte-h":!0}),T(oe)!=="svelte-1r0ndhn"&&(oe.innerHTML=ba),Xl=s(e),c(Ue.$$.fragment,e),Pl=s(e),c(r.$$.fragment,e),ql=s(e),c(we.$$.fragment,e),Kl=s(e),he=i(e,"P",{"data-svelte-h":!0}),T(he)!=="svelte-1lsljsl"&&(he.textContent=Aa),et=s(e),c(de.$$.fragment,e),lt=s(e),c(je.$$.fragment,e),tt=s(e),Ie=i(e,"P",{"data-svelte-h":!0}),T(Ie)!=="svelte-1ppewq"&&(Ie.innerHTML=ga),at=s(e),c(me.$$.fragment,e),Mt=s(e),pe=i(e,"P",{"data-svelte-h":!0}),T(pe)!=="svelte-18l68mc"&&(pe.innerHTML=Za),st=s(e),fe=i(e,"P",{"data-svelte-h":!0}),T(fe)!=="svelte-1ss2857"&&(fe.textContent=Ya),nt=s(e),c(re.$$.fragment,e),it=s(e),Ce=i(e,"P",{"data-svelte-h":!0}),T(Ce)!=="svelte-2cqqt0"&&(Ce.innerHTML=Na),Tt=s(e),c(ue.$$.fragment,e),Jt=s(e),c(be.$$.fragment,e),ct=s(e),Ae=i(e,"P",{"data-svelte-h":!0}),T(Ae)!=="svelte-1h7dpll"&&(Ae.innerHTML=ka),yt=s(e),c(ge.$$.fragment,e),ot=s(e),c(Ze.$$.fragment,e),Ut=s(e),Ye=i(e,"P",{"data-svelte-h":!0}),T(Ye)!=="svelte-1bx4n8u"&&(Ye.innerHTML=Ga),wt=s(e),Ne=i(e,"P",{"data-svelte-h":!0}),T(Ne)!=="svelte-83019z"&&(Ne.textContent=Sa),ht=s(e),ke=i(e,"UL",{"data-svelte-h":!0}),T(ke)!=="svelte-qwuhrl"&&(ke.innerHTML=Wa),dt=s(e),Ge=i(e,"P",{"data-svelte-h":!0}),T(Ge)!=="svelte-xp69b3"&&(Ge.textContent=$a),jt=s(e),c(Se.$$.fragment,e),It=s(e),c(We.$$.fragment,e),mt=s(e),$e=i(e,"P",{"data-svelte-h":!0}),T($e)!=="svelte-1jpuvb3"&&($e.innerHTML=La),pt=s(e),c(Le.$$.fragment,e),ft=s(e),Re=i(e,"P",{"data-svelte-h":!0}),T(Re)!=="svelte-1wode1b"&&(Re.innerHTML=Ra),rt=s(e),ve=i(e,"P",{"data-svelte-h":!0}),T(ve)!=="svelte-19y0r7c"&&(ve.textContent=va),Ct=s(e),Be=i(e,"UL",{"data-svelte-h":!0}),T(Be)!=="svelte-o7nsmh"&&(Be.innerHTML=Ba),ut=s(e),c(C.$$.fragment,e),bt=s(e),c(u.$$.fragment,e),At=s(e),c(Fe.$$.fragment,e),gt=s(e),xe=i(e,"P",{"data-svelte-h":!0}),T(xe)!=="svelte-1arrz5p"&&(xe.innerHTML=Fa),Zt=s(e),c(De.$$.fragment,e),Yt=s(e),Ee=i(e,"P",{"data-svelte-h":!0}),T(Ee)!=="svelte-yr0mit"&&(Ee.textContent=xa),Nt=s(e),c(Ve.$$.fragment,e),kt=s(e),Qe=i(e,"P",{"data-svelte-h":!0}),T(Qe)!=="svelte-gq4pgy"&&(Qe.textContent=Da),Gt=s(e),c(_e.$$.fragment,e),St=s(e),Oe=i(e,"P",{"data-svelte-h":!0}),T(Oe)!=="svelte-20gxv"&&(Oe.textContent=Ea),Wt=s(e),b=i(e,"DIV",{class:!0,"data-svelte-h":!0}),T(b)!=="svelte-17iq48i"&&(b.innerHTML=Va),$t=s(e),ze=i(e,"P",{"data-svelte-h":!0}),T(ze)!=="svelte-7awvfp"&&(ze.textContent=Qa),Lt=s(e),He=i(e,"UL",{"data-svelte-h":!0}),T(He)!=="svelte-76obk"&&(He.innerHTML=_a),Rt=s(e),Xe=i(e,"P",{"data-svelte-h":!0}),T(Xe)!=="svelte-aoo47g"&&(Xe.innerHTML=Oa),vt=s(e),c(Pe.$$.fragment,e),Bt=s(e),c(qe.$$.fragment,e),Ft=s(e),Ke=i(e,"P",{"data-svelte-h":!0}),T(Ke)!=="svelte-ymcz12"&&(Ke.textContent=za),xt=s(e),el=i(e,"P",{"data-svelte-h":!0}),T(el)!=="svelte-u5k7vk"&&(el.innerHTML=Ha),Dt=s(e),ll=i(e,"P",{"data-svelte-h":!0}),T(ll)!=="svelte-1baaith"&&(ll.innerHTML=Xa),Et=s(e),c(tl.$$.fragment,e),Vt=s(e),al=i(e,"P",{"data-svelte-h":!0}),T(al)!=="svelte-15nmp2q"&&(al.textContent=Pa),Qt=s(e),c(Ml.$$.fragment,e),_t=s(e),c(sl.$$.fragment,e),Ot=s(e),nl=i(e,"P",{"data-svelte-h":!0}),T(nl)!=="svelte-qm6d3g"&&(nl.innerHTML=qa),zt=s(e),c(il.$$.fragment,e),Ht=s(e),c(Tl.$$.fragment,e),Xt=s(e),Jl=i(e,"P",{}),tM(Jl).forEach(t),this.h()},h(){qt(h,"name","hf:doc:metadata"),qt(h,"content",wM),qt(b,"class","flex justify-center")},m(e,l){TM(document.head,h),a(e,m,l),a(e,d,l),a(e,p,l),y(A,e,l),a(e,cl,l),y(g,e,l),a(e,yl,l),a(e,Z,l),a(e,ol,l),a(e,Y,l),a(e,Ul,l),y(N,e,l),a(e,wl,l),a(e,k,l),a(e,hl,l),a(e,G,l),a(e,dl,l),y(S,e,l),a(e,jl,l),a(e,W,l),a(e,Il,l),a(e,$,l),a(e,ml,l),y(L,e,l),a(e,pl,l),a(e,R,l),a(e,fl,l),y(v,e,l),a(e,rl,l),a(e,B,l),a(e,Cl,l),a(e,F,l),a(e,ul,l),a(e,x,l),a(e,bl,l),y(D,e,l),a(e,Al,l),a(e,E,l),a(e,gl,l),y(V,e,l),a(e,Zl,l),a(e,Q,l),a(e,Yl,l),a(e,_,l),a(e,Nl,l),a(e,O,l),a(e,kl,l),y(z,e,l),a(e,Gl,l),a(e,H,l),a(e,Sl,l),a(e,X,l),a(e,Wl,l),y(P,e,l),a(e,$l,l),a(e,q,l),a(e,Ll,l),y(K,e,l),a(e,Rl,l),a(e,ee,l),a(e,vl,l),a(e,le,l),a(e,Bl,l),a(e,te,l),a(e,Fl,l),y(ae,e,l),a(e,xl,l),y(Me,e,l),a(e,Dl,l),a(e,se,l),a(e,El,l),y(ne,e,l),a(e,V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_t,l),y(sl,e,l),a(e,Ot,l),a(e,nl,l),a(e,zt,l),y(il,e,l),a(e,Ht,l),y(Tl,e,l),a(e,Xt,l),a(e,Jl,l),Pt=!0},p(e,[l]){const Ka={};l&2&&(Ka.$$scope={dirty:l,ctx:e}),r.$set(Ka);const eM={};l&2&&(eM.$$scope={dirty:l,ctx:e}),C.$set(eM);const lM={};l&2&&(lM.$$scope={dirty:l,ctx:e}),u.$set(lM)},i(e){Pt||(o(A.$$.fragment,e),o(g.$$.fragment,e),o(N.$$.fragment,e),o(S.$$.fragment,e),o(L.$$.fragment,e),o(v.$$.fragment,e),o(D.$$.fragment,e),o(V.$$.fragment,e),o(z.$$.fragment,e),o(P.$$.fragment,e),o(K.$$.fragment,e),o(ae.$$.fragment,e),o(Me.$$.fragment,e),o(ne.$$.fragment,e),o(ie.$$.fragment,e),o(ye.$$.fragment,e),o(Ue.$$.fragment,e),o(r.$$.fragment,e),o(we.$$.fragment,e),o(de.$$.fragment,e),o(je.$$.fragment,e),o(me.$$.fragment,e),o(re.$$.fragment,e),o(ue.$$.fragment,e),o(be.$$.fragment,e),o(ge.$$.fragment,e),o(Ze.$$.fragment,e),o(Se.$$.fragment,e),o(We.$$.fragment,e),o(Le.$$.fragment,e),o(C.$$.fragment,e),o(u.$$.fragment,e),o(Fe.$$.fragment,e),o(De.$$.fragment,e),o(Ve.$$.fragment,e),o(_e.$$.fragment,e),o(Pe.$$.fragment,e),o(qe.$$.fragment,e),o(tl.$$.fragment,e),o(Ml.$$.fragment,e),o(sl.$$.fragment,e),o(il.$$.fragment,e),o(Tl.$$.fragment,e),Pt=!0)},o(e){U(A.$$.fragment,e),U(g.$$.fragment,e),U(N.$$.fragment,e),U(S.$$.fragment,e),U(L.$$.fragment,e),U(v.$$.fragment,e),U(D.$$.fragment,e),U(V.$$.fragment,e),U(z.$$.fragment,e),U(P.$$.fragment,e),U(K.$$.fragment,e),U(ae.$$.fragment,e),U(Me.$$.fragment,e),U(ne.$$.fragment,e),U(ie.$$.fragment,e),U(ye.$$.fragment,e),U(Ue.$$.fragment,e),U(r.$$.fragment,e),U(we.$$.fragment,e),U(de.$$.fragment,e),U(je.$$.fragment,e),U(me.$$.fragment,e),U(re.$$.fragment,e),U(ue.$$.fragment,e),U(be.$$.fragment,e),U(ge.$$.fragment,e),U(Ze.$$.fragment,e),U(Se.$$.fragment,e),U(We.$$.fragment,e),U(Le.$$.fragment,e),U(C.$$.fragment,e),U(u.$$.fragment,e),U(Fe.$$.fragment,e),U(De.$$.fragment,e),U(Ve.$$.fragment,e),U(_e.$$.fragment,e),U(Pe.$$.fragment,e),U(qe.$$.fragment,e),U(tl.$$.fragment,e),U(Ml.$$.fragment,e),U(sl.$$.fragment,e),U(il.$$.fragment,e),U(Tl.$$.fragment,e),Pt=!1},d(e){e&&(t(m),t(d),t(p),t(cl),t(yl),t(Z),t(ol),t(Y),t(Ul),t(wl),t(k),t(hl),t(G),t(dl),t(jl),t(W),t(Il),t($),t(ml),t(pl),t(R),t(fl),t(rl),t(B),t(Cl),t(F),t(ul),t(x),t(bl),t(Al),t(E),t(gl),t(Zl),t(Q),t(Yl),t(_),t(Nl),t(O),t(kl),t(Gl),t(H),t(Sl),t(X),t(Wl),t($l),t(q),t(Ll),t(Rl),t(ee),t(vl),t(le),t(Bl),t(te),t(Fl),t(xl),t(Dl),t(se),t(El),t(Vl),t(Ql),t(Te),t(_l),t(Je),t(Ol),t(ce),t(zl),t(Hl),t(oe),t(Xl),t(Pl),t(ql),t(Kl),t(he),t(et),t(lt),t(tt),t(Ie),t(at),t(Mt),t(pe),t(st),t(fe),t(nt),t(it),t(Ce),t(Tt),t(Jt),t(ct),t(Ae),t(yt),t(ot),t(Ut),t(Ye),t(wt),t(Ne),t(ht),t(ke),t(dt),t(Ge),t(jt),t(It),t(mt),t($e),t(pt),t(ft),t(Re),t(rt),t(ve),t(Ct),t(Be),t(ut),t(bt),t(At),t(gt),t(xe),t(Zt),t(Yt),t(Ee),t(Nt),t(kt),t(Qe),t(Gt),t(St),t(Oe),t(Wt),t(b),t($t),t(ze),t(Lt),t(He),t(Rt),t(Xe),t(vt),t(Bt),t(Ft),t(Ke),t(xt),t(el),t(Dt),t(ll),t(Et),t(Vt),t(al),t(Qt),t(_t),t(Ot),t(nl),t(zt),t(Ht),t(Xt),t(Jl)),t(h),w(A,e),w(g,e),w(N,e),w(S,e),w(L,e),w(v,e),w(D,e),w(V,e),w(z,e),w(P,e),w(K,e),w(ae,e),w(Me,e),w(ne,e),w(ie,e),w(ye,e),w(Ue,e),w(r,e),w(we,e),w(de,e),w(je,e),w(me,e),w(re,e),w(ue,e),w(be,e),w(ge,e),w(Ze,e),w(Se,e),w(We,e),w(Le,e),w(C,e),w(u,e),w(Fe,e),w(De,e),w(Ve,e),w(_e,e),w(Pe,e),w(qe,e),w(tl,e),w(Ml,e),w(sl,e),w(il,e),w(Tl,e)}}}const wM='{"title":"Manage huggingface_hub cache-system","local":"manage-huggingfacehub-cache-system","sections":[{"title":"Understand caching","local":"understand-caching","sections":[{"title":"Refs","local":"refs","sections":[],"depth":3},{"title":"Blobs","local":"blobs","sections":[],"depth":3},{"title":"Snapshots","local":"snapshots","sections":[],"depth":3},{"title":".no_exist (advanced)","local":"noexist-advanced","sections":[],"depth":3},{"title":"In practice","local":"in-practice","sections":[],"depth":3},{"title":"Limitations","local":"limitations","sections":[],"depth":3}],"depth":2},{"title":"Caching assets","local":"caching-assets","sections":[{"title":"Assets in practice","local":"assets-in-practice","sections":[],"depth":3}],"depth":2},{"title":"Scan your cache","local":"scan-your-cache","sections":[{"title":"Scan cache from the terminal","local":"scan-cache-from-the-terminal","sections":[{"title":"Grep example","local":"grep-example","sections":[],"depth":4}],"depth":3},{"title":"Scan cache from Python","local":"scan-cache-from-python","sections":[],"depth":3}],"depth":2},{"title":"Clean your cache","local":"clean-your-cache","sections":[{"title":"Delete strategy","local":"delete-strategy","sections":[],"depth":3},{"title":"Clean cache from the terminal","local":"clean-cache-from-the-terminal","sections":[{"title":"Using the TUI","local":"using-the-tui","sections":[],"depth":4},{"title":"Without TUI","local":"without-tui","sections":[],"depth":4}],"depth":3},{"title":"Clean cache from Python","local":"clean-cache-from-python","sections":[],"depth":3}],"depth":2}],"depth":1}';function hM(f){return MM(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class fM extends sM{constructor(h){super(),nM(this,h,hM,UM,aM,{})}}export{fM as component};
