import{s as kn,o as Sn,n as N}from"../chunks/scheduler.6062bdaf.js";import{S as Zn,i as Fn,g as i,s as l,r as f,A as Rn,h,f as c,c as o,j as I,u as p,x as T,k as j,y as n,a as g,v as u,d as m,t as M,w as _}from"../chunks/index.4bca734e.js";import{T as Me}from"../chunks/Tip.b9ac1f03.js";import{D as Z}from"../chunks/Docstring.ed07512f.js";import{C as Xe}from"../chunks/CodeBlock.fa01571c.js";import{E as Pe}from"../chunks/ExampleCodeBlock.823fb173.js";import{H as V}from"../chunks/Heading.723dceba.js";function Ln($){let t,b="Example:",a,d,y;return d=new Xe({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}}),{c(){t=i("p"),t.textContent=b,a=l(),f(d.$$.fragment)},l(r){t=h(r,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=b),a=o(r),p(d.$$.fragment,r)},m(r,C){g(r,t,C),g(r,a,C),u(d,r,C),y=!0},p:N,i(r){y||(m(d.$$.fragment,r),y=!0)},o(r){M(d.$$.fragment,r),y=!1},d(r){r&&(c(t),c(a)),_(d,r)}}}function Nn($){let t,b="Expected tree:",a,d,y;return d=new Xe({props:{code:"JTIwJTIwJTIwJTIwYXNzZXRzJTJGJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwZGF0YXNldHMlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjBTUXVBRCUyRiUwQSUyMCUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMGRvd25sb2FkZWQlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjBleHRyYWN0ZWQlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBwcm9jZXNzZWQlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMj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MjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBiYmM3N2M4MTMyYWYxY2M1Y2Y2NzhkYTNmMWRkZjJkZTQzNjA2ZDQ4JTJGJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwKC4uLik=",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}}),{c(){t=i("p"),t.textContent=b,a=l(),f(d.$$.fragment)},l(r){t=h(r,"P",{"data-svelte-h":!0}),T(t)!=="svelte-c5dp2"&&(t.textContent=b),a=o(r),p(d.$$.fragment,r)},m(r,C){g(r,t,C),g(r,a,C),u(d,r,C),y=!0},p:N,i(r){y||(m(d.$$.fragment,r),y=!0)},o(r){M(d.$$.fragment,r),y=!1},d(r){r&&(c(t),c(a)),_(d,r)}}}function zn($){let t,b="Example:",a,d,y;return d=new Xe({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNhY2hlZF9hc3NldHNfcGF0aCUwQSUwQWNhY2hlZF9hc3NldHNfcGF0aChsaWJyYXJ5X25hbWUlM0QlMjJkYXRhc2V0cyUyMiUyQyUyMG5hbWVzcGFjZSUzRCUyMlNRdUFEJTIyJTJDJTIwc3ViZm9sZGVyJTNEJTIyZG93bmxvYWQlMjIpJTBBJTBBY2FjaGVkX2Fzc2V0c19wYXRoKGxpYnJhcnlfbmFtZSUzRCUyMmRhdGFzZXRzJTIyJTJDJTIwbmFtZXNwYWNlJTNEJTIyU1F1QUQlMjIlMkMlMjBzdWJmb2xkZXIlM0QlMjJleHRyYWN0ZWQlMjIpJTBBJTBBY2FjaGVkX2Fzc2V0c19wYXRoKGxpYnJhcnlfbmFtZSUzRCUyMmRhdGFzZXRzJTIyJTJDJTIwbmFtZXNwYWNlJTNEJTIySGVsc2lua2ktTkxQJTJGdGF0b2ViYV9tdCUyMiklMEElMEFjYWNoZWRfYXNzZXRzX3BhdGgobGlicmFyeV9uYW1lJTNEJTIyZGF0YXNldHMlMjIlMkMlMjBhc3NldHNfZGlyJTNEJTIyJTJGdG1wJTJGdG1wMTIzNDU2JTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> cached_assets_path

<span class="hljs-meta">&gt;&gt;&gt; </span>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>)
PosixPath(<span class="hljs-string">&#x27;/home/wauplin/.cache/huggingface/extra/datasets/SQuAD/download&#x27;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>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;extracted&quot;</span>)
PosixPath(<span class="hljs-string">&#x27;/home/wauplin/.cache/huggingface/extra/datasets/SQuAD/extracted&#x27;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>cached_assets_path(library_name=<span class="hljs-string">&quot;datasets&quot;</span>, namespace=<span class="hljs-string">&quot;Helsinki-NLP/tatoeba_mt&quot;</span>)
PosixPath(<span class="hljs-string">&#x27;/home/wauplin/.cache/huggingface/extra/datasets/Helsinki-NLP--tatoeba_mt/default&#x27;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>cached_assets_path(library_name=<span class="hljs-string">&quot;datasets&quot;</span>, assets_dir=<span class="hljs-string">&quot;/tmp/tmp123456&quot;</span>)
PosixPath(<span class="hljs-string">&#x27;/tmp/tmp123456/datasets/default/default&#x27;</span>)`,wrap:!1}}),{c(){t=i("p"),t.textContent=b,a=l(),f(d.$$.fragment)},l(r){t=h(r,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=b),a=o(r),p(d.$$.fragment,r)},m(r,C){g(r,t,C),g(r,a,C),u(d,r,C),y=!0},p:N,i(r){y||(m(d.$$.fragment,r),y=!0)},o(r){M(d.$$.fragment,r),y=!1},d(r){r&&(c(t),c(a)),_(d,r)}}}function Yn($){let t,b;return t=new Xe({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>,
            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(...),
                    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(...),
                        ),
                        CachedFileInfo(...),
                        ...
                    }),
                ),
                CachedRevisionInfo(...),
                ...
            }),
        ),
        CachedRepoInfo(...),
        ...
    }),
    warnings=[
        CorruptedCacheException(<span class="hljs-string">&quot;Snapshots dir doesn&#x27;t exist in cached repo: ...&quot;</span>),
        CorruptedCacheException(...),
        ...
    ],
)`,wrap:!1}}),{c(){f(t.$$.fragment)},l(a){p(t.$$.fragment,a)},m(a,d){u(t,a,d),b=!0},p:N,i(a){b||(m(t.$$.fragment,a),b=!0)},o(a){M(t.$$.fragment,a),b=!1},d(a){_(t,a)}}}function Gn($){let t,b="You can also print a detailed report directly from the <code>huggingface-cli</code> using:",a,d,y;return d=new Xe({props:{code:"JTNFJTIwaHVnZ2luZ2ZhY2UtY2xpJTIwc2Nhbi1jYWNoZSUwQVJFUE8lMjBJRCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMFJFUE8lMjBUWVBFJTIwU0laRSUyME9OJTIwRElTSyUyME5CJTIwRklMRVMlMjBSRUZTJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwTE9DQUwlMjBQQVRIJTBBLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tJTIwLS0tLS0tLS0tJTIwLS0tLS0tLS0tLS0tJTIwLS0tLS0tLS0lMjAtLS0tLS0tLS0tLS0tLS0tLS0tJTIwLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0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AuMHMuJTIwU2Nhbm5lZCUyMDYlMjByZXBvKHMpJTIwZm9yJTIwYSUyMHRvdGFsJTIwb2YlMjAzLjRHLiUwQUdvdCUyMDElMjB3YXJuaW5nKHMpJTIwd2hpbGUlMjBzY2FubmluZy4lMjBVc2UlMjAtdnZ2JTIwdG8lMjBwcmludCUyMGRldGFpbHMu",highlighted:`&gt; huggingface-cli scan-cache
REPO ID                     REPO TYPE SIZE ON DISK NB FILES REFS                LOCAL PATH
--------------------------- --------- ------------ -------- ------------------- -------------------------------------------------------------------------
glue                        dataset         116.3K       15 1.17.0, main, 2.4.0 /Users/lucain/.cache/huggingface/hub/datasets--glue
google/fleurs               dataset          64.9M        6 main, refs/pr/1     /Users/lucain/.cache/huggingface/hub/datasets--google--fleurs
Jean-Baptiste/camembert-ner model           441.0M        7 main                /Users/lucain/.cache/huggingface/hub/models--Jean-Baptiste--camembert-ner
bert-base-cased             model             1.9G       13 main                /Users/lucain/.cache/huggingface/hub/models--bert-base-cased
t5-base                     model            10.1K        3 main                /Users/lucain/.cache/huggingface/hub/models--t5-base
t5-small                    model           970.7M       11 refs/pr/1, main     /Users/lucain/.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}}),{c(){t=i("p"),t.innerHTML=b,a=l(),f(d.$$.fragment)},l(r){t=h(r,"P",{"data-svelte-h":!0}),T(t)!=="svelte-35akmn"&&(t.innerHTML=b),a=o(r),p(d.$$.fragment,r)},m(r,C){g(r,t,C),g(r,a,C),u(d,r,C),y=!0},p:N,i(r){y||(m(d.$$.fragment,r),y=!0)},o(r){M(d.$$.fragment,r),y=!1},d(r){r&&(c(t),c(a)),_(d,r)}}}function En($){let t,b=`Here <code>size_on_disk</code> is equal to the sum of all repo sizes (only blobs). However if
some cached repos are corrupted, their sizes are not taken into account.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-sgjnu7"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function Vn($){let t,b="Examples:",a,d,y;return d=new Xe({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHNjYW5fY2FjaGVfZGlyJTBBY2FjaGVfaW5mbyUyMCUzRCUyMHNjYW5fY2FjaGVfZGlyKCklMEFkZWxldGVfc3RyYXRlZ3klMjAlM0QlMjBjYWNoZV9pbmZvLmRlbGV0ZV9yZXZpc2lvbnMoJTBBJTIwJTIwJTIwJTIwJTIyODFmZDFkNmU3ODQ3Yzk5ZjU4NjJjOWZiODEzODc5NTZkOTllYzdhYSUyMiUwQSklMEFwcmludChmJTIyV2lsbCUyMGZyZWUlMjAlN0JkZWxldGVfc3RyYXRlZ3kuZXhwZWN0ZWRfZnJlZWRfc2l6ZV9zdHIlN0QuJTIyKSUwQWRlbGV0ZV9zdHJhdGVneS5leGVjdXRlKCk=",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>cache_info = scan_cache_dir()
<span class="hljs-meta">&gt;&gt;&gt; </span>delete_strategy = cache_info.delete_revisions(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;81fd1d6e7847c99f5862c9fb81387956d99ec7aa&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">f&quot;Will free <span class="hljs-subst">{delete_strategy.expected_freed_size_str}</span>.&quot;</span>)
Will free <span class="hljs-number">7.9</span>K.
<span class="hljs-meta">&gt;&gt;&gt; </span>delete_strategy.execute()
Cache deletion done. Saved <span class="hljs-number">7.9</span>K.`,wrap:!1}}),{c(){t=i("p"),t.textContent=b,a=l(),f(d.$$.fragment)},l(r){t=h(r,"P",{"data-svelte-h":!0}),T(t)!=="svelte-kvfsh7"&&(t.textContent=b),a=o(r),p(d.$$.fragment,r)},m(r,C){g(r,t,C),g(r,a,C),u(d,r,C),y=!0},p:N,i(r){y||(m(d.$$.fragment,r),y=!0)},o(r){M(d.$$.fragment,r),y=!1},d(r){r&&(c(t),c(a)),_(d,r)}}}function Dn($){let t,b;return t=new Xe({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHNjYW5fY2FjaGVfZGlyJTBBc2Nhbl9jYWNoZV9kaXIoKS5kZWxldGVfcmV2aXNpb25zKCUwQSUyMCUyMCUyMCUyMCUyMjgxZmQxZDZlNzg0N2M5OWY1ODYyYzlmYjgxMzg3OTU2ZDk5ZWM3YWElMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJlMjk4M2IyMzdkY2NmM2FiNDkzN2M5N2ZhNzE3MzE5YTljYTFhOTZkJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyNmMwZTYwODA5NTNkYjU2Mzc1NzYwYzA0NzFhOGM1ZjI5MjliYWYxMSUyMiUyQyUwQSkuZXhlY3V0ZSgp",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>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>).execute()
Cache deletion done. Saved <span class="hljs-number">8.6</span>G.`,wrap:!1}}),{c(){f(t.$$.fragment)},l(a){p(t.$$.fragment,a)},m(a,d){u(t,a,d),b=!0},p:N,i(a){b||(m(t.$$.fragment,a),b=!0)},o(a){M(t.$$.fragment,a),b=!1},d(a){_(t,a)}}}function Hn($){let t,b=`<code>delete_revisions</code> returns a <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.DeleteCacheStrategy">DeleteCacheStrategy</a> object that needs to
be executed. The <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.DeleteCacheStrategy">DeleteCacheStrategy</a> is not meant to be modified but
allows having a dry run before actually executing the deletion.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-jhvu1"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function Qn($){let t,b=`<code>size_on_disk</code> is not necessarily the sum of all revisions sizes because of
duplicated files. Besides, only blobs are taken into account, not the (negligible)
size of folders and symlinks.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-nbxrac"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function Bn($){let t,b=`<code>last_accessed</code> and <code>last_modified</code> reliability can depend on the OS you are using.
See <a href="https://docs.python.org/3/library/os.html#os.stat_result" rel="nofollow">python documentation</a>
for more details.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-15342f7"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function On($){let t,b=`<code>last_accessed</code> cannot be determined correctly on a single revision as blob files
are shared across revisions.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-fyb862"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function Wn($){let t,b=`<code>size_on_disk</code> is not necessarily the sum of all file sizes because of possible
duplicated files. Besides, only blobs are taken into account, not the (negligible)
size of folders and symlinks.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-1wyo3hz"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function Pn($){let t,b=`<code>blob_last_accessed</code> and <code>blob_last_modified</code> reliability can depend on the OS you
are using. See <a href="https://docs.python.org/3/library/os.html#os.stat_result" rel="nofollow">python documentation</a>
for more details.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-ptblnn"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function Xn($){let t,b,a,d,y,r,C,Ka=`The caching system was updated in v0.8.0 to become the central cache-system shared
across libraries that depend on the Hub. Read the <a href="../guides/manage-cache">cache-system guide</a>
for a detailed presentation of caching at HF.`,xt,_e,At,be,kt,z,Te,ta,qe,en="Explores the cache to return the latest cached file for a given revision if found.",aa,Ke,tn="This function will not raise any exception if the file in not cached.",na,te,St,ye,Zt,J,$e,sa,et,an="Return a folder path to cache arbitrary files.",la,tt,nn=`<code>huggingface_hub</code> provides a canonical folder path to store assets. This is the
recommended way to integrate cache in a downstream library as it will benefit from
the builtins tools to scan and delete the cache properly.`,oa,at,sn=`The distinction is made between files cached from the Hub and assets. Files from the
Hub are cached in a git-aware manner and entirely managed by <code>huggingface_hub</code>. See
<a href="https://huggingface.co/docs/huggingface_hub/how-to-cache" rel="nofollow">related documentation</a>.
All other files that a downstream library caches are considered to be “assets”
(files downloaded from external sources, extracted from a .tar archive, preprocessed
for training,…).`,ra,nt,ln=`Once the folder path is generated, it is guaranteed to exist and to be a directory.
The path is based on 3 levels of depth: the library name, a namespace and a
subfolder. Those 3 levels grants flexibility while allowing <code>huggingface_hub</code> to
expect folders when scanning/deleting parts of the assets cache. Within a library,
it is expected that all namespaces share the same subset of subfolder names but this
is not a mandatory rule. The downstream library has then full control on which file
structure to adopt within its cache. Namespace and subfolder are optional (would
default to a <code>&quot;default/&quot;</code> subfolder) but library name is mandatory as we want every
downstream library to manage its own cache.`,ca,ae,ia,ne,Ft,Ce,Rt,U,Je,ha,st,on='Scan the entire HF cache-system and return a <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a> structure.',da,lt,rn=`Use <code>scan_cache_dir</code> in order to programmatically scan your cache-system. The cache
will be scanned repo by repo. If a repo is corrupted, a <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.CorruptedCacheException">~CorruptedCacheException</a>
will be thrown internally but captured and returned in the <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a>
structure. Only valid repos get a proper report.`,ga,se,fa,le,pa,Ue,ua,ot,cn='Returns: a <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a> object.',Lt,we,Nt,Ie,hn='All structures are built and returned by <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.scan_cache_dir">scan_cache_dir()</a> and are immutable.',zt,je,Yt,F,ve,ma,rt,dn="Frozen data structure holding information about the entire cache-system.",Ma,ct,gn='This data structure is returned by <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.scan_cache_dir">scan_cache_dir()</a> and is immutable.',_a,oe,ba,S,xe,Ta,it,fn="Prepare the strategy to delete one or more revisions cached locally.",ya,ht,pn=`Input revisions can be any revision hash. If a revision hash is not found in the
local cache, a warning is thrown but no error is raised. Revisions can be from
different cached repos since hashes are unique across repos,`,$a,re,Ca,ce,Ja,ie,Gt,Ae,Et,v,ke,Ua,dt,un="Frozen data structure holding information about a cached repository.",wa,he,Ia,de,ja,B,Se,va,gt,mn="(property) Sum of the blob file sizes as a human-readable string.",xa,ft,Mn="Example: “42.2K”.",Aa,ge,Ze,ka,pt,_n="(property) Mapping between <code>refs</code> and revision data structures.",Vt,Fe,Dt,w,Re,Sa,ut,bn="Frozen data structure holding information about a revision.",Za,mt,Tn=`A revision correspond to a folder in the <code>snapshots</code> folder and is populated with
the exact tree structure as the repo on the Hub but contains only symlinks. A
revision can be either referenced by 1 or more <code>refs</code> or be “detached” (no refs).`,Fa,fe,Ra,pe,La,O,Le,Na,Mt,yn="(property) Sum of the blob file sizes as a human-readable string.",za,_t,$n="Example: “42.2K”.",Ya,ue,Ne,Ga,bt,Cn="(property) Total number of files in the revision.",Ht,ze,Qt,Y,Ye,Ea,Tt,Jn="Frozen data structure holding information about a single cached file.",Va,me,Da,W,Ge,Ha,yt,Un="(property) Size of the blob file as a human-readable string.",Qa,$t,wn="Example: “42.2K”.",Bt,Ee,Ot,G,Ve,Ba,Ct,In="Frozen data structure holding the strategy to delete cached revisions.",Oa,Jt,jn=`This object is not meant to be instantiated programmatically but to be returned by
<a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.HFCacheInfo.delete_revisions">delete_revisions()</a>. See documentation for usage example.`,Wa,P,De,Pa,Ut,vn="(property) Expected size that will be freed as a human-readable string.",Xa,wt,xn="Example: “42.2K”.",Wt,He,Pt,Qe,Xt,X,Be,qa,It,An="Exception for any unexpected structure in the Huggingface cache-system.",qt,vt,Kt;return y=new V({props:{title:"Cache-system reference",local:"cache-system-reference",headingTag:"h1"}}),_e=new V({props:{title:"Helpers",local:"helpers",headingTag:"h2"}}),be=new V({props:{title:"try_to_load_from_cache",local:"huggingface_hub.try_to_load_from_cache",headingTag:"h3"}}),Te=new Z({props:{name:"huggingface_hub.try_to_load_from_cache",anchor:"huggingface_hub.try_to_load_from_cache",parameters:[{name:"repo_id",val:": str"},{name:"filename",val:": str"},{name:"cache_dir",val:": Union = None"},{name:"revision",val:": Optional = None"},{name:"repo_type",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.try_to_load_from_cache.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
The folder where the cached files lie.`,name:"cache_dir"},{anchor:"huggingface_hub.try_to_load_from_cache.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The ID of the repo on huggingface.co.`,name:"repo_id"},{anchor:"huggingface_hub.try_to_load_from_cache.filename",description:`<strong>filename</strong> (<code>str</code>) &#x2014;
The filename to look for inside <code>repo_id</code>.`,name:"filename"},{anchor:"huggingface_hub.try_to_load_from_cache.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The specific model version to use. Will default to <code>&quot;main&quot;</code> if it&#x2019;s not provided and no <code>commit_hash</code> is
provided either.`,name:"revision"},{anchor:"huggingface_hub.try_to_load_from_cache.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repository. Will default to <code>&quot;model&quot;</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/file_download.py#L1531",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Will return <code>None</code> if the file was not cached. Otherwise:</p>
<ul>
<li>The exact path to the cached file if it’s found in the cache</li>
<li>A special value <code>_CACHED_NO_EXIST</code> if the file does not exist at the given commit hash and this fact was
cached.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Optional[str]</code> or <code>_CACHED_NO_EXIST</code></p>
`}}),te=new Pe({props:{anchor:"huggingface_hub.try_to_load_from_cache.example",$$slots:{default:[Ln]},$$scope:{ctx:$}}}),ye=new V({props:{title:"cached_assets_path",local:"huggingface_hub.cached_assets_path",headingTag:"h3"}}),$e=new Z({props:{name:"huggingface_hub.cached_assets_path",anchor:"huggingface_hub.cached_assets_path",parameters:[{name:"library_name",val:": str"},{name:"namespace",val:": str = 'default'"},{name:"subfolder",val:": str = 'default'"},{name:"assets_dir",val:": Union = None"}],parametersDescription:[{anchor:"huggingface_hub.cached_assets_path.library_name",description:`<strong>library_name</strong> (<code>str</code>) &#x2014;
Name of the library that will manage the cache folder. Example: <code>&quot;dataset&quot;</code>.`,name:"library_name"},{anchor:"huggingface_hub.cached_assets_path.namespace",description:`<strong>namespace</strong> (<code>str</code>, <em>optional</em>, defaults to &#x201C;default&#x201D;) &#x2014;
Namespace to which the data belongs. Example: <code>&quot;SQuAD&quot;</code>.`,name:"namespace"},{anchor:"huggingface_hub.cached_assets_path.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to &#x201C;default&#x201D;) &#x2014;
Subfolder in which the data will be stored. Example: <code>extracted</code>.`,name:"subfolder"},{anchor:"huggingface_hub.cached_assets_path.assets_dir",description:`<strong>assets_dir</strong> (<code>str</code>, <code>Path</code>, <em>optional</em>) &#x2014;
Path to the folder where assets are cached. This must not be the same folder
where Hub files are cached. Defaults to <code>HF_HOME / &quot;assets&quot;</code> if not provided.
Can also be set with <code>HF_ASSETS_CACHE</code> environment variable.`,name:"assets_dir"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_assets.py#L21",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Path to the cache folder (<code>Path</code>).</p>
`}}),ae=new Pe({props:{anchor:"huggingface_hub.cached_assets_path.example",$$slots:{default:[Nn]},$$scope:{ctx:$}}}),ne=new Pe({props:{anchor:"huggingface_hub.cached_assets_path.example-2",$$slots:{default:[zn]},$$scope:{ctx:$}}}),Ce=new V({props:{title:"scan_cache_dir",local:"huggingface_hub.scan_cache_dir",headingTag:"h3"}}),Je=new Z({props:{name:"huggingface_hub.scan_cache_dir",anchor:"huggingface_hub.scan_cache_dir",parameters:[{name:"cache_dir",val:": Union = None"}],parametersDescription:[{anchor:"huggingface_hub.scan_cache_dir.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code> or <code>Path</code>, <code>optional</code>) &#x2014;
Cache directory to cache. Defaults to the default HF cache directory.`,name:"cache_dir"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L496",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li>
<p><code>CacheNotFound</code> —
If the cache directory does not exist.</p>
</li>
<li>
<p><a
  href="https://docs.python.org/3/library/exceptions.html#ValueError"
  rel="nofollow"
><code>ValueError</code></a> —
If the cache directory is a file, instead of a directory.</p>
</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>CacheNotFound</code> or <code>ValueError</code></p>
`}}),se=new Pe({props:{anchor:"huggingface_hub.scan_cache_dir.example",$$slots:{default:[Yn]},$$scope:{ctx:$}}}),le=new Pe({props:{anchor:"huggingface_hub.scan_cache_dir.example-2",$$slots:{default:[Gn]},$$scope:{ctx:$}}}),Ue=new Me({props:{warning:!0}}),we=new V({props:{title:"Data structures",local:"data-structures",headingTag:"h2"}}),je=new V({props:{title:"HFCacheInfo",local:"huggingface_hub.HFCacheInfo",headingTag:"h3"}}),ve=new Z({props:{name:"class huggingface_hub.HFCacheInfo",anchor:"huggingface_hub.HFCacheInfo",parameters:[{name:"size_on_disk",val:": int"},{name:"repos",val:": FrozenSet"},{name:"warnings",val:": List"}],parametersDescription:[{anchor:"huggingface_hub.HFCacheInfo.size_on_disk",description:`<strong>size_on_disk</strong> (<code>int</code>) &#x2014;
Sum of all valid repo sizes in the cache-system.`,name:"size_on_disk"},{anchor:"huggingface_hub.HFCacheInfo.repos",description:`<strong>repos</strong> (<code>FrozenSet[CachedRepoInfo]</code>) &#x2014;
Set of <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.CachedRepoInfo">~CachedRepoInfo</a> describing all valid cached repos found on the
cache-system while scanning.`,name:"repos"},{anchor:"huggingface_hub.HFCacheInfo.warnings",description:`<strong>warnings</strong> (<code>List[CorruptedCacheException]</code>) &#x2014;
List of <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.CorruptedCacheException">~CorruptedCacheException</a> that occurred while scanning the cache.
Those exceptions are captured so that the scan can continue. Corrupted repos
are skipped from the scan.`,name:"warnings"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L353"}}),oe=new Me({props:{warning:!0,$$slots:{default:[En]},$$scope:{ctx:$}}}),xe=new Z({props:{name:"delete_revisions",anchor:"huggingface_hub.HFCacheInfo.delete_revisions",parameters:[{name:"*revisions",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L392"}}),re=new Pe({props:{anchor:"huggingface_hub.HFCacheInfo.delete_revisions.example",$$slots:{default:[Vn]},$$scope:{ctx:$}}}),ce=new Pe({props:{anchor:"huggingface_hub.HFCacheInfo.delete_revisions.example-2",$$slots:{default:[Dn]},$$scope:{ctx:$}}}),ie=new Me({props:{warning:!0,$$slots:{default:[Hn]},$$scope:{ctx:$}}}),Ae=new V({props:{title:"CachedRepoInfo",local:"huggingface_hub.CachedRepoInfo",headingTag:"h3"}}),ke=new Z({props:{name:"class huggingface_hub.CachedRepoInfo",anchor:"huggingface_hub.CachedRepoInfo",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Literal"},{name:"repo_path",val:": Path"},{name:"size_on_disk",val:": int"},{name:"nb_files",val:": int"},{name:"revisions",val:": FrozenSet"},{name:"last_accessed",val:": float"},{name:"last_modified",val:": float"}],parametersDescription:[{anchor:"huggingface_hub.CachedRepoInfo.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
Repo id of the repo on the Hub. Example: <code>&quot;google/fleurs&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.CachedRepoInfo.repo_type",description:`<strong>repo_type</strong> (<code>Literal[&quot;dataset&quot;, &quot;model&quot;, &quot;space&quot;]</code>) &#x2014;
Type of the cached repo.`,name:"repo_type"},{anchor:"huggingface_hub.CachedRepoInfo.repo_path",description:`<strong>repo_path</strong> (<code>Path</code>) &#x2014;
Local path to the cached repo.`,name:"repo_path"},{anchor:"huggingface_hub.CachedRepoInfo.size_on_disk",description:`<strong>size_on_disk</strong> (<code>int</code>) &#x2014;
Sum of the blob file sizes in the cached repo.`,name:"size_on_disk"},{anchor:"huggingface_hub.CachedRepoInfo.nb_files",description:`<strong>nb_files</strong> (<code>int</code>) &#x2014;
Total number of blob files in the cached repo.`,name:"nb_files"},{anchor:"huggingface_hub.CachedRepoInfo.revisions",description:`<strong>revisions</strong> (<code>FrozenSet[CachedRevisionInfo]</code>) &#x2014;
Set of <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.CachedRevisionInfo">~CachedRevisionInfo</a> describing all revisions cached in the repo.`,name:"revisions"},{anchor:"huggingface_hub.CachedRepoInfo.last_accessed",description:`<strong>last_accessed</strong> (<code>float</code>) &#x2014;
Timestamp of the last time a blob file of the repo has been accessed.`,name:"last_accessed"},{anchor:"huggingface_hub.CachedRepoInfo.last_modified",description:`<strong>last_modified</strong> (<code>float</code>) &#x2014;
Timestamp of the last time a blob file of the repo has been modified/created.`,name:"last_modified"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L191"}}),he=new Me({props:{warning:!0,$$slots:{default:[Qn]},$$scope:{ctx:$}}}),de=new Me({props:{warning:!0,$$slots:{default:[Bn]},$$scope:{ctx:$}}}),Se=new Z({props:{name:"size_on_disk_str",anchor:"huggingface_hub.CachedRepoInfo.size_on_disk_str",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L260"}}),Ze=new Z({props:{name:"refs",anchor:"huggingface_hub.CachedRepoInfo.refs",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L269"}}),Fe=new V({props:{title:"CachedRevisionInfo",local:"huggingface_hub.CachedRevisionInfo",headingTag:"h3"}}),Re=new Z({props:{name:"class huggingface_hub.CachedRevisionInfo",anchor:"huggingface_hub.CachedRevisionInfo",parameters:[{name:"commit_hash",val:": str"},{name:"snapshot_path",val:": Path"},{name:"size_on_disk",val:": int"},{name:"files",val:": FrozenSet"},{name:"refs",val:": FrozenSet"},{name:"last_modified",val:": float"}],parametersDescription:[{anchor:"huggingface_hub.CachedRevisionInfo.commit_hash",description:`<strong>commit_hash</strong> (<code>str</code>) &#x2014;
Hash of the revision (unique).
Example: <code>&quot;9338f7b671827df886678df2bdd7cc7b4f36dffd&quot;</code>.`,name:"commit_hash"},{anchor:"huggingface_hub.CachedRevisionInfo.snapshot_path",description:`<strong>snapshot_path</strong> (<code>Path</code>) &#x2014;
Path to the revision directory in the <code>snapshots</code> folder. It contains the
exact tree structure as the repo on the Hub.
files &#x2014; (<code>FrozenSet[CachedFileInfo]</code>):
Set of <a href="/docs/huggingface_hub/v0.21.0.rc0/en/package_reference/cache#huggingface_hub.CachedFileInfo">~CachedFileInfo</a> describing all files contained in the snapshot.`,name:"snapshot_path"},{anchor:"huggingface_hub.CachedRevisionInfo.refs",description:`<strong>refs</strong> (<code>FrozenSet[str]</code>) &#x2014;
Set of <code>refs</code> pointing to this revision. If the revision has no <code>refs</code>, it
is considered detached.
Example: <code>{&quot;main&quot;, &quot;2.4.0&quot;}</code> or <code>{&quot;refs/pr/1&quot;}</code>.`,name:"refs"},{anchor:"huggingface_hub.CachedRevisionInfo.size_on_disk",description:`<strong>size_on_disk</strong> (<code>int</code>) &#x2014;
Sum of the blob file sizes that are symlink-ed by the revision.`,name:"size_on_disk"},{anchor:"huggingface_hub.CachedRevisionInfo.last_modified",description:`<strong>last_modified</strong> (<code>float</code>) &#x2014;
Timestamp of the last time the revision has been created/modified.`,name:"last_modified"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L114"}}),fe=new Me({props:{warning:!0,$$slots:{default:[On]},$$scope:{ctx:$}}}),pe=new Me({props:{warning:!0,$$slots:{default:[Wn]},$$scope:{ctx:$}}}),Le=new Z({props:{name:"size_on_disk_str",anchor:"huggingface_hub.CachedRevisionInfo.size_on_disk_str",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L174"}}),Ne=new Z({props:{name:"nb_files",anchor:"huggingface_hub.CachedRevisionInfo.nb_files",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L183"}}),ze=new V({props:{title:"CachedFileInfo",local:"huggingface_hub.CachedFileInfo",headingTag:"h3"}}),Ye=new Z({props:{name:"class huggingface_hub.CachedFileInfo",anchor:"huggingface_hub.CachedFileInfo",parameters:[{name:"file_name",val:": str"},{name:"file_path",val:": Path"},{name:"blob_path",val:": Path"},{name:"size_on_disk",val:": int"},{name:"blob_last_accessed",val:": float"},{name:"blob_last_modified",val:": float"}],parametersDescription:[{anchor:"huggingface_hub.CachedFileInfo.file_name",description:`<strong>file_name</strong> (<code>str</code>) &#x2014;
Name of the file. Example: <code>config.json</code>.`,name:"file_name"},{anchor:"huggingface_hub.CachedFileInfo.file_path",description:`<strong>file_path</strong> (<code>Path</code>) &#x2014;
Path of the file in the <code>snapshots</code> directory. The file path is a symlink
referring to a blob in the <code>blobs</code> folder.`,name:"file_path"},{anchor:"huggingface_hub.CachedFileInfo.blob_path",description:`<strong>blob_path</strong> (<code>Path</code>) &#x2014;
Path of the blob file. This is equivalent to <code>file_path.resolve()</code>.`,name:"blob_path"},{anchor:"huggingface_hub.CachedFileInfo.size_on_disk",description:`<strong>size_on_disk</strong> (<code>int</code>) &#x2014;
Size of the blob file in bytes.`,name:"size_on_disk"},{anchor:"huggingface_hub.CachedFileInfo.blob_last_accessed",description:`<strong>blob_last_accessed</strong> (<code>float</code>) &#x2014;
Timestamp of the last time the blob file has been accessed (from any
revision).`,name:"blob_last_accessed"},{anchor:"huggingface_hub.CachedFileInfo.blob_last_modified",description:`<strong>blob_last_modified</strong> (<code>float</code>) &#x2014;
Timestamp of the last time the blob file has been modified/created.`,name:"blob_last_modified"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L47"}}),me=new Me({props:{warning:!0,$$slots:{default:[Pn]},$$scope:{ctx:$}}}),Ge=new Z({props:{name:"size_on_disk_str",anchor:"huggingface_hub.CachedFileInfo.size_on_disk_str",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L104"}}),Ee=new V({props:{title:"DeleteCacheStrategy",local:"huggingface_hub.DeleteCacheStrategy",headingTag:"h3"}}),Ve=new Z({props:{name:"class huggingface_hub.DeleteCacheStrategy",anchor:"huggingface_hub.DeleteCacheStrategy",parameters:[{name:"expected_freed_size",val:": int"},{name:"blobs",val:": FrozenSet"},{name:"refs",val:": FrozenSet"},{name:"repos",val:": FrozenSet"},{name:"snapshots",val:": FrozenSet"}],parametersDescription:[{anchor:"huggingface_hub.DeleteCacheStrategy.expected_freed_size",description:`<strong>expected_freed_size</strong> (<code>float</code>) &#x2014;
Expected freed size once strategy is executed.`,name:"expected_freed_size"},{anchor:"huggingface_hub.DeleteCacheStrategy.blobs",description:`<strong>blobs</strong> (<code>FrozenSet[Path]</code>) &#x2014;
Set of blob file paths to be deleted.`,name:"blobs"},{anchor:"huggingface_hub.DeleteCacheStrategy.refs",description:`<strong>refs</strong> (<code>FrozenSet[Path]</code>) &#x2014;
Set of reference file paths to be deleted.`,name:"refs"},{anchor:"huggingface_hub.DeleteCacheStrategy.repos",description:`<strong>repos</strong> (<code>FrozenSet[Path]</code>) &#x2014;
Set of entire repo paths to be deleted.`,name:"repos"},{anchor:"huggingface_hub.DeleteCacheStrategy.snapshots",description:`<strong>snapshots</strong> (<code>FrozenSet[Path]</code>) &#x2014;
Set of snapshots to be deleted (directory of symlinks).`,name:"snapshots"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L277"}}),De=new Z({props:{name:"expected_freed_size_str",anchor:"huggingface_hub.DeleteCacheStrategy.expected_freed_size_str",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L303"}}),He=new V({props:{title:"Exceptions",local:"exceptions",headingTag:"h2"}}),Qe=new V({props:{title:"CorruptedCacheException",local:"huggingface_hub.CorruptedCacheException",headingTag:"h3"}}),Be=new Z({props:{name:"class huggingface_hub.CorruptedCacheException",anchor:"huggingface_hub.CorruptedCacheException",parameters:"",source:"https://github.com/huggingface/huggingface_hub/blob/v0.21.0.rc0/src/huggingface_hub/utils/_cache_manager.py#L43"}}),{c(){t=i("meta"),b=l(),a=i("p"),d=l(),f(y.$$.fragment),r=l(),C=i("p"),C.innerHTML=Ka,xt=l(),f(_e.$$.fragment),At=l(),f(be.$$.fragment),kt=l(),z=i("div"),f(Te.$$.fragment),ta=l(),qe=i("p"),qe.textContent=en,aa=l(),Ke=i("p"),Ke.textContent=tn,na=l(),f(te.$$.fragment),St=l(),f(ye.$$.fragment),Zt=l(),J=i("div"),f($e.$$.fragment),sa=l(),et=i("p"),et.textContent=an,la=l(),tt=i("p"),tt.innerHTML=nn,oa=l(),at=i("p"),at.innerHTML=sn,ra=l(),nt=i("p"),nt.innerHTML=ln,ca=l(),f(ae.$$.fragment),ia=l(),f(ne.$$.fragment),Ft=l(),f(Ce.$$.fragment),Rt=l(),U=i("div"),f(Je.$$.fragment),ha=l(),st=i("p"),st.innerHTML=on,da=l(),lt=i("p"),lt.innerHTML=rn,ga=l(),f(se.$$.fragment),fa=l(),f(le.$$.fragment),pa=l(),f(Ue.$$.fragment),ua=l(),ot=i("p"),ot.innerHTML=cn,Lt=l(),f(we.$$.fragment),Nt=l(),Ie=i("p"),Ie.innerHTML=hn,zt=l(),f(je.$$.fragment),Yt=l(),F=i("div"),f(ve.$$.fragment),ma=l(),rt=i("p"),rt.textContent=dn,Ma=l(),ct=i("p"),ct.innerHTML=gn,_a=l(),f(oe.$$.fragment),ba=l(),S=i("div"),f(xe.$$.fragment),Ta=l(),it=i("p"),it.textContent=fn,ya=l(),ht=i("p"),ht.textContent=pn,$a=l(),f(re.$$.fragment),Ca=l(),f(ce.$$.fragment),Ja=l(),f(ie.$$.fragment),Gt=l(),f(Ae.$$.fragment),Et=l(),v=i("div"),f(ke.$$.fragment),Ua=l(),dt=i("p"),dt.textContent=un,wa=l(),f(he.$$.fragment),Ia=l(),f(de.$$.fragment),ja=l(),B=i("div"),f(Se.$$.fragment),va=l(),gt=i("p"),gt.textContent=mn,xa=l(),ft=i("p"),ft.textContent=Mn,Aa=l(),ge=i("div"),f(Ze.$$.fragment),ka=l(),pt=i("p"),pt.innerHTML=_n,Vt=l(),f(Fe.$$.fragment),Dt=l(),w=i("div"),f(Re.$$.fragment),Sa=l(),ut=i("p"),ut.textContent=bn,Za=l(),mt=i("p"),mt.innerHTML=Tn,Fa=l(),f(fe.$$.fragment),Ra=l(),f(pe.$$.fragment),La=l(),O=i("div"),f(Le.$$.fragment),Na=l(),Mt=i("p"),Mt.textContent=yn,za=l(),_t=i("p"),_t.textContent=$n,Ya=l(),ue=i("div"),f(Ne.$$.fragment),Ga=l(),bt=i("p"),bt.textContent=Cn,Ht=l(),f(ze.$$.fragment),Qt=l(),Y=i("div"),f(Ye.$$.fragment),Ea=l(),Tt=i("p"),Tt.textContent=Jn,Va=l(),f(me.$$.fragment),Da=l(),W=i("div"),f(Ge.$$.fragment),Ha=l(),yt=i("p"),yt.textContent=Un,Qa=l(),$t=i("p"),$t.textContent=wn,Bt=l(),f(Ee.$$.fragment),Ot=l(),G=i("div"),f(Ve.$$.fragment),Ba=l(),Ct=i("p"),Ct.textContent=In,Oa=l(),Jt=i("p"),Jt.innerHTML=jn,Wa=l(),P=i("div"),f(De.$$.fragment),Pa=l(),Ut=i("p"),Ut.textContent=vn,Xa=l(),wt=i("p"),wt.textContent=xn,Wt=l(),f(He.$$.fragment),Pt=l(),f(Qe.$$.fragment),Xt=l(),X=i("div"),f(Be.$$.fragment),qa=l(),It=i("p"),It.textContent=An,qt=l(),vt=i("p"),this.h()},l(e){const s=Rn("svelte-u9bgzb",document.head);t=h(s,"META",{name:!0,content:!0}),s.forEach(c),b=o(e),a=h(e,"P",{}),I(a).forEach(c),d=o(e),p(y.$$.fragment,e),r=o(e),C=h(e,"P",{"data-svelte-h":!0}),T(C)!=="svelte-1rfy74v"&&(C.innerHTML=Ka),xt=o(e),p(_e.$$.fragment,e),At=o(e),p(be.$$.fragment,e),kt=o(e),z=h(e,"DIV",{class:!0});var D=I(z);p(Te.$$.fragment,D),ta=o(D),qe=h(D,"P",{"data-svelte-h":!0}),T(qe)!=="svelte-wybe3x"&&(qe.textContent=en),aa=o(D),Ke=h(D,"P",{"data-svelte-h":!0}),T(Ke)!=="svelte-9465ci"&&(Ke.textContent=tn),na=o(D),p(te.$$.fragment,D),D.forEach(c),St=o(e),p(ye.$$.fragment,e),Zt=o(e),J=h(e,"DIV",{class:!0});var x=I(J);p($e.$$.fragment,x),sa=o(x),et=h(x,"P",{"data-svelte-h":!0}),T(et)!=="svelte-1ua2cjq"&&(et.textContent=an),la=o(x),tt=h(x,"P",{"data-svelte-h":!0}),T(tt)!=="svelte-185gfp2"&&(tt.innerHTML=nn),oa=o(x),at=h(x,"P",{"data-svelte-h":!0}),T(at)!=="svelte-1ky40fv"&&(at.innerHTML=sn),ra=o(x),nt=h(x,"P",{"data-svelte-h":!0}),T(nt)!=="svelte-1dsf1o4"&&(nt.innerHTML=ln),ca=o(x),p(ae.$$.fragment,x),ia=o(x),p(ne.$$.fragment,x),x.forEach(c),Ft=o(e),p(Ce.$$.fragment,e),Rt=o(e),U=h(e,"DIV",{class:!0});var A=I(U);p(Je.$$.fragment,A),ha=o(A),st=h(A,"P",{"data-svelte-h":!0}),T(st)!=="svelte-q4ovpm"&&(st.innerHTML=on),da=o(A),lt=h(A,"P",{"data-svelte-h":!0}),T(lt)!=="svelte-13aka6f"&&(lt.innerHTML=rn),ga=o(A),p(se.$$.fragment,A),fa=o(A),p(le.$$.fragment,A),pa=o(A),p(Ue.$$.fragment,A),ua=o(A),ot=h(A,"P",{"data-svelte-h":!0}),T(ot)!=="svelte-9ne229"&&(ot.innerHTML=cn),A.forEach(c),Lt=o(e),p(we.$$.fragment,e),Nt=o(e),Ie=h(e,"P",{"data-svelte-h":!0}),T(Ie)!=="svelte-bhmu5e"&&(Ie.innerHTML=hn),zt=o(e),p(je.$$.fragment,e),Yt=o(e),F=h(e,"DIV",{class:!0});var E=I(F);p(ve.$$.fragment,E),ma=o(E),rt=h(E,"P",{"data-svelte-h":!0}),T(rt)!=="svelte-z29m0d"&&(rt.textContent=dn),Ma=o(E),ct=h(E,"P",{"data-svelte-h":!0}),T(ct)!=="svelte-15y7ltd"&&(ct.innerHTML=gn),_a=o(E),p(oe.$$.fragment,E),ba=o(E),S=h(E,"DIV",{class:!0});var R=I(S);p(xe.$$.fragment,R),Ta=o(R),it=h(R,"P",{"data-svelte-h":!0}),T(it)!=="svelte-1kc0sf3"&&(it.textContent=fn),ya=o(R),ht=h(R,"P",{"data-svelte-h":!0}),T(ht)!=="svelte-hvu8pg"&&(ht.textContent=pn),$a=o(R),p(re.$$.fragment,R),Ca=o(R),p(ce.$$.fragment,R),Ja=o(R),p(ie.$$.fragment,R),R.forEach(c),E.forEach(c),Gt=o(e),p(Ae.$$.fragment,e),Et=o(e),v=h(e,"DIV",{class:!0});var L=I(v);p(ke.$$.fragment,L),Ua=o(L),dt=h(L,"P",{"data-svelte-h":!0}),T(dt)!=="svelte-yfk7e8"&&(dt.textContent=un),wa=o(L),p(he.$$.fragment,L),Ia=o(L),p(de.$$.fragment,L),ja=o(L),B=h(L,"DIV",{class:!0});var q=I(B);p(Se.$$.fragment,q),va=o(q),gt=h(q,"P",{"data-svelte-h":!0}),T(gt)!=="svelte-zfpv6m"&&(gt.textContent=mn),xa=o(q),ft=h(q,"P",{"data-svelte-h":!0}),T(ft)!=="svelte-jo5bw4"&&(ft.textContent=Mn),q.forEach(c),Aa=o(L),ge=h(L,"DIV",{class:!0});var Oe=I(ge);p(Ze.$$.fragment,Oe),ka=o(Oe),pt=h(Oe,"P",{"data-svelte-h":!0}),T(pt)!=="svelte-1a85bod"&&(pt.innerHTML=_n),Oe.forEach(c),L.forEach(c),Vt=o(e),p(Fe.$$.fragment,e),Dt=o(e),w=h(e,"DIV",{class:!0});var k=I(w);p(Re.$$.fragment,k),Sa=o(k),ut=h(k,"P",{"data-svelte-h":!0}),T(ut)!=="svelte-e2eri1"&&(ut.textContent=bn),Za=o(k),mt=h(k,"P",{"data-svelte-h":!0}),T(mt)!=="svelte-1h5zcam"&&(mt.innerHTML=Tn),Fa=o(k),p(fe.$$.fragment,k),Ra=o(k),p(pe.$$.fragment,k),La=o(k),O=h(k,"DIV",{class:!0});var K=I(O);p(Le.$$.fragment,K),Na=o(K),Mt=h(K,"P",{"data-svelte-h":!0}),T(Mt)!=="svelte-zfpv6m"&&(Mt.textContent=yn),za=o(K),_t=h(K,"P",{"data-svelte-h":!0}),T(_t)!=="svelte-jo5bw4"&&(_t.textContent=$n),K.forEach(c),Ya=o(k),ue=h(k,"DIV",{class:!0});var We=I(ue);p(Ne.$$.fragment,We),Ga=o(We),bt=h(We,"P",{"data-svelte-h":!0}),T(bt)!=="svelte-o0ydo0"&&(bt.textContent=Cn),We.forEach(c),k.forEach(c),Ht=o(e),p(ze.$$.fragment,e),Qt=o(e),Y=h(e,"DIV",{class:!0});var H=I(Y);p(Ye.$$.fragment,H),Ea=o(H),Tt=h(H,"P",{"data-svelte-h":!0}),T(Tt)!=="svelte-1l95h2a"&&(Tt.textContent=Jn),Va=o(H),p(me.$$.fragment,H),Da=o(H),W=h(H,"DIV",{class:!0});var ee=I(W);p(Ge.$$.fragment,ee),Ha=o(ee),yt=h(ee,"P",{"data-svelte-h":!0}),T(yt)!=="svelte-easepm"&&(yt.textContent=Un),Qa=o(ee),$t=h(ee,"P",{"data-svelte-h":!0}),T($t)!=="svelte-jo5bw4"&&($t.textContent=wn),ee.forEach(c),H.forEach(c),Bt=o(e),p(Ee.$$.fragment,e),Ot=o(e),G=h(e,"DIV",{class:!0});var Q=I(G);p(Ve.$$.fragment,Q),Ba=o(Q),Ct=h(Q,"P",{"data-svelte-h":!0}),T(Ct)!=="svelte-13gw4lu"&&(Ct.textContent=In),Oa=o(Q),Jt=h(Q,"P",{"data-svelte-h":!0}),T(Jt)!=="svelte-ptbeva"&&(Jt.innerHTML=jn),Wa=o(Q),P=h(Q,"DIV",{class:!0});var jt=I(P);p(De.$$.fragment,jt),Pa=o(jt),Ut=h(jt,"P",{"data-svelte-h":!0}),T(Ut)!=="svelte-1syr64t"&&(Ut.textContent=vn),Xa=o(jt),wt=h(jt,"P",{"data-svelte-h":!0}),T(wt)!=="svelte-jo5bw4"&&(wt.textContent=xn),jt.forEach(c),Q.forEach(c),Wt=o(e),p(He.$$.fragment,e),Pt=o(e),p(Qe.$$.fragment,e),Xt=o(e),X=h(e,"DIV",{class:!0});var ea=I(X);p(Be.$$.fragment,ea),qa=o(ea),It=h(ea,"P",{"data-svelte-h":!0}),T(It)!=="svelte-thu1ey"&&(It.textContent=An),ea.forEach(c),qt=o(e),vt=h(e,"P",{}),I(vt).forEach(c),this.h()},h(){j(t,"name","hf:doc:metadata"),j(t,"content",qn),j(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(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,s){n(document.head,t),g(e,b,s),g(e,a,s),g(e,d,s),u(y,e,s),g(e,r,s),g(e,C,s),g(e,xt,s),u(_e,e,s),g(e,At,s),u(be,e,s),g(e,kt,s),g(e,z,s),u(Te,z,null),n(z,ta),n(z,qe),n(z,aa),n(z,Ke),n(z,na),u(te,z,null),g(e,St,s),u(ye,e,s),g(e,Zt,s),g(e,J,s),u($e,J,null),n(J,sa),n(J,et),n(J,la),n(J,tt),n(J,oa),n(J,at),n(J,ra),n(J,nt),n(J,ca),u(ae,J,null),n(J,ia),u(ne,J,null),g(e,Ft,s),u(Ce,e,s),g(e,Rt,s),g(e,U,s),u(Je,U,null),n(U,ha),n(U,st),n(U,da),n(U,lt),n(U,ga),u(se,U,null),n(U,fa),u(le,U,null),n(U,pa),u(Ue,U,null),n(U,ua),n(U,ot),g(e,Lt,s),u(we,e,s),g(e,Nt,s),g(e,Ie,s),g(e,zt,s),u(je,e,s),g(e,Yt,s),g(e,F,s),u(ve,F,null),n(F,ma),n(F,rt),n(F,Ma),n(F,ct),n(F,_a),u(oe,F,null),n(F,ba),n(F,S),u(xe,S,null),n(S,Ta),n(S,it),n(S,ya),n(S,ht),n(S,$a),u(re,S,null),n(S,Ca),u(ce,S,null),n(S,Ja),u(ie,S,null),g(e,Gt,s),u(Ae,e,s),g(e,Et,s),g(e,v,s),u(ke,v,null),n(v,Ua),n(v,dt),n(v,wa),u(he,v,null),n(v,Ia),u(de,v,null),n(v,ja),n(v,B),u(Se,B,null),n(B,va),n(B,gt),n(B,xa),n(B,ft),n(v,Aa),n(v,ge),u(Ze,ge,null),n(ge,ka),n(ge,pt),g(e,Vt,s),u(Fe,e,s),g(e,Dt,s),g(e,w,s),u(Re,w,null),n(w,Sa),n(w,ut),n(w,Za),n(w,mt),n(w,Fa),u(fe,w,null),n(w,Ra),u(pe,w,null),n(w,La),n(w,O),u(Le,O,null),n(O,Na),n(O,Mt),n(O,za),n(O,_t),n(w,Ya),n(w,ue),u(Ne,ue,null),n(ue,Ga),n(ue,bt),g(e,Ht,s),u(ze,e,s),g(e,Qt,s),g(e,Y,s),u(Ye,Y,null),n(Y,Ea),n(Y,Tt),n(Y,Va),u(me,Y,null),n(Y,Da),n(Y,W),u(Ge,W,null),n(W,Ha),n(W,yt),n(W,Qa),n(W,$t),g(e,Bt,s),u(Ee,e,s),g(e,Ot,s),g(e,G,s),u(Ve,G,null),n(G,Ba),n(G,Ct),n(G,Oa),n(G,Jt),n(G,Wa),n(G,P),u(De,P,null),n(P,Pa),n(P,Ut),n(P,Xa),n(P,wt),g(e,Wt,s),u(He,e,s),g(e,Pt,s),u(Qe,e,s),g(e,Xt,s),g(e,X,s),u(Be,X,null),n(X,qa),n(X,It),g(e,qt,s),g(e,vt,s),Kt=!0},p(e,[s]){const D={};s&2&&(D.$$scope={dirty:s,ctx:e}),te.$set(D);const x={};s&2&&(x.$$scope={dirty:s,ctx:e}),ae.$set(x);const A={};s&2&&(A.$$scope={dirty:s,ctx:e}),ne.$set(A);const E={};s&2&&(E.$$scope={dirty:s,ctx:e}),se.$set(E);const R={};s&2&&(R.$$scope={dirty:s,ctx:e}),le.$set(R);const L={};s&2&&(L.$$scope={dirty:s,ctx:e}),oe.$set(L);const q={};s&2&&(q.$$scope={dirty:s,ctx:e}),re.$set(q);const Oe={};s&2&&(Oe.$$scope={dirty:s,ctx:e}),ce.$set(Oe);const k={};s&2&&(k.$$scope={dirty:s,ctx:e}),ie.$set(k);const K={};s&2&&(K.$$scope={dirty:s,ctx:e}),he.$set(K);const We={};s&2&&(We.$$scope={dirty:s,ctx:e}),de.$set(We);const H={};s&2&&(H.$$scope={dirty:s,ctx:e}),fe.$set(H);const ee={};s&2&&(ee.$$scope={dirty:s,ctx:e}),pe.$set(ee);const Q={};s&2&&(Q.$$scope={dirty:s,ctx:e}),me.$set(Q)},i(e){Kt||(m(y.$$.fragment,e),m(_e.$$.fragment,e),m(be.$$.fragment,e),m(Te.$$.fragment,e),m(te.$$.fragment,e),m(ye.$$.fragment,e),m($e.$$.fragment,e),m(ae.$$.fragment,e),m(ne.$$.fragment,e),m(Ce.$$.fragment,e),m(Je.$$.fragment,e),m(se.$$.fragment,e),m(le.$$.fragment,e),m(Ue.$$.fragment,e),m(we.$$.fragment,e),m(je.$$.fragment,e),m(ve.$$.fragment,e),m(oe.$$.fragment,e),m(xe.$$.fragment,e),m(re.$$.fragment,e),m(ce.$$.fragment,e),m(ie.$$.fragment,e),m(Ae.$$.fragment,e),m(ke.$$.fragment,e),m(he.$$.fragment,e),m(de.$$.fragment,e),m(Se.$$.fragment,e),m(Ze.$$.fragment,e),m(Fe.$$.fragment,e),m(Re.$$.fragment,e),m(fe.$$.fragment,e),m(pe.$$.fragment,e),m(Le.$$.fragment,e),m(Ne.$$.fragment,e),m(ze.$$.fragment,e),m(Ye.$$.fragment,e),m(me.$$.fragment,e),m(Ge.$$.fragment,e),m(Ee.$$.fragment,e),m(Ve.$$.fragment,e),m(De.$$.fragment,e),m(He.$$.fragment,e),m(Qe.$$.fragment,e),m(Be.$$.fragment,e),Kt=!0)},o(e){M(y.$$.fragment,e),M(_e.$$.fragment,e),M(be.$$.fragment,e),M(Te.$$.fragment,e),M(te.$$.fragment,e),M(ye.$$.fragment,e),M($e.$$.fragment,e),M(ae.$$.fragment,e),M(ne.$$.fragment,e),M(Ce.$$.fragment,e),M(Je.$$.fragment,e),M(se.$$.fragment,e),M(le.$$.fragment,e),M(Ue.$$.fragment,e),M(we.$$.fragment,e),M(je.$$.fragment,e),M(ve.$$.fragment,e),M(oe.$$.fragment,e),M(xe.$$.fragment,e),M(re.$$.fragment,e),M(ce.$$.fragment,e),M(ie.$$.fragment,e),M(Ae.$$.fragment,e),M(ke.$$.fragment,e),M(he.$$.fragment,e),M(de.$$.fragment,e),M(Se.$$.fragment,e),M(Ze.$$.fragment,e),M(Fe.$$.fragment,e),M(Re.$$.fragment,e),M(fe.$$.fragment,e),M(pe.$$.fragment,e),M(Le.$$.fragment,e),M(Ne.$$.fragment,e),M(ze.$$.fragment,e),M(Ye.$$.fragment,e),M(me.$$.fragment,e),M(Ge.$$.fragment,e),M(Ee.$$.fragment,e),M(Ve.$$.fragment,e),M(De.$$.fragment,e),M(He.$$.fragment,e),M(Qe.$$.fragment,e),M(Be.$$.fragment,e),Kt=!1},d(e){e&&(c(b),c(a),c(d),c(r),c(C),c(xt),c(At),c(kt),c(z),c(St),c(Zt),c(J),c(Ft),c(Rt),c(U),c(Lt),c(Nt),c(Ie),c(zt),c(Yt),c(F),c(Gt),c(Et),c(v),c(Vt),c(Dt),c(w),c(Ht),c(Qt),c(Y),c(Bt),c(Ot),c(G),c(Wt),c(Pt),c(Xt),c(X),c(qt),c(vt)),c(t),_(y,e),_(_e,e),_(be,e),_(Te),_(te),_(ye,e),_($e),_(ae),_(ne),_(Ce,e),_(Je),_(se),_(le),_(Ue),_(we,e),_(je,e),_(ve),_(oe),_(xe),_(re),_(ce),_(ie),_(Ae,e),_(ke),_(he),_(de),_(Se),_(Ze),_(Fe,e),_(Re),_(fe),_(pe),_(Le),_(Ne),_(ze,e),_(Ye),_(me),_(Ge),_(Ee,e),_(Ve),_(De),_(He,e),_(Qe,e),_(Be)}}}const qn='{"title":"Cache-system reference","local":"cache-system-reference","sections":[{"title":"Helpers","local":"helpers","sections":[{"title":"try_to_load_from_cache","local":"huggingface_hub.try_to_load_from_cache","sections":[],"depth":3},{"title":"cached_assets_path","local":"huggingface_hub.cached_assets_path","sections":[],"depth":3},{"title":"scan_cache_dir","local":"huggingface_hub.scan_cache_dir","sections":[],"depth":3}],"depth":2},{"title":"Data structures","local":"data-structures","sections":[{"title":"HFCacheInfo","local":"huggingface_hub.HFCacheInfo","sections":[],"depth":3},{"title":"CachedRepoInfo","local":"huggingface_hub.CachedRepoInfo","sections":[],"depth":3},{"title":"CachedRevisionInfo","local":"huggingface_hub.CachedRevisionInfo","sections":[],"depth":3},{"title":"CachedFileInfo","local":"huggingface_hub.CachedFileInfo","sections":[],"depth":3},{"title":"DeleteCacheStrategy","local":"huggingface_hub.DeleteCacheStrategy","sections":[],"depth":3}],"depth":2},{"title":"Exceptions","local":"exceptions","sections":[{"title":"CorruptedCacheException","local":"huggingface_hub.CorruptedCacheException","sections":[],"depth":3}],"depth":2}],"depth":1}';function Kn($){return Sn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class rs extends Zn{constructor(t){super(),Fn(this,t,Kn,Xn,kn,{})}}export{rs as component};
