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

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

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>hf_cache_info = scan_cache_dir()
HFCacheInfo(
    size_on_disk=<span class="hljs-number">3398085269</span>,
    repos=<span class="hljs-built_in">frozenset</span>({
        CachedRepoInfo(
            repo_id=<span class="hljs-string">&#x27;t5-small&#x27;</span>,
            repo_type=<span class="hljs-string">&#x27;model&#x27;</span>,
            repo_path=PosixPath(...),
            size_on_disk=<span class="hljs-number">970726914</span>,
            nb_files=<span class="hljs-number">11</span>,
            revisions=<span class="hljs-built_in">frozenset</span>({
                CachedRevisionInfo(
                    commit_hash=<span class="hljs-string">&#x27;d78aea13fa7ecd06c29e3e46195d6341255065d5&#x27;</span>,
                    size_on_disk=<span class="hljs-number">970726339</span>,
                    snapshot_path=PosixPath(...),
                    files=<span class="hljs-built_in">frozenset</span>({
                        CachedFileInfo(
                            file_name=<span class="hljs-string">&#x27;config.json&#x27;</span>,
                            size_on_disk=<span class="hljs-number">1197</span>
                            file_path=PosixPath(...),
                            blob_path=PosixPath(...),
                        ),
                        CachedFileInfo(...),
                        ...
                    }),
                ),
                CachedRevisionInfo(...),
                ...
            }),
        ),
        CachedRepoInfo(...),
        ...
    }),
    warnings=[
        CorruptedCacheException(<span class="hljs-string">&quot;Snapshots dir doesn&#x27;t exist in cached repo: ...&quot;</span>),
        CorruptedCacheException(...),
        ...
    ],
)`,wrap:!1}}),{c(){p(t.$$.fragment)},l(n){f(t.$$.fragment,n)},m(n,i){u(t,n,i),M=!0},p:N,i(n){M||(m(t.$$.fragment,n),M=!0)},o(n){_(t.$$.fragment,n),M=!1},d(n){b(t,n)}}}function ls($){let t,M="You can also print a detailed report directly from the <code>huggingface-cli</code> using:",n,i,y;return i=new $e({props:{code:"JTNFJTIwaHVnZ2luZ2ZhY2UtY2xpJTIwc2Nhbi1jYWNoZSUwQVJFUE8lMjBJRCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMFJFUE8lMjBUWVBFJTIwU0laRSUyME9OJTIwRElTSyUyME5CJTIwRklMRVMlMjBSRUZTJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwTE9DQUwlMjBQQVRIJTBBLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tJTIwLS0tLS0tLS0tJTIwLS0tLS0tLS0tLS0tJTIwLS0tLS0tLS0lMjAtLS0tLS0tLS0tLS0tLS0tLS0tJTIwLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS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DAuMHMuJTIwU2Nhbm5lZCUyMDYlMjByZXBvKHMpJTIwZm9yJTIwYSUyMHRvdGFsJTIwb2YlMjAzLjRHLiUwQUdvdCUyMDElMjB3YXJuaW5nKHMpJTIwd2hpbGUlMjBzY2FubmluZy4lMjBVc2UlMjAtdnZ2JTIwdG8lMjBwcmludCUyMGRldGFpbHMu",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=h("p"),t.innerHTML=M,n=l(),p(i.$$.fragment)},l(s){t=g(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-35akmn"&&(t.innerHTML=M),n=o(s),f(i.$$.fragment,s)},m(s,C){d(s,t,C),d(s,n,C),u(i,s,C),y=!0},p:N,i(s){y||(m(i.$$.fragment,s),y=!0)},o(s){_(i.$$.fragment,s),y=!1},d(s){s&&(c(t),c(n)),b(i,s)}}}function os($){let t,M=`Here <code>size_on_disk</code> is equal to the sum of all repo sizes (only blobs). However if
some cached repos are corrupted, their sizes are not taken into account.`;return{c(){t=h("p"),t.innerHTML=M},l(n){t=g(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-sgjnu7"&&(t.innerHTML=M)},m(n,i){d(n,t,i)},p:N,d(n){n&&c(t)}}}function rs($){let t,M="Examples:",n,i,y;return i=new $e({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHNjYW5fY2FjaGVfZGlyJTBBY2FjaGVfaW5mbyUyMCUzRCUyMHNjYW5fY2FjaGVfZGlyKCklMEFkZWxldGVfc3RyYXRlZ3klMjAlM0QlMjBjYWNoZV9pbmZvLmRlbGV0ZV9yZXZpc2lvbnMoJTBBJTIwJTIwJTIwJTIwJTIyODFmZDFkNmU3ODQ3Yzk5ZjU4NjJjOWZiODEzODc5NTZkOTllYzdhYSUyMiUwQSklMEFwcmludChmJTIyV2lsbCUyMGZyZWUlMjAlN0JkZWxldGVfc3RyYXRlZ3kuZXhwZWN0ZWRfZnJlZWRfc2l6ZV9zdHIlN0QuJTIyKSUwQWRlbGV0ZV9zdHJhdGVneS5leGVjdXRlKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> scan_cache_dir
<span class="hljs-meta">&gt;&gt;&gt; </span>cache_info = scan_cache_dir()
<span class="hljs-meta">&gt;&gt;&gt; </span>delete_strategy = cache_info.delete_revisions(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;81fd1d6e7847c99f5862c9fb81387956d99ec7aa&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;Will free <span class="hljs-subst">{delete_strategy.expected_freed_size_str}</span>.&quot;</span>)
Will free <span class="hljs-number">7.9</span>K.
<span class="hljs-meta">&gt;&gt;&gt; </span>delete_strategy.execute()
Cache deletion done. Saved <span class="hljs-number">7.9</span>K.`,wrap:!1}}),{c(){t=h("p"),t.textContent=M,n=l(),p(i.$$.fragment)},l(s){t=g(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-kvfsh7"&&(t.textContent=M),n=o(s),f(i.$$.fragment,s)},m(s,C){d(s,t,C),d(s,n,C),u(i,s,C),y=!0},p:N,i(s){y||(m(i.$$.fragment,s),y=!0)},o(s){_(i.$$.fragment,s),y=!1},d(s){s&&(c(t),c(n)),b(i,s)}}}function cs($){let t,M;return t=new $e({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHNjYW5fY2FjaGVfZGlyJTBBc2Nhbl9jYWNoZV9kaXIoKS5kZWxldGVfcmV2aXNpb25zKCUwQSUyMCUyMCUyMCUyMCUyMjgxZmQxZDZlNzg0N2M5OWY1ODYyYzlmYjgxMzg3OTU2ZDk5ZWM3YWElMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJlMjk4M2IyMzdkY2NmM2FiNDkzN2M5N2ZhNzE3MzE5YTljYTFhOTZkJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyNmMwZTYwODA5NTNkYjU2Mzc1NzYwYzA0NzFhOGM1ZjI5MjliYWYxMSUyMiUyQyUwQSkuZXhlY3V0ZSgp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> scan_cache_dir
<span class="hljs-meta">&gt;&gt;&gt; </span>scan_cache_dir().delete_revisions(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;81fd1d6e7847c99f5862c9fb81387956d99ec7aa&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;e2983b237dccf3ab4937c97fa717319a9ca1a96d&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;6c0e6080953db56375760c0471a8c5f2929baf11&quot;</span>,
<span class="hljs-meta">... </span>).execute()
Cache deletion done. Saved <span class="hljs-number">8.6</span>G.`,wrap:!1}}),{c(){p(t.$$.fragment)},l(n){f(t.$$.fragment,n)},m(n,i){u(t,n,i),M=!0},p:N,i(n){M||(m(t.$$.fragment,n),M=!0)},o(n){_(t.$$.fragment,n),M=!1},d(n){b(t,n)}}}function is($){let t,M=`<code>delete_revisions</code> returns a <a href="/docs/huggingface_hub/main/ko/package_reference/cache#huggingface_hub.DeleteCacheStrategy">DeleteCacheStrategy</a> object that needs to
be executed. The <a href="/docs/huggingface_hub/main/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=h("p"),t.innerHTML=M},l(n){t=g(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-i7963r"&&(t.innerHTML=M)},m(n,i){d(n,t,i)},p:N,d(n){n&&c(t)}}}function hs($){let t,M="Example:",n,i,y;return i=new $e({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMHNjYW5fY2FjaGVfZGlyJTBBJTBBaGZfY2FjaGVfaW5mbyUyMCUzRCUyMHNjYW5fY2FjaGVfZGlyKCklMEElMEFwcmludChoZl9jYWNoZV9pbmZvLmV4cG9ydF9hc190YWJsZSgpKSUwQSUwQXByaW50KGhmX2NhY2hlX2luZm8uZXhwb3J0X2FzX3RhYmxlKHZlcmJvc2l0eSUzRDEpKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> scan_cache_dir

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(hf_cache_info.export_as_table(verbosity=<span class="hljs-number">1</span>))
REPO ID                                             REPO TYPE REVISION                                 SIZE ON DISK NB FILES LAST_MODIFIED REFS LOCAL PATH
--------------------------------------------------- --------- ---------------------------------------- ------------ -------- ------------- ---- -----------------------------------------------------------------------------------------------------------------------------------------------------
roberta-base                                        model     e2da8e2f811d1448a5b465c236feacd80ffbac7b         <span class="hljs-number">2.7</span>M        <span class="hljs-number">5</span> <span class="hljs-number">1</span> week ago    main ~/.cache/huggingface/hub/models--roberta-base/snapshots/e2da8e2f811d1448a5b465c236feacd80ffbac7b
suno/bark                                           model     70a8a7d34168586dc5d028fa9666aceade177992         <span class="hljs-number">8.8</span>K        <span class="hljs-number">1</span> <span class="hljs-number">1</span> week ago    main ~/.cache/huggingface/hub/models--suno--bark/snapshots/70a8a7d34168586dc5d028fa9666aceade177992
t5-base                                             model     a9723ea7f1b39c1eae772870f3b547bf6ef7e6c1       <span class="hljs-number">893.8</span>M        <span class="hljs-number">4</span> <span class="hljs-number">7</span> months ago  main ~/.cache/huggingface/hub/models--t5-base/snapshots/a9723ea7f1b39c1eae772870f3b547bf6ef7e6c1
t5-large                                            model     150ebc2c4b72291e770f58e6057481c8d2ed331a         <span class="hljs-number">3.0</span>G        <span class="hljs-number">4</span> <span class="hljs-number">5</span> months ago  main ~/.cache/huggingface/hub/models--t5-large/snapshots/150ebc2c4b72291e770f58e6057481c8d2ed331a`,wrap:!1}}),{c(){t=h("p"),t.textContent=M,n=l(),p(i.$$.fragment)},l(s){t=g(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=M),n=o(s),f(i.$$.fragment,s)},m(s,C){d(s,t,C),d(s,n,C),u(i,s,C),y=!0},p:N,i(s){y||(m(i.$$.fragment,s),y=!0)},o(s){_(i.$$.fragment,s),y=!1},d(s){s&&(c(t),c(n)),b(i,s)}}}function gs($){let t,M=`<code>size_on_disk</code> is not necessarily the sum of all revisions sizes because of
duplicated files. Besides, only blobs are taken into account, not the (negligible)
size of folders and symlinks.`;return{c(){t=h("p"),t.innerHTML=M},l(n){t=g(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-nbxrac"&&(t.innerHTML=M)},m(n,i){d(n,t,i)},p:N,d(n){n&&c(t)}}}function ds($){let t,M=`<code>last_accessed</code> and <code>last_modified</code> reliability can depend on the OS you are using.
See <a href="https://docs.python.org/3/library/os.html#os.stat_result" rel="nofollow">python documentation</a>
for more details.`;return{c(){t=h("p"),t.innerHTML=M},l(n){t=g(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-15342f7"&&(t.innerHTML=M)},m(n,i){d(n,t,i)},p:N,d(n){n&&c(t)}}}function ps($){let t,M=`<code>last_accessed</code> cannot be determined correctly on a single revision as blob files
are shared across revisions.`;return{c(){t=h("p"),t.innerHTML=M},l(n){t=g(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-fyb862"&&(t.innerHTML=M)},m(n,i){d(n,t,i)},p:N,d(n){n&&c(t)}}}function fs($){let t,M=`<code>size_on_disk</code> is not necessarily the sum of all file sizes because of possible
duplicated files. Besides, only blobs are taken into account, not the (negligible)
size of folders and symlinks.`;return{c(){t=h("p"),t.innerHTML=M},l(n){t=g(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-1wyo3hz"&&(t.innerHTML=M)},m(n,i){d(n,t,i)},p:N,d(n){n&&c(t)}}}function us($){let t,M=`<code>blob_last_accessed</code> and <code>blob_last_modified</code> reliability can depend on the OS you
are using. See <a href="https://docs.python.org/3/library/os.html#os.stat_result" rel="nofollow">python documentation</a>
for more details.`;return{c(){t=h("p"),t.innerHTML=M},l(n){t=g(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-ptblnn"&&(t.innerHTML=M)},m(n,i){d(n,t,i)},p:N,d(n){n&&c(t)}}}function ms($){let t,M,n,i,y,s,C,fn='버전 0.8.0에서의 업데이트로, 캐시 시스템은 Hub에 의존하는 라이브러리 전체에서 공유되는 중앙 캐시 시스템으로 발전하였습니다. Hugging Face 캐싱에 대한 자세한 설명은 <a href="../guides/manage-cache">캐시 시스템 가이드</a>를 참조하세요.',Et,Ce,Nt,Je,Gt,Y,we,ha,nt,un="Explores the cache to return the latest cached file for a given revision if found.",ga,st,mn="This function will not raise any exception if the file in not cached.",da,ne,Yt,Ue,zt,J,je,pa,lt,_n="Return a folder path to cache arbitrary files.",fa,ot,bn=`<code>huggingface_hub</code> provides a canonical folder path to store assets. This is the
recommended way to integrate cache in a downstream library as it will benefit from
the builtins tools to scan and delete the cache properly.`,ua,rt,Mn=`The distinction is made between files cached from the Hub and assets. Files from the
Hub are cached in a git-aware manner and entirely managed by <code>huggingface_hub</code>. See
<a href="https://huggingface.co/docs/huggingface_hub/how-to-cache" rel="nofollow">related documentation</a>.
All other files that a downstream library caches are considered to be “assets”
(files downloaded from external sources, extracted from a .tar archive, preprocessed
for training,…).`,ma,ct,Tn=`Once the folder path is generated, it is guaranteed to exist and to be a directory.
The path is based on 3 levels of depth: the library name, a namespace and a
subfolder. Those 3 levels grants flexibility while allowing <code>huggingface_hub</code> to
expect folders when scanning/deleting parts of the assets cache. Within a library,
it is expected that all namespaces share the same subset of subfolder names but this
is not a mandatory rule. The downstream library has then full control on which file
structure to adopt within its cache. Namespace and subfolder are optional (would
default to a <code>&quot;default/&quot;</code> subfolder) but library name is mandatory as we want every
downstream library to manage its own cache.`,_a,se,ba,le,Dt,Ie,Ht,w,ve,Ma,it,yn='Scan the entire HF cache-system and return a <a href="/docs/huggingface_hub/main/ko/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a> structure.',Ta,ht,$n=`Use <code>scan_cache_dir</code> in order to programmatically scan your cache-system. The cache
will be scanned repo by repo. If a repo is corrupted, a <a href="/docs/huggingface_hub/main/ko/package_reference/cache#huggingface_hub.CorruptedCacheException">~CorruptedCacheException</a>
will be thrown internally but captured and returned in the <a href="/docs/huggingface_hub/main/ko/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a>
structure. Only valid repos get a proper report.`,ya,oe,$a,re,Ca,xe,Ja,gt,Cn='Returns: a <a href="/docs/huggingface_hub/main/ko/package_reference/cache#huggingface_hub.HFCacheInfo">~HFCacheInfo</a> object.',Vt,Ae,Ot,ke,Jn='모든 구조체는 <a href="/docs/huggingface_hub/main/ko/package_reference/cache#huggingface_hub.scan_cache_dir">scan_cache_dir()</a>에 의해 생성되고 반환되며, 불변(immutable)입니다.',Bt,Se,Qt,v,Fe,wa,dt,wn="Frozen data structure holding information about the entire cache-system.",Ua,pt,Un='This data structure is returned by <a href="/docs/huggingface_hub/main/ko/package_reference/cache#huggingface_hub.scan_cache_dir">scan_cache_dir()</a> and is immutable.',ja,ce,Ia,Z,Ze,va,ft,jn="Prepare the strategy to delete one or more revisions cached locally.",xa,ut,In=`Input revisions can be any revision hash. If a revision hash is not found in the
local cache, a warning is thrown but no error is raised. Revisions can be from
different cached repos since hashes are unique across repos,`,Aa,ie,ka,he,Sa,ge,Fa,G,Re,Za,mt,vn='Generate a table from the <a href="/docs/huggingface_hub/main/ko/package_reference/cache#huggingface_hub.HFCacheInfo">HFCacheInfo</a> object.',Ra,_t,xn=`Pass <code>verbosity=0</code> to get a table with a single row per repo, with columns
“repo_id”, “repo_type”, “size_on_disk”, “nb_files”, “last_accessed”, “last_modified”, “refs”, “local_path”.`,La,bt,An=`Pass <code>verbosity=1</code> to get a table with a row per repo and revision (thus multiple rows can appear for a single repo), with columns
“repo_id”, “repo_type”, “revision”, “size_on_disk”, “nb_files”, “last_modified”, “refs”, “local_path”.`,Ea,de,Pt,Le,Wt,x,Ee,Na,Mt,kn="Frozen data structure holding information about a cached repository.",Ga,pe,Ya,fe,za,P,Ne,Da,Tt,Sn="(property) Sum of the blob file sizes as a human-readable string.",Ha,yt,Fn="Example: “42.2K”.",Va,ue,Ge,Oa,$t,Zn="(property) Mapping between <code>refs</code> and revision data structures.",Xt,Ye,qt,U,ze,Ba,Ct,Rn="Frozen data structure holding information about a revision.",Qa,Jt,Ln=`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).`,Pa,me,Wa,_e,Xa,W,De,qa,wt,En="(property) Sum of the blob file sizes as a human-readable string.",Ka,Ut,Nn="Example: “42.2K”.",en,be,He,tn,jt,Gn="(property) Total number of files in the revision.",Kt,Ve,ea,z,Oe,an,It,Yn="Frozen data structure holding information about a single cached file.",nn,Me,sn,X,Be,ln,vt,zn="(property) Size of the blob file as a human-readable string.",on,xt,Dn="Example: “42.2K”.",ta,Qe,aa,D,Pe,rn,At,Hn="Frozen data structure holding the strategy to delete cached revisions.",cn,kt,Vn=`This object is not meant to be instantiated programmatically but to be returned by
<a href="/docs/huggingface_hub/main/ko/package_reference/cache#huggingface_hub.HFCacheInfo.delete_revisions">delete_revisions()</a>. See documentation for usage example.`,hn,q,We,gn,St,On="(property) Expected size that will be freed as a human-readable string.",dn,Ft,Bn="Example: “42.2K”.",na,Xe,sa,qe,la,K,Ke,pn,Zt,Qn="Exception for any unexpected structure in the Huggingface cache-system.",oa,et,ra,Lt,ca;return y=new V({props:{title:"캐시 시스템 참조",local:"cache-system-reference",headingTag:"h1"}}),Ce=new V({props:{title:"도우미 함수",local:"helpers",headingTag:"h2"}}),Je=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"}}),we=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/main/src/huggingface_hub/file_download.py#L1532",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Optional[str]</code> or <code>_CACHED_NO_EXIST</code></p>
`}}),ne=new ye({props:{anchor:"huggingface_hub.try_to_load_from_cache.example",$$slots:{default:[ts]},$$scope:{ctx:$}}}),Ue=new V({props:{title:"cached_assets_path",local:"huggingface_hub.cached_assets_path ][ huggingface_hub.cached_assets_path",headingTag:"h3"}}),je=new F({props:{name:"huggingface_hub.cached_assets_path",anchor:"huggingface_hub.cached_assets_path",parameters:[{name:"library_name",val:": str"},{name:"namespace",val:": str = 'default'"},{name:"subfolder",val:": str = 'default'"},{name:"assets_dir",val:": 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/main/src/huggingface_hub/utils/_cache_assets.py#L21",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Path to the cache folder (<code>Path</code>).</p>
`}}),se=new ye({props:{anchor:"huggingface_hub.cached_assets_path.example",$$slots:{default:[as]},$$scope:{ctx:$}}}),le=new ye({props:{anchor:"huggingface_hub.cached_assets_path.example-2",$$slots:{default:[ns]},$$scope:{ctx:$}}}),Ie=new V({props:{title:"scan_cache_dir",local:"huggingface_hub.scan_cache_dir ][ huggingface_hub.scan_cache_dir",headingTag:"h3"}}),ve=new F({props:{name:"huggingface_hub.scan_cache_dir",anchor:"huggingface_hub.scan_cache_dir",parameters:[{name:"cache_dir",val:": 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/main/src/huggingface_hub/utils/_cache_manager.py#L595",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>CacheNotFound</code> or <code>ValueError</code></p>
`}}),oe=new ye({props:{anchor:"huggingface_hub.scan_cache_dir.example",$$slots:{default:[ss]},$$scope:{ctx:$}}}),re=new ye({props:{anchor:"huggingface_hub.scan_cache_dir.example-2",$$slots:{default:[ls]},$$scope:{ctx:$}}}),xe=new Te({props:{warning:!0}}),Ae=new V({props:{title:"데이터 구조",local:"data-structures",headingTag:"h2"}}),Se=new V({props:{title:"HFCacheInfo",local:"huggingface_hub.HFCacheInfo ][ huggingface_hub.HFCacheInfo",headingTag:"h3"}}),Fe=new F({props:{name:"class huggingface_hub.HFCacheInfo",anchor:"huggingface_hub.HFCacheInfo",parameters:[{name:"size_on_disk",val:": int"},{name:"repos",val:": 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/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/main/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/main/src/huggingface_hub/utils/_cache_manager.py#L358"}}),ce=new Te({props:{warning:!0,$$slots:{default:[os]},$$scope:{ctx:$}}}),Ze=new F({props:{name:"delete_revisions",anchor:"huggingface_hub.HFCacheInfo.delete_revisions",parameters:[{name:"*revisions",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L397"}}),ie=new ye({props:{anchor:"huggingface_hub.HFCacheInfo.delete_revisions.example",$$slots:{default:[rs]},$$scope:{ctx:$}}}),he=new ye({props:{anchor:"huggingface_hub.HFCacheInfo.delete_revisions.example-2",$$slots:{default:[cs]},$$scope:{ctx:$}}}),ge=new Te({props:{warning:!0,$$slots:{default:[is]},$$scope:{ctx:$}}}),Re=new F({props:{name:"export_as_table",anchor:"huggingface_hub.HFCacheInfo.export_as_table",parameters:[{name:"verbosity",val:": int = 0"}],parametersDescription:[{anchor:"huggingface_hub.HFCacheInfo.export_as_table.verbosity",description:`<strong>verbosity</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The verbosity level. Defaults to 0.`,name:"verbosity"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L500",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>
`}}),de=new ye({props:{anchor:"huggingface_hub.HFCacheInfo.export_as_table.example",$$slots:{default:[hs]},$$scope:{ctx:$}}}),Le=new V({props:{title:"CachedRepoInfo",local:"huggingface_hub.CachedRepoInfo ][ huggingface_hub.CachedRepoInfo",headingTag:"h3"}}),Ee=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/main/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/main/src/huggingface_hub/utils/_cache_manager.py#L196"}}),pe=new Te({props:{warning:!0,$$slots:{default:[gs]},$$scope:{ctx:$}}}),fe=new Te({props:{warning:!0,$$slots:{default:[ds]},$$scope:{ctx:$}}}),Ne=new F({props:{name:"size_on_disk_str",anchor:"huggingface_hub.CachedRepoInfo.size_on_disk_str",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L265"}}),Ge=new F({props:{name:"refs",anchor:"huggingface_hub.CachedRepoInfo.refs",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L274"}}),Ye=new V({props:{title:"CachedRevisionInfo",local:"huggingface_hub.CachedRevisionInfo ][ huggingface_hub.CachedRevisionInfo",headingTag:"h3"}}),ze=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/main/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/main/src/huggingface_hub/utils/_cache_manager.py#L119"}}),me=new Te({props:{warning:!0,$$slots:{default:[ps]},$$scope:{ctx:$}}}),_e=new Te({props:{warning:!0,$$slots:{default:[fs]},$$scope:{ctx:$}}}),De=new F({props:{name:"size_on_disk_str",anchor:"huggingface_hub.CachedRevisionInfo.size_on_disk_str",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L179"}}),He=new F({props:{name:"nb_files",anchor:"huggingface_hub.CachedRevisionInfo.nb_files",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L188"}}),Ve=new V({props:{title:"CachedFileInfo",local:"huggingface_hub.CachedFileInfo ][ huggingface_hub.CachedFileInfo",headingTag:"h3"}}),Oe=new F({props:{name:"class huggingface_hub.CachedFileInfo",anchor:"huggingface_hub.CachedFileInfo",parameters:[{name:"file_name",val:": str"},{name:"file_path",val:": Path"},{name:"blob_path",val:": Path"},{name:"size_on_disk",val:": int"},{name:"blob_last_accessed",val:": float"},{name:"blob_last_modified",val:": float"}],parametersDescription:[{anchor:"huggingface_hub.CachedFileInfo.file_name",description:`<strong>file_name</strong> (<code>str</code>) &#x2014;
Name of the file. Example: <code>config.json</code>.`,name:"file_name"},{anchor:"huggingface_hub.CachedFileInfo.file_path",description:`<strong>file_path</strong> (<code>Path</code>) &#x2014;
Path of the file in the <code>snapshots</code> directory. The file path is a symlink
referring to a blob in the <code>blobs</code> folder.`,name:"file_path"},{anchor:"huggingface_hub.CachedFileInfo.blob_path",description:`<strong>blob_path</strong> (<code>Path</code>) &#x2014;
Path of the blob file. This is equivalent to <code>file_path.resolve()</code>.`,name:"blob_path"},{anchor:"huggingface_hub.CachedFileInfo.size_on_disk",description:`<strong>size_on_disk</strong> (<code>int</code>) &#x2014;
Size of the blob file in bytes.`,name:"size_on_disk"},{anchor:"huggingface_hub.CachedFileInfo.blob_last_accessed",description:`<strong>blob_last_accessed</strong> (<code>float</code>) &#x2014;
Timestamp of the last time the blob file has been accessed (from any
revision).`,name:"blob_last_accessed"},{anchor:"huggingface_hub.CachedFileInfo.blob_last_modified",description:`<strong>blob_last_modified</strong> (<code>float</code>) &#x2014;
Timestamp of the last time the blob file has been modified/created.`,name:"blob_last_modified"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L52"}}),Me=new Te({props:{warning:!0,$$slots:{default:[us]},$$scope:{ctx:$}}}),Be=new F({props:{name:"size_on_disk_str",anchor:"huggingface_hub.CachedFileInfo.size_on_disk_str",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L109"}}),Qe=new V({props:{title:"DeleteCacheStrategy",local:"huggingface_hub.DeleteCacheStrategy ][ huggingface_hub.DeleteCacheStrategy",headingTag:"h3"}}),Pe=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/main/src/huggingface_hub/utils/_cache_manager.py#L282"}}),We=new F({props:{name:"expected_freed_size_str",anchor:"huggingface_hub.DeleteCacheStrategy.expected_freed_size_str",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L308"}}),Xe=new V({props:{title:"예외",local:"exceptions",headingTag:"h2"}}),qe=new V({props:{title:"CorruptedCacheException",local:"huggingface_hub.CorruptedCacheException ][ huggingface_hub.CorruptedCacheException",headingTag:"h3"}}),Ke=new F({props:{name:"class huggingface_hub.CorruptedCacheException",anchor:"huggingface_hub.CorruptedCacheException",parameters:"",source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/utils/_cache_manager.py#L48"}}),et=new es({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/ko/package_reference/cache.md"}}),{c(){t=h("meta"),M=l(),n=h("p"),i=l(),p(y.$$.fragment),s=l(),C=h("p"),C.innerHTML=fn,Et=l(),p(Ce.$$.fragment),Nt=l(),p(Je.$$.fragment),Gt=l(),Y=h("div"),p(we.$$.fragment),ha=l(),nt=h("p"),nt.textContent=un,ga=l(),st=h("p"),st.textContent=mn,da=l(),p(ne.$$.fragment),Yt=l(),p(Ue.$$.fragment),zt=l(),J=h("div"),p(je.$$.fragment),pa=l(),lt=h("p"),lt.textContent=_n,fa=l(),ot=h("p"),ot.innerHTML=bn,ua=l(),rt=h("p"),rt.innerHTML=Mn,ma=l(),ct=h("p"),ct.innerHTML=Tn,_a=l(),p(se.$$.fragment),ba=l(),p(le.$$.fragment),Dt=l(),p(Ie.$$.fragment),Ht=l(),w=h("div"),p(ve.$$.fragment),Ma=l(),it=h("p"),it.innerHTML=yn,Ta=l(),ht=h("p"),ht.innerHTML=$n,ya=l(),p(oe.$$.fragment),$a=l(),p(re.$$.fragment),Ca=l(),p(xe.$$.fragment),Ja=l(),gt=h("p"),gt.innerHTML=Cn,Vt=l(),p(Ae.$$.fragment),Ot=l(),ke=h("p"),ke.innerHTML=Jn,Bt=l(),p(Se.$$.fragment),Qt=l(),v=h("div"),p(Fe.$$.fragment),wa=l(),dt=h("p"),dt.textContent=wn,Ua=l(),pt=h("p"),pt.innerHTML=Un,ja=l(),p(ce.$$.fragment),Ia=l(),Z=h("div"),p(Ze.$$.fragment),va=l(),ft=h("p"),ft.textContent=jn,xa=l(),ut=h("p"),ut.textContent=In,Aa=l(),p(ie.$$.fragment),ka=l(),p(he.$$.fragment),Sa=l(),p(ge.$$.fragment),Fa=l(),G=h("div"),p(Re.$$.fragment),Za=l(),mt=h("p"),mt.innerHTML=vn,Ra=l(),_t=h("p"),_t.innerHTML=xn,La=l(),bt=h("p"),bt.innerHTML=An,Ea=l(),p(de.$$.fragment),Pt=l(),p(Le.$$.fragment),Wt=l(),x=h("div"),p(Ee.$$.fragment),Na=l(),Mt=h("p"),Mt.textContent=kn,Ga=l(),p(pe.$$.fragment),Ya=l(),p(fe.$$.fragment),za=l(),P=h("div"),p(Ne.$$.fragment),Da=l(),Tt=h("p"),Tt.textContent=Sn,Ha=l(),yt=h("p"),yt.textContent=Fn,Va=l(),ue=h("div"),p(Ge.$$.fragment),Oa=l(),$t=h("p"),$t.innerHTML=Zn,Xt=l(),p(Ye.$$.fragment),qt=l(),U=h("div"),p(ze.$$.fragment),Ba=l(),Ct=h("p"),Ct.textContent=Rn,Qa=l(),Jt=h("p"),Jt.innerHTML=Ln,Pa=l(),p(me.$$.fragment),Wa=l(),p(_e.$$.fragment),Xa=l(),W=h("div"),p(De.$$.fragment),qa=l(),wt=h("p"),wt.textContent=En,Ka=l(),Ut=h("p"),Ut.textContent=Nn,en=l(),be=h("div"),p(He.$$.fragment),tn=l(),jt=h("p"),jt.textContent=Gn,Kt=l(),p(Ve.$$.fragment),ea=l(),z=h("div"),p(Oe.$$.fragment),an=l(),It=h("p"),It.textContent=Yn,nn=l(),p(Me.$$.fragment),sn=l(),X=h("div"),p(Be.$$.fragment),ln=l(),vt=h("p"),vt.textContent=zn,on=l(),xt=h("p"),xt.textContent=Dn,ta=l(),p(Qe.$$.fragment),aa=l(),D=h("div"),p(Pe.$$.fragment),rn=l(),At=h("p"),At.textContent=Hn,cn=l(),kt=h("p"),kt.innerHTML=Vn,hn=l(),q=h("div"),p(We.$$.fragment),gn=l(),St=h("p"),St.textContent=On,dn=l(),Ft=h("p"),Ft.textContent=Bn,na=l(),p(Xe.$$.fragment),sa=l(),p(qe.$$.fragment),la=l(),K=h("div"),p(Ke.$$.fragment),pn=l(),Zt=h("p"),Zt.textContent=Qn,oa=l(),p(et.$$.fragment),ra=l(),Lt=h("p"),this.h()},l(e){const r=Kn("svelte-u9bgzb",document.head);t=g(r,"META",{name:!0,content:!0}),r.forEach(c),M=o(e),n=g(e,"P",{}),j(n).forEach(c),i=o(e),f(y.$$.fragment,e),s=o(e),C=g(e,"P",{"data-svelte-h":!0}),T(C)!=="svelte-o3lhx8"&&(C.innerHTML=fn),Et=o(e),f(Ce.$$.fragment,e),Nt=o(e),f(Je.$$.fragment,e),Gt=o(e),Y=g(e,"DIV",{class:!0});var O=j(Y);f(we.$$.fragment,O),ha=o(O),nt=g(O,"P",{"data-svelte-h":!0}),T(nt)!=="svelte-wybe3x"&&(nt.textContent=un),ga=o(O),st=g(O,"P",{"data-svelte-h":!0}),T(st)!=="svelte-9465ci"&&(st.textContent=mn),da=o(O),f(ne.$$.fragment,O),O.forEach(c),Yt=o(e),f(Ue.$$.fragment,e),zt=o(e),J=g(e,"DIV",{class:!0});var A=j(J);f(je.$$.fragment,A),pa=o(A),lt=g(A,"P",{"data-svelte-h":!0}),T(lt)!=="svelte-1ua2cjq"&&(lt.textContent=_n),fa=o(A),ot=g(A,"P",{"data-svelte-h":!0}),T(ot)!=="svelte-185gfp2"&&(ot.innerHTML=bn),ua=o(A),rt=g(A,"P",{"data-svelte-h":!0}),T(rt)!=="svelte-1ky40fv"&&(rt.innerHTML=Mn),ma=o(A),ct=g(A,"P",{"data-svelte-h":!0}),T(ct)!=="svelte-1dsf1o4"&&(ct.innerHTML=Tn),_a=o(A),f(se.$$.fragment,A),ba=o(A),f(le.$$.fragment,A),A.forEach(c),Dt=o(e),f(Ie.$$.fragment,e),Ht=o(e),w=g(e,"DIV",{class:!0});var k=j(w);f(ve.$$.fragment,k),Ma=o(k),it=g(k,"P",{"data-svelte-h":!0}),T(it)!=="svelte-n89lys"&&(it.innerHTML=yn),Ta=o(k),ht=g(k,"P",{"data-svelte-h":!0}),T(ht)!=="svelte-1wj6s3f"&&(ht.innerHTML=$n),ya=o(k),f(oe.$$.fragment,k),$a=o(k),f(re.$$.fragment,k),Ca=o(k),f(xe.$$.fragment,k),Ja=o(k),gt=g(k,"P",{"data-svelte-h":!0}),T(gt)!=="svelte-v29tl3"&&(gt.innerHTML=Cn),k.forEach(c),Vt=o(e),f(Ae.$$.fragment,e),Ot=o(e),ke=g(e,"P",{"data-svelte-h":!0}),T(ke)!=="svelte-1t5tzdr"&&(ke.innerHTML=Jn),Bt=o(e),f(Se.$$.fragment,e),Qt=o(e),v=g(e,"DIV",{class:!0});var R=j(v);f(Fe.$$.fragment,R),wa=o(R),dt=g(R,"P",{"data-svelte-h":!0}),T(dt)!=="svelte-z29m0d"&&(dt.textContent=wn),Ua=o(R),pt=g(R,"P",{"data-svelte-h":!0}),T(pt)!=="svelte-1lj8z81"&&(pt.innerHTML=Un),ja=o(R),f(ce.$$.fragment,R),Ia=o(R),Z=g(R,"DIV",{class:!0});var L=j(Z);f(Ze.$$.fragment,L),va=o(L),ft=g(L,"P",{"data-svelte-h":!0}),T(ft)!=="svelte-1kc0sf3"&&(ft.textContent=jn),xa=o(L),ut=g(L,"P",{"data-svelte-h":!0}),T(ut)!=="svelte-hvu8pg"&&(ut.textContent=In),Aa=o(L),f(ie.$$.fragment,L),ka=o(L),f(he.$$.fragment,L),Sa=o(L),f(ge.$$.fragment,L),L.forEach(c),Fa=o(R),G=g(R,"DIV",{class:!0});var H=j(G);f(Re.$$.fragment,H),Za=o(H),mt=g(H,"P",{"data-svelte-h":!0}),T(mt)!=="svelte-1v3ml1m"&&(mt.innerHTML=vn),Ra=o(H),_t=g(H,"P",{"data-svelte-h":!0}),T(_t)!=="svelte-y5o1d2"&&(_t.innerHTML=xn),La=o(H),bt=g(H,"P",{"data-svelte-h":!0}),T(bt)!=="svelte-kk3qf1"&&(bt.innerHTML=An),Ea=o(H),f(de.$$.fragment,H),H.forEach(c),R.forEach(c),Pt=o(e),f(Le.$$.fragment,e),Wt=o(e),x=g(e,"DIV",{class:!0});var E=j(x);f(Ee.$$.fragment,E),Na=o(E),Mt=g(E,"P",{"data-svelte-h":!0}),T(Mt)!=="svelte-yfk7e8"&&(Mt.textContent=kn),Ga=o(E),f(pe.$$.fragment,E),Ya=o(E),f(fe.$$.fragment,E),za=o(E),P=g(E,"DIV",{class:!0});var ee=j(P);f(Ne.$$.fragment,ee),Da=o(ee),Tt=g(ee,"P",{"data-svelte-h":!0}),T(Tt)!=="svelte-zfpv6m"&&(Tt.textContent=Sn),Ha=o(ee),yt=g(ee,"P",{"data-svelte-h":!0}),T(yt)!=="svelte-jo5bw4"&&(yt.textContent=Fn),ee.forEach(c),Va=o(E),ue=g(E,"DIV",{class:!0});var tt=j(ue);f(Ge.$$.fragment,tt),Oa=o(tt),$t=g(tt,"P",{"data-svelte-h":!0}),T($t)!=="svelte-1a85bod"&&($t.innerHTML=Zn),tt.forEach(c),E.forEach(c),Xt=o(e),f(Ye.$$.fragment,e),qt=o(e),U=g(e,"DIV",{class:!0});var S=j(U);f(ze.$$.fragment,S),Ba=o(S),Ct=g(S,"P",{"data-svelte-h":!0}),T(Ct)!=="svelte-e2eri1"&&(Ct.textContent=Rn),Qa=o(S),Jt=g(S,"P",{"data-svelte-h":!0}),T(Jt)!=="svelte-1h5zcam"&&(Jt.innerHTML=Ln),Pa=o(S),f(me.$$.fragment,S),Wa=o(S),f(_e.$$.fragment,S),Xa=o(S),W=g(S,"DIV",{class:!0});var te=j(W);f(De.$$.fragment,te),qa=o(te),wt=g(te,"P",{"data-svelte-h":!0}),T(wt)!=="svelte-zfpv6m"&&(wt.textContent=En),Ka=o(te),Ut=g(te,"P",{"data-svelte-h":!0}),T(Ut)!=="svelte-jo5bw4"&&(Ut.textContent=Nn),te.forEach(c),en=o(S),be=g(S,"DIV",{class:!0});var at=j(be);f(He.$$.fragment,at),tn=o(at),jt=g(at,"P",{"data-svelte-h":!0}),T(jt)!=="svelte-o0ydo0"&&(jt.textContent=Gn),at.forEach(c),S.forEach(c),Kt=o(e),f(Ve.$$.fragment,e),ea=o(e),z=g(e,"DIV",{class:!0});var B=j(z);f(Oe.$$.fragment,B),an=o(B),It=g(B,"P",{"data-svelte-h":!0}),T(It)!=="svelte-1l95h2a"&&(It.textContent=Yn),nn=o(B),f(Me.$$.fragment,B),sn=o(B),X=g(B,"DIV",{class:!0});var ae=j(X);f(Be.$$.fragment,ae),ln=o(ae),vt=g(ae,"P",{"data-svelte-h":!0}),T(vt)!=="svelte-easepm"&&(vt.textContent=zn),on=o(ae),xt=g(ae,"P",{"data-svelte-h":!0}),T(xt)!=="svelte-jo5bw4"&&(xt.textContent=Dn),ae.forEach(c),B.forEach(c),ta=o(e),f(Qe.$$.fragment,e),aa=o(e),D=g(e,"DIV",{class:!0});var Q=j(D);f(Pe.$$.fragment,Q),rn=o(Q),At=g(Q,"P",{"data-svelte-h":!0}),T(At)!=="svelte-13gw4lu"&&(At.textContent=Hn),cn=o(Q),kt=g(Q,"P",{"data-svelte-h":!0}),T(kt)!=="svelte-y9kkue"&&(kt.innerHTML=Vn),hn=o(Q),q=g(Q,"DIV",{class:!0});var Rt=j(q);f(We.$$.fragment,Rt),gn=o(Rt),St=g(Rt,"P",{"data-svelte-h":!0}),T(St)!=="svelte-1syr64t"&&(St.textContent=On),dn=o(Rt),Ft=g(Rt,"P",{"data-svelte-h":!0}),T(Ft)!=="svelte-jo5bw4"&&(Ft.textContent=Bn),Rt.forEach(c),Q.forEach(c),na=o(e),f(Xe.$$.fragment,e),sa=o(e),f(qe.$$.fragment,e),la=o(e),K=g(e,"DIV",{class:!0});var ia=j(K);f(Ke.$$.fragment,ia),pn=o(ia),Zt=g(ia,"P",{"data-svelte-h":!0}),T(Zt)!=="svelte-thu1ey"&&(Zt.textContent=Qn),ia.forEach(c),oa=o(e),f(et.$$.fragment,e),ra=o(e),Lt=g(e,"P",{}),j(Lt).forEach(c),this.h()},h(){I(t,"name","hf:doc:metadata"),I(t,"content",_s),I(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,r){a(document.head,t),d(e,M,r),d(e,n,r),d(e,i,r),u(y,e,r),d(e,s,r),d(e,C,r),d(e,Et,r),u(Ce,e,r),d(e,Nt,r),u(Je,e,r),d(e,Gt,r),d(e,Y,r),u(we,Y,null),a(Y,ha),a(Y,nt),a(Y,ga),a(Y,st),a(Y,da),u(ne,Y,null),d(e,Yt,r),u(Ue,e,r),d(e,zt,r),d(e,J,r),u(je,J,null),a(J,pa),a(J,lt),a(J,fa),a(J,ot),a(J,ua),a(J,rt),a(J,ma),a(J,ct),a(J,_a),u(se,J,null),a(J,ba),u(le,J,null),d(e,Dt,r),u(Ie,e,r),d(e,Ht,r),d(e,w,r),u(ve,w,null),a(w,Ma),a(w,it),a(w,Ta),a(w,ht),a(w,ya),u(oe,w,null),a(w,$a),u(re,w,null),a(w,Ca),u(xe,w,null),a(w,Ja),a(w,gt),d(e,Vt,r),u(Ae,e,r),d(e,Ot,r),d(e,ke,r),d(e,Bt,r),u(Se,e,r),d(e,Qt,r),d(e,v,r),u(Fe,v,null),a(v,wa),a(v,dt),a(v,Ua),a(v,pt),a(v,ja),u(ce,v,null),a(v,Ia),a(v,Z),u(Ze,Z,null),a(Z,va),a(Z,ft),a(Z,xa),a(Z,ut),a(Z,Aa),u(ie,Z,null),a(Z,ka),u(he,Z,null),a(Z,Sa),u(ge,Z,null),a(v,Fa),a(v,G),u(Re,G,null),a(G,Za),a(G,mt),a(G,Ra),a(G,_t),a(G,La),a(G,bt),a(G,Ea),u(de,G,null),d(e,Pt,r),u(Le,e,r),d(e,Wt,r),d(e,x,r),u(Ee,x,null),a(x,Na),a(x,Mt),a(x,Ga),u(pe,x,null),a(x,Ya),u(fe,x,null),a(x,za),a(x,P),u(Ne,P,null),a(P,Da),a(P,Tt),a(P,Ha),a(P,yt),a(x,Va),a(x,ue),u(Ge,ue,null),a(ue,Oa),a(ue,$t),d(e,Xt,r),u(Ye,e,r),d(e,qt,r),d(e,U,r),u(ze,U,null),a(U,Ba),a(U,Ct),a(U,Qa),a(U,Jt),a(U,Pa),u(me,U,null),a(U,Wa),u(_e,U,null),a(U,Xa),a(U,W),u(De,W,null),a(W,qa),a(W,wt),a(W,Ka),a(W,Ut),a(U,en),a(U,be),u(He,be,null),a(be,tn),a(be,jt),d(e,Kt,r),u(Ve,e,r),d(e,ea,r),d(e,z,r),u(Oe,z,null),a(z,an),a(z,It),a(z,nn),u(Me,z,null),a(z,sn),a(z,X),u(Be,X,null),a(X,ln),a(X,vt),a(X,on),a(X,xt),d(e,ta,r),u(Qe,e,r),d(e,aa,r),d(e,D,r),u(Pe,D,null),a(D,rn),a(D,At),a(D,cn),a(D,kt),a(D,hn),a(D,q),u(We,q,null),a(q,gn),a(q,St),a(q,dn),a(q,Ft),d(e,na,r),u(Xe,e,r),d(e,sa,r),u(qe,e,r),d(e,la,r),d(e,K,r),u(Ke,K,null),a(K,pn),a(K,Zt),d(e,oa,r),u(et,e,r),d(e,ra,r),d(e,Lt,r),ca=!0},p(e,[r]){const O={};r&2&&(O.$$scope={dirty:r,ctx:e}),ne.$set(O);const A={};r&2&&(A.$$scope={dirty:r,ctx:e}),se.$set(A);const k={};r&2&&(k.$$scope={dirty:r,ctx:e}),le.$set(k);const R={};r&2&&(R.$$scope={dirty:r,ctx:e}),oe.$set(R);const L={};r&2&&(L.$$scope={dirty:r,ctx:e}),re.$set(L);const H={};r&2&&(H.$$scope={dirty:r,ctx:e}),ce.$set(H);const E={};r&2&&(E.$$scope={dirty:r,ctx:e}),ie.$set(E);const ee={};r&2&&(ee.$$scope={dirty:r,ctx:e}),he.$set(ee);const tt={};r&2&&(tt.$$scope={dirty:r,ctx:e}),ge.$set(tt);const S={};r&2&&(S.$$scope={dirty:r,ctx:e}),de.$set(S);const te={};r&2&&(te.$$scope={dirty:r,ctx:e}),pe.$set(te);const at={};r&2&&(at.$$scope={dirty:r,ctx:e}),fe.$set(at);const B={};r&2&&(B.$$scope={dirty:r,ctx:e}),me.$set(B);const ae={};r&2&&(ae.$$scope={dirty:r,ctx:e}),_e.$set(ae);const Q={};r&2&&(Q.$$scope={dirty:r,ctx:e}),Me.$set(Q)},i(e){ca||(m(y.$$.fragment,e),m(Ce.$$.fragment,e),m(Je.$$.fragment,e),m(we.$$.fragment,e),m(ne.$$.fragment,e),m(Ue.$$.fragment,e),m(je.$$.fragment,e),m(se.$$.fragment,e),m(le.$$.fragment,e),m(Ie.$$.fragment,e),m(ve.$$.fragment,e),m(oe.$$.fragment,e),m(re.$$.fragment,e),m(xe.$$.fragment,e),m(Ae.$$.fragment,e),m(Se.$$.fragment,e),m(Fe.$$.fragment,e),m(ce.$$.fragment,e),m(Ze.$$.fragment,e),m(ie.$$.fragment,e),m(he.$$.fragment,e),m(ge.$$.fragment,e),m(Re.$$.fragment,e),m(de.$$.fragment,e),m(Le.$$.fragment,e),m(Ee.$$.fragment,e),m(pe.$$.fragment,e),m(fe.$$.fragment,e),m(Ne.$$.fragment,e),m(Ge.$$.fragment,e),m(Ye.$$.fragment,e),m(ze.$$.fragment,e),m(me.$$.fragment,e),m(_e.$$.fragment,e),m(De.$$.fragment,e),m(He.$$.fragment,e),m(Ve.$$.fragment,e),m(Oe.$$.fragment,e),m(Me.$$.fragment,e),m(Be.$$.fragment,e),m(Qe.$$.fragment,e),m(Pe.$$.fragment,e),m(We.$$.fragment,e),m(Xe.$$.fragment,e),m(qe.$$.fragment,e),m(Ke.$$.fragment,e),m(et.$$.fragment,e),ca=!0)},o(e){_(y.$$.fragment,e),_(Ce.$$.fragment,e),_(Je.$$.fragment,e),_(we.$$.fragment,e),_(ne.$$.fragment,e),_(Ue.$$.fragment,e),_(je.$$.fragment,e),_(se.$$.fragment,e),_(le.$$.fragment,e),_(Ie.$$.fragment,e),_(ve.$$.fragment,e),_(oe.$$.fragment,e),_(re.$$.fragment,e),_(xe.$$.fragment,e),_(Ae.$$.fragment,e),_(Se.$$.fragment,e),_(Fe.$$.fragment,e),_(ce.$$.fragment,e),_(Ze.$$.fragment,e),_(ie.$$.fragment,e),_(he.$$.fragment,e),_(ge.$$.fragment,e),_(Re.$$.fragment,e),_(de.$$.fragment,e),_(Le.$$.fragment,e),_(Ee.$$.fragment,e),_(pe.$$.fragment,e),_(fe.$$.fragment,e),_(Ne.$$.fragment,e),_(Ge.$$.fragment,e),_(Ye.$$.fragment,e),_(ze.$$.fragment,e),_(me.$$.fragment,e),_(_e.$$.fragment,e),_(De.$$.fragment,e),_(He.$$.fragment,e),_(Ve.$$.fragment,e),_(Oe.$$.fragment,e),_(Me.$$.fragment,e),_(Be.$$.fragment,e),_(Qe.$$.fragment,e),_(Pe.$$.fragment,e),_(We.$$.fragment,e),_(Xe.$$.fragment,e),_(qe.$$.fragment,e),_(Ke.$$.fragment,e),_(et.$$.fragment,e),ca=!1},d(e){e&&(c(M),c(n),c(i),c(s),c(C),c(Et),c(Nt),c(Gt),c(Y),c(Yt),c(zt),c(J),c(Dt),c(Ht),c(w),c(Vt),c(Ot),c(ke),c(Bt),c(Qt),c(v),c(Pt),c(Wt),c(x),c(Xt),c(qt),c(U),c(Kt),c(ea),c(z),c(ta),c(aa),c(D),c(na),c(sa),c(la),c(K),c(oa),c(ra),c(Lt)),c(t),b(y,e),b(Ce,e),b(Je,e),b(we),b(ne),b(Ue,e),b(je),b(se),b(le),b(Ie,e),b(ve),b(oe),b(re),b(xe),b(Ae,e),b(Se,e),b(Fe),b(ce),b(Ze),b(ie),b(he),b(ge),b(Re),b(de),b(Le,e),b(Ee),b(pe),b(fe),b(Ne),b(Ge),b(Ye,e),b(ze),b(me),b(_e),b(De),b(He),b(Ve,e),b(Oe),b(Me),b(Be),b(Qe,e),b(Pe),b(We),b(Xe,e),b(qe,e),b(Ke),b(et,e)}}}const _s='{"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 bs($){return Wn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Us extends Xn{constructor(t){super(),qn(this,t,bs,ms,Pn,{})}}export{Us as component};
