Buckets:

HuggingFaceDocBuilder's picture
download
raw
29 kB
import{s as Sa,n as za,o as qa}from"../chunks/scheduler.d75c11ed.js";import{S as Ea,i as Qa,e as s,s as i,c as p,h as Aa,a as o,d as a,b as n,f as pa,g as d,j as g,k as We,l as Da,m as l,n as f,t as r,o as u,p as m}from"../chunks/index.4ec9dfe9.js";import{C as Oa,H as h,E as Ka}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.72f30ad6.js";import{C as c}from"../chunks/CodeBlock.8921e642.js";function el(da){let $,Ve,_e,Re,b,Be,T,Ne,M,fa="At Hugging Face, we are on a mission to democratize good Machine Learning and we believe in the value of open source. That’s why we designed 🤗 Datasets so that anyone can share a dataset with the greater ML community. There are currently thousands of datasets in over 100 languages in the Hugging Face Hub, and the Hugging Face team always welcomes new contributions!",Pe,v,ra="Dataset repositories offer features such as:",Se,C,ua='<li>Free dataset hosting</li> <li>Dataset versioning</li> <li>Commit history and diffs</li> <li>Metadata for discoverability</li> <li>Dataset cards for documentation, licensing, limitations, etc.</li> <li><a href="https://huggingface.co/docs/hub/datasets-viewer" rel="nofollow">Dataset Viewer</a></li>',ze,Z,ma="This guide will show you how to share a dataset folder or repository that can be easily accessed by anyone.",qe,Ge,Ee,U,Qe,k,ga=`You can share your dataset with the community with a dataset repository on the Hugging Face Hub.
It can also be a private dataset if you want to control who has access to it.`,Ae,x,ca=`In a dataset repository, you can host all your data files and <a href="./repository_structure#define-your-splits-in-yaml">configure your dataset</a> to define which file goes to which split.
The following formats are supported: CSV, TSV, JSON, JSON lines, text, Parquet, Arrow, SQLite, WebDataset.
Many kinds of compressed file types are also supported: GZ, BZ2, LZ4, LZMA or ZSTD.
For example, your dataset can be made of <code>.json.gz</code> files.`,De,L,ha='When loading a dataset from the Hub, all the files in the supported formats are loaded, following the <a href="./repository_structure">repository structure</a>.',Oe,J,$a='For more information on how to load a dataset from the Hub, take a look at the <a href="./load_hub">load a dataset from the Hub</a> tutorial.',Ke,Y,et,H,ya=`Sharing a community dataset will require you to create an account on <a href="https://huggingface.co/join" rel="nofollow">hf.co</a> if you don’t have one yet.
You can directly create a <a href="https://huggingface.co/login?next=%2Fnew-dataset" rel="nofollow">new dataset repository</a> from your account on the Hugging Face Hub, but this guide will show you how to upload a dataset from the terminal.`,tt,X,wa="<li>Make sure you are in the virtual environment where you installed Datasets, and run the following command:</li>",at,I,lt,y,ba="<li>Login using your Hugging Face Hub credentials, and create a new dataset repository:</li>",it,j,nt,G,Ta="Add the <code>-organization</code> flag to create a repository under a specific organization:",st,_,ot,F,pt,W,Ma="Check your directory to ensure the only files you’re uploading are:",dt,V,va="<li><p>The data files of the dataset</p></li> <li><p>The dataset card <code>README.md</code></p></li>",ft,R,rt,B,Ca='Use the <code>huggingface-cli upload</code> command to upload files to the Hub directly. Internally, it uses the same <code>upload_file</code> and <code>upload_folder</code> helpers described in the <a href="https://huggingface.co/docs/huggingface_hub/guides/upload" rel="nofollow">Upload guide</a>. In the examples below, we will walk through the most common use cases. For a full list of available options, you can run:',ut,N,mt,P,Za='For more general information about <code>huggingface-cli</code> you can check the <a href="https://huggingface.co/docs/huggingface_hub/guides/cli" rel="nofollow">CLI guide</a>.',gt,S,ct,z,Ua="The default usage for this command is:",ht,q,$t,E,ka="To upload the current directory at the root of the repo, use:",yt,Q,wt,w,xa="<p>If the repo doesn’t exist yet, it will be created automatically.</p>",bt,A,La="You can also upload a specific folder:",Tt,D,Mt,O,Ja="Finally, you can upload a folder to a specific destination on the repo:",vt,K,Ct,ee,Zt,te,Ya="You can also upload a single file by setting <code>local_path</code> to point to a file on your machine. If that’s the case, <code>path_in_repo</code> is optional and will default to the name of your local file:",Ut,ae,kt,le,Ha="If you want to upload a single file to a specific directory, set <code>path_in_repo</code> accordingly:",xt,ie,Lt,ne,Jt,se,Xa="To upload multiple files from a folder at once without uploading the entire folder, use the <code>--include</code> and <code>--exclude</code> patterns. It can also be combined with the <code>--delete</code> option to delete files on the repo while uploading new ones. In the example below, we sync the local Space by deleting remote files and uploading all CSV files:",Yt,oe,Ht,pe,Xt,de,Ia="To upload content to a repo owned by an organization instead of a personal repo, you must explicitly specify it in the <code>repo_id</code>:",It,fe,jt,re,Gt,ue,ja="By default, files are uploaded to the <code>main</code> branch. If you want to upload files to another branch or reference, use the <code>--revision</code> option:",_t,me,Ft,ge,Ga="<strong>Note:</strong> if <code>revision</code> does not exist and <code>--create-pr</code> is not set, a branch will be created automatically from the <code>main</code> branch.",Wt,ce,Vt,he,_a="If you don’t have the permission to push to a repo, you must open a PR and let the authors know about the changes you want to make. This can be done by setting the <code>--create-pr</code> option:",Rt,$e,Bt,ye,Nt,we,Fa="In some cases, you might want to push regular updates to a repo. For example, this is useful if your dataset is growing over time and you want to upload the data folder every 10 minutes. You can do this using the <code>--every</code> option:",Pt,be,St,Te,zt,Me,Wa="Use the <code>--commit-message</code> and <code>--commit-description</code> to set a custom message and description for your commit instead of the default one",qt,ve,Et,Ce,Qt,Ze,Va="To upload files, you must use a token. By default, the token saved locally (using <code>huggingface-cli login</code>) will be used. If you want to authenticate explicitly, use the <code>--token</code> option:",At,Ue,Dt,ke,Ot,xe,Ra="By default, the <code>huggingface-cli upload</code> command will be verbose. It will print details such as warning messages, information about the uploaded files, and progress bars. If you want to silence all of this, use the <code>--quiet</code> option. Only the last line (i.e. the URL to the uploaded files) is printed. This can prove useful if you want to pass the output to another command in a script.",Kt,Le,ea,Je,ta,Ye,Ba="Congratulations, your dataset has now been uploaded to the Hugging Face Hub where anyone can load it in a single line of code! 🥳",aa,He,la,Xe,Na='If your dataset is supported, it should also have a <a href="https://huggingface.co/docs/hub/datasets-viewer" rel="nofollow">Dataset Viewer</a> for everyone to explore the dataset content.',ia,Ie,Pa='Finally, don’t forget to enrich the dataset card to document your dataset and make it discoverable! Check out the <a href="dataset_card">Create a dataset card</a> guide to learn more.',na,je,sa,Fe,oa;return b=new Oa({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),T=new h({props:{title:"Share a dataset using the CLI",local:"share-a-dataset-using-the-cli",headingTag:"h1"}}),U=new h({props:{title:"Add a dataset",local:"add-a-dataset",headingTag:"h2"}}),Y=new h({props:{title:"Create the repository",local:"create-the-repository",headingTag:"h3"}}),I=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwbG9naW4=",highlighted:'huggingface-<span class="hljs-keyword">cli</span> login',lang:"",wrap:!1}}),j=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwcmVwbyUyMGNyZWF0ZSUyMG15LWNvb2wtZGF0YXNldCUyMC0tdHlwZSUyMGRhdGFzZXQ=",highlighted:'huggingface-cli repo <span class="hljs-keyword">create</span> my-cool-<span class="hljs-keyword">dataset</span> --<span class="hljs-built_in">type</span> <span class="hljs-keyword">dataset</span>',lang:"",wrap:!1}}),_=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwcmVwbyUyMGNyZWF0ZSUyMG15LWNvb2wtZGF0YXNldCUyMC0tdHlwZSUyMGRhdGFzZXQlMjAtLW9yZ2FuaXphdGlvbiUyMHlvdXItb3JnLW5hbWU=",highlighted:'huggingface-cli repo <span class="hljs-keyword">create</span> my-cool-<span class="hljs-keyword">dataset</span> --<span class="hljs-built_in">type</span> <span class="hljs-keyword">dataset</span> --organization your-org-name',lang:"",wrap:!1}}),F=new h({props:{title:"Prepare your files",local:"prepare-your-files",headingTag:"h2"}}),R=new h({props:{title:"huggingface-cli upload",local:"huggingface-cli-upload",headingTag:"h2"}}),N=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwLS1oZWxw",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>huggingface-cli upload --<span class="hljs-built_in">help</span>',lang:"bash",wrap:!1}}),S=new h({props:{title:"Upload an entire folder",local:"upload-an-entire-folder",headingTag:"h3"}}),q=new c({props:{code:"JTIzJTIwVXNhZ2UlM0ElMjAlMjBodWdnaW5nZmFjZS1jbGklMjB1cGxvYWQlMjAlNUJkYXRhc2V0X3JlcG9faWQlNUQlMjAlNUJsb2NhbF9wYXRoJTVEJTIwJTVCcGF0aF9pbl9yZXBvJTVEJTIwLS1yZXBvLXR5cGUlMjBkYXRhc2V0",highlighted:'<span class="hljs-comment"># Usage: huggingface-cli upload [dataset_repo_id] [local_path] [path_in_repo] --repo-type dataset</span>',lang:"bash",wrap:!1}}),Q=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwbXktY29vbC1kYXRhc2V0JTIwLiUyMC4lMjAtLXJlcG8tdHlwZSUyMGRhdGFzZXQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>huggingface-cli upload my-cool-dataset . . --repo-type dataset
https://huggingface.co/datasets/Wauplin/my-cool-dataset/tree/main/`,lang:"bash",wrap:!1}}),D=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwbXktY29vbC1kYXRhc2V0JTIwLiUyRmRhdGElMjAuJTIwLS1yZXBvLXR5cGUlMjBkYXRhc2V0",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>huggingface-cli upload my-cool-dataset ./data . --repo-type dataset
https://huggingface.co/datasetsWauplin/my-cool-dataset/tree/main/`,lang:"bash",wrap:!1}}),K=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwbXktY29vbC1kYXRhc2V0JTIwLiUyRnBhdGglMkZ0byUyRmN1cmF0ZWQlMkZkYXRhJTIwJTJGZGF0YSUyRnRyYWluJTIwLS1yZXBvLXR5cGUlMjBkYXRhc2V0",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>huggingface-cli upload my-cool-dataset ./path/to/curated/data /data/train --repo-type dataset
https://huggingface.co/datasetsWauplin/my-cool-dataset/tree/main/data/train`,lang:"bash",wrap:!1}}),ee=new h({props:{title:"Upload a single file",local:"upload-a-single-file",headingTag:"h3"}}),ae=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwV2F1cGxpbiUyRm15LWNvb2wtZGF0YXNldCUyMC4lMkZmaWxlcyUyRnRyYWluLmNzdiUyMC0tcmVwby10eXBlJTIwZGF0YXNldA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>huggingface-cli upload Wauplin/my-cool-dataset ./files/train.csv --repo-type dataset
https://huggingface.co/datasetsWauplin/my-cool-dataset/blob/main/train.csv`,lang:"bash",wrap:!1}}),ie=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwV2F1cGxpbiUyRm15LWNvb2wtZGF0YXNldCUyMC4lMkZmaWxlcyUyRnRyYWluLmNzdiUyMCUyRmRhdGElMkZ0cmFpbi5jc3YlMjAtLXJlcG8tdHlwZSUyMGRhdGFzZXQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>huggingface-cli upload Wauplin/my-cool-dataset ./files/train.csv /data/train.csv --repo-type dataset
https://huggingface.co/datasetsWauplin/my-cool-dataset/blob/main/data/train.csv`,lang:"bash",wrap:!1}}),ne=new h({props:{title:"Upload multiple files",local:"upload-multiple-files",headingTag:"h3"}}),oe=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwV2F1cGxpbiUyRm15LWNvb2wtZGF0YXNldCUyMC0tcmVwby10eXBlJTIwZGF0YXNldCUyMC0taW5jbHVkZSUzRCUyMiUyRmRhdGElMkYqLmNzdiUyMiUyMC0tZGVsZXRlJTNEJTIyKiUyMiUyMC0tY29tbWl0LW1lc3NhZ2UlM0QlMjJTeW5jJTIwbG9jYWwlMjBkYXRhc2V0JTIwd2l0aCUyMEh1YiUyMg==",highlighted:`<span class="hljs-comment"># Sync local Space with Hub (upload new CSV files, delete removed files)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>huggingface-cli upload Wauplin/my-cool-dataset --repo-type dataset --include=<span class="hljs-string">&quot;/data/*.csv&quot;</span> --delete=<span class="hljs-string">&quot;*&quot;</span> --commit-message=<span class="hljs-string">&quot;Sync local dataset with Hub&quot;</span>
...`,lang:"bash",wrap:!1}}),pe=new h({props:{title:"Upload to an organization",local:"upload-to-an-organization",headingTag:"h3"}}),fe=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwTXlDb29sT3JnYW5pemF0aW9uJTJGbXktY29vbC1kYXRhc2V0JTIwLiUyMC4lMjAtLXJlcG8tdHlwZSUyMGRhdGFzZXQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>huggingface-cli upload MyCoolOrganization/my-cool-dataset . . --repo-type dataset
https://huggingface.co/datasetsMyCoolOrganization/my-cool-dataset/tree/main/`,lang:"bash",wrap:!1}}),re=new h({props:{title:"Upload to a specific revision",local:"upload-to-a-specific-revision",headingTag:"h3"}}),me=new c({props:{code:"JTIzJTIwVXBsb2FkJTIwZmlsZXMlMjB0byUyMGElMjBQUiUwQWh1Z2dpbmdmYWNlLWNsaSUyMHVwbG9hZCUyMGJpZ2NvZGUlMkZ0aGUtc3RhY2slMjAuJTIwLiUyMC0tcmVwby10eXBlJTIwZGF0YXNldCUyMC0tcmV2aXNpb24lMjByZWZzJTJGcHIlMkYxMDQlMEEuLi4=",highlighted:`<span class="hljs-comment"># Upload files to a PR</span>
huggingface-cli upload bigcode/the-stack . . --repo-type dataset --revision refs/pr/104
...`,lang:"bash",wrap:!1}}),ce=new h({props:{title:"Upload and create a PR",local:"upload-and-create-a-pr",headingTag:"h3"}}),$e=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwYmlnY29kZSUyRnRoZS1zdGFjayUyMC0tcmVwby10eXBlJTIwZGF0YXNldCUyMC0tcmV2aXNpb24lMjByZWZzJTJGcHIlMkYxMDQlMjAtLWNyZWF0ZS1wciUyMC4lMjAu",highlighted:`<span class="hljs-comment"># Create a PR and upload the files to it</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>huggingface-cli upload bigcode/the-stack --repo-type dataset --revision refs/pr/104 --create-pr . .
https://huggingface.co/datasets/bigcode/the-stack/blob/refs%2Fpr%2F104/`,lang:"bash",wrap:!1}}),ye=new h({props:{title:"Upload at regular intervals",local:"upload-at-regular-intervals",headingTag:"h3"}}),be=new c({props:{code:"JTIzJTIwVXBsb2FkJTIwbmV3JTIwbG9ncyUyMGV2ZXJ5JTIwMTAlMjBtaW51dGVzJTBBaHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwbXktY29vbC1keW5hbWljLWRhdGFzZXQlMjBkYXRhJTJGJTIwLS1ldmVyeSUzRDEw",highlighted:`<span class="hljs-comment"># Upload new logs every 10 minutes</span>
huggingface-cli upload my-cool-dynamic-dataset data/ --every=10`,lang:"bash",wrap:!1}}),Te=new h({props:{title:"Specify a commit message",local:"specify-a-commit-message",headingTag:"h3"}}),ve=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwV2F1cGxpbiUyRm15LWNvb2wtZGF0YXNldCUyMC4lMkZkYXRhJTIwLiUyMC0tcmVwby10eXBlJTIwZGF0YXNldCUyMC0tY29tbWl0LW1lc3NhZ2UlM0QlMjJWZXJzaW9uJTIwMiUyMiUyMC0tY29tbWl0LWRlc2NyaXB0aW9uJTNEJTIyVHJhaW4lMjBzaXplJTNBJTIwNDMyMS4lMjBDaGVjayUyMERhdGFzZXQlMjBWaWV3ZXIlMjBmb3IlMjBtb3JlJTIwZGV0YWlscy4lMjI=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>huggingface-cli upload Wauplin/my-cool-dataset ./data . --repo-type dataset --commit-message=<span class="hljs-string">&quot;Version 2&quot;</span> --commit-description=<span class="hljs-string">&quot;Train size: 4321. Check Dataset Viewer for more details.&quot;</span>
...
https://huggingface.co/datasetsWauplin/my-cool-dataset/tree/main`,lang:"bash",wrap:!1}}),Ce=new h({props:{title:"Specify a token",local:"specify-a-token",headingTag:"h3"}}),Ue=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwV2F1cGxpbiUyRm15LWNvb2wtZGF0YXNldCUyMC4lMkZkYXRhJTIwLiUyMC0tcmVwby10eXBlJTIwZGF0YXNldCUyMC0tdG9rZW4lM0RoZl8qKioq",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>huggingface-cli upload Wauplin/my-cool-dataset ./data . --repo-type dataset --token=hf_****
...
https://huggingface.co/datasetsWauplin/my-cool-data/tree/main`,lang:"bash",wrap:!1}}),ke=new h({props:{title:"Quiet mode",local:"quiet-mode",headingTag:"h3"}}),Le=new c({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwdXBsb2FkJTIwV2F1cGxpbiUyRm15LWNvb2wtZGF0YXNldCUyMC4lMkZkYXRhJTIwLiUyMC0tcmVwby10eXBlJTIwZGF0YXNldCUyMC0tcXVpZXQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>huggingface-cli upload Wauplin/my-cool-dataset ./data . --repo-type dataset --quiet
https://huggingface.co/datasets/Wauplin/my-cool-dataset/tree/main`,lang:"bash",wrap:!1}}),Je=new h({props:{title:"Enjoy !",local:"enjoy-",headingTag:"h2"}}),He=new c({props:{code:"ZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJXYXVwbGluJTJGbXktY29vbC1kYXRhc2V0JTIyKQ==",highlighted:'<span class="hljs-attribute">dataset</span> <span class="hljs-operator">=</span> load_dataset(<span class="hljs-string">&quot;Wauplin/my-cool-dataset&quot;</span>)',lang:"",wrap:!1}}),je=new Ka({props:{source:"https://github.com/huggingface/datasets/blob/main/docs/source/share.mdx"}}),{c(){$=s("meta"),Ve=i(),_e=s("p"),Re=i(),p(b.$$.fragment),Be=i(),p(T.$$.fragment),Ne=i(),M=s("p"),M.textContent=fa,Pe=i(),v=s("p"),v.textContent=ra,Se=i(),C=s("ul"),C.innerHTML=ua,ze=i(),Z=s("p"),Z.textContent=ma,qe=i(),Ge=s("a"),Ee=i(),p(U.$$.fragment),Qe=i(),k=s("p"),k.textContent=ga,Ae=i(),x=s("p"),x.innerHTML=ca,De=i(),L=s("p"),L.innerHTML=ha,Oe=i(),J=s("p"),J.innerHTML=$a,Ke=i(),p(Y.$$.fragment),et=i(),H=s("p"),H.innerHTML=ya,tt=i(),X=s("ol"),X.innerHTML=wa,at=i(),p(I.$$.fragment),lt=i(),y=s("ol"),y.innerHTML=ba,it=i(),p(j.$$.fragment),nt=i(),G=s("p"),G.innerHTML=Ta,st=i(),p(_.$$.fragment),ot=i(),p(F.$$.fragment),pt=i(),W=s("p"),W.textContent=Ma,dt=i(),V=s("ul"),V.innerHTML=va,ft=i(),p(R.$$.fragment),rt=i(),B=s("p"),B.innerHTML=Ca,ut=i(),p(N.$$.fragment),mt=i(),P=s("p"),P.innerHTML=Za,gt=i(),p(S.$$.fragment),ct=i(),z=s("p"),z.textContent=Ua,ht=i(),p(q.$$.fragment),$t=i(),E=s("p"),E.textContent=ka,yt=i(),p(Q.$$.fragment),wt=i(),w=s("blockquote"),w.innerHTML=xa,bt=i(),A=s("p"),A.textContent=La,Tt=i(),p(D.$$.fragment),Mt=i(),O=s("p"),O.textContent=Ja,vt=i(),p(K.$$.fragment),Ct=i(),p(ee.$$.fragment),Zt=i(),te=s("p"),te.innerHTML=Ya,Ut=i(),p(ae.$$.fragment),kt=i(),le=s("p"),le.innerHTML=Ha,xt=i(),p(ie.$$.fragment),Lt=i(),p(ne.$$.fragment),Jt=i(),se=s("p"),se.innerHTML=Xa,Yt=i(),p(oe.$$.fragment),Ht=i(),p(pe.$$.fragment),Xt=i(),de=s("p"),de.innerHTML=Ia,It=i(),p(fe.$$.fragment),jt=i(),p(re.$$.fragment),Gt=i(),ue=s("p"),ue.innerHTML=ja,_t=i(),p(me.$$.fragment),Ft=i(),ge=s("p"),ge.innerHTML=Ga,Wt=i(),p(ce.$$.fragment),Vt=i(),he=s("p"),he.innerHTML=_a,Rt=i(),p($e.$$.fragment),Bt=i(),p(ye.$$.fragment),Nt=i(),we=s("p"),we.innerHTML=Fa,Pt=i(),p(be.$$.fragment),St=i(),p(Te.$$.fragment),zt=i(),Me=s("p"),Me.innerHTML=Wa,qt=i(),p(ve.$$.fragment),Et=i(),p(Ce.$$.fragment),Qt=i(),Ze=s("p"),Ze.innerHTML=Va,At=i(),p(Ue.$$.fragment),Dt=i(),p(ke.$$.fragment),Ot=i(),xe=s("p"),xe.innerHTML=Ra,Kt=i(),p(Le.$$.fragment),ea=i(),p(Je.$$.fragment),ta=i(),Ye=s("p"),Ye.textContent=Ba,aa=i(),p(He.$$.fragment),la=i(),Xe=s("p"),Xe.innerHTML=Na,ia=i(),Ie=s("p"),Ie.innerHTML=Pa,na=i(),p(je.$$.fragment),sa=i(),Fe=s("p"),this.h()},l(e){const t=Aa("svelte-u9bgzb",document.head);$=o(t,"META",{name:!0,content:!0}),t.forEach(a),Ve=n(e),_e=o(e,"P",{}),pa(_e).forEach(a),Re=n(e),d(b.$$.fragment,e),Be=n(e),d(T.$$.fragment,e),Ne=n(e),M=o(e,"P",{"data-svelte-h":!0}),g(M)!=="svelte-1m51ibv"&&(M.textContent=fa),Pe=n(e),v=o(e,"P",{"data-svelte-h":!0}),g(v)!=="svelte-gtv90y"&&(v.textContent=ra),Se=n(e),C=o(e,"UL",{"data-svelte-h":!0}),g(C)!=="svelte-pvnbyv"&&(C.innerHTML=ua),ze=n(e),Z=o(e,"P",{"data-svelte-h":!0}),g(Z)!=="svelte-13nemjh"&&(Z.textContent=ma),qe=n(e),Ge=o(e,"A",{id:!0}),pa(Ge).forEach(a),Ee=n(e),d(U.$$.fragment,e),Qe=n(e),k=o(e,"P",{"data-svelte-h":!0}),g(k)!=="svelte-1pfms5m"&&(k.textContent=ga),Ae=n(e),x=o(e,"P",{"data-svelte-h":!0}),g(x)!=="svelte-kh8f1y"&&(x.innerHTML=ca),De=n(e),L=o(e,"P",{"data-svelte-h":!0}),g(L)!=="svelte-a0upba"&&(L.innerHTML=ha),Oe=n(e),J=o(e,"P",{"data-svelte-h":!0}),g(J)!=="svelte-1plsdsl"&&(J.innerHTML=$a),Ke=n(e),d(Y.$$.fragment,e),et=n(e),H=o(e,"P",{"data-svelte-h":!0}),g(H)!=="svelte-4n3ovs"&&(H.innerHTML=ya),tt=n(e),X=o(e,"OL",{"data-svelte-h":!0}),g(X)!=="svelte-no58hj"&&(X.innerHTML=wa),at=n(e),d(I.$$.fragment,e),lt=n(e),y=o(e,"OL",{start:!0,"data-svelte-h":!0}),g(y)!=="svelte-1qvn5ax"&&(y.innerHTML=ba),it=n(e),d(j.$$.fragment,e),nt=n(e),G=o(e,"P",{"data-svelte-h":!0}),g(G)!=="svelte-16wjg87"&&(G.innerHTML=Ta),st=n(e),d(_.$$.fragment,e),ot=n(e),d(F.$$.fragment,e),pt=n(e),W=o(e,"P",{"data-svelte-h":!0}),g(W)!=="svelte-1c80e43"&&(W.textContent=Ma),dt=n(e),V=o(e,"UL",{"data-svelte-h":!0}),g(V)!=="svelte-khwg7p"&&(V.innerHTML=va),ft=n(e),d(R.$$.fragment,e),rt=n(e),B=o(e,"P",{"data-svelte-h":!0}),g(B)!=="svelte-jjlcdp"&&(B.innerHTML=Ca),ut=n(e),d(N.$$.fragment,e),mt=n(e),P=o(e,"P",{"data-svelte-h":!0}),g(P)!=="svelte-byural"&&(P.innerHTML=Za),gt=n(e),d(S.$$.fragment,e),ct=n(e),z=o(e,"P",{"data-svelte-h":!0}),g(z)!=="svelte-1lf6ab7"&&(z.textContent=Ua),ht=n(e),d(q.$$.fragment,e),$t=n(e),E=o(e,"P",{"data-svelte-h":!0}),g(E)!=="svelte-1qct02s"&&(E.textContent=ka),yt=n(e),d(Q.$$.fragment,e),wt=n(e),w=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),g(w)!=="svelte-1v46bff"&&(w.innerHTML=xa),bt=n(e),A=o(e,"P",{"data-svelte-h":!0}),g(A)!=="svelte-m60jhs"&&(A.textContent=La),Tt=n(e),d(D.$$.fragment,e),Mt=n(e),O=o(e,"P",{"data-svelte-h":!0}),g(O)!=="svelte-kcq38o"&&(O.textContent=Ja),vt=n(e),d(K.$$.fragment,e),Ct=n(e),d(ee.$$.fragment,e),Zt=n(e),te=o(e,"P",{"data-svelte-h":!0}),g(te)!=="svelte-1mpi1wt"&&(te.innerHTML=Ya),Ut=n(e),d(ae.$$.fragment,e),kt=n(e),le=o(e,"P",{"data-svelte-h":!0}),g(le)!=="svelte-1iulhrs"&&(le.innerHTML=Ha),xt=n(e),d(ie.$$.fragment,e),Lt=n(e),d(ne.$$.fragment,e),Jt=n(e),se=o(e,"P",{"data-svelte-h":!0}),g(se)!=="svelte-u96rz7"&&(se.innerHTML=Xa),Yt=n(e),d(oe.$$.fragment,e),Ht=n(e),d(pe.$$.fragment,e),Xt=n(e),de=o(e,"P",{"data-svelte-h":!0}),g(de)!=="svelte-1xth5d1"&&(de.innerHTML=Ia),It=n(e),d(fe.$$.fragment,e),jt=n(e),d(re.$$.fragment,e),Gt=n(e),ue=o(e,"P",{"data-svelte-h":!0}),g(ue)!=="svelte-1l1ub93"&&(ue.innerHTML=ja),_t=n(e),d(me.$$.fragment,e),Ft=n(e),ge=o(e,"P",{"data-svelte-h":!0}),g(ge)!=="svelte-1eodha9"&&(ge.innerHTML=Ga),Wt=n(e),d(ce.$$.fragment,e),Vt=n(e),he=o(e,"P",{"data-svelte-h":!0}),g(he)!=="svelte-1mne3q7"&&(he.innerHTML=_a),Rt=n(e),d($e.$$.fragment,e),Bt=n(e),d(ye.$$.fragment,e),Nt=n(e),we=o(e,"P",{"data-svelte-h":!0}),g(we)!=="svelte-yvhlho"&&(we.innerHTML=Fa),Pt=n(e),d(be.$$.fragment,e),St=n(e),d(Te.$$.fragment,e),zt=n(e),Me=o(e,"P",{"data-svelte-h":!0}),g(Me)!=="svelte-14b5hg3"&&(Me.innerHTML=Wa),qt=n(e),d(ve.$$.fragment,e),Et=n(e),d(Ce.$$.fragment,e),Qt=n(e),Ze=o(e,"P",{"data-svelte-h":!0}),g(Ze)!=="svelte-10ws7e3"&&(Ze.innerHTML=Va),At=n(e),d(Ue.$$.fragment,e),Dt=n(e),d(ke.$$.fragment,e),Ot=n(e),xe=o(e,"P",{"data-svelte-h":!0}),g(xe)!=="svelte-1fep28f"&&(xe.innerHTML=Ra),Kt=n(e),d(Le.$$.fragment,e),ea=n(e),d(Je.$$.fragment,e),ta=n(e),Ye=o(e,"P",{"data-svelte-h":!0}),g(Ye)!=="svelte-1ozhy9p"&&(Ye.textContent=Ba),aa=n(e),d(He.$$.fragment,e),la=n(e),Xe=o(e,"P",{"data-svelte-h":!0}),g(Xe)!=="svelte-1rs5lv"&&(Xe.innerHTML=Na),ia=n(e),Ie=o(e,"P",{"data-svelte-h":!0}),g(Ie)!=="svelte-i3t8dc"&&(Ie.innerHTML=Pa),na=n(e),d(je.$$.fragment,e),sa=n(e),Fe=o(e,"P",{}),pa(Fe).forEach(a),this.h()},h(){We($,"name","hf:doc:metadata"),We($,"content",tl),We(Ge,"id","upload_dataset_repo"),We(y,"start","2"),We(w,"class","tip")},m(e,t){Da(document.head,$),l(e,Ve,t),l(e,_e,t),l(e,Re,t),f(b,e,t),l(e,Be,t),f(T,e,t),l(e,Ne,t),l(e,M,t),l(e,Pe,t),l(e,v,t),l(e,Se,t),l(e,C,t),l(e,ze,t),l(e,Z,t),l(e,qe,t),l(e,Ge,t),l(e,Ee,t),f(U,e,t),l(e,Qe,t),l(e,k,t),l(e,Ae,t),l(e,x,t),l(e,De,t),l(e,L,t),l(e,Oe,t),l(e,J,t),l(e,Ke,t),f(Y,e,t),l(e,et,t),l(e,H,t),l(e,tt,t),l(e,X,t),l(e,at,t),f(I,e,t),l(e,lt,t),l(e,y,t),l(e,it,t),f(j,e,t),l(e,nt,t),l(e,G,t),l(e,st,t),f(_,e,t),l(e,ot,t),f(F,e,t),l(e,pt,t),l(e,W,t),l(e,dt,t),l(e,V,t),l(e,ft,t),f(R,e,t),l(e,rt,t),l(e,B,t),l(e,ut,t),f(N,e,t),l(e,mt,t),l(e,P,t),l(e,gt,t),f(S,e,t),l(e,ct,t),l(e,z,t),l(e,ht,t),f(q,e,t),l(e,$t,t),l(e,E,t),l(e,yt,t),f(Q,e,t),l(e,wt,t),l(e,w,t),l(e,bt,t),l(e,A,t),l(e,Tt,t),f(D,e,t),l(e,Mt,t),l(e,O,t),l(e,vt,t),f(K,e,t),l(e,Ct,t),f(ee,e,t),l(e,Zt,t),l(e,te,t),l(e,Ut,t),f(ae,e,t),l(e,kt,t),l(e,le,t),l(e,xt,t),f(ie,e,t),l(e,Lt,t),f(ne,e,t),l(e,Jt,t),l(e,se,t),l(e,Yt,t),f(oe,e,t),l(e,Ht,t),f(pe,e,t),l(e,Xt,t),l(e,de,t),l(e,It,t),f(fe,e,t),l(e,jt,t),f(re,e,t),l(e,Gt,t),l(e,ue,t),l(e,_t,t),f(me,e,t),l(e,Ft,t),l(e,ge,t),l(e,Wt,t),f(ce,e,t),l(e,Vt,t),l(e,he,t),l(e,Rt,t),f($e,e,t),l(e,Bt,t),f(ye,e,t),l(e,Nt,t),l(e,we,t),l(e,Pt,t),f(be,e,t),l(e,St,t),f(Te,e,t),l(e,zt,t),l(e,Me,t),l(e,qt,t),f(ve,e,t),l(e,Et,t),f(Ce,e,t),l(e,Qt,t),l(e,Ze,t),l(e,At,t),f(Ue,e,t),l(e,Dt,t),f(ke,e,t),l(e,Ot,t),l(e,xe,t),l(e,Kt,t),f(Le,e,t),l(e,ea,t),f(Je,e,t),l(e,ta,t),l(e,Ye,t),l(e,aa,t),f(He,e,t),l(e,la,t),l(e,Xe,t),l(e,ia,t),l(e,Ie,t),l(e,na,t),f(je,e,t),l(e,sa,t),l(e,Fe,t),oa=!0},p:za,i(e){oa||(r(b.$$.fragment,e),r(T.$$.fragment,e),r(U.$$.fragment,e),r(Y.$$.fragment,e),r(I.$$.fragment,e),r(j.$$.fragment,e),r(_.$$.fragment,e),r(F.$$.fragment,e),r(R.$$.fragment,e),r(N.$$.fragment,e),r(S.$$.fragment,e),r(q.$$.fragment,e),r(Q.$$.fragment,e),r(D.$$.fragment,e),r(K.$$.fragment,e),r(ee.$$.fragment,e),r(ae.$$.fragment,e),r(ie.$$.fragment,e),r(ne.$$.fragment,e),r(oe.$$.fragment,e),r(pe.$$.fragment,e),r(fe.$$.fragment,e),r(re.$$.fragment,e),r(me.$$.fragment,e),r(ce.$$.fragment,e),r($e.$$.fragment,e),r(ye.$$.fragment,e),r(be.$$.fragment,e),r(Te.$$.fragment,e),r(ve.$$.fragment,e),r(Ce.$$.fragment,e),r(Ue.$$.fragment,e),r(ke.$$.fragment,e),r(Le.$$.fragment,e),r(Je.$$.fragment,e),r(He.$$.fragment,e),r(je.$$.fragment,e),oa=!0)},o(e){u(b.$$.fragment,e),u(T.$$.fragment,e),u(U.$$.fragment,e),u(Y.$$.fragment,e),u(I.$$.fragment,e),u(j.$$.fragment,e),u(_.$$.fragment,e),u(F.$$.fragment,e),u(R.$$.fragment,e),u(N.$$.fragment,e),u(S.$$.fragment,e),u(q.$$.fragment,e),u(Q.$$.fragment,e),u(D.$$.fragment,e),u(K.$$.fragment,e),u(ee.$$.fragment,e),u(ae.$$.fragment,e),u(ie.$$.fragment,e),u(ne.$$.fragment,e),u(oe.$$.fragment,e),u(pe.$$.fragment,e),u(fe.$$.fragment,e),u(re.$$.fragment,e),u(me.$$.fragment,e),u(ce.$$.fragment,e),u($e.$$.fragment,e),u(ye.$$.fragment,e),u(be.$$.fragment,e),u(Te.$$.fragment,e),u(ve.$$.fragment,e),u(Ce.$$.fragment,e),u(Ue.$$.fragment,e),u(ke.$$.fragment,e),u(Le.$$.fragment,e),u(Je.$$.fragment,e),u(He.$$.fragment,e),u(je.$$.fragment,e),oa=!1},d(e){e&&(a(Ve),a(_e),a(Re),a(Be),a(Ne),a(M),a(Pe),a(v),a(Se),a(C),a(ze),a(Z),a(qe),a(Ge),a(Ee),a(Qe),a(k),a(Ae),a(x),a(De),a(L),a(Oe),a(J),a(Ke),a(et),a(H),a(tt),a(X),a(at),a(lt),a(y),a(it),a(nt),a(G),a(st),a(ot),a(pt),a(W),a(dt),a(V),a(ft),a(rt),a(B),a(ut),a(mt),a(P),a(gt),a(ct),a(z),a(ht),a($t),a(E),a(yt),a(wt),a(w),a(bt),a(A),a(Tt),a(Mt),a(O),a(vt),a(Ct),a(Zt),a(te),a(Ut),a(kt),a(le),a(xt),a(Lt),a(Jt),a(se),a(Yt),a(Ht),a(Xt),a(de),a(It),a(jt),a(Gt),a(ue),a(_t),a(Ft),a(ge),a(Wt),a(Vt),a(he),a(Rt),a(Bt),a(Nt),a(we),a(Pt),a(St),a(zt),a(Me),a(qt),a(Et),a(Qt),a(Ze),a(At),a(Dt),a(Ot),a(xe),a(Kt),a(ea),a(ta),a(Ye),a(aa),a(la),a(Xe),a(ia),a(Ie),a(na),a(sa),a(Fe)),a($),m(b,e),m(T,e),m(U,e),m(Y,e),m(I,e),m(j,e),m(_,e),m(F,e),m(R,e),m(N,e),m(S,e),m(q,e),m(Q,e),m(D,e),m(K,e),m(ee,e),m(ae,e),m(ie,e),m(ne,e),m(oe,e),m(pe,e),m(fe,e),m(re,e),m(me,e),m(ce,e),m($e,e),m(ye,e),m(be,e),m(Te,e),m(ve,e),m(Ce,e),m(Ue,e),m(ke,e),m(Le,e),m(Je,e),m(He,e),m(je,e)}}}const tl='{"title":"Share a dataset using the CLI","local":"share-a-dataset-using-the-cli","sections":[{"title":"Add a dataset","local":"add-a-dataset","sections":[{"title":"Create the repository","local":"create-the-repository","sections":[],"depth":3}],"depth":2},{"title":"Prepare your files","local":"prepare-your-files","sections":[],"depth":2},{"title":"huggingface-cli upload","local":"huggingface-cli-upload","sections":[{"title":"Upload an entire folder","local":"upload-an-entire-folder","sections":[],"depth":3},{"title":"Upload a single file","local":"upload-a-single-file","sections":[],"depth":3},{"title":"Upload multiple files","local":"upload-multiple-files","sections":[],"depth":3},{"title":"Upload to an organization","local":"upload-to-an-organization","sections":[],"depth":3},{"title":"Upload to a specific revision","local":"upload-to-a-specific-revision","sections":[],"depth":3},{"title":"Upload and create a PR","local":"upload-and-create-a-pr","sections":[],"depth":3},{"title":"Upload at regular intervals","local":"upload-at-regular-intervals","sections":[],"depth":3},{"title":"Specify a commit message","local":"specify-a-commit-message","sections":[],"depth":3},{"title":"Specify a token","local":"specify-a-token","sections":[],"depth":3},{"title":"Quiet mode","local":"quiet-mode","sections":[],"depth":3}],"depth":2},{"title":"Enjoy !","local":"enjoy-","sections":[],"depth":2}],"depth":1}';function al(da){return qa(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ol extends Ea{constructor($){super(),Qa(this,$,al,el,Sa,{})}}export{ol as component};

Xet Storage Details

Size:
29 kB
·
Xet hash:
710fda05ca6f6e4215d2473c98611e8fa0a61af1ff270af9c5bc575819973d30

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.