import{s as Fn,o as Zn,n as N}from"../chunks/scheduler.6062bdaf.js";import{S as Rn,i as Ln,g as i,s as l,r as f,A as Nn,h,f as c,c as o,j as I,u as p,x as T,k as j,y as n,a as g,v as u,d as m,t as _,w as M}from"../chunks/index.4bca734e.js";import{T as _e}from"../chunks/Tip.b9ac1f03.js";import{D as F}from"../chunks/Docstring.d7918b6d.js";import{C as qe}from"../chunks/CodeBlock.fa01571c.js";import{E as Xe}from"../chunks/ExampleCodeBlock.d27cbfa4.js";import{H as V,E as zn}from"../chunks/EditOnGithub.74ab2baa.js";function Yn($){let t,b="Example:",a,d,y;return d=new qe({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHRyeV90b19sb2FkX2Zyb21fY2FjaGUlMkMlMjBfQ0FDSEVEX05PX0VYSVNUJTBBJTBBZmlsZXBhdGglMjAlM0QlMjB0cnlfdG9fbG9hZF9mcm9tX2NhY2hlKCklMEFpZiUyMGlzaW5zdGFuY2UoZmlsZXBhdGglMkMlMjBzdHIpJTNBJTBBJTIwJTIwJTIwJTIwJTIzJTIwZmlsZSUyMGV4aXN0cyUyMGFuZCUyMGlzJTIwY2FjaGVkJTBBJTIwJTIwJTIwJTIwLi4uJTBBZWxpZiUyMGZpbGVwYXRoJTIwaXMlMjBfQ0FDSEVEX05PX0VYSVNUJTNBJTBBJTIwJTIwJTIwJTIwJTIzJTIwbm9uLWV4aXN0ZW5jZSUyMG9mJTIwZmlsZSUyMGlzJTIwY2FjaGVkJTBBJTIwJTIwJTIwJTIwLi4uJTBBZWxzZSUzQSUwQSUyMCUyMCUyMCUyMCUyMyUyMGZpbGUlMjBpcyUyMG5vdCUyMGNhY2hlZCUwQSUyMCUyMCUyMCUyMC4uLg==",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> try_to_load_from_cache, _CACHED_NO_EXIST

filepath = try_to_load_from_cache()
<span class="hljs-keyword">if</span> <span class="hljs-built_in">isinstance</span>(filepath, <span class="hljs-built_in">str</span>):
    <span class="hljs-comment"># file exists and is cached</span>
    ...
<span class="hljs-keyword">elif</span> filepath <span class="hljs-keyword">is</span> _CACHED_NO_EXIST:
    <span class="hljs-comment"># non-existence of file is cached</span>
    ...
<span class="hljs-keyword">else</span>:
    <span class="hljs-comment"># file is not cached</span>
    ...`,wrap:!1}}),{c(){t=i("p"),t.textContent=b,a=l(),f(d.$$.fragment)},l(r){t=h(r,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=b),a=o(r),p(d.$$.fragment,r)},m(r,C){g(r,t,C),g(r,a,C),u(d,r,C),y=!0},p:N,i(r){y||(m(d.$$.fragment,r),y=!0)},o(r){_(d.$$.fragment,r),y=!1},d(r){r&&(c(t),c(a)),M(d,r)}}}function Gn($){let t,b="Expected tree:",a,d,y;return d=new qe({props:{code:"JTIwJTIwJTIwJTIwYXNzZXRzJTJGJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwZGF0YXNldHMlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjBTUXVBRCUyRiUwQSUyMCUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU4MiUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMGRvd25sb2FkZWQlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjBleHRyYWN0ZWQlMkYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlODIlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBwcm9jZXNzZWQlMkYlMEElMjAlMjAlMjAlMjAlR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MjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBiYmM3N2M4MTMyYWYxY2M1Y2Y2NzhkYTNmMWRkZjJkZTQzNjA2ZDQ4JTJGJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwKC4uLik=",highlighted:`    assets/
    └── datasets/
    │   ├── SQuAD/
    │   │   ├── downloaded/
    │   │   ├── extracted/
    │   │   └── processed/
    │   ├── Helsinki-NLP--tatoeba_mt/
    │       ├── downloaded/
    │       ├── extracted/
    │       └── processed/
    └── transformers/
        ├── default/
        │   ├── something/
        ├── bert-base-cased/
        │   ├── default/
        │   └── training/
    hub/
    └── models--julien-c--EsperBERTo-small/
        ├── blobs/
        │   ├── (...)
        │   ├── (...)
        ├── refs/
        │   └── (...)
        └── [ 128]  snapshots/
            ├── 2439f60ef33a0d46d85da5001d52aeda5b00ce9f/
            │   ├── (...)
            └── bbc77c8132af1cc5cf678da3f1ddf2de43606d48/
                └── (...)`,wrap:!1}}),{c(){t=i("p"),t.textContent=b,a=l(),f(d.$$.fragment)},l(r){t=h(r,"P",{"data-svelte-h":!0}),T(t)!=="svelte-c5dp2"&&(t.textContent=b),a=o(r),p(d.$$.fragment,r)},m(r,C){g(r,t,C),g(r,a,C),u(d,r,C),y=!0},p:N,i(r){y||(m(d.$$.fragment,r),y=!0)},o(r){_(d.$$.fragment,r),y=!1},d(r){r&&(c(t),c(a)),M(d,r)}}}function En($){let t,b="Example:",a,d,y;return d=new qe({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNhY2hlZF9hc3NldHNfcGF0aCUwQSUwQWNhY2hlZF9hc3NldHNfcGF0aChsaWJyYXJ5X25hbWUlM0QlMjJkYXRhc2V0cyUyMiUyQyUyMG5hbWVzcGFjZSUzRCUyMlNRdUFEJTIyJTJDJTIwc3ViZm9sZGVyJTNEJTIyZG93bmxvYWQlMjIpJTBBJTBBY2FjaGVkX2Fzc2V0c19wYXRoKGxpYnJhcnlfbmFtZSUzRCUyMmRhdGFzZXRzJTIyJTJDJTIwbmFtZXNwYWNlJTNEJTIyU1F1QUQlMjIlMkMlMjBzdWJmb2xkZXIlM0QlMjJleHRyYWN0ZWQlMjIpJTBBJTBBY2FjaGVkX2Fzc2V0c19wYXRoKGxpYnJhcnlfbmFtZSUzRCUyMmRhdGFzZXRzJTIyJTJDJTIwbmFtZXNwYWNlJTNEJTIySGVsc2lua2ktTkxQJTJGdGF0b2ViYV9tdCUyMiklMEElMEFjYWNoZWRfYXNzZXRzX3BhdGgobGlicmFyeV9uYW1lJTNEJTIyZGF0YXNldHMlMjIlMkMlMjBhc3NldHNfZGlyJTNEJTIyJTJGdG1wJTJGdG1wMTIzNDU2JTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> cached_assets_path

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>cached_assets_path(library_name=<span class="hljs-string">&quot;datasets&quot;</span>, assets_dir=<span class="hljs-string">&quot;/tmp/tmp123456&quot;</span>)
PosixPath(<span class="hljs-string">&#x27;/tmp/tmp123456/datasets/default/default&#x27;</span>)`,wrap:!1}}),{c(){t=i("p"),t.textContent=b,a=l(),f(d.$$.fragment)},l(r){t=h(r,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=b),a=o(r),p(d.$$.fragment,r)},m(r,C){g(r,t,C),g(r,a,C),u(d,r,C),y=!0},p:N,i(r){y||(m(d.$$.fragment,r),y=!0)},o(r){_(d.$$.fragment,r),y=!1},d(r){r&&(c(t),c(a)),M(d,r)}}}function Vn($){let t,b;return t=new qe({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHNjYW5fY2FjaGVfZGlyJTBBJTBBaGZfY2FjaGVfaW5mbyUyMCUzRCUyMHNjYW5fY2FjaGVfZGlyKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> scan_cache_dir

<span class="hljs-meta">&gt;&gt;&gt; </span>hf_cache_info = scan_cache_dir()
HFCacheInfo(
    size_on_disk=<span class="hljs-number">3398085269</span>,
    repos=<span class="hljs-built_in">frozenset</span>({
        CachedRepoInfo(
            repo_id=<span class="hljs-string">&#x27;t5-small&#x27;</span>,
            repo_type=<span class="hljs-string">&#x27;model&#x27;</span>,
            repo_path=PosixPath(...),
            size_on_disk=<span class="hljs-number">970726914</span>,
            nb_files=<span class="hljs-number">11</span>,
            revisions=<span class="hljs-built_in">frozenset</span>({
                CachedRevisionInfo(
                    commit_hash=<span class="hljs-string">&#x27;d78aea13fa7ecd06c29e3e46195d6341255065d5&#x27;</span>,
                    size_on_disk=<span class="hljs-number">970726339</span>,
                    snapshot_path=PosixPath(...),
                    files=<span class="hljs-built_in">frozenset</span>({
                        CachedFileInfo(
                            file_name=<span class="hljs-string">&#x27;config.json&#x27;</span>,
                            size_on_disk=<span class="hljs-number">1197</span>
                            file_path=PosixPath(...),
                            blob_path=PosixPath(...),
                        ),
                        CachedFileInfo(...),
                        ...
                    }),
                ),
                CachedRevisionInfo(...),
                ...
            }),
        ),
        CachedRepoInfo(...),
        ...
    }),
    warnings=[
        CorruptedCacheException(<span class="hljs-string">&quot;Snapshots dir doesn&#x27;t exist in cached repo: ...&quot;</span>),
        CorruptedCacheException(...),
        ...
    ],
)`,wrap:!1}}),{c(){f(t.$$.fragment)},l(a){p(t.$$.fragment,a)},m(a,d){u(t,a,d),b=!0},p:N,i(a){b||(m(t.$$.fragment,a),b=!0)},o(a){_(t.$$.fragment,a),b=!1},d(a){M(t,a)}}}function Dn($){let t,b="You can also print a detailed report directly from the <code>huggingface-cli</code> using:",a,d,y;return d=new qe({props:{code:"JTNFJTIwaHVnZ2luZ2ZhY2UtY2xpJTIwc2Nhbi1jYWNoZSUwQVJFUE8lMjBJRCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMFJFUE8lMjBUWVBFJTIwU0laRSUyME9OJTIwRElTSyUyME5CJTIwRklMRVMlMjBSRUZTJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwTE9DQUwlMjBQQVRIJTBBLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tJTIwLS0tLS0tLS0tJTIwLS0tLS0tLS0tLS0tJTIwLS0tLS0tLS0lMjAtLS0tLS0tLS0tLS0tLS0tLS0tJTIwLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0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BpbiUyMDAuMHMuJTIwU2Nhbm5lZCUyMDYlMjByZXBvKHMpJTIwZm9yJTIwYSUyMHRvdGFsJTIwb2YlMjAzLjRHLiUwQUdvdCUyMDElMjB3YXJuaW5nKHMpJTIwd2hpbGUlMjBzY2FubmluZy4lMjBVc2UlMjAtdnZ2JTIwdG8lMjBwcmludCUyMGRldGFpbHMu",highlighted:`&gt; huggingface-cli scan-cache
REPO ID                     REPO TYPE SIZE ON DISK NB FILES REFS                LOCAL PATH
--------------------------- --------- ------------ -------- ------------------- -------------------------------------------------------------------------
glue                        dataset         116.3K       15 1.17.0, main, 2.4.0 /Users/lucain/.cache/huggingface/hub/datasets--glue
google/fleurs               dataset          64.9M        6 main, refs/pr/1     /Users/lucain/.cache/huggingface/hub/datasets--google--fleurs
Jean-Baptiste/camembert-ner model           441.0M        7 main                /Users/lucain/.cache/huggingface/hub/models--Jean-Baptiste--camembert-ner
bert-base-cased             model             1.9G       13 main                /Users/lucain/.cache/huggingface/hub/models--bert-base-cased
t5-base                     model            10.1K        3 main                /Users/lucain/.cache/huggingface/hub/models--t5-base
t5-small                    model           970.7M       11 refs/pr/1, main     /Users/lucain/.cache/huggingface/hub/models--t5-small

Done in 0.0s. Scanned 6 repo(s) for a total of 3.4G.
Got 1 warning(s) while scanning. Use -vvv to print details.`,wrap:!1}}),{c(){t=i("p"),t.innerHTML=b,a=l(),f(d.$$.fragment)},l(r){t=h(r,"P",{"data-svelte-h":!0}),T(t)!=="svelte-35akmn"&&(t.innerHTML=b),a=o(r),p(d.$$.fragment,r)},m(r,C){g(r,t,C),g(r,a,C),u(d,r,C),y=!0},p:N,i(r){y||(m(d.$$.fragment,r),y=!0)},o(r){_(d.$$.fragment,r),y=!1},d(r){r&&(c(t),c(a)),M(d,r)}}}function Hn($){let t,b=`Here <code>size_on_disk</code> is equal to the sum of all repo sizes (only blobs). However if
some cached repos are corrupted, their sizes are not taken into account.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-sgjnu7"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function Qn($){let t,b="Examples:",a,d,y;return d=new qe({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHNjYW5fY2FjaGVfZGlyJTBBY2FjaGVfaW5mbyUyMCUzRCUyMHNjYW5fY2FjaGVfZGlyKCklMEFkZWxldGVfc3RyYXRlZ3klMjAlM0QlMjBjYWNoZV9pbmZvLmRlbGV0ZV9yZXZpc2lvbnMoJTBBJTIwJTIwJTIwJTIwJTIyODFmZDFkNmU3ODQ3Yzk5ZjU4NjJjOWZiODEzODc5NTZkOTllYzdhYSUyMiUwQSklMEFwcmludChmJTIyV2lsbCUyMGZyZWUlMjAlN0JkZWxldGVfc3RyYXRlZ3kuZXhwZWN0ZWRfZnJlZWRfc2l6ZV9zdHIlN0QuJTIyKSUwQWRlbGV0ZV9zdHJhdGVneS5leGVjdXRlKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> scan_cache_dir
<span class="hljs-meta">&gt;&gt;&gt; </span>cache_info = scan_cache_dir()
<span class="hljs-meta">&gt;&gt;&gt; </span>delete_strategy = cache_info.delete_revisions(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;81fd1d6e7847c99f5862c9fb81387956d99ec7aa&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;Will free <span class="hljs-subst">{delete_strategy.expected_freed_size_str}</span>.&quot;</span>)
Will free <span class="hljs-number">7.9</span>K.
<span class="hljs-meta">&gt;&gt;&gt; </span>delete_strategy.execute()
Cache deletion done. Saved <span class="hljs-number">7.9</span>K.`,wrap:!1}}),{c(){t=i("p"),t.textContent=b,a=l(),f(d.$$.fragment)},l(r){t=h(r,"P",{"data-svelte-h":!0}),T(t)!=="svelte-kvfsh7"&&(t.textContent=b),a=o(r),p(d.$$.fragment,r)},m(r,C){g(r,t,C),g(r,a,C),u(d,r,C),y=!0},p:N,i(r){y||(m(d.$$.fragment,r),y=!0)},o(r){_(d.$$.fragment,r),y=!1},d(r){r&&(c(t),c(a)),M(d,r)}}}function Bn($){let t,b;return t=new qe({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHNjYW5fY2FjaGVfZGlyJTBBc2Nhbl9jYWNoZV9kaXIoKS5kZWxldGVfcmV2aXNpb25zKCUwQSUyMCUyMCUyMCUyMCUyMjgxZmQxZDZlNzg0N2M5OWY1ODYyYzlmYjgxMzg3OTU2ZDk5ZWM3YWElMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJlMjk4M2IyMzdkY2NmM2FiNDkzN2M5N2ZhNzE3MzE5YTljYTFhOTZkJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyNmMwZTYwODA5NTNkYjU2Mzc1NzYwYzA0NzFhOGM1ZjI5MjliYWYxMSUyMiUyQyUwQSkuZXhlY3V0ZSgp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> scan_cache_dir
<span class="hljs-meta">&gt;&gt;&gt; </span>scan_cache_dir().delete_revisions(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;81fd1d6e7847c99f5862c9fb81387956d99ec7aa&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;e2983b237dccf3ab4937c97fa717319a9ca1a96d&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;6c0e6080953db56375760c0471a8c5f2929baf11&quot;</span>,
<span class="hljs-meta">... </span>).execute()
Cache deletion done. Saved <span class="hljs-number">8.6</span>G.`,wrap:!1}}),{c(){f(t.$$.fragment)},l(a){p(t.$$.fragment,a)},m(a,d){u(t,a,d),b=!0},p:N,i(a){b||(m(t.$$.fragment,a),b=!0)},o(a){_(t.$$.fragment,a),b=!1},d(a){M(t,a)}}}function On($){let t,b=`<code>delete_revisions</code> returns a <a href="/docs/huggingface_hub/pr_2320/ko/package_reference/cache#huggingface_hub.DeleteCacheStrategy">DeleteCacheStrategy</a> object that needs to
be executed. The <a href="/docs/huggingface_hub/pr_2320/ko/package_reference/cache#huggingface_hub.DeleteCacheStrategy">DeleteCacheStrategy</a> is not meant to be modified but
allows having a dry run before actually executing the deletion.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-310mx5"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function Wn($){let t,b=`<code>size_on_disk</code> is not necessarily the sum of all revisions sizes because of
duplicated files. Besides, only blobs are taken into account, not the (negligible)
size of folders and symlinks.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-nbxrac"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function Pn($){let t,b=`<code>last_accessed</code> and <code>last_modified</code> reliability can depend on the OS you are using.
See <a href="https://docs.python.org/3/library/os.html#os.stat_result" rel="nofollow">python documentation</a>
for more details.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-15342f7"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function Xn($){let t,b=`<code>last_accessed</code> cannot be determined correctly on a single revision as blob files
are shared across revisions.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-fyb862"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function qn($){let t,b=`<code>size_on_disk</code> is not necessarily the sum of all file sizes because of possible
duplicated files. Besides, only blobs are taken into account, not the (negligible)
size of folders and symlinks.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-1wyo3hz"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function Kn($){let t,b=`<code>blob_last_accessed</code> and <code>blob_last_modified</code> reliability can depend on the OS you
are using. See <a href="https://docs.python.org/3/library/os.html#os.stat_result" rel="nofollow">python documentation</a>
for more details.`;return{c(){t=i("p"),t.innerHTML=b},l(a){t=h(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-ptblnn"&&(t.innerHTML=b)},m(a,d){g(a,t,d)},p:N,d(a){a&&c(t)}}}function es($){let t,b,a,d,y,r,C,tn='버전 0.8.0에서의 업데이트로, 캐시 시스템은 Hub에 의존하는 라이브러리 전체에서 공유되는 중앙 캐시 시스템으로 발전하였습니다. Hugging Face 캐싱에 대한 자세한 설명은 <a href="../guides/manage-cache">캐시 시스템 가이드</a>를 참조하세요.',At,Me,kt,be,St,z,Te,na,Ke,an="Explores the cache to return the latest cached file for a given revision if found.",sa,et,nn="This function will not raise any exception if the file in not cached.",la,te,Ft,ye,Zt,J,$e,oa,tt,sn="Return a folder path to cache arbitrary files.",ra,at,ln=`<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.`,ca,nt,on=`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,…).`,ia,st,rn=`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.`,ha,ae,da,ne,Rt,Ce,Lt,U,Je,ga,lt,cn='Scan the entire HF cache-system and return a <a href="/docs/huggingface_hub/pr_2320/ko/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a> structure.',fa,ot,hn=`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/pr_2320/ko/package_reference/cache#huggingface_hub.CorruptedCacheException">~CorruptedCacheException</a>
will be thrown internally but captured and returned in the <a href="/docs/huggingface_hub/pr_2320/ko/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a>
structure. Only valid repos get a proper report.`,pa,se,ua,le,ma,Ue,_a,rt,dn='Returns: a <a href="/docs/huggingface_hub/pr_2320/ko/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a> object.',Nt,we,zt,Ie,gn='모든 구조체는 <a href="/docs/huggingface_hub/pr_2320/ko/package_reference/cache#huggingface_hub.scan_cache_dir">scan_cache_dir()</a>에 의해 생성되고 반환되며, 불변(immutable)입니다.',Yt,je,Gt,Z,ve,Ma,ct,fn="Frozen data structure holding information about the entire cache-system.",ba,it,pn='This data structure is returned by <a href="/docs/huggingface_hub/pr_2320/ko/package_reference/cache#huggingface_hub.scan_cache_dir">scan_cache_dir()</a> and is immutable.',Ta,oe,ya,S,xe,$a,ht,un="Prepare the strategy to delete one or more revisions cached locally.",Ca,dt,mn=`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,`,Ja,re,Ua,ce,wa,ie,Et,Ae,Vt,v,ke,Ia,gt,_n="Frozen data structure holding information about a cached repository.",ja,he,va,de,xa,B,Se,Aa,ft,Mn="(property) Sum of the blob file sizes as a human-readable string.",ka,pt,bn="Example: “42.2K”.",Sa,ge,Fe,Fa,ut,Tn="(property) Mapping between <code>refs</code> and revision data structures.",Dt,Ze,Ht,w,Re,Za,mt,yn="Frozen data structure holding information about a revision.",Ra,_t,$n=`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).`,La,fe,Na,pe,za,O,Le,Ya,Mt,Cn="(property) Sum of the blob file sizes as a human-readable string.",Ga,bt,Jn="Example: “42.2K”.",Ea,ue,Ne,Va,Tt,Un="(property) Total number of files in the revision.",Qt,ze,Bt,Y,Ye,Da,yt,wn="Frozen data structure holding information about a single cached file.",Ha,me,Qa,W,Ge,Ba,$t,In="(property) Size of the blob file as a human-readable string.",Oa,Ct,jn="Example: “42.2K”.",Ot,Ee,Wt,G,Ve,Wa,Jt,vn="Frozen data structure holding the strategy to delete cached revisions.",Pa,Ut,xn=`This object is not meant to be instantiated programmatically but to be returned by
<a href="/docs/huggingface_hub/pr_2320/ko/package_reference/cache#huggingface_hub.HFCacheInfo.delete_revisions">delete_revisions()</a>. See documentation for usage example.`,Xa,P,De,qa,wt,An="(property) Expected size that will be freed as a human-readable string.",Ka,It,kn="Example: “42.2K”.",Pt,He,Xt,Qe,qt,X,Be,en,jt,Sn="Exception for any unexpected structure in the Huggingface cache-system.",Kt,Oe,ea,xt,ta;return y=new V({props:{title:"캐시 시스템 참조",local:"cache-system-reference",headingTag:"h1"}}),Me=new V({props:{title:"도우미 함수",local:"helpers",headingTag:"h2"}}),be=new V({props:{title:"try_to_load_from_cache",local:"huggingface_hub.try_to_load_from_cache ][ huggingface_hub.try_to_load_from_cache",headingTag:"h3"}}),Te=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:": Union = None"},{name:"revision",val:": Optional = None"},{name:"repo_type",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.try_to_load_from_cache.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
The folder where the cached files lie.`,name:"cache_dir"},{anchor:"huggingface_hub.try_to_load_from_cache.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The ID of the repo on huggingface.co.`,name:"repo_id"},{anchor:"huggingface_hub.try_to_load_from_cache.filename",description:`<strong>filename</strong> (<code>str</code>) &#x2014;
The filename to look for inside <code>repo_id</code>.`,name:"filename"},{anchor:"huggingface_hub.try_to_load_from_cache.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The specific model version to use. Will default to <code>&quot;main&quot;</code> if it&#x2019;s not provided and no <code>commit_hash</code> is
provided either.`,name:"revision"},{anchor:"huggingface_hub.try_to_load_from_cache.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of the repository. Will default to <code>&quot;model&quot;</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2320/src/huggingface_hub/file_download.py#L1508",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


<p><code>CacheNotFound</code> or <code>ValueError</code></p>
`}}),se=new Xe({props:{anchor:"huggingface_hub.scan_cache_dir.example",$$slots:{default:[Vn]},$$scope:{ctx:$}}}),le=new Xe({props:{anchor:"huggingface_hub.scan_cache_dir.example-2",$$slots:{default:[Dn]},$$scope:{ctx:$}}}),Ue=new _e({props:{warning:!0}}),we=new V({props:{title:"데이터 구조",local:"data-structures",headingTag:"h2"}}),je=new V({props:{title:"HFCacheInfo",local:"huggingface_hub.HFCacheInfo ][ huggingface_hub.HFCacheInfo",headingTag:"h3"}}),ve=new F({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/pr_2320/ko/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/pr_2320/ko/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/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L357"}}),oe=new _e({props:{warning:!0,$$slots:{default:[Hn]},$$scope:{ctx:$}}}),xe=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/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L396"}}),re=new Xe({props:{anchor:"huggingface_hub.HFCacheInfo.delete_revisions.example",$$slots:{default:[Qn]},$$scope:{ctx:$}}}),ce=new Xe({props:{anchor:"huggingface_hub.HFCacheInfo.delete_revisions.example-2",$$slots:{default:[Bn]},$$scope:{ctx:$}}}),ie=new _e({props:{warning:!0,$$slots:{default:[On]},$$scope:{ctx:$}}}),Ae=new V({props:{title:"CachedRepoInfo",local:"huggingface_hub.CachedRepoInfo ][ huggingface_hub.CachedRepoInfo",headingTag:"h3"}}),ke=new F({props:{name:"class huggingface_hub.CachedRepoInfo",anchor:"huggingface_hub.CachedRepoInfo",parameters:[{name:"repo_id",val:": str"},{name:"repo_type",val:": Literal"},{name:"repo_path",val:": Path"},{name:"size_on_disk",val:": int"},{name:"nb_files",val:": int"},{name:"revisions",val:": FrozenSet"},{name:"last_accessed",val:": float"},{name:"last_modified",val:": float"}],parametersDescription:[{anchor:"huggingface_hub.CachedRepoInfo.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
Repo id of the repo on the Hub. Example: <code>&quot;google/fleurs&quot;</code>.`,name:"repo_id"},{anchor:"huggingface_hub.CachedRepoInfo.repo_type",description:`<strong>repo_type</strong> (<code>Literal[&quot;dataset&quot;, &quot;model&quot;, &quot;space&quot;]</code>) &#x2014;
Type of the cached repo.`,name:"repo_type"},{anchor:"huggingface_hub.CachedRepoInfo.repo_path",description:`<strong>repo_path</strong> (<code>Path</code>) &#x2014;
Local path to the cached repo.`,name:"repo_path"},{anchor:"huggingface_hub.CachedRepoInfo.size_on_disk",description:`<strong>size_on_disk</strong> (<code>int</code>) &#x2014;
Sum of the blob file sizes in the cached repo.`,name:"size_on_disk"},{anchor:"huggingface_hub.CachedRepoInfo.nb_files",description:`<strong>nb_files</strong> (<code>int</code>) &#x2014;
Total number of blob files in the cached repo.`,name:"nb_files"},{anchor:"huggingface_hub.CachedRepoInfo.revisions",description:`<strong>revisions</strong> (<code>FrozenSet[CachedRevisionInfo]</code>) &#x2014;
Set of <a href="/docs/huggingface_hub/pr_2320/ko/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/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L195"}}),he=new _e({props:{warning:!0,$$slots:{default:[Wn]},$$scope:{ctx:$}}}),de=new _e({props:{warning:!0,$$slots:{default:[Pn]},$$scope:{ctx:$}}}),Se=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/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L264"}}),Fe=new F({props:{name:"refs",anchor:"huggingface_hub.CachedRepoInfo.refs",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L273"}}),Ze=new V({props:{title:"CachedRevisionInfo",local:"huggingface_hub.CachedRevisionInfo ][ huggingface_hub.CachedRevisionInfo",headingTag:"h3"}}),Re=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:": FrozenSet"},{name:"refs",val:": FrozenSet"},{name:"last_modified",val:": float"}],parametersDescription:[{anchor:"huggingface_hub.CachedRevisionInfo.commit_hash",description:`<strong>commit_hash</strong> (<code>str</code>) &#x2014;
Hash of the revision (unique).
Example: <code>&quot;9338f7b671827df886678df2bdd7cc7b4f36dffd&quot;</code>.`,name:"commit_hash"},{anchor:"huggingface_hub.CachedRevisionInfo.snapshot_path",description:`<strong>snapshot_path</strong> (<code>Path</code>) &#x2014;
Path to the revision directory in the <code>snapshots</code> folder. It contains the
exact tree structure as the repo on the Hub.
files &#x2014; (<code>FrozenSet[CachedFileInfo]</code>):
Set of <a href="/docs/huggingface_hub/pr_2320/ko/package_reference/cache#huggingface_hub.CachedFileInfo">~CachedFileInfo</a> describing all files contained in the snapshot.`,name:"snapshot_path"},{anchor:"huggingface_hub.CachedRevisionInfo.refs",description:`<strong>refs</strong> (<code>FrozenSet[str]</code>) &#x2014;
Set of <code>refs</code> pointing to this revision. If the revision has no <code>refs</code>, it
is considered detached.
Example: <code>{&quot;main&quot;, &quot;2.4.0&quot;}</code> or <code>{&quot;refs/pr/1&quot;}</code>.`,name:"refs"},{anchor:"huggingface_hub.CachedRevisionInfo.size_on_disk",description:`<strong>size_on_disk</strong> (<code>int</code>) &#x2014;
Sum of the blob file sizes that are symlink-ed by the revision.`,name:"size_on_disk"},{anchor:"huggingface_hub.CachedRevisionInfo.last_modified",description:`<strong>last_modified</strong> (<code>float</code>) &#x2014;
Timestamp of the last time the revision has been created/modified.`,name:"last_modified"}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L118"}}),fe=new _e({props:{warning:!0,$$slots:{default:[Xn]},$$scope:{ctx:$}}}),pe=new _e({props:{warning:!0,$$slots:{default:[qn]},$$scope:{ctx:$}}}),Le=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/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L178"}}),Ne=new F({props:{name:"nb_files",anchor:"huggingface_hub.CachedRevisionInfo.nb_files",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L187"}}),ze=new V({props:{title:"CachedFileInfo",local:"huggingface_hub.CachedFileInfo ][ huggingface_hub.CachedFileInfo",headingTag:"h3"}}),Ye=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/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L51"}}),me=new _e({props:{warning:!0,$$slots:{default:[Kn]},$$scope:{ctx:$}}}),Ge=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/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L108"}}),Ee=new V({props:{title:"DeleteCacheStrategy",local:"huggingface_hub.DeleteCacheStrategy ][ huggingface_hub.DeleteCacheStrategy",headingTag:"h3"}}),Ve=new F({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/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L281"}}),De=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/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L307"}}),He=new V({props:{title:"예외",local:"exceptions",headingTag:"h2"}}),Qe=new V({props:{title:"CorruptedCacheException",local:"huggingface_hub.CorruptedCacheException ][ huggingface_hub.CorruptedCacheException",headingTag:"h3"}}),Be=new F({props:{name:"class huggingface_hub.CorruptedCacheException",anchor:"huggingface_hub.CorruptedCacheException",parameters:"",source:"https://github.com/huggingface/huggingface_hub/blob/vr_2320/src/huggingface_hub/utils/_cache_manager.py#L47"}}),Oe=new zn({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/ko/package_reference/cache.md"}}),{c(){t=i("meta"),b=l(),a=i("p"),d=l(),f(y.$$.fragment),r=l(),C=i("p"),C.innerHTML=tn,At=l(),f(Me.$$.fragment),kt=l(),f(be.$$.fragment),St=l(),z=i("div"),f(Te.$$.fragment),na=l(),Ke=i("p"),Ke.textContent=an,sa=l(),et=i("p"),et.textContent=nn,la=l(),f(te.$$.fragment),Ft=l(),f(ye.$$.fragment),Zt=l(),J=i("div"),f($e.$$.fragment),oa=l(),tt=i("p"),tt.textContent=sn,ra=l(),at=i("p"),at.innerHTML=ln,ca=l(),nt=i("p"),nt.innerHTML=on,ia=l(),st=i("p"),st.innerHTML=rn,ha=l(),f(ae.$$.fragment),da=l(),f(ne.$$.fragment),Rt=l(),f(Ce.$$.fragment),Lt=l(),U=i("div"),f(Je.$$.fragment),ga=l(),lt=i("p"),lt.innerHTML=cn,fa=l(),ot=i("p"),ot.innerHTML=hn,pa=l(),f(se.$$.fragment),ua=l(),f(le.$$.fragment),ma=l(),f(Ue.$$.fragment),_a=l(),rt=i("p"),rt.innerHTML=dn,Nt=l(),f(we.$$.fragment),zt=l(),Ie=i("p"),Ie.innerHTML=gn,Yt=l(),f(je.$$.fragment),Gt=l(),Z=i("div"),f(ve.$$.fragment),Ma=l(),ct=i("p"),ct.textContent=fn,ba=l(),it=i("p"),it.innerHTML=pn,Ta=l(),f(oe.$$.fragment),ya=l(),S=i("div"),f(xe.$$.fragment),$a=l(),ht=i("p"),ht.textContent=un,Ca=l(),dt=i("p"),dt.textContent=mn,Ja=l(),f(re.$$.fragment),Ua=l(),f(ce.$$.fragment),wa=l(),f(ie.$$.fragment),Et=l(),f(Ae.$$.fragment),Vt=l(),v=i("div"),f(ke.$$.fragment),Ia=l(),gt=i("p"),gt.textContent=_n,ja=l(),f(he.$$.fragment),va=l(),f(de.$$.fragment),xa=l(),B=i("div"),f(Se.$$.fragment),Aa=l(),ft=i("p"),ft.textContent=Mn,ka=l(),pt=i("p"),pt.textContent=bn,Sa=l(),ge=i("div"),f(Fe.$$.fragment),Fa=l(),ut=i("p"),ut.innerHTML=Tn,Dt=l(),f(Ze.$$.fragment),Ht=l(),w=i("div"),f(Re.$$.fragment),Za=l(),mt=i("p"),mt.textContent=yn,Ra=l(),_t=i("p"),_t.innerHTML=$n,La=l(),f(fe.$$.fragment),Na=l(),f(pe.$$.fragment),za=l(),O=i("div"),f(Le.$$.fragment),Ya=l(),Mt=i("p"),Mt.textContent=Cn,Ga=l(),bt=i("p"),bt.textContent=Jn,Ea=l(),ue=i("div"),f(Ne.$$.fragment),Va=l(),Tt=i("p"),Tt.textContent=Un,Qt=l(),f(ze.$$.fragment),Bt=l(),Y=i("div"),f(Ye.$$.fragment),Da=l(),yt=i("p"),yt.textContent=wn,Ha=l(),f(me.$$.fragment),Qa=l(),W=i("div"),f(Ge.$$.fragment),Ba=l(),$t=i("p"),$t.textContent=In,Oa=l(),Ct=i("p"),Ct.textContent=jn,Ot=l(),f(Ee.$$.fragment),Wt=l(),G=i("div"),f(Ve.$$.fragment),Wa=l(),Jt=i("p"),Jt.textContent=vn,Pa=l(),Ut=i("p"),Ut.innerHTML=xn,Xa=l(),P=i("div"),f(De.$$.fragment),qa=l(),wt=i("p"),wt.textContent=An,Ka=l(),It=i("p"),It.textContent=kn,Pt=l(),f(He.$$.fragment),Xt=l(),f(Qe.$$.fragment),qt=l(),X=i("div"),f(Be.$$.fragment),en=l(),jt=i("p"),jt.textContent=Sn,Kt=l(),f(Oe.$$.fragment),ea=l(),xt=i("p"),this.h()},l(e){const s=Nn("svelte-u9bgzb",document.head);t=h(s,"META",{name:!0,content:!0}),s.forEach(c),b=o(e),a=h(e,"P",{}),I(a).forEach(c),d=o(e),p(y.$$.fragment,e),r=o(e),C=h(e,"P",{"data-svelte-h":!0}),T(C)!=="svelte-o3lhx8"&&(C.innerHTML=tn),At=o(e),p(Me.$$.fragment,e),kt=o(e),p(be.$$.fragment,e),St=o(e),z=h(e,"DIV",{class:!0});var D=I(z);p(Te.$$.fragment,D),na=o(D),Ke=h(D,"P",{"data-svelte-h":!0}),T(Ke)!=="svelte-wybe3x"&&(Ke.textContent=an),sa=o(D),et=h(D,"P",{"data-svelte-h":!0}),T(et)!=="svelte-9465ci"&&(et.textContent=nn),la=o(D),p(te.$$.fragment,D),D.forEach(c),Ft=o(e),p(ye.$$.fragment,e),Zt=o(e),J=h(e,"DIV",{class:!0});var x=I(J);p($e.$$.fragment,x),oa=o(x),tt=h(x,"P",{"data-svelte-h":!0}),T(tt)!=="svelte-1ua2cjq"&&(tt.textContent=sn),ra=o(x),at=h(x,"P",{"data-svelte-h":!0}),T(at)!=="svelte-185gfp2"&&(at.innerHTML=ln),ca=o(x),nt=h(x,"P",{"data-svelte-h":!0}),T(nt)!=="svelte-1ky40fv"&&(nt.innerHTML=on),ia=o(x),st=h(x,"P",{"data-svelte-h":!0}),T(st)!=="svelte-1dsf1o4"&&(st.innerHTML=rn),ha=o(x),p(ae.$$.fragment,x),da=o(x),p(ne.$$.fragment,x),x.forEach(c),Rt=o(e),p(Ce.$$.fragment,e),Lt=o(e),U=h(e,"DIV",{class:!0});var A=I(U);p(Je.$$.fragment,A),ga=o(A),lt=h(A,"P",{"data-svelte-h":!0}),T(lt)!=="svelte-djru3r"&&(lt.innerHTML=cn),fa=o(A),ot=h(A,"P",{"data-svelte-h":!0}),T(ot)!=="svelte-t2ujeb"&&(ot.innerHTML=hn),pa=o(A),p(se.$$.fragment,A),ua=o(A),p(le.$$.fragment,A),ma=o(A),p(Ue.$$.fragment,A),_a=o(A),rt=h(A,"P",{"data-svelte-h":!0}),T(rt)!=="svelte-lfzup4"&&(rt.innerHTML=dn),A.forEach(c),Nt=o(e),p(we.$$.fragment,e),zt=o(e),Ie=h(e,"P",{"data-svelte-h":!0}),T(Ie)!=="svelte-1fsjg96"&&(Ie.innerHTML=gn),Yt=o(e),p(je.$$.fragment,e),Gt=o(e),Z=h(e,"DIV",{class:!0});var E=I(Z);p(ve.$$.fragment,E),Ma=o(E),ct=h(E,"P",{"data-svelte-h":!0}),T(ct)!=="svelte-z29m0d"&&(ct.textContent=fn),ba=o(E),it=h(E,"P",{"data-svelte-h":!0}),T(it)!=="svelte-1j5km1s"&&(it.innerHTML=pn),Ta=o(E),p(oe.$$.fragment,E),ya=o(E),S=h(E,"DIV",{class:!0});var R=I(S);p(xe.$$.fragment,R),$a=o(R),ht=h(R,"P",{"data-svelte-h":!0}),T(ht)!=="svelte-1kc0sf3"&&(ht.textContent=un),Ca=o(R),dt=h(R,"P",{"data-svelte-h":!0}),T(dt)!=="svelte-hvu8pg"&&(dt.textContent=mn),Ja=o(R),p(re.$$.fragment,R),Ua=o(R),p(ce.$$.fragment,R),wa=o(R),p(ie.$$.fragment,R),R.forEach(c),E.forEach(c),Et=o(e),p(Ae.$$.fragment,e),Vt=o(e),v=h(e,"DIV",{class:!0});var L=I(v);p(ke.$$.fragment,L),Ia=o(L),gt=h(L,"P",{"data-svelte-h":!0}),T(gt)!=="svelte-yfk7e8"&&(gt.textContent=_n),ja=o(L),p(he.$$.fragment,L),va=o(L),p(de.$$.fragment,L),xa=o(L),B=h(L,"DIV",{class:!0});var q=I(B);p(Se.$$.fragment,q),Aa=o(q),ft=h(q,"P",{"data-svelte-h":!0}),T(ft)!=="svelte-zfpv6m"&&(ft.textContent=Mn),ka=o(q),pt=h(q,"P",{"data-svelte-h":!0}),T(pt)!=="svelte-jo5bw4"&&(pt.textContent=bn),q.forEach(c),Sa=o(L),ge=h(L,"DIV",{class:!0});var We=I(ge);p(Fe.$$.fragment,We),Fa=o(We),ut=h(We,"P",{"data-svelte-h":!0}),T(ut)!=="svelte-1a85bod"&&(ut.innerHTML=Tn),We.forEach(c),L.forEach(c),Dt=o(e),p(Ze.$$.fragment,e),Ht=o(e),w=h(e,"DIV",{class:!0});var k=I(w);p(Re.$$.fragment,k),Za=o(k),mt=h(k,"P",{"data-svelte-h":!0}),T(mt)!=="svelte-e2eri1"&&(mt.textContent=yn),Ra=o(k),_t=h(k,"P",{"data-svelte-h":!0}),T(_t)!=="svelte-1h5zcam"&&(_t.innerHTML=$n),La=o(k),p(fe.$$.fragment,k),Na=o(k),p(pe.$$.fragment,k),za=o(k),O=h(k,"DIV",{class:!0});var K=I(O);p(Le.$$.fragment,K),Ya=o(K),Mt=h(K,"P",{"data-svelte-h":!0}),T(Mt)!=="svelte-zfpv6m"&&(Mt.textContent=Cn),Ga=o(K),bt=h(K,"P",{"data-svelte-h":!0}),T(bt)!=="svelte-jo5bw4"&&(bt.textContent=Jn),K.forEach(c),Ea=o(k),ue=h(k,"DIV",{class:!0});var Pe=I(ue);p(Ne.$$.fragment,Pe),Va=o(Pe),Tt=h(Pe,"P",{"data-svelte-h":!0}),T(Tt)!=="svelte-o0ydo0"&&(Tt.textContent=Un),Pe.forEach(c),k.forEach(c),Qt=o(e),p(ze.$$.fragment,e),Bt=o(e),Y=h(e,"DIV",{class:!0});var H=I(Y);p(Ye.$$.fragment,H),Da=o(H),yt=h(H,"P",{"data-svelte-h":!0}),T(yt)!=="svelte-1l95h2a"&&(yt.textContent=wn),Ha=o(H),p(me.$$.fragment,H),Qa=o(H),W=h(H,"DIV",{class:!0});var ee=I(W);p(Ge.$$.fragment,ee),Ba=o(ee),$t=h(ee,"P",{"data-svelte-h":!0}),T($t)!=="svelte-easepm"&&($t.textContent=In),Oa=o(ee),Ct=h(ee,"P",{"data-svelte-h":!0}),T(Ct)!=="svelte-jo5bw4"&&(Ct.textContent=jn),ee.forEach(c),H.forEach(c),Ot=o(e),p(Ee.$$.fragment,e),Wt=o(e),G=h(e,"DIV",{class:!0});var Q=I(G);p(Ve.$$.fragment,Q),Wa=o(Q),Jt=h(Q,"P",{"data-svelte-h":!0}),T(Jt)!=="svelte-13gw4lu"&&(Jt.textContent=vn),Pa=o(Q),Ut=h(Q,"P",{"data-svelte-h":!0}),T(Ut)!=="svelte-c2rmar"&&(Ut.innerHTML=xn),Xa=o(Q),P=h(Q,"DIV",{class:!0});var vt=I(P);p(De.$$.fragment,vt),qa=o(vt),wt=h(vt,"P",{"data-svelte-h":!0}),T(wt)!=="svelte-1syr64t"&&(wt.textContent=An),Ka=o(vt),It=h(vt,"P",{"data-svelte-h":!0}),T(It)!=="svelte-jo5bw4"&&(It.textContent=kn),vt.forEach(c),Q.forEach(c),Pt=o(e),p(He.$$.fragment,e),Xt=o(e),p(Qe.$$.fragment,e),qt=o(e),X=h(e,"DIV",{class:!0});var aa=I(X);p(Be.$$.fragment,aa),en=o(aa),jt=h(aa,"P",{"data-svelte-h":!0}),T(jt)!=="svelte-thu1ey"&&(jt.textContent=Sn),aa.forEach(c),Kt=o(e),p(Oe.$$.fragment,e),ea=o(e),xt=h(e,"P",{}),I(xt).forEach(c),this.h()},h(){j(t,"name","hf:doc:metadata"),j(t,"content",ts),j(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,s){n(document.head,t),g(e,b,s),g(e,a,s),g(e,d,s),u(y,e,s),g(e,r,s),g(e,C,s),g(e,At,s),u(Me,e,s),g(e,kt,s),u(be,e,s),g(e,St,s),g(e,z,s),u(Te,z,null),n(z,na),n(z,Ke),n(z,sa),n(z,et),n(z,la),u(te,z,null),g(e,Ft,s),u(ye,e,s),g(e,Zt,s),g(e,J,s),u($e,J,null),n(J,oa),n(J,tt),n(J,ra),n(J,at),n(J,ca),n(J,nt),n(J,ia),n(J,st),n(J,ha),u(ae,J,null),n(J,da),u(ne,J,null),g(e,Rt,s),u(Ce,e,s),g(e,Lt,s),g(e,U,s),u(Je,U,null),n(U,ga),n(U,lt),n(U,fa),n(U,ot),n(U,pa),u(se,U,null),n(U,ua),u(le,U,null),n(U,ma),u(Ue,U,null),n(U,_a),n(U,rt),g(e,Nt,s),u(we,e,s),g(e,zt,s),g(e,Ie,s),g(e,Yt,s),u(je,e,s),g(e,Gt,s),g(e,Z,s),u(ve,Z,null),n(Z,Ma),n(Z,ct),n(Z,ba),n(Z,it),n(Z,Ta),u(oe,Z,null),n(Z,ya),n(Z,S),u(xe,S,null),n(S,$a),n(S,ht),n(S,Ca),n(S,dt),n(S,Ja),u(re,S,null),n(S,Ua),u(ce,S,null),n(S,wa),u(ie,S,null),g(e,Et,s),u(Ae,e,s),g(e,Vt,s),g(e,v,s),u(ke,v,null),n(v,Ia),n(v,gt),n(v,ja),u(he,v,null),n(v,va),u(de,v,null),n(v,xa),n(v,B),u(Se,B,null),n(B,Aa),n(B,ft),n(B,ka),n(B,pt),n(v,Sa),n(v,ge),u(Fe,ge,null),n(ge,Fa),n(ge,ut),g(e,Dt,s),u(Ze,e,s),g(e,Ht,s),g(e,w,s),u(Re,w,null),n(w,Za),n(w,mt),n(w,Ra),n(w,_t),n(w,La),u(fe,w,null),n(w,Na),u(pe,w,null),n(w,za),n(w,O),u(Le,O,null),n(O,Ya),n(O,Mt),n(O,Ga),n(O,bt),n(w,Ea),n(w,ue),u(Ne,ue,null),n(ue,Va),n(ue,Tt),g(e,Qt,s),u(ze,e,s),g(e,Bt,s),g(e,Y,s),u(Ye,Y,null),n(Y,Da),n(Y,yt),n(Y,Ha),u(me,Y,null),n(Y,Qa),n(Y,W),u(Ge,W,null),n(W,Ba),n(W,$t),n(W,Oa),n(W,Ct),g(e,Ot,s),u(Ee,e,s),g(e,Wt,s),g(e,G,s),u(Ve,G,null),n(G,Wa),n(G,Jt),n(G,Pa),n(G,Ut),n(G,Xa),n(G,P),u(De,P,null),n(P,qa),n(P,wt),n(P,Ka),n(P,It),g(e,Pt,s),u(He,e,s),g(e,Xt,s),u(Qe,e,s),g(e,qt,s),g(e,X,s),u(Be,X,null),n(X,en),n(X,jt),g(e,Kt,s),u(Oe,e,s),g(e,ea,s),g(e,xt,s),ta=!0},p(e,[s]){const D={};s&2&&(D.$$scope={dirty:s,ctx:e}),te.$set(D);const x={};s&2&&(x.$$scope={dirty:s,ctx:e}),ae.$set(x);const A={};s&2&&(A.$$scope={dirty:s,ctx:e}),ne.$set(A);const E={};s&2&&(E.$$scope={dirty:s,ctx:e}),se.$set(E);const R={};s&2&&(R.$$scope={dirty:s,ctx:e}),le.$set(R);const L={};s&2&&(L.$$scope={dirty:s,ctx:e}),oe.$set(L);const q={};s&2&&(q.$$scope={dirty:s,ctx:e}),re.$set(q);const We={};s&2&&(We.$$scope={dirty:s,ctx:e}),ce.$set(We);const k={};s&2&&(k.$$scope={dirty:s,ctx:e}),ie.$set(k);const K={};s&2&&(K.$$scope={dirty:s,ctx:e}),he.$set(K);const Pe={};s&2&&(Pe.$$scope={dirty:s,ctx:e}),de.$set(Pe);const H={};s&2&&(H.$$scope={dirty:s,ctx:e}),fe.$set(H);const ee={};s&2&&(ee.$$scope={dirty:s,ctx:e}),pe.$set(ee);const Q={};s&2&&(Q.$$scope={dirty:s,ctx:e}),me.$set(Q)},i(e){ta||(m(y.$$.fragment,e),m(Me.$$.fragment,e),m(be.$$.fragment,e),m(Te.$$.fragment,e),m(te.$$.fragment,e),m(ye.$$.fragment,e),m($e.$$.fragment,e),m(ae.$$.fragment,e),m(ne.$$.fragment,e),m(Ce.$$.fragment,e),m(Je.$$.fragment,e),m(se.$$.fragment,e),m(le.$$.fragment,e),m(Ue.$$.fragment,e),m(we.$$.fragment,e),m(je.$$.fragment,e),m(ve.$$.fragment,e),m(oe.$$.fragment,e),m(xe.$$.fragment,e),m(re.$$.fragment,e),m(ce.$$.fragment,e),m(ie.$$.fragment,e),m(Ae.$$.fragment,e),m(ke.$$.fragment,e),m(he.$$.fragment,e),m(de.$$.fragment,e),m(Se.$$.fragment,e),m(Fe.$$.fragment,e),m(Ze.$$.fragment,e),m(Re.$$.fragment,e),m(fe.$$.fragment,e),m(pe.$$.fragment,e),m(Le.$$.fragment,e),m(Ne.$$.fragment,e),m(ze.$$.fragment,e),m(Ye.$$.fragment,e),m(me.$$.fragment,e),m(Ge.$$.fragment,e),m(Ee.$$.fragment,e),m(Ve.$$.fragment,e),m(De.$$.fragment,e),m(He.$$.fragment,e),m(Qe.$$.fragment,e),m(Be.$$.fragment,e),m(Oe.$$.fragment,e),ta=!0)},o(e){_(y.$$.fragment,e),_(Me.$$.fragment,e),_(be.$$.fragment,e),_(Te.$$.fragment,e),_(te.$$.fragment,e),_(ye.$$.fragment,e),_($e.$$.fragment,e),_(ae.$$.fragment,e),_(ne.$$.fragment,e),_(Ce.$$.fragment,e),_(Je.$$.fragment,e),_(se.$$.fragment,e),_(le.$$.fragment,e),_(Ue.$$.fragment,e),_(we.$$.fragment,e),_(je.$$.fragment,e),_(ve.$$.fragment,e),_(oe.$$.fragment,e),_(xe.$$.fragment,e),_(re.$$.fragment,e),_(ce.$$.fragment,e),_(ie.$$.fragment,e),_(Ae.$$.fragment,e),_(ke.$$.fragment,e),_(he.$$.fragment,e),_(de.$$.fragment,e),_(Se.$$.fragment,e),_(Fe.$$.fragment,e),_(Ze.$$.fragment,e),_(Re.$$.fragment,e),_(fe.$$.fragment,e),_(pe.$$.fragment,e),_(Le.$$.fragment,e),_(Ne.$$.fragment,e),_(ze.$$.fragment,e),_(Ye.$$.fragment,e),_(me.$$.fragment,e),_(Ge.$$.fragment,e),_(Ee.$$.fragment,e),_(Ve.$$.fragment,e),_(De.$$.fragment,e),_(He.$$.fragment,e),_(Qe.$$.fragment,e),_(Be.$$.fragment,e),_(Oe.$$.fragment,e),ta=!1},d(e){e&&(c(b),c(a),c(d),c(r),c(C),c(At),c(kt),c(St),c(z),c(Ft),c(Zt),c(J),c(Rt),c(Lt),c(U),c(Nt),c(zt),c(Ie),c(Yt),c(Gt),c(Z),c(Et),c(Vt),c(v),c(Dt),c(Ht),c(w),c(Qt),c(Bt),c(Y),c(Ot),c(Wt),c(G),c(Pt),c(Xt),c(qt),c(X),c(Kt),c(ea),c(xt)),c(t),M(y,e),M(Me,e),M(be,e),M(Te),M(te),M(ye,e),M($e),M(ae),M(ne),M(Ce,e),M(Je),M(se),M(le),M(Ue),M(we,e),M(je,e),M(ve),M(oe),M(xe),M(re),M(ce),M(ie),M(Ae,e),M(ke),M(he),M(de),M(Se),M(Fe),M(Ze,e),M(Re),M(fe),M(pe),M(Le),M(Ne),M(ze,e),M(Ye),M(me),M(Ge),M(Ee,e),M(Ve),M(De),M(He,e),M(Qe,e),M(Be),M(Oe,e)}}}const ts='{"title":"캐시 시스템 참조","local":"cache-system-reference","sections":[{"title":"도우미 함수","local":"helpers","sections":[{"title":"try_to_load_from_cache","local":"huggingface_hub.try_to_load_from_cache ][ huggingface_hub.try_to_load_from_cache","sections":[],"depth":3},{"title":"cached_assets_path","local":"huggingface_hub.cached_assets_path ][ huggingface_hub.cached_assets_path","sections":[],"depth":3},{"title":"scan_cache_dir","local":"huggingface_hub.scan_cache_dir ][ huggingface_hub.scan_cache_dir","sections":[],"depth":3}],"depth":2},{"title":"데이터 구조","local":"data-structures","sections":[{"title":"HFCacheInfo","local":"huggingface_hub.HFCacheInfo ][ huggingface_hub.HFCacheInfo","sections":[],"depth":3},{"title":"CachedRepoInfo","local":"huggingface_hub.CachedRepoInfo ][ huggingface_hub.CachedRepoInfo","sections":[],"depth":3},{"title":"CachedRevisionInfo","local":"huggingface_hub.CachedRevisionInfo ][ huggingface_hub.CachedRevisionInfo","sections":[],"depth":3},{"title":"CachedFileInfo","local":"huggingface_hub.CachedFileInfo ][ huggingface_hub.CachedFileInfo","sections":[],"depth":3},{"title":"DeleteCacheStrategy","local":"huggingface_hub.DeleteCacheStrategy ][ huggingface_hub.DeleteCacheStrategy","sections":[],"depth":3}],"depth":2},{"title":"예외","local":"exceptions","sections":[{"title":"CorruptedCacheException","local":"huggingface_hub.CorruptedCacheException ][ huggingface_hub.CorruptedCacheException","sections":[],"depth":3}],"depth":2}],"depth":1}';function as($){return Zn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class hs extends Rn{constructor(t){super(),Ln(this,t,as,es,Fn,{})}}export{hs as component};
