import{s as W,n as J,o as K}from"../chunks/scheduler.9cda857a.js";import{S as Q,i as Y,e as r,s as a,c as E,h as Z,a as p,d as s,b as n,f as F,g as R,j as x,k as A,l as ee,m as i,n as G,t as I,o as z,p as j}from"../chunks/index.003612b0.js";import{C as te}from"../chunks/CopyLLMTxtMenu.44d08a39.js";import{H as V,E as se}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.e5cfda8c.js";function ie(D){let o,w,b,_,u,y,f,k,c,U='Models, Spaces, and Datasets are hosted on the Hugging Face Hub as <a href="https://git-scm.com/about" rel="nofollow">Git repositories</a>, which means that version control and collaboration are core elements of the Hub. In a nutshell, a repository (also known as a <strong>repo</strong>) is a place where code and assets can be stored to back up your work, share it with the community, and work in a team.',L,m,X=`Unlike other collaboration platforms, our Git repositories are optimized for Machine Learning and AI files – large binary files, usually in specific file formats like Parquet and Safetensors, and up to <a href="https://huggingface.co/blog/from-files-to-chunks" rel="nofollow">Terabyte-scale sizes</a>!
To achieve this, we built <a href="./xet/index">Xet</a>, a modern custom storage system built specifically for AI/ML development, enabling chunk-level deduplication, smaller uploads, and faster downloads.`,M,l,N='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/xet-speed.gif"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/xet-speed-dark.gif"/>',H,h,O="In these pages, you will go over the basics of getting started with Git and Xet and interacting with repositories on the Hub. Once you get the hang of it, you can explore the best practices and next steps that we’ve compiled for effective repository usage.",T,d,C,g,B='<li><a href="./repositories-getting-started">Getting Started with Repositories</a></li> <li><a href="./repositories-settings">Settings</a></li> <li><a href="./storage-limits">Storage Limits</a></li> <li><a href="./xet/index">Storage Backend (Xet)</a></li> <li><a href="./repositories-pull-requests-discussions">Pull Requests &amp; Discussions</a> <ul><li><a href="./repositories-pull-requests-discussions#pull-requests-advanced-usage">Pull Requests advanced usage</a></li></ul></li> <li><a href="./collections">Collections</a></li> <li><a href="./notifications">Notifications</a></li> <li><a href="./webhooks">Webhooks</a></li> <li><a href="./repositories-next-steps">Next Steps</a></li> <li><a href="./repositories-licenses">Licenses</a></li>',P,$,S,v,q;return u=new te({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),f=new V({props:{title:"Repositories",local:"repositories",headingTag:"h1"}}),d=new V({props:{title:"Contents",local:"contents",headingTag:"h2"}}),$=new se({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/repositories.md"}}),{c(){o=r("meta"),w=a(),b=r("p"),_=a(),E(u.$$.fragment),y=a(),E(f.$$.fragment),k=a(),c=r("p"),c.innerHTML=U,L=a(),m=r("p"),m.innerHTML=X,M=a(),l=r("div"),l.innerHTML=N,H=a(),h=r("p"),h.textContent=O,T=a(),E(d.$$.fragment),C=a(),g=r("ul"),g.innerHTML=B,P=a(),E($.$$.fragment),S=a(),v=r("p"),this.h()},l(e){const t=Z("svelte-u9bgzb",document.head);o=p(t,"META",{name:!0,content:!0}),t.forEach(s),w=n(e),b=p(e,"P",{}),F(b).forEach(s),_=n(e),R(u.$$.fragment,e),y=n(e),R(f.$$.fragment,e),k=n(e),c=p(e,"P",{"data-svelte-h":!0}),x(c)!=="svelte-w1q459"&&(c.innerHTML=U),L=n(e),m=p(e,"P",{"data-svelte-h":!0}),x(m)!=="svelte-sj2ls9"&&(m.innerHTML=X),M=n(e),l=p(e,"DIV",{class:!0,"data-svelte-h":!0}),x(l)!=="svelte-1efrogt"&&(l.innerHTML=N),H=n(e),h=p(e,"P",{"data-svelte-h":!0}),x(h)!=="svelte-10q7a4r"&&(h.textContent=O),T=n(e),R(d.$$.fragment,e),C=n(e),g=p(e,"UL",{"data-svelte-h":!0}),x(g)!=="svelte-hqtruk"&&(g.innerHTML=B),P=n(e),R($.$$.fragment,e),S=n(e),v=p(e,"P",{}),F(v).forEach(s),this.h()},h(){A(o,"name","hf:doc:metadata"),A(o,"content",ae),A(l,"class","flex justify-center")},m(e,t){ee(document.head,o),i(e,w,t),i(e,b,t),i(e,_,t),G(u,e,t),i(e,y,t),G(f,e,t),i(e,k,t),i(e,c,t),i(e,L,t),i(e,m,t),i(e,M,t),i(e,l,t),i(e,H,t),i(e,h,t),i(e,T,t),G(d,e,t),i(e,C,t),i(e,g,t),i(e,P,t),G($,e,t),i(e,S,t),i(e,v,t),q=!0},p:J,i(e){q||(I(u.$$.fragment,e),I(f.$$.fragment,e),I(d.$$.fragment,e),I($.$$.fragment,e),q=!0)},o(e){z(u.$$.fragment,e),z(f.$$.fragment,e),z(d.$$.fragment,e),z($.$$.fragment,e),q=!1},d(e){e&&(s(w),s(b),s(_),s(y),s(k),s(c),s(L),s(m),s(M),s(l),s(H),s(h),s(T),s(C),s(g),s(P),s(S),s(v)),s(o),j(u,e),j(f,e),j(d,e),j($,e)}}}const ae='{"title":"Repositories","local":"repositories","sections":[{"title":"Contents","local":"contents","sections":[],"depth":2}],"depth":1}';function ne(D){return K(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ue extends Q{constructor(o){super(),Y(this,o,ne,ie,W,{})}}export{ue as component};
