import{s as Qn,o as Bn,n as L}from"../chunks/scheduler.6062bdaf.js";import{S as Xn,i as qn,g as h,s as l,r as p,A as Kn,h as d,f as c,c as o,j,u as f,x as T,k as U,y as a,a as g,v as u,d as m,t as b,w as _}from"../chunks/index.4bca734e.js";import{T as Te}from"../chunks/Tip.b9ac1f03.js";import{D as F}from"../chunks/Docstring.b6251191.js";import{C as $e}from"../chunks/CodeBlock.cbbddafc.js";import{E as ye}from"../chunks/ExampleCodeBlock.8d71e6b1.js";import{H as V,E as es}from"../chunks/getInferenceSnippets.b564dd8b.js";function ts($){let t,M="Example:",n,i,y;return i=new $e({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=h("p"),t.textContent=M,n=l(),p(i.$$.fragment)},l(s){t=d(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=M),n=o(s),f(i.$$.fragment,s)},m(s,J){g(s,t,J),g(s,n,J),u(i,s,J),y=!0},p:L,i(s){y||(m(i.$$.fragment,s),y=!0)},o(s){b(i.$$.fragment,s),y=!1},d(s){s&&(c(t),c(n)),_(i,s)}}}function as($){let t,M="Expected tree:",n,i,y;return i=new $e({props:{code:"JTIwJTIwJTIwJTIwYXNzZXRzJTJGJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwZGF0YXNldHMlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjBTUXVBRCUyRiUwQSUyMCUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMGRvd25sb2FkZWQlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjBleHRyYWN0ZWQlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBwcm9jZXNzZWQlMkYlMEElMjAlMjAlMjAlMjAlRTIlOT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jAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBiYmM3N2M4MTMyYWYxY2M1Y2Y2NzhkYTNmMWRkZjJkZTQzNjA2ZDQ4JTJGJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwKC4uLik=",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=h("p"),t.textContent=M,n=l(),p(i.$$.fragment)},l(s){t=d(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-c5dp2"&&(t.textContent=M),n=o(s),f(i.$$.fragment,s)},m(s,J){g(s,t,J),g(s,n,J),u(i,s,J),y=!0},p:L,i(s){y||(m(i.$$.fragment,s),y=!0)},o(s){b(i.$$.fragment,s),y=!1},d(s){s&&(c(t),c(n)),_(i,s)}}}function ns($){let t,M="Example:",n,i,y;return i=new $e({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=h("p"),t.textContent=M,n=l(),p(i.$$.fragment)},l(s){t=d(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=M),n=o(s),f(i.$$.fragment,s)},m(s,J){g(s,t,J),g(s,n,J),u(i,s,J),y=!0},p:L,i(s){y||(m(i.$$.fragment,s),y=!0)},o(s){b(i.$$.fragment,s),y=!1},d(s){s&&(c(t),c(n)),_(i,s)}}}function ss($){let t,M;return t=new $e({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(){p(t.$$.fragment)},l(n){f(t.$$.fragment,n)},m(n,i){u(t,n,i),M=!0},p:L,i(n){M||(m(t.$$.fragment,n),M=!0)},o(n){b(t.$$.fragment,n),M=!1},d(n){_(t,n)}}}function ls($){let t,M="You can also print a detailed report directly from the <code>hf</code> command line using:",n,i,y;return i=new $e({props:{code:"JTNFJTIwaGYlMjBjYWNoZSUyMHNjYW4lMEFSRVBPJTIwSUQlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBSRVBPJTIwVFlQRSUyMFNJWkUlMjBPTiUyMERJU0slMjBOQiUyMEZJTEVTJTIwUkVGUyUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMExPQ0FMJTIwUEFUSCUwQS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSUyMC0tLS0tLS0tLSUyMC0tLS0tLS0tLS0tLSUyMC0tLS0tLS0tJTIwLS0tLS0tLS0tLS0tLS0tLS0tLSUyMC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t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MjA2JTIwcmVwbyhzKSUyMGZvciUyMGElMjB0b3RhbCUyMG9mJTIwMy40Ry4lMEFHb3QlMjAxJTIwd2FybmluZyhzKSUyMHdoaWxlJTIwc2Nhbm5pbmcuJTIwVXNlJTIwLXZ2diUyMHRvJTIwcHJpbnQlMjBkZXRhaWxzLg==",highlighted:`&gt; hf cache scan
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=h("p"),t.innerHTML=M,n=l(),p(i.$$.fragment)},l(s){t=d(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-1udyvuj"&&(t.innerHTML=M),n=o(s),f(i.$$.fragment,s)},m(s,J){g(s,t,J),g(s,n,J),u(i,s,J),y=!0},p:L,i(s){y||(m(i.$$.fragment,s),y=!0)},o(s){b(i.$$.fragment,s),y=!1},d(s){s&&(c(t),c(n)),_(i,s)}}}function os($){let t,M=`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=h("p"),t.innerHTML=M},l(n){t=d(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-sgjnu7"&&(t.innerHTML=M)},m(n,i){g(n,t,i)},p:L,d(n){n&&c(t)}}}function rs($){let t,M="Examples:",n,i,y;return i=new $e({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=h("p"),t.textContent=M,n=l(),p(i.$$.fragment)},l(s){t=d(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-kvfsh7"&&(t.textContent=M),n=o(s),f(i.$$.fragment,s)},m(s,J){g(s,t,J),g(s,n,J),u(i,s,J),y=!0},p:L,i(s){y||(m(i.$$.fragment,s),y=!0)},o(s){b(i.$$.fragment,s),y=!1},d(s){s&&(c(t),c(n)),_(i,s)}}}function cs($){let t,M;return t=new $e({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(){p(t.$$.fragment)},l(n){f(t.$$.fragment,n)},m(n,i){u(t,n,i),M=!0},p:L,i(n){M||(m(t.$$.fragment,n),M=!0)},o(n){b(t.$$.fragment,n),M=!1},d(n){_(t,n)}}}function is($){let t,M=`<code>delete_revisions</code> returns a <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.DeleteCacheStrategy">DeleteCacheStrategy</a> object that needs to
be executed. The <a href="/docs/huggingface_hub/main/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=h("p"),t.innerHTML=M},l(n){t=d(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-8vu2dt"&&(t.innerHTML=M)},m(n,i){g(n,t,i)},p:L,d(n){n&&c(t)}}}function hs($){let t,M="Example:",n,i,y;return i=new $e({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMHNjYW5fY2FjaGVfZGlyJTBBJTBBaGZfY2FjaGVfaW5mbyUyMCUzRCUyMHNjYW5fY2FjaGVfZGlyKCklMEElMEFwcmludChoZl9jYWNoZV9pbmZvLmV4cG9ydF9hc190YWJsZSgpKSUwQSUwQXByaW50KGhmX2NhY2hlX2luZm8uZXhwb3J0X2FzX3RhYmxlKHZlcmJvc2l0eSUzRDEpKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> scan_cache_dir

<span class="hljs-meta">&gt;&gt;&gt; </span>hf_cache_info = scan_cache_dir()
HFCacheInfo(...)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(hf_cache_info.export_as_table())
REPO ID                                             REPO TYPE SIZE ON DISK NB FILES LAST_ACCESSED LAST_MODIFIED REFS LOCAL PATH
--------------------------------------------------- --------- ------------ -------- ------------- ------------- ---- --------------------------------------------------------------------------------------------------
roberta-base                                        model             <span class="hljs-number">2.7</span>M        <span class="hljs-number">5</span> <span class="hljs-number">1</span> day ago     <span class="hljs-number">1</span> week ago    main ~/.cache/huggingface/hub/models--roberta-base
suno/bark                                           model             <span class="hljs-number">8.8</span>K        <span class="hljs-number">1</span> <span class="hljs-number">1</span> week ago    <span class="hljs-number">1</span> week ago    main ~/.cache/huggingface/hub/models--suno--bark
t5-base                                             model           <span class="hljs-number">893.8</span>M        <span class="hljs-number">4</span> <span class="hljs-number">4</span> days ago    <span class="hljs-number">7</span> months ago  main ~/.cache/huggingface/hub/models--t5-base
t5-large                                            model             <span class="hljs-number">3.0</span>G        <span class="hljs-number">4</span> <span class="hljs-number">5</span> weeks ago   <span class="hljs-number">5</span> months ago  main ~/.cache/huggingface/hub/models--t5-large

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(hf_cache_info.export_as_table(verbosity=<span class="hljs-number">1</span>))
REPO ID                                             REPO TYPE REVISION                                 SIZE ON DISK NB FILES LAST_MODIFIED REFS LOCAL PATH
--------------------------------------------------- --------- ---------------------------------------- ------------ -------- ------------- ---- -----------------------------------------------------------------------------------------------------------------------------------------------------
roberta-base                                        model     e2da8e2f811d1448a5b465c236feacd80ffbac7b         <span class="hljs-number">2.7</span>M        <span class="hljs-number">5</span> <span class="hljs-number">1</span> week ago    main ~/.cache/huggingface/hub/models--roberta-base/snapshots/e2da8e2f811d1448a5b465c236feacd80ffbac7b
suno/bark                                           model     70a8a7d34168586dc5d028fa9666aceade177992         <span class="hljs-number">8.8</span>K        <span class="hljs-number">1</span> <span class="hljs-number">1</span> week ago    main ~/.cache/huggingface/hub/models--suno--bark/snapshots/70a8a7d34168586dc5d028fa9666aceade177992
t5-base                                             model     a9723ea7f1b39c1eae772870f3b547bf6ef7e6c1       <span class="hljs-number">893.8</span>M        <span class="hljs-number">4</span> <span class="hljs-number">7</span> months ago  main ~/.cache/huggingface/hub/models--t5-base/snapshots/a9723ea7f1b39c1eae772870f3b547bf6ef7e6c1
t5-large                                            model     150ebc2c4b72291e770f58e6057481c8d2ed331a         <span class="hljs-number">3.0</span>G        <span class="hljs-number">4</span> <span class="hljs-number">5</span> months ago  main ~/.cache/huggingface/hub/models--t5-large/snapshots/150ebc2c4b72291e770f58e6057481c8d2ed331a`,wrap:!1}}),{c(){t=h("p"),t.textContent=M,n=l(),p(i.$$.fragment)},l(s){t=d(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=M),n=o(s),f(i.$$.fragment,s)},m(s,J){g(s,t,J),g(s,n,J),u(i,s,J),y=!0},p:L,i(s){y||(m(i.$$.fragment,s),y=!0)},o(s){b(i.$$.fragment,s),y=!1},d(s){s&&(c(t),c(n)),_(i,s)}}}function ds($){let t,M=`<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=h("p"),t.innerHTML=M},l(n){t=d(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-nbxrac"&&(t.innerHTML=M)},m(n,i){g(n,t,i)},p:L,d(n){n&&c(t)}}}function gs($){let t,M=`<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=h("p"),t.innerHTML=M},l(n){t=d(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-15342f7"&&(t.innerHTML=M)},m(n,i){g(n,t,i)},p:L,d(n){n&&c(t)}}}function ps($){let t,M=`<code>last_accessed</code> cannot be determined correctly on a single revision as blob files
are shared across revisions.`;return{c(){t=h("p"),t.innerHTML=M},l(n){t=d(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-fyb862"&&(t.innerHTML=M)},m(n,i){g(n,t,i)},p:L,d(n){n&&c(t)}}}function fs($){let t,M=`<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=h("p"),t.innerHTML=M},l(n){t=d(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-1wyo3hz"&&(t.innerHTML=M)},m(n,i){g(n,t,i)},p:L,d(n){n&&c(t)}}}function us($){let t,M=`<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=h("p"),t.innerHTML=M},l(n){t=d(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-ptblnn"&&(t.innerHTML=M)},m(n,i){g(n,t,i)},p:L,d(n){n&&c(t)}}}function ms($){let t,M,n,i,y,s,J,fn=`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.`,Nt,Je,Lt,we,zt,G,Ce,ha,nt,un="Explores the cache to return the latest cached file for a given revision if found.",da,st,mn="This function will not raise any exception if the file in not cached.",ga,ne,Gt,Ie,Yt,w,je,pa,lt,bn="Return a folder path to cache arbitrary files.",fa,ot,_n=`<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.`,ua,rt,Mn=`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,…).`,ma,ct,Tn=`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.`,ba,se,_a,le,Dt,Ue,Ht,C,ve,Ma,it,yn='Scan the entire HF cache-system and return a <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a> structure.',Ta,ht,$n=`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/main/en/package_reference/cache#huggingface_hub.CorruptedCacheException">~CorruptedCacheException</a>
will be thrown internally but captured and returned in the <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a>
structure. Only valid repos get a proper report.`,ya,oe,$a,re,Ja,xe,wa,dt,Jn='Returns: a <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a> object.',Vt,Ae,Wt,ke,wn='All structures are built and returned by <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.scan_cache_dir">scan_cache_dir()</a> and are immutable.',Ot,Se,Pt,v,Fe,Ca,gt,Cn="Frozen data structure holding information about the entire cache-system.",Ia,pt,In='This data structure is returned by <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.scan_cache_dir">scan_cache_dir()</a> and is immutable.',ja,ce,Ua,Z,Ze,va,ft,jn="Prepare the strategy to delete one or more revisions cached locally.",xa,ut,Un=`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,`,Aa,ie,ka,he,Sa,de,Fa,z,Ee,Za,mt,vn='Generate a table from the <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.HFCacheInfo">HFCacheInfo</a> object.',Ea,bt,xn=`Pass <code>verbosity=0</code> to get a table with a single row per repo, with columns
“repo_id”, “repo_type”, “size_on_disk”, “nb_files”, “last_accessed”, “last_modified”, “refs”, “local_path”.`,Ra,_t,An=`Pass <code>verbosity=1</code> to get a table with a row per repo and revision (thus multiple rows can appear for a single repo), with columns
“repo_id”, “repo_type”, “revision”, “size_on_disk”, “nb_files”, “last_modified”, “refs”, “local_path”.`,Na,ge,Qt,Re,Bt,x,Ne,La,Mt,kn="Frozen data structure holding information about a cached repository.",za,pe,Ga,fe,Ya,Q,Le,Da,Tt,Sn="(property) Sum of the blob file sizes as a human-readable string.",Ha,yt,Fn="Example: “42.2K”.",Va,ue,ze,Wa,$t,Zn="(property) Mapping between <code>refs</code> and revision data structures.",Xt,Ge,qt,I,Ye,Oa,Jt,En="Frozen data structure holding information about a revision.",Pa,wt,Rn=`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).`,Qa,me,Ba,be,Xa,B,De,qa,Ct,Nn="(property) Sum of the blob file sizes as a human-readable string.",Ka,It,Ln="Example: “42.2K”.",en,_e,He,tn,jt,zn="(property) Total number of files in the revision.",Kt,Ve,ea,Y,We,an,Ut,Gn="Frozen data structure holding information about a single cached file.",nn,Me,sn,X,Oe,ln,vt,Yn="(property) Size of the blob file as a human-readable string.",on,xt,Dn="Example: “42.2K”.",ta,Pe,aa,D,Qe,rn,At,Hn="Frozen data structure holding the strategy to delete cached revisions.",cn,kt,Vn=`This object is not meant to be instantiated programmatically but to be returned by
<a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.HFCacheInfo.delete_revisions">delete_revisions()</a>. See documentation for usage example.`,hn,q,Be,dn,St,Wn="(property) Expected size that will be freed as a human-readable string.",gn,Ft,On="Example: “42.2K”.",na,Xe,sa,qe,la,K,Ke,pn,Zt,Pn="Exception for any unexpected structure in the Huggingface cache-system.",oa,et,ra,Rt,ca;return y=new V({props:{title:"Cache-system reference",local:"cache-system-reference",headingTag:"h1"}}),Je=new V({props:{title:"Helpers",local:"helpers",headingTag:"h2"}}),we=new V({props:{title:"try_to_load_from_cache",local:"huggingface_hub.try_to_load_from_cache",headingTag:"h3"}}),Ce=new F({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:": typing.Union[str, pathlib.Path, NoneType] = None"},{name:"revision",val:": typing.Optional[str] = None"},{name:"repo_type",val:": typing.Optional[str] = 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/main/src/huggingface_hub/file_download.py#L1315",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>
`}}),ne=new ye({props:{anchor:"huggingface_hub.try_to_load_from_cache.example",$$slots:{default:[ts]},$$scope:{ctx:$}}}),Ie=new V({props:{title:"cached_assets_path",local:"huggingface_hub.cached_assets_path",headingTag:"h3"}}),je=new F({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:": typing.Union[str, pathlib.Path, NoneType] = 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/main/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>
`}}),se=new ye({props:{anchor:"huggingface_hub.cached_assets_path.example",$$slots:{default:[as]},$$scope:{ctx:$}}}),le=new ye({props:{anchor:"huggingface_hub.cached_assets_path.example-2",$$slots:{default:[ns]},$$scope:{ctx:$}}}),Ue=new V({props:{title:"scan_cache_dir",local:"huggingface_hub.scan_cache_dir",headingTag:"h3"}}),ve=new F({props:{name:"huggingface_hub.scan_cache_dir",anchor:"huggingface_hub.scan_cache_dir",parameters:[{name:"cache_dir",val:": typing.Union[str, pathlib.Path, NoneType] = 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/main/src/huggingface_hub/utils/_cache_manager.py#L583",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>
`}}),oe=new ye({props:{anchor:"huggingface_hub.scan_cache_dir.example",$$slots:{default:[ss]},$$scope:{ctx:$}}}),re=new ye({props:{anchor:"huggingface_hub.scan_cache_dir.example-2",$$slots:{default:[ls]},$$scope:{ctx:$}}}),xe=new Te({props:{warning:!0}}),Ae=new V({props:{title:"Data structures",local:"data-structures",headingTag:"h2"}}),Se=new V({props:{title:"HFCacheInfo",local:"huggingface_hub.HFCacheInfo",headingTag:"h3"}}),Fe=new F({props:{name:"class huggingface_hub.HFCacheInfo",anchor:"huggingface_hub.HFCacheInfo",parameters:[{name:"size_on_disk",val:": int"},{name:"repos",val:": typing.FrozenSet[huggingface_hub.utils._cache_manager.CachedRepoInfo]"},{name:"warnings",val:": typing.List[huggingface_hub.errors.CorruptedCacheException]"}],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/main/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/main/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/main/src/huggingface_hub/utils/_cache_manager.py#L346"}}),ce=new Te({props:{warning:!0,$$slots:{default:[os]},$$scope:{ctx:$}}}),Ze=new F({props:{name:"delete_revisions",anchor:"huggingface_hub.HFCacheInfo.delete_revisions",parameters:[{name:"*revisions",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L385"}}),ie=new ye({props:{anchor:"huggingface_hub.HFCacheInfo.delete_revisions.example",$$slots:{default:[rs]},$$scope:{ctx:$}}}),he=new ye({props:{anchor:"huggingface_hub.HFCacheInfo.delete_revisions.example-2",$$slots:{default:[cs]},$$scope:{ctx:$}}}),de=new Te({props:{warning:!0,$$slots:{default:[is]},$$scope:{ctx:$}}}),Ee=new F({props:{name:"export_as_table",anchor:"huggingface_hub.HFCacheInfo.export_as_table",parameters:[{name:"verbosity",val:": int = 0"}],parametersDescription:[{anchor:"huggingface_hub.HFCacheInfo.export_as_table.verbosity",description:`<strong>verbosity</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The verbosity level. Defaults to 0.`,name:"verbosity"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L488",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The table as a string.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code></p>
`}}),ge=new ye({props:{anchor:"huggingface_hub.HFCacheInfo.export_as_table.example",$$slots:{default:[hs]},$$scope:{ctx:$}}}),Re=new V({props:{title:"CachedRepoInfo",local:"huggingface_hub.CachedRepoInfo",headingTag:"h3"}}),Ne=new F({props:{name:"class huggingface_hub.CachedRepoInfo",anchor:"huggingface_hub.CachedRepoInfo",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": typing.Literal['model', 'dataset', 'space']"},{name:"repo_path",val:": Path"},{name:"size_on_disk",val:": int"},{name:"nb_files",val:": int"},{name:"revisions",val:": typing.FrozenSet[huggingface_hub.utils._cache_manager.CachedRevisionInfo]"},{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/main/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/main/src/huggingface_hub/utils/_cache_manager.py#L184"}}),pe=new Te({props:{warning:!0,$$slots:{default:[ds]},$$scope:{ctx:$}}}),fe=new Te({props:{warning:!0,$$slots:{default:[gs]},$$scope:{ctx:$}}}),Le=new F({props:{name:"size_on_disk_str",anchor:"huggingface_hub.CachedRepoInfo.size_on_disk_str",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L253"}}),ze=new F({props:{name:"refs",anchor:"huggingface_hub.CachedRepoInfo.refs",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L262"}}),Ge=new V({props:{title:"CachedRevisionInfo",local:"huggingface_hub.CachedRevisionInfo",headingTag:"h3"}}),Ye=new F({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:": typing.FrozenSet[huggingface_hub.utils._cache_manager.CachedFileInfo]"},{name:"refs",val:": typing.FrozenSet[str]"},{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.`,name:"snapshot_path"},{anchor:"huggingface_hub.CachedRevisionInfo.files",description:`<strong>files</strong> &#x2014; (<code>FrozenSet[CachedFileInfo]</code>):
Set of <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.CachedFileInfo">~CachedFileInfo</a> describing all files contained in the snapshot.`,name:"files"},{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/main/src/huggingface_hub/utils/_cache_manager.py#L107"}}),me=new Te({props:{warning:!0,$$slots:{default:[ps]},$$scope:{ctx:$}}}),be=new Te({props:{warning:!0,$$slots:{default:[fs]},$$scope:{ctx:$}}}),De=new F({props:{name:"size_on_disk_str",anchor:"huggingface_hub.CachedRevisionInfo.size_on_disk_str",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L167"}}),He=new F({props:{name:"nb_files",anchor:"huggingface_hub.CachedRevisionInfo.nb_files",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L176"}}),Ve=new V({props:{title:"CachedFileInfo",local:"huggingface_hub.CachedFileInfo",headingTag:"h3"}}),We=new F({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/main/src/huggingface_hub/utils/_cache_manager.py#L40"}}),Me=new Te({props:{warning:!0,$$slots:{default:[us]},$$scope:{ctx:$}}}),Oe=new F({props:{name:"size_on_disk_str",anchor:"huggingface_hub.CachedFileInfo.size_on_disk_str",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L97"}}),Pe=new V({props:{title:"DeleteCacheStrategy",local:"huggingface_hub.DeleteCacheStrategy",headingTag:"h3"}}),Qe=new F({props:{name:"class huggingface_hub.DeleteCacheStrategy",anchor:"huggingface_hub.DeleteCacheStrategy",parameters:[{name:"expected_freed_size",val:": int"},{name:"blobs",val:": typing.FrozenSet[pathlib.Path]"},{name:"refs",val:": typing.FrozenSet[pathlib.Path]"},{name:"repos",val:": typing.FrozenSet[pathlib.Path]"},{name:"snapshots",val:": typing.FrozenSet[pathlib.Path]"}],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/main/src/huggingface_hub/utils/_cache_manager.py#L270"}}),Be=new F({props:{name:"expected_freed_size_str",anchor:"huggingface_hub.DeleteCacheStrategy.expected_freed_size_str",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L296"}}),Xe=new V({props:{title:"Exceptions",local:"exceptions",headingTag:"h2"}}),qe=new V({props:{title:"CorruptedCacheException",local:"huggingface_hub.CorruptedCacheException",headingTag:"h3"}}),Ke=new F({props:{name:"class huggingface_hub.CorruptedCacheException",anchor:"huggingface_hub.CorruptedCacheException",parameters:"",source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/errors.py#L22"}}),et=new es({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/package_reference/cache.md"}}),{c(){t=h("meta"),M=l(),n=h("p"),i=l(),p(y.$$.fragment),s=l(),J=h("p"),J.innerHTML=fn,Nt=l(),p(Je.$$.fragment),Lt=l(),p(we.$$.fragment),zt=l(),G=h("div"),p(Ce.$$.fragment),ha=l(),nt=h("p"),nt.textContent=un,da=l(),st=h("p"),st.textContent=mn,ga=l(),p(ne.$$.fragment),Gt=l(),p(Ie.$$.fragment),Yt=l(),w=h("div"),p(je.$$.fragment),pa=l(),lt=h("p"),lt.textContent=bn,fa=l(),ot=h("p"),ot.innerHTML=_n,ua=l(),rt=h("p"),rt.innerHTML=Mn,ma=l(),ct=h("p"),ct.innerHTML=Tn,ba=l(),p(se.$$.fragment),_a=l(),p(le.$$.fragment),Dt=l(),p(Ue.$$.fragment),Ht=l(),C=h("div"),p(ve.$$.fragment),Ma=l(),it=h("p"),it.innerHTML=yn,Ta=l(),ht=h("p"),ht.innerHTML=$n,ya=l(),p(oe.$$.fragment),$a=l(),p(re.$$.fragment),Ja=l(),p(xe.$$.fragment),wa=l(),dt=h("p"),dt.innerHTML=Jn,Vt=l(),p(Ae.$$.fragment),Wt=l(),ke=h("p"),ke.innerHTML=wn,Ot=l(),p(Se.$$.fragment),Pt=l(),v=h("div"),p(Fe.$$.fragment),Ca=l(),gt=h("p"),gt.textContent=Cn,Ia=l(),pt=h("p"),pt.innerHTML=In,ja=l(),p(ce.$$.fragment),Ua=l(),Z=h("div"),p(Ze.$$.fragment),va=l(),ft=h("p"),ft.textContent=jn,xa=l(),ut=h("p"),ut.textContent=Un,Aa=l(),p(ie.$$.fragment),ka=l(),p(he.$$.fragment),Sa=l(),p(de.$$.fragment),Fa=l(),z=h("div"),p(Ee.$$.fragment),Za=l(),mt=h("p"),mt.innerHTML=vn,Ea=l(),bt=h("p"),bt.innerHTML=xn,Ra=l(),_t=h("p"),_t.innerHTML=An,Na=l(),p(ge.$$.fragment),Qt=l(),p(Re.$$.fragment),Bt=l(),x=h("div"),p(Ne.$$.fragment),La=l(),Mt=h("p"),Mt.textContent=kn,za=l(),p(pe.$$.fragment),Ga=l(),p(fe.$$.fragment),Ya=l(),Q=h("div"),p(Le.$$.fragment),Da=l(),Tt=h("p"),Tt.textContent=Sn,Ha=l(),yt=h("p"),yt.textContent=Fn,Va=l(),ue=h("div"),p(ze.$$.fragment),Wa=l(),$t=h("p"),$t.innerHTML=Zn,Xt=l(),p(Ge.$$.fragment),qt=l(),I=h("div"),p(Ye.$$.fragment),Oa=l(),Jt=h("p"),Jt.textContent=En,Pa=l(),wt=h("p"),wt.innerHTML=Rn,Qa=l(),p(me.$$.fragment),Ba=l(),p(be.$$.fragment),Xa=l(),B=h("div"),p(De.$$.fragment),qa=l(),Ct=h("p"),Ct.textContent=Nn,Ka=l(),It=h("p"),It.textContent=Ln,en=l(),_e=h("div"),p(He.$$.fragment),tn=l(),jt=h("p"),jt.textContent=zn,Kt=l(),p(Ve.$$.fragment),ea=l(),Y=h("div"),p(We.$$.fragment),an=l(),Ut=h("p"),Ut.textContent=Gn,nn=l(),p(Me.$$.fragment),sn=l(),X=h("div"),p(Oe.$$.fragment),ln=l(),vt=h("p"),vt.textContent=Yn,on=l(),xt=h("p"),xt.textContent=Dn,ta=l(),p(Pe.$$.fragment),aa=l(),D=h("div"),p(Qe.$$.fragment),rn=l(),At=h("p"),At.textContent=Hn,cn=l(),kt=h("p"),kt.innerHTML=Vn,hn=l(),q=h("div"),p(Be.$$.fragment),dn=l(),St=h("p"),St.textContent=Wn,gn=l(),Ft=h("p"),Ft.textContent=On,na=l(),p(Xe.$$.fragment),sa=l(),p(qe.$$.fragment),la=l(),K=h("div"),p(Ke.$$.fragment),pn=l(),Zt=h("p"),Zt.textContent=Pn,oa=l(),p(et.$$.fragment),ra=l(),Rt=h("p"),this.h()},l(e){const r=Kn("svelte-u9bgzb",document.head);t=d(r,"META",{name:!0,content:!0}),r.forEach(c),M=o(e),n=d(e,"P",{}),j(n).forEach(c),i=o(e),f(y.$$.fragment,e),s=o(e),J=d(e,"P",{"data-svelte-h":!0}),T(J)!=="svelte-1rfy74v"&&(J.innerHTML=fn),Nt=o(e),f(Je.$$.fragment,e),Lt=o(e),f(we.$$.fragment,e),zt=o(e),G=d(e,"DIV",{class:!0});var W=j(G);f(Ce.$$.fragment,W),ha=o(W),nt=d(W,"P",{"data-svelte-h":!0}),T(nt)!=="svelte-wybe3x"&&(nt.textContent=un),da=o(W),st=d(W,"P",{"data-svelte-h":!0}),T(st)!=="svelte-9465ci"&&(st.textContent=mn),ga=o(W),f(ne.$$.fragment,W),W.forEach(c),Gt=o(e),f(Ie.$$.fragment,e),Yt=o(e),w=d(e,"DIV",{class:!0});var A=j(w);f(je.$$.fragment,A),pa=o(A),lt=d(A,"P",{"data-svelte-h":!0}),T(lt)!=="svelte-1ua2cjq"&&(lt.textContent=bn),fa=o(A),ot=d(A,"P",{"data-svelte-h":!0}),T(ot)!=="svelte-185gfp2"&&(ot.innerHTML=_n),ua=o(A),rt=d(A,"P",{"data-svelte-h":!0}),T(rt)!=="svelte-1ky40fv"&&(rt.innerHTML=Mn),ma=o(A),ct=d(A,"P",{"data-svelte-h":!0}),T(ct)!=="svelte-1dsf1o4"&&(ct.innerHTML=Tn),ba=o(A),f(se.$$.fragment,A),_a=o(A),f(le.$$.fragment,A),A.forEach(c),Dt=o(e),f(Ue.$$.fragment,e),Ht=o(e),C=d(e,"DIV",{class:!0});var k=j(C);f(ve.$$.fragment,k),Ma=o(k),it=d(k,"P",{"data-svelte-h":!0}),T(it)!=="svelte-1m4nzn1"&&(it.innerHTML=yn),Ta=o(k),ht=d(k,"P",{"data-svelte-h":!0}),T(ht)!=="svelte-uia3fl"&&(ht.innerHTML=$n),ya=o(k),f(oe.$$.fragment,k),$a=o(k),f(re.$$.fragment,k),Ja=o(k),f(xe.$$.fragment,k),wa=o(k),dt=d(k,"P",{"data-svelte-h":!0}),T(dt)!=="svelte-8srnnu"&&(dt.innerHTML=Jn),k.forEach(c),Vt=o(e),f(Ae.$$.fragment,e),Wt=o(e),ke=d(e,"P",{"data-svelte-h":!0}),T(ke)!=="svelte-qnkxnj"&&(ke.innerHTML=wn),Ot=o(e),f(Se.$$.fragment,e),Pt=o(e),v=d(e,"DIV",{class:!0});var E=j(v);f(Fe.$$.fragment,E),Ca=o(E),gt=d(E,"P",{"data-svelte-h":!0}),T(gt)!=="svelte-z29m0d"&&(gt.textContent=Cn),Ia=o(E),pt=d(E,"P",{"data-svelte-h":!0}),T(pt)!=="svelte-1kkrl40"&&(pt.innerHTML=In),ja=o(E),f(ce.$$.fragment,E),Ua=o(E),Z=d(E,"DIV",{class:!0});var R=j(Z);f(Ze.$$.fragment,R),va=o(R),ft=d(R,"P",{"data-svelte-h":!0}),T(ft)!=="svelte-1kc0sf3"&&(ft.textContent=jn),xa=o(R),ut=d(R,"P",{"data-svelte-h":!0}),T(ut)!=="svelte-hvu8pg"&&(ut.textContent=Un),Aa=o(R),f(ie.$$.fragment,R),ka=o(R),f(he.$$.fragment,R),Sa=o(R),f(de.$$.fragment,R),R.forEach(c),Fa=o(E),z=d(E,"DIV",{class:!0});var H=j(z);f(Ee.$$.fragment,H),Za=o(H),mt=d(H,"P",{"data-svelte-h":!0}),T(mt)!=="svelte-pzg2pl"&&(mt.innerHTML=vn),Ea=o(H),bt=d(H,"P",{"data-svelte-h":!0}),T(bt)!=="svelte-y5o1d2"&&(bt.innerHTML=xn),Ra=o(H),_t=d(H,"P",{"data-svelte-h":!0}),T(_t)!=="svelte-kk3qf1"&&(_t.innerHTML=An),Na=o(H),f(ge.$$.fragment,H),H.forEach(c),E.forEach(c),Qt=o(e),f(Re.$$.fragment,e),Bt=o(e),x=d(e,"DIV",{class:!0});var N=j(x);f(Ne.$$.fragment,N),La=o(N),Mt=d(N,"P",{"data-svelte-h":!0}),T(Mt)!=="svelte-yfk7e8"&&(Mt.textContent=kn),za=o(N),f(pe.$$.fragment,N),Ga=o(N),f(fe.$$.fragment,N),Ya=o(N),Q=d(N,"DIV",{class:!0});var ee=j(Q);f(Le.$$.fragment,ee),Da=o(ee),Tt=d(ee,"P",{"data-svelte-h":!0}),T(Tt)!=="svelte-zfpv6m"&&(Tt.textContent=Sn),Ha=o(ee),yt=d(ee,"P",{"data-svelte-h":!0}),T(yt)!=="svelte-jo5bw4"&&(yt.textContent=Fn),ee.forEach(c),Va=o(N),ue=d(N,"DIV",{class:!0});var tt=j(ue);f(ze.$$.fragment,tt),Wa=o(tt),$t=d(tt,"P",{"data-svelte-h":!0}),T($t)!=="svelte-1a85bod"&&($t.innerHTML=Zn),tt.forEach(c),N.forEach(c),Xt=o(e),f(Ge.$$.fragment,e),qt=o(e),I=d(e,"DIV",{class:!0});var S=j(I);f(Ye.$$.fragment,S),Oa=o(S),Jt=d(S,"P",{"data-svelte-h":!0}),T(Jt)!=="svelte-e2eri1"&&(Jt.textContent=En),Pa=o(S),wt=d(S,"P",{"data-svelte-h":!0}),T(wt)!=="svelte-1h5zcam"&&(wt.innerHTML=Rn),Qa=o(S),f(me.$$.fragment,S),Ba=o(S),f(be.$$.fragment,S),Xa=o(S),B=d(S,"DIV",{class:!0});var te=j(B);f(De.$$.fragment,te),qa=o(te),Ct=d(te,"P",{"data-svelte-h":!0}),T(Ct)!=="svelte-zfpv6m"&&(Ct.textContent=Nn),Ka=o(te),It=d(te,"P",{"data-svelte-h":!0}),T(It)!=="svelte-jo5bw4"&&(It.textContent=Ln),te.forEach(c),en=o(S),_e=d(S,"DIV",{class:!0});var at=j(_e);f(He.$$.fragment,at),tn=o(at),jt=d(at,"P",{"data-svelte-h":!0}),T(jt)!=="svelte-o0ydo0"&&(jt.textContent=zn),at.forEach(c),S.forEach(c),Kt=o(e),f(Ve.$$.fragment,e),ea=o(e),Y=d(e,"DIV",{class:!0});var O=j(Y);f(We.$$.fragment,O),an=o(O),Ut=d(O,"P",{"data-svelte-h":!0}),T(Ut)!=="svelte-1l95h2a"&&(Ut.textContent=Gn),nn=o(O),f(Me.$$.fragment,O),sn=o(O),X=d(O,"DIV",{class:!0});var ae=j(X);f(Oe.$$.fragment,ae),ln=o(ae),vt=d(ae,"P",{"data-svelte-h":!0}),T(vt)!=="svelte-easepm"&&(vt.textContent=Yn),on=o(ae),xt=d(ae,"P",{"data-svelte-h":!0}),T(xt)!=="svelte-jo5bw4"&&(xt.textContent=Dn),ae.forEach(c),O.forEach(c),ta=o(e),f(Pe.$$.fragment,e),aa=o(e),D=d(e,"DIV",{class:!0});var P=j(D);f(Qe.$$.fragment,P),rn=o(P),At=d(P,"P",{"data-svelte-h":!0}),T(At)!=="svelte-13gw4lu"&&(At.textContent=Hn),cn=o(P),kt=d(P,"P",{"data-svelte-h":!0}),T(kt)!=="svelte-1iwcxpf"&&(kt.innerHTML=Vn),hn=o(P),q=d(P,"DIV",{class:!0});var Et=j(q);f(Be.$$.fragment,Et),dn=o(Et),St=d(Et,"P",{"data-svelte-h":!0}),T(St)!=="svelte-1syr64t"&&(St.textContent=Wn),gn=o(Et),Ft=d(Et,"P",{"data-svelte-h":!0}),T(Ft)!=="svelte-jo5bw4"&&(Ft.textContent=On),Et.forEach(c),P.forEach(c),na=o(e),f(Xe.$$.fragment,e),sa=o(e),f(qe.$$.fragment,e),la=o(e),K=d(e,"DIV",{class:!0});var ia=j(K);f(Ke.$$.fragment,ia),pn=o(ia),Zt=d(ia,"P",{"data-svelte-h":!0}),T(Zt)!=="svelte-thu1ey"&&(Zt.textContent=Pn),ia.forEach(c),oa=o(e),f(et.$$.fragment,e),ra=o(e),Rt=d(e,"P",{}),j(Rt).forEach(c),this.h()},h(){U(t,"name","hf:doc:metadata"),U(t,"content",bs),U(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,r){a(document.head,t),g(e,M,r),g(e,n,r),g(e,i,r),u(y,e,r),g(e,s,r),g(e,J,r),g(e,Nt,r),u(Je,e,r),g(e,Lt,r),u(we,e,r),g(e,zt,r),g(e,G,r),u(Ce,G,null),a(G,ha),a(G,nt),a(G,da),a(G,st),a(G,ga),u(ne,G,null),g(e,Gt,r),u(Ie,e,r),g(e,Yt,r),g(e,w,r),u(je,w,null),a(w,pa),a(w,lt),a(w,fa),a(w,ot),a(w,ua),a(w,rt),a(w,ma),a(w,ct),a(w,ba),u(se,w,null),a(w,_a),u(le,w,null),g(e,Dt,r),u(Ue,e,r),g(e,Ht,r),g(e,C,r),u(ve,C,null),a(C,Ma),a(C,it),a(C,Ta),a(C,ht),a(C,ya),u(oe,C,null),a(C,$a),u(re,C,null),a(C,Ja),u(xe,C,null),a(C,wa),a(C,dt),g(e,Vt,r),u(Ae,e,r),g(e,Wt,r),g(e,ke,r),g(e,Ot,r),u(Se,e,r),g(e,Pt,r),g(e,v,r),u(Fe,v,null),a(v,Ca),a(v,gt),a(v,Ia),a(v,pt),a(v,ja),u(ce,v,null),a(v,Ua),a(v,Z),u(Ze,Z,null),a(Z,va),a(Z,ft),a(Z,xa),a(Z,ut),a(Z,Aa),u(ie,Z,null),a(Z,ka),u(he,Z,null),a(Z,Sa),u(de,Z,null),a(v,Fa),a(v,z),u(Ee,z,null),a(z,Za),a(z,mt),a(z,Ea),a(z,bt),a(z,Ra),a(z,_t),a(z,Na),u(ge,z,null),g(e,Qt,r),u(Re,e,r),g(e,Bt,r),g(e,x,r),u(Ne,x,null),a(x,La),a(x,Mt),a(x,za),u(pe,x,null),a(x,Ga),u(fe,x,null),a(x,Ya),a(x,Q),u(Le,Q,null),a(Q,Da),a(Q,Tt),a(Q,Ha),a(Q,yt),a(x,Va),a(x,ue),u(ze,ue,null),a(ue,Wa),a(ue,$t),g(e,Xt,r),u(Ge,e,r),g(e,qt,r),g(e,I,r),u(Ye,I,null),a(I,Oa),a(I,Jt),a(I,Pa),a(I,wt),a(I,Qa),u(me,I,null),a(I,Ba),u(be,I,null),a(I,Xa),a(I,B),u(De,B,null),a(B,qa),a(B,Ct),a(B,Ka),a(B,It),a(I,en),a(I,_e),u(He,_e,null),a(_e,tn),a(_e,jt),g(e,Kt,r),u(Ve,e,r),g(e,ea,r),g(e,Y,r),u(We,Y,null),a(Y,an),a(Y,Ut),a(Y,nn),u(Me,Y,null),a(Y,sn),a(Y,X),u(Oe,X,null),a(X,ln),a(X,vt),a(X,on),a(X,xt),g(e,ta,r),u(Pe,e,r),g(e,aa,r),g(e,D,r),u(Qe,D,null),a(D,rn),a(D,At),a(D,cn),a(D,kt),a(D,hn),a(D,q),u(Be,q,null),a(q,dn),a(q,St),a(q,gn),a(q,Ft),g(e,na,r),u(Xe,e,r),g(e,sa,r),u(qe,e,r),g(e,la,r),g(e,K,r),u(Ke,K,null),a(K,pn),a(K,Zt),g(e,oa,r),u(et,e,r),g(e,ra,r),g(e,Rt,r),ca=!0},p(e,[r]){const W={};r&2&&(W.$$scope={dirty:r,ctx:e}),ne.$set(W);const A={};r&2&&(A.$$scope={dirty:r,ctx:e}),se.$set(A);const k={};r&2&&(k.$$scope={dirty:r,ctx:e}),le.$set(k);const E={};r&2&&(E.$$scope={dirty:r,ctx:e}),oe.$set(E);const R={};r&2&&(R.$$scope={dirty:r,ctx:e}),re.$set(R);const H={};r&2&&(H.$$scope={dirty:r,ctx:e}),ce.$set(H);const N={};r&2&&(N.$$scope={dirty:r,ctx:e}),ie.$set(N);const ee={};r&2&&(ee.$$scope={dirty:r,ctx:e}),he.$set(ee);const tt={};r&2&&(tt.$$scope={dirty:r,ctx:e}),de.$set(tt);const S={};r&2&&(S.$$scope={dirty:r,ctx:e}),ge.$set(S);const te={};r&2&&(te.$$scope={dirty:r,ctx:e}),pe.$set(te);const at={};r&2&&(at.$$scope={dirty:r,ctx:e}),fe.$set(at);const O={};r&2&&(O.$$scope={dirty:r,ctx:e}),me.$set(O);const ae={};r&2&&(ae.$$scope={dirty:r,ctx:e}),be.$set(ae);const P={};r&2&&(P.$$scope={dirty:r,ctx:e}),Me.$set(P)},i(e){ca||(m(y.$$.fragment,e),m(Je.$$.fragment,e),m(we.$$.fragment,e),m(Ce.$$.fragment,e),m(ne.$$.fragment,e),m(Ie.$$.fragment,e),m(je.$$.fragment,e),m(se.$$.fragment,e),m(le.$$.fragment,e),m(Ue.$$.fragment,e),m(ve.$$.fragment,e),m(oe.$$.fragment,e),m(re.$$.fragment,e),m(xe.$$.fragment,e),m(Ae.$$.fragment,e),m(Se.$$.fragment,e),m(Fe.$$.fragment,e),m(ce.$$.fragment,e),m(Ze.$$.fragment,e),m(ie.$$.fragment,e),m(he.$$.fragment,e),m(de.$$.fragment,e),m(Ee.$$.fragment,e),m(ge.$$.fragment,e),m(Re.$$.fragment,e),m(Ne.$$.fragment,e),m(pe.$$.fragment,e),m(fe.$$.fragment,e),m(Le.$$.fragment,e),m(ze.$$.fragment,e),m(Ge.$$.fragment,e),m(Ye.$$.fragment,e),m(me.$$.fragment,e),m(be.$$.fragment,e),m(De.$$.fragment,e),m(He.$$.fragment,e),m(Ve.$$.fragment,e),m(We.$$.fragment,e),m(Me.$$.fragment,e),m(Oe.$$.fragment,e),m(Pe.$$.fragment,e),m(Qe.$$.fragment,e),m(Be.$$.fragment,e),m(Xe.$$.fragment,e),m(qe.$$.fragment,e),m(Ke.$$.fragment,e),m(et.$$.fragment,e),ca=!0)},o(e){b(y.$$.fragment,e),b(Je.$$.fragment,e),b(we.$$.fragment,e),b(Ce.$$.fragment,e),b(ne.$$.fragment,e),b(Ie.$$.fragment,e),b(je.$$.fragment,e),b(se.$$.fragment,e),b(le.$$.fragment,e),b(Ue.$$.fragment,e),b(ve.$$.fragment,e),b(oe.$$.fragment,e),b(re.$$.fragment,e),b(xe.$$.fragment,e),b(Ae.$$.fragment,e),b(Se.$$.fragment,e),b(Fe.$$.fragment,e),b(ce.$$.fragment,e),b(Ze.$$.fragment,e),b(ie.$$.fragment,e),b(he.$$.fragment,e),b(de.$$.fragment,e),b(Ee.$$.fragment,e),b(ge.$$.fragment,e),b(Re.$$.fragment,e),b(Ne.$$.fragment,e),b(pe.$$.fragment,e),b(fe.$$.fragment,e),b(Le.$$.fragment,e),b(ze.$$.fragment,e),b(Ge.$$.fragment,e),b(Ye.$$.fragment,e),b(me.$$.fragment,e),b(be.$$.fragment,e),b(De.$$.fragment,e),b(He.$$.fragment,e),b(Ve.$$.fragment,e),b(We.$$.fragment,e),b(Me.$$.fragment,e),b(Oe.$$.fragment,e),b(Pe.$$.fragment,e),b(Qe.$$.fragment,e),b(Be.$$.fragment,e),b(Xe.$$.fragment,e),b(qe.$$.fragment,e),b(Ke.$$.fragment,e),b(et.$$.fragment,e),ca=!1},d(e){e&&(c(M),c(n),c(i),c(s),c(J),c(Nt),c(Lt),c(zt),c(G),c(Gt),c(Yt),c(w),c(Dt),c(Ht),c(C),c(Vt),c(Wt),c(ke),c(Ot),c(Pt),c(v),c(Qt),c(Bt),c(x),c(Xt),c(qt),c(I),c(Kt),c(ea),c(Y),c(ta),c(aa),c(D),c(na),c(sa),c(la),c(K),c(oa),c(ra),c(Rt)),c(t),_(y,e),_(Je,e),_(we,e),_(Ce),_(ne),_(Ie,e),_(je),_(se),_(le),_(Ue,e),_(ve),_(oe),_(re),_(xe),_(Ae,e),_(Se,e),_(Fe),_(ce),_(Ze),_(ie),_(he),_(de),_(Ee),_(ge),_(Re,e),_(Ne),_(pe),_(fe),_(Le),_(ze),_(Ge,e),_(Ye),_(me),_(be),_(De),_(He),_(Ve,e),_(We),_(Me),_(Oe),_(Pe,e),_(Qe),_(Be),_(Xe,e),_(qe,e),_(Ke),_(et,e)}}}const bs='{"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 _s($){return Bn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Is extends Xn{constructor(t){super(),qn(this,t,_s,ms,Qn,{})}}export{Is as component};
