import{s as ss,o as ls,n as de}from"../chunks/scheduler.0cf4ef2e.js";import{S as os,i as rs,e as c,s as n,c as f,h as cs,a as i,d as o,b as s,f as j,g as u,j as p,k as C,l as t,m as g,n as m,t as b,o as _,p as T}from"../chunks/index.abc433bf.js";import{C as is}from"../chunks/CopyLLMTxtMenu.efc6b005.js";import{D as E}from"../chunks/Docstring.e4170f41.js";import{C as ge}from"../chunks/CodeBlock.00dcd05e.js";import{E as he}from"../chunks/ExampleCodeBlock.9d6d4e26.js";import{H,E as hs}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.86d448e2.js";function ds(U){let r,y="Example:",d,h,M;return h=new ge({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(){r=c("p"),r.textContent=y,d=n(),f(h.$$.fragment)},l(a){r=i(a,"P",{"data-svelte-h":!0}),p(r)!=="svelte-11lpom8"&&(r.textContent=y),d=s(a),u(h.$$.fragment,a)},m(a,$){g(a,r,$),g(a,d,$),m(h,a,$),M=!0},p:de,i(a){M||(b(h.$$.fragment,a),M=!0)},o(a){_(h.$$.fragment,a),M=!1},d(a){a&&(o(r),o(d)),T(h,a)}}}function gs(U){let r,y="Expected tree:",d,h,M;return h=new ge({props:{code:"JTIwJTIwJTIwJTIwYXNzZXRzJTJGJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwZGF0YXNldHMlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjBTUXVBRCUyRiUwQSUyMCUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMGRvd25sb2FkZWQlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjBleHRyYWN0ZWQlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBwcm9jZXNzZWQlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjBIZWxzaW5raS1OTFAtLXRhdG9lYmFfbXQlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjBkb3dubG9hZGVkJTJGJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwZXh0cmFjdGVkJTJGJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwcHJvY2Vzc2VkJTJGJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhbnNmb3JtZXJzJTJGJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwZGVmYXVsdCUyRiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMHNvbWV0aGluZyUyRiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMGJlcnQtYmFzZS1jYXNlZCUyRiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMGRlZmF1bHQlMkYlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjB0cmFpbmluZyUyRiUwQSUyMCUyMCUyMCUyMGh1YiUyRiUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMG1vZGVscy0tanVsaWVuLWMtLUVzcGVyQkVSVG8tc21hbGwlMkYlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjBibG9icyUyRiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMCguLi4pJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwKC4uLiklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjByZWZzJTJGJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwKC4uLiklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjAlNUIlMjAxMjglNUQlMjAlMjBzbmFwc2hvdHMlMkYlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyNDM5ZjYwZWYzM2EwZDQ2ZDg1ZGE1MDAxZDUyYWVkYTViMDBjZTlmJTJGJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTgyJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwKC4uLiklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBiYmM3N2M4MTMyYWYxY2M1Y2Y2NzhkYTNmMWRkZjJkZTQzNjA2ZDQ4JTJGJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwKC4uLik=",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(){r=c("p"),r.textContent=y,d=n(),f(h.$$.fragment)},l(a){r=i(a,"P",{"data-svelte-h":!0}),p(r)!=="svelte-c5dp2"&&(r.textContent=y),d=s(a),u(h.$$.fragment,a)},m(a,$){g(a,r,$),g(a,d,$),m(h,a,$),M=!0},p:de,i(a){M||(b(h.$$.fragment,a),M=!0)},o(a){_(h.$$.fragment,a),M=!1},d(a){a&&(o(r),o(d)),T(h,a)}}}function ps(U){let r,y="Example:",d,h,M;return h=new ge({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(){r=c("p"),r.textContent=y,d=n(),f(h.$$.fragment)},l(a){r=i(a,"P",{"data-svelte-h":!0}),p(r)!=="svelte-11lpom8"&&(r.textContent=y),d=s(a),u(h.$$.fragment,a)},m(a,$){g(a,r,$),g(a,d,$),m(h,a,$),M=!0},p:de,i(a){M||(b(h.$$.fragment,a),M=!0)},o(a){_(h.$$.fragment,a),M=!1},d(a){a&&(o(r),o(d)),T(h,a)}}}function fs(U){let r,y;return r=new ge({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(r.$$.fragment)},l(d){u(r.$$.fragment,d)},m(d,h){m(r,d,h),y=!0},p:de,i(d){y||(b(r.$$.fragment,d),y=!0)},o(d){_(r.$$.fragment,d),y=!1},d(d){T(r,d)}}}function us(U){let r,y="You can also print a detailed report directly from the <code>hf</code> command line using:",d,h,M;return h=new ge({props:{code:"JTNFJTIwaGYlMjBjYWNoZSUyMGxzJTBBSUQlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBTSVpFJTIwJTIwJTIwJTIwJTIwTEFTVF9BQ0NFU1NFRCUyMExBU1RfTU9ESUZJRUQlMjBSRUZTJTBBLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tJTIwLS0tLS0tLS0lMjAtLS0tLS0tLS0tLS0tJTIwLS0tLS0tLS0tLS0tLSUyMC0tLS0tLS0tLS0tJTBBZGF0YXNldCUyRm55dS1tbGwlMkZnbHVlJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwMTU3LjRNJTIwMiUyMGRheXMlMjBhZ28lMjAlMjAlMjAlMjAyJTIwZGF5cyUyMGFnbyUyMCUyMCUyMCUyMG1haW4lMjBzY3JpcHQlMEFtb2RlbCUyRkxpcXVpZEFJJTJGTEZNMi1WTC0xLjZCJTIwJTIwJTIwJTIwJTIwMy4yRyUyMDQlMjBkYXlzJTIwYWdvJTIwJTIwJTIwJTIwNCUyMGRheXMlMjBhZ28lMjAlMjAlMjAlMjBtYWluJTBBbW9kZWwlMkZtaWNyb3NvZnQlMkZVc2VyTE0tOGIlMjAlMjAlMjAlMjAlMjAlMjAzMi4xRyUyMDQlMjBkYXlzJTIwYWdvJTIwJTIwJTIwJTIwNCUyMGRheXMlMjBhZ28lMjAlMjAlMjAlMjBtYWluJTBBJTBBRG9uZSUyMGluJTIwMC4wcy4lMjBTY2FubmVkJTIwNiUyMHJlcG8ocyklMjBmb3IlMjBhJTIwdG90YWwlMjBvZiUyMDMuNEcuJTBBR290JTIwMSUyMHdhcm5pbmcocyklMjB3aGlsZSUyMHNjYW5uaW5nLiUyMFVzZSUyMC12dnYlMjB0byUyMHByaW50JTIwZGV0YWlscy4=",highlighted:`&gt; hf cache ls
ID                          SIZE     LAST_ACCESSED LAST_MODIFIED REFS
--------------------------- -------- ------------- ------------- -----------
dataset/nyu-mll/glue          157.4M 2 days ago    2 days ago    main script
model/LiquidAI/LFM2-VL-1.6B     3.2G 4 days ago    4 days ago    main
model/microsoft/UserLM-8b      32.1G 4 days ago    4 days ago    main

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(){r=c("p"),r.innerHTML=y,d=n(),f(h.$$.fragment)},l(a){r=i(a,"P",{"data-svelte-h":!0}),p(r)!=="svelte-1udyvuj"&&(r.innerHTML=y),d=s(a),u(h.$$.fragment,a)},m(a,$){g(a,r,$),g(a,d,$),m(h,a,$),M=!0},p:de,i(a){M||(b(h.$$.fragment,a),M=!0)},o(a){_(h.$$.fragment,a),M=!1},d(a){a&&(o(r),o(d)),T(h,a)}}}function ms(U){let r,y="Examples:",d,h,M;return h=new ge({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(){r=c("p"),r.textContent=y,d=n(),f(h.$$.fragment)},l(a){r=i(a,"P",{"data-svelte-h":!0}),p(r)!=="svelte-kvfsh7"&&(r.textContent=y),d=s(a),u(h.$$.fragment,a)},m(a,$){g(a,r,$),g(a,d,$),m(h,a,$),M=!0},p:de,i(a){M||(b(h.$$.fragment,a),M=!0)},o(a){_(h.$$.fragment,a),M=!1},d(a){a&&(o(r),o(d)),T(h,a)}}}function bs(U){let r,y;return r=new ge({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(r.$$.fragment)},l(d){u(r.$$.fragment,d)},m(d,h){m(r,d,h),y=!0},p:de,i(d){y||(b(r.$$.fragment,d),y=!0)},o(d){_(r.$$.fragment,d),y=!1},d(d){T(r,d)}}}function _s(U){let r,y="Example:",d,h,M;return h=new ge({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(){r=c("p"),r.textContent=y,d=n(),f(h.$$.fragment)},l(a){r=i(a,"P",{"data-svelte-h":!0}),p(r)!=="svelte-11lpom8"&&(r.textContent=y),d=s(a),u(h.$$.fragment,a)},m(a,$){g(a,r,$),g(a,d,$),m(h,a,$),M=!0},p:de,i(a){M||(b(h.$$.fragment,a),M=!0)},o(a){_(h.$$.fragment,a),M=!1},d(a){a&&(o(r),o(d)),T(h,a)}}}function Ts(U){let r,y,d,h,M,a,$,Rt,pe,un=`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.`,Zt,fe,zt,ue,Gt,N,me,da,Ke,mn="Explores the cache to return the latest cached file for a given revision if found.",ga,et,bn="This function will not raise any exception if the file in not cached.",pa,X,Nt,be,Dt,w,_e,fa,tt,_n="Return a folder path to cache arbitrary files.",ua,at,Tn=`<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.`,ma,nt,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,…).`,ba,st,yn=`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.`,_a,K,Ta,ee,Lt,Te,Ot,J,Me,Ma,lt,$n='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.',ya,ot,Cn=`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.`,$a,te,Ca,ae,wa,ye,wn=`<p>Raises:</p> <p><code>CacheNotFound</code>
If the cache directory does not exist.</p> <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>`,Ja,rt,Jn='Returns: a <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a> object.',Ht,$e,Bt,Ce,In='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.',Yt,we,Vt,v,Je,Ia,ct,jn="Frozen data structure holding information about the entire cache-system.",ja,it,Un='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.',Ua,Ie,vn=`<p>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.</p>`,va,F,je,xa,ht,xn="Prepare the strategy to delete one or more revisions cached locally.",ka,dt,kn=`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,ne,Ea,se,Fa,Ue,An=`<p><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.</p>`,Sa,z,ve,Ra,gt,En='Generate a table from the <a href="/docs/huggingface_hub/main/en/package_reference/cache#huggingface_hub.HFCacheInfo">HFCacheInfo</a> object.',Za,pt,Fn=`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”.`,za,ft,Sn=`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”.`,Ga,le,Qt,xe,Pt,x,ke,Na,ut,Rn="Frozen data structure holding information about a cached repository.",Da,Ae,Zn=`<p><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.</p>`,La,Ee,zn=`<p><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.</p>`,Oa,Y,Fe,Ha,mt,Gn="(property) Sum of the blob file sizes as a human-readable string.",Ba,bt,Nn="Example: “42.2K”.",Ya,oe,Se,Va,_t,Dn="(property) Mapping between <code>refs</code> and revision data structures.",Wt,Re,qt,I,Ze,Qa,Tt,Ln="Frozen data structure holding information about a revision.",Pa,Mt,On=`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).`,Wa,ze,Hn=`<p><code>last_accessed</code> cannot be determined correctly on a single revision as blob files
are shared across revisions.</p>`,qa,Ge,Bn=`<p><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.</p>`,Xa,V,Ne,Ka,yt,Yn="(property) Sum of the blob file sizes as a human-readable string.",en,$t,Vn="Example: “42.2K”.",tn,re,De,an,Ct,Qn="(property) Total number of files in the revision.",Xt,Le,Kt,D,Oe,nn,wt,Pn="Frozen data structure holding information about a single cached file.",sn,He,Wn=`<p><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.</p>`,ln,Q,Be,on,Jt,qn="(property) Size of the blob file as a human-readable string.",rn,It,Xn="Example: “42.2K”.",ea,Ye,ta,L,Ve,cn,jt,Kn="Frozen data structure holding the strategy to delete cached revisions.",hn,Ut,es=`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.`,dn,P,Qe,gn,vt,ts="(property) Expected size that will be freed as a human-readable string.",pn,xt,as="Example: “42.2K”.",aa,Pe,na,We,sa,W,qe,fn,kt,ns="Exception for any unexpected structure in the Huggingface cache-system.",la,Xe,oa,St,ra;return M=new is({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),$=new H({props:{title:"Cache-system reference",local:"cache-system-reference",headingTag:"h1"}}),fe=new H({props:{title:"Helpers",local:"helpers",headingTag:"h2"}}),ue=new H({props:{title:"try_to_load_from_cache",local:"huggingface_hub.try_to_load_from_cache",headingTag:"h3"}}),me=new E({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#L1407",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>
`}}),X=new he({props:{anchor:"huggingface_hub.try_to_load_from_cache.example",$$slots:{default:[ds]},$$scope:{ctx:U}}}),be=new H({props:{title:"cached_assets_path",local:"huggingface_hub.cached_assets_path",headingTag:"h3"}}),_e=new E({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>
`}}),K=new he({props:{anchor:"huggingface_hub.cached_assets_path.example",$$slots:{default:[gs]},$$scope:{ctx:U}}}),ee=new he({props:{anchor:"huggingface_hub.cached_assets_path.example-2",$$slots:{default:[ps]},$$scope:{ctx:U}}}),Te=new H({props:{title:"scan_cache_dir",local:"huggingface_hub.scan_cache_dir",headingTag:"h3"}}),Me=new E({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#L561"}}),te=new he({props:{anchor:"huggingface_hub.scan_cache_dir.example",$$slots:{default:[fs]},$$scope:{ctx:U}}}),ae=new he({props:{anchor:"huggingface_hub.scan_cache_dir.example-2",$$slots:{default:[us]},$$scope:{ctx:U}}}),$e=new H({props:{title:"Data structures",local:"data-structures",headingTag:"h2"}}),we=new H({props:{title:"HFCacheInfo",local:"huggingface_hub.HFCacheInfo",headingTag:"h3"}}),Je=new E({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/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#L331"}}),je=new E({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#L366"}}),ne=new he({props:{anchor:"huggingface_hub.HFCacheInfo.delete_revisions.example",$$slots:{default:[ms]},$$scope:{ctx:U}}}),se=new he({props:{anchor:"huggingface_hub.HFCacheInfo.delete_revisions.example-2",$$slots:{default:[bs]},$$scope:{ctx:U}}}),ve=new E({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#L466",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>
`}}),le=new he({props:{anchor:"huggingface_hub.HFCacheInfo.export_as_table.example",$$slots:{default:[_s]},$$scope:{ctx:U}}}),xe=new H({props:{title:"CachedRepoInfo",local:"huggingface_hub.CachedRepoInfo",headingTag:"h3"}}),ke=new E({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:": 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/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#L176"}}),Fe=new E({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#L238"}}),Se=new E({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#L252"}}),Re=new H({props:{title:"CachedRevisionInfo",local:"huggingface_hub.CachedRevisionInfo",headingTag:"h3"}}),Ze=new E({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.`,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#L105"}}),Ne=new E({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#L158"}}),De=new E({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#L167"}}),Le=new H({props:{title:"CachedFileInfo",local:"huggingface_hub.CachedFileInfo",headingTag:"h3"}}),Oe=new E({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#L41"}}),Be=new E({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#L94"}}),Ye=new H({props:{title:"DeleteCacheStrategy",local:"huggingface_hub.DeleteCacheStrategy",headingTag:"h3"}}),Ve=new E({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/main/src/huggingface_hub/utils/_cache_manager.py#L261"}}),Qe=new E({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#L286"}}),Pe=new H({props:{title:"Exceptions",local:"exceptions",headingTag:"h2"}}),We=new H({props:{title:"CorruptedCacheException",local:"huggingface_hub.CorruptedCacheException",headingTag:"h3"}}),qe=new E({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"}}),Xe=new hs({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/package_reference/cache.md"}}),{c(){r=c("meta"),y=n(),d=c("p"),h=n(),f(M.$$.fragment),a=n(),f($.$$.fragment),Rt=n(),pe=c("p"),pe.innerHTML=un,Zt=n(),f(fe.$$.fragment),zt=n(),f(ue.$$.fragment),Gt=n(),N=c("div"),f(me.$$.fragment),da=n(),Ke=c("p"),Ke.textContent=mn,ga=n(),et=c("p"),et.textContent=bn,pa=n(),f(X.$$.fragment),Nt=n(),f(be.$$.fragment),Dt=n(),w=c("div"),f(_e.$$.fragment),fa=n(),tt=c("p"),tt.textContent=_n,ua=n(),at=c("p"),at.innerHTML=Tn,ma=n(),nt=c("p"),nt.innerHTML=Mn,ba=n(),st=c("p"),st.innerHTML=yn,_a=n(),f(K.$$.fragment),Ta=n(),f(ee.$$.fragment),Lt=n(),f(Te.$$.fragment),Ot=n(),J=c("div"),f(Me.$$.fragment),Ma=n(),lt=c("p"),lt.innerHTML=$n,ya=n(),ot=c("p"),ot.innerHTML=Cn,$a=n(),f(te.$$.fragment),Ca=n(),f(ae.$$.fragment),wa=n(),ye=c("blockquote"),ye.innerHTML=wn,Ja=n(),rt=c("p"),rt.innerHTML=Jn,Ht=n(),f($e.$$.fragment),Bt=n(),Ce=c("p"),Ce.innerHTML=In,Yt=n(),f(we.$$.fragment),Vt=n(),v=c("div"),f(Je.$$.fragment),Ia=n(),ct=c("p"),ct.textContent=jn,ja=n(),it=c("p"),it.innerHTML=Un,Ua=n(),Ie=c("blockquote"),Ie.innerHTML=vn,va=n(),F=c("div"),f(je.$$.fragment),xa=n(),ht=c("p"),ht.textContent=xn,ka=n(),dt=c("p"),dt.textContent=kn,Aa=n(),f(ne.$$.fragment),Ea=n(),f(se.$$.fragment),Fa=n(),Ue=c("blockquote"),Ue.innerHTML=An,Sa=n(),z=c("div"),f(ve.$$.fragment),Ra=n(),gt=c("p"),gt.innerHTML=En,Za=n(),pt=c("p"),pt.innerHTML=Fn,za=n(),ft=c("p"),ft.innerHTML=Sn,Ga=n(),f(le.$$.fragment),Qt=n(),f(xe.$$.fragment),Pt=n(),x=c("div"),f(ke.$$.fragment),Na=n(),ut=c("p"),ut.textContent=Rn,Da=n(),Ae=c("blockquote"),Ae.innerHTML=Zn,La=n(),Ee=c("blockquote"),Ee.innerHTML=zn,Oa=n(),Y=c("div"),f(Fe.$$.fragment),Ha=n(),mt=c("p"),mt.textContent=Gn,Ba=n(),bt=c("p"),bt.textContent=Nn,Ya=n(),oe=c("div"),f(Se.$$.fragment),Va=n(),_t=c("p"),_t.innerHTML=Dn,Wt=n(),f(Re.$$.fragment),qt=n(),I=c("div"),f(Ze.$$.fragment),Qa=n(),Tt=c("p"),Tt.textContent=Ln,Pa=n(),Mt=c("p"),Mt.innerHTML=On,Wa=n(),ze=c("blockquote"),ze.innerHTML=Hn,qa=n(),Ge=c("blockquote"),Ge.innerHTML=Bn,Xa=n(),V=c("div"),f(Ne.$$.fragment),Ka=n(),yt=c("p"),yt.textContent=Yn,en=n(),$t=c("p"),$t.textContent=Vn,tn=n(),re=c("div"),f(De.$$.fragment),an=n(),Ct=c("p"),Ct.textContent=Qn,Xt=n(),f(Le.$$.fragment),Kt=n(),D=c("div"),f(Oe.$$.fragment),nn=n(),wt=c("p"),wt.textContent=Pn,sn=n(),He=c("blockquote"),He.innerHTML=Wn,ln=n(),Q=c("div"),f(Be.$$.fragment),on=n(),Jt=c("p"),Jt.textContent=qn,rn=n(),It=c("p"),It.textContent=Xn,ea=n(),f(Ye.$$.fragment),ta=n(),L=c("div"),f(Ve.$$.fragment),cn=n(),jt=c("p"),jt.textContent=Kn,hn=n(),Ut=c("p"),Ut.innerHTML=es,dn=n(),P=c("div"),f(Qe.$$.fragment),gn=n(),vt=c("p"),vt.textContent=ts,pn=n(),xt=c("p"),xt.textContent=as,aa=n(),f(Pe.$$.fragment),na=n(),f(We.$$.fragment),sa=n(),W=c("div"),f(qe.$$.fragment),fn=n(),kt=c("p"),kt.textContent=ns,la=n(),f(Xe.$$.fragment),oa=n(),St=c("p"),this.h()},l(e){const l=cs("svelte-u9bgzb",document.head);r=i(l,"META",{name:!0,content:!0}),l.forEach(o),y=s(e),d=i(e,"P",{}),j(d).forEach(o),h=s(e),u(M.$$.fragment,e),a=s(e),u($.$$.fragment,e),Rt=s(e),pe=i(e,"P",{"data-svelte-h":!0}),p(pe)!=="svelte-1rfy74v"&&(pe.innerHTML=un),Zt=s(e),u(fe.$$.fragment,e),zt=s(e),u(ue.$$.fragment,e),Gt=s(e),N=i(e,"DIV",{class:!0});var B=j(N);u(me.$$.fragment,B),da=s(B),Ke=i(B,"P",{"data-svelte-h":!0}),p(Ke)!=="svelte-wybe3x"&&(Ke.textContent=mn),ga=s(B),et=i(B,"P",{"data-svelte-h":!0}),p(et)!=="svelte-9465ci"&&(et.textContent=bn),pa=s(B),u(X.$$.fragment,B),B.forEach(o),Nt=s(e),u(be.$$.fragment,e),Dt=s(e),w=i(e,"DIV",{class:!0});var k=j(w);u(_e.$$.fragment,k),fa=s(k),tt=i(k,"P",{"data-svelte-h":!0}),p(tt)!=="svelte-1ua2cjq"&&(tt.textContent=_n),ua=s(k),at=i(k,"P",{"data-svelte-h":!0}),p(at)!=="svelte-185gfp2"&&(at.innerHTML=Tn),ma=s(k),nt=i(k,"P",{"data-svelte-h":!0}),p(nt)!=="svelte-1ky40fv"&&(nt.innerHTML=Mn),ba=s(k),st=i(k,"P",{"data-svelte-h":!0}),p(st)!=="svelte-1dsf1o4"&&(st.innerHTML=yn),_a=s(k),u(K.$$.fragment,k),Ta=s(k),u(ee.$$.fragment,k),k.forEach(o),Lt=s(e),u(Te.$$.fragment,e),Ot=s(e),J=i(e,"DIV",{class:!0});var A=j(J);u(Me.$$.fragment,A),Ma=s(A),lt=i(A,"P",{"data-svelte-h":!0}),p(lt)!=="svelte-1m4nzn1"&&(lt.innerHTML=$n),ya=s(A),ot=i(A,"P",{"data-svelte-h":!0}),p(ot)!=="svelte-uia3fl"&&(ot.innerHTML=Cn),$a=s(A),u(te.$$.fragment,A),Ca=s(A),u(ae.$$.fragment,A),wa=s(A),ye=i(A,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(ye)!=="svelte-66pgyt"&&(ye.innerHTML=wn),Ja=s(A),rt=i(A,"P",{"data-svelte-h":!0}),p(rt)!=="svelte-8srnnu"&&(rt.innerHTML=Jn),A.forEach(o),Ht=s(e),u($e.$$.fragment,e),Bt=s(e),Ce=i(e,"P",{"data-svelte-h":!0}),p(Ce)!=="svelte-qnkxnj"&&(Ce.innerHTML=In),Yt=s(e),u(we.$$.fragment,e),Vt=s(e),v=i(e,"DIV",{class:!0});var S=j(v);u(Je.$$.fragment,S),Ia=s(S),ct=i(S,"P",{"data-svelte-h":!0}),p(ct)!=="svelte-z29m0d"&&(ct.textContent=jn),ja=s(S),it=i(S,"P",{"data-svelte-h":!0}),p(it)!=="svelte-1kkrl40"&&(it.innerHTML=Un),Ua=s(S),Ie=i(S,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(Ie)!=="svelte-17ow8w5"&&(Ie.innerHTML=vn),va=s(S),F=i(S,"DIV",{class:!0});var R=j(F);u(je.$$.fragment,R),xa=s(R),ht=i(R,"P",{"data-svelte-h":!0}),p(ht)!=="svelte-1kc0sf3"&&(ht.textContent=xn),ka=s(R),dt=i(R,"P",{"data-svelte-h":!0}),p(dt)!=="svelte-hvu8pg"&&(dt.textContent=kn),Aa=s(R),u(ne.$$.fragment,R),Ea=s(R),u(se.$$.fragment,R),Fa=s(R),Ue=i(R,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(Ue)!=="svelte-yhmzmr"&&(Ue.innerHTML=An),R.forEach(o),Sa=s(S),z=i(S,"DIV",{class:!0});var O=j(z);u(ve.$$.fragment,O),Ra=s(O),gt=i(O,"P",{"data-svelte-h":!0}),p(gt)!=="svelte-pzg2pl"&&(gt.innerHTML=En),Za=s(O),pt=i(O,"P",{"data-svelte-h":!0}),p(pt)!=="svelte-y5o1d2"&&(pt.innerHTML=Fn),za=s(O),ft=i(O,"P",{"data-svelte-h":!0}),p(ft)!=="svelte-kk3qf1"&&(ft.innerHTML=Sn),Ga=s(O),u(le.$$.fragment,O),O.forEach(o),S.forEach(o),Qt=s(e),u(xe.$$.fragment,e),Pt=s(e),x=i(e,"DIV",{class:!0});var Z=j(x);u(ke.$$.fragment,Z),Na=s(Z),ut=i(Z,"P",{"data-svelte-h":!0}),p(ut)!=="svelte-yfk7e8"&&(ut.textContent=Rn),Da=s(Z),Ae=i(Z,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(Ae)!=="svelte-1s1rdbk"&&(Ae.innerHTML=Zn),La=s(Z),Ee=i(Z,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(Ee)!=="svelte-nl2f95"&&(Ee.innerHTML=zn),Oa=s(Z),Y=i(Z,"DIV",{class:!0});var q=j(Y);u(Fe.$$.fragment,q),Ha=s(q),mt=i(q,"P",{"data-svelte-h":!0}),p(mt)!=="svelte-zfpv6m"&&(mt.textContent=Gn),Ba=s(q),bt=i(q,"P",{"data-svelte-h":!0}),p(bt)!=="svelte-jo5bw4"&&(bt.textContent=Nn),q.forEach(o),Ya=s(Z),oe=i(Z,"DIV",{class:!0});var ca=j(oe);u(Se.$$.fragment,ca),Va=s(ca),_t=i(ca,"P",{"data-svelte-h":!0}),p(_t)!=="svelte-1a85bod"&&(_t.innerHTML=Dn),ca.forEach(o),Z.forEach(o),Wt=s(e),u(Re.$$.fragment,e),qt=s(e),I=i(e,"DIV",{class:!0});var G=j(I);u(Ze.$$.fragment,G),Qa=s(G),Tt=i(G,"P",{"data-svelte-h":!0}),p(Tt)!=="svelte-e2eri1"&&(Tt.textContent=Ln),Pa=s(G),Mt=i(G,"P",{"data-svelte-h":!0}),p(Mt)!=="svelte-1h5zcam"&&(Mt.innerHTML=On),Wa=s(G),ze=i(G,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(ze)!=="svelte-1dt52zu"&&(ze.innerHTML=Hn),qa=s(G),Ge=i(G,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(Ge)!=="svelte-1mnfi9t"&&(Ge.innerHTML=Bn),Xa=s(G),V=i(G,"DIV",{class:!0});var At=j(V);u(Ne.$$.fragment,At),Ka=s(At),yt=i(At,"P",{"data-svelte-h":!0}),p(yt)!=="svelte-zfpv6m"&&(yt.textContent=Yn),en=s(At),$t=i(At,"P",{"data-svelte-h":!0}),p($t)!=="svelte-jo5bw4"&&($t.textContent=Vn),At.forEach(o),tn=s(G),re=i(G,"DIV",{class:!0});var ia=j(re);u(De.$$.fragment,ia),an=s(ia),Ct=i(ia,"P",{"data-svelte-h":!0}),p(Ct)!=="svelte-o0ydo0"&&(Ct.textContent=Qn),ia.forEach(o),G.forEach(o),Xt=s(e),u(Le.$$.fragment,e),Kt=s(e),D=i(e,"DIV",{class:!0});var ce=j(D);u(Oe.$$.fragment,ce),nn=s(ce),wt=i(ce,"P",{"data-svelte-h":!0}),p(wt)!=="svelte-1l95h2a"&&(wt.textContent=Pn),sn=s(ce),He=i(ce,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(He)!=="svelte-1a8jx1t"&&(He.innerHTML=Wn),ln=s(ce),Q=i(ce,"DIV",{class:!0});var Et=j(Q);u(Be.$$.fragment,Et),on=s(Et),Jt=i(Et,"P",{"data-svelte-h":!0}),p(Jt)!=="svelte-easepm"&&(Jt.textContent=qn),rn=s(Et),It=i(Et,"P",{"data-svelte-h":!0}),p(It)!=="svelte-jo5bw4"&&(It.textContent=Xn),Et.forEach(o),ce.forEach(o),ea=s(e),u(Ye.$$.fragment,e),ta=s(e),L=i(e,"DIV",{class:!0});var ie=j(L);u(Ve.$$.fragment,ie),cn=s(ie),jt=i(ie,"P",{"data-svelte-h":!0}),p(jt)!=="svelte-13gw4lu"&&(jt.textContent=Kn),hn=s(ie),Ut=i(ie,"P",{"data-svelte-h":!0}),p(Ut)!=="svelte-1iwcxpf"&&(Ut.innerHTML=es),dn=s(ie),P=i(ie,"DIV",{class:!0});var Ft=j(P);u(Qe.$$.fragment,Ft),gn=s(Ft),vt=i(Ft,"P",{"data-svelte-h":!0}),p(vt)!=="svelte-1syr64t"&&(vt.textContent=ts),pn=s(Ft),xt=i(Ft,"P",{"data-svelte-h":!0}),p(xt)!=="svelte-jo5bw4"&&(xt.textContent=as),Ft.forEach(o),ie.forEach(o),aa=s(e),u(Pe.$$.fragment,e),na=s(e),u(We.$$.fragment,e),sa=s(e),W=i(e,"DIV",{class:!0});var ha=j(W);u(qe.$$.fragment,ha),fn=s(ha),kt=i(ha,"P",{"data-svelte-h":!0}),p(kt)!=="svelte-thu1ey"&&(kt.textContent=ns),ha.forEach(o),la=s(e),u(Xe.$$.fragment,e),oa=s(e),St=i(e,"P",{}),j(St).forEach(o),this.h()},h(){C(r,"name","hf:doc:metadata"),C(r,"content",Ms),C(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(ye,"class","warning"),C(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(Ie,"class","warning"),C(Ue,"class","warning"),C(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(Ae,"class","warning"),C(Ee,"class","warning"),C(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(ze,"class","warning"),C(Ge,"class","warning"),C(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(He,"class","warning"),C(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(W,"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,l){t(document.head,r),g(e,y,l),g(e,d,l),g(e,h,l),m(M,e,l),g(e,a,l),m($,e,l),g(e,Rt,l),g(e,pe,l),g(e,Zt,l),m(fe,e,l),g(e,zt,l),m(ue,e,l),g(e,Gt,l),g(e,N,l),m(me,N,null),t(N,da),t(N,Ke),t(N,ga),t(N,et),t(N,pa),m(X,N,null),g(e,Nt,l),m(be,e,l),g(e,Dt,l),g(e,w,l),m(_e,w,null),t(w,fa),t(w,tt),t(w,ua),t(w,at),t(w,ma),t(w,nt),t(w,ba),t(w,st),t(w,_a),m(K,w,null),t(w,Ta),m(ee,w,null),g(e,Lt,l),m(Te,e,l),g(e,Ot,l),g(e,J,l),m(Me,J,null),t(J,Ma),t(J,lt),t(J,ya),t(J,ot),t(J,$a),m(te,J,null),t(J,Ca),m(ae,J,null),t(J,wa),t(J,ye),t(J,Ja),t(J,rt),g(e,Ht,l),m($e,e,l),g(e,Bt,l),g(e,Ce,l),g(e,Yt,l),m(we,e,l),g(e,Vt,l),g(e,v,l),m(Je,v,null),t(v,Ia),t(v,ct),t(v,ja),t(v,it),t(v,Ua),t(v,Ie),t(v,va),t(v,F),m(je,F,null),t(F,xa),t(F,ht),t(F,ka),t(F,dt),t(F,Aa),m(ne,F,null),t(F,Ea),m(se,F,null),t(F,Fa),t(F,Ue),t(v,Sa),t(v,z),m(ve,z,null),t(z,Ra),t(z,gt),t(z,Za),t(z,pt),t(z,za),t(z,ft),t(z,Ga),m(le,z,null),g(e,Qt,l),m(xe,e,l),g(e,Pt,l),g(e,x,l),m(ke,x,null),t(x,Na),t(x,ut),t(x,Da),t(x,Ae),t(x,La),t(x,Ee),t(x,Oa),t(x,Y),m(Fe,Y,null),t(Y,Ha),t(Y,mt),t(Y,Ba),t(Y,bt),t(x,Ya),t(x,oe),m(Se,oe,null),t(oe,Va),t(oe,_t),g(e,Wt,l),m(Re,e,l),g(e,qt,l),g(e,I,l),m(Ze,I,null),t(I,Qa),t(I,Tt),t(I,Pa),t(I,Mt),t(I,Wa),t(I,ze),t(I,qa),t(I,Ge),t(I,Xa),t(I,V),m(Ne,V,null),t(V,Ka),t(V,yt),t(V,en),t(V,$t),t(I,tn),t(I,re),m(De,re,null),t(re,an),t(re,Ct),g(e,Xt,l),m(Le,e,l),g(e,Kt,l),g(e,D,l),m(Oe,D,null),t(D,nn),t(D,wt),t(D,sn),t(D,He),t(D,ln),t(D,Q),m(Be,Q,null),t(Q,on),t(Q,Jt),t(Q,rn),t(Q,It),g(e,ea,l),m(Ye,e,l),g(e,ta,l),g(e,L,l),m(Ve,L,null),t(L,cn),t(L,jt),t(L,hn),t(L,Ut),t(L,dn),t(L,P),m(Qe,P,null),t(P,gn),t(P,vt),t(P,pn),t(P,xt),g(e,aa,l),m(Pe,e,l),g(e,na,l),m(We,e,l),g(e,sa,l),g(e,W,l),m(qe,W,null),t(W,fn),t(W,kt),g(e,la,l),m(Xe,e,l),g(e,oa,l),g(e,St,l),ra=!0},p(e,[l]){const B={};l&2&&(B.$$scope={dirty:l,ctx:e}),X.$set(B);const k={};l&2&&(k.$$scope={dirty:l,ctx:e}),K.$set(k);const A={};l&2&&(A.$$scope={dirty:l,ctx:e}),ee.$set(A);const S={};l&2&&(S.$$scope={dirty:l,ctx:e}),te.$set(S);const R={};l&2&&(R.$$scope={dirty:l,ctx:e}),ae.$set(R);const O={};l&2&&(O.$$scope={dirty:l,ctx:e}),ne.$set(O);const Z={};l&2&&(Z.$$scope={dirty:l,ctx:e}),se.$set(Z);const q={};l&2&&(q.$$scope={dirty:l,ctx:e}),le.$set(q)},i(e){ra||(b(M.$$.fragment,e),b($.$$.fragment,e),b(fe.$$.fragment,e),b(ue.$$.fragment,e),b(me.$$.fragment,e),b(X.$$.fragment,e),b(be.$$.fragment,e),b(_e.$$.fragment,e),b(K.$$.fragment,e),b(ee.$$.fragment,e),b(Te.$$.fragment,e),b(Me.$$.fragment,e),b(te.$$.fragment,e),b(ae.$$.fragment,e),b($e.$$.fragment,e),b(we.$$.fragment,e),b(Je.$$.fragment,e),b(je.$$.fragment,e),b(ne.$$.fragment,e),b(se.$$.fragment,e),b(ve.$$.fragment,e),b(le.$$.fragment,e),b(xe.$$.fragment,e),b(ke.$$.fragment,e),b(Fe.$$.fragment,e),b(Se.$$.fragment,e),b(Re.$$.fragment,e),b(Ze.$$.fragment,e),b(Ne.$$.fragment,e),b(De.$$.fragment,e),b(Le.$$.fragment,e),b(Oe.$$.fragment,e),b(Be.$$.fragment,e),b(Ye.$$.fragment,e),b(Ve.$$.fragment,e),b(Qe.$$.fragment,e),b(Pe.$$.fragment,e),b(We.$$.fragment,e),b(qe.$$.fragment,e),b(Xe.$$.fragment,e),ra=!0)},o(e){_(M.$$.fragment,e),_($.$$.fragment,e),_(fe.$$.fragment,e),_(ue.$$.fragment,e),_(me.$$.fragment,e),_(X.$$.fragment,e),_(be.$$.fragment,e),_(_e.$$.fragment,e),_(K.$$.fragment,e),_(ee.$$.fragment,e),_(Te.$$.fragment,e),_(Me.$$.fragment,e),_(te.$$.fragment,e),_(ae.$$.fragment,e),_($e.$$.fragment,e),_(we.$$.fragment,e),_(Je.$$.fragment,e),_(je.$$.fragment,e),_(ne.$$.fragment,e),_(se.$$.fragment,e),_(ve.$$.fragment,e),_(le.$$.fragment,e),_(xe.$$.fragment,e),_(ke.$$.fragment,e),_(Fe.$$.fragment,e),_(Se.$$.fragment,e),_(Re.$$.fragment,e),_(Ze.$$.fragment,e),_(Ne.$$.fragment,e),_(De.$$.fragment,e),_(Le.$$.fragment,e),_(Oe.$$.fragment,e),_(Be.$$.fragment,e),_(Ye.$$.fragment,e),_(Ve.$$.fragment,e),_(Qe.$$.fragment,e),_(Pe.$$.fragment,e),_(We.$$.fragment,e),_(qe.$$.fragment,e),_(Xe.$$.fragment,e),ra=!1},d(e){e&&(o(y),o(d),o(h),o(a),o(Rt),o(pe),o(Zt),o(zt),o(Gt),o(N),o(Nt),o(Dt),o(w),o(Lt),o(Ot),o(J),o(Ht),o(Bt),o(Ce),o(Yt),o(Vt),o(v),o(Qt),o(Pt),o(x),o(Wt),o(qt),o(I),o(Xt),o(Kt),o(D),o(ea),o(ta),o(L),o(aa),o(na),o(sa),o(W),o(la),o(oa),o(St)),o(r),T(M,e),T($,e),T(fe,e),T(ue,e),T(me),T(X),T(be,e),T(_e),T(K),T(ee),T(Te,e),T(Me),T(te),T(ae),T($e,e),T(we,e),T(Je),T(je),T(ne),T(se),T(ve),T(le),T(xe,e),T(ke),T(Fe),T(Se),T(Re,e),T(Ze),T(Ne),T(De),T(Le,e),T(Oe),T(Be),T(Ye,e),T(Ve),T(Qe),T(Pe,e),T(We,e),T(qe),T(Xe,e)}}}const Ms='{"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 ys(U){return ls(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class vs extends os{constructor(r){super(),rs(this,r,ys,Ts,ss,{})}}export{vs as component};
