import{s as Vs,o as Xs,n as As}from"../chunks/scheduler.cc52f4b9.js";import{S as Rs,i as Ys,e as p,s,c as b,h as Qs,a as u,d as l,b as a,f as Ls,g as M,j as m,k as W,l as Ss,m as i,n as g,o as d,E as ee,t as h,p as w,q as Fs,r as Es,F as te}from"../chunks/index.5b747fde.js";import{T as Ns}from"../chunks/Tip.f0925d57.js";import{C as Ps,H as re,E as qs}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.d38ac5a9.js";import{Y as Sn}from"../chunks/Youtube.8bb4154e.js";import{C as $}from"../chunks/CodeBlock.665bfc37.js";import{C as zs}from"../chunks/CourseFloatingBanner.b33fcd79.js";import{F as Ds}from"../chunks/FrameworkSwitchCourse.b3b657b3.js";function Os(_){let n,r;return n=new zs({props:{chapter:4,classNames:"absolute z-10 right-0 top-0",notebooks:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/en/chapter4/section3_tf.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/en/chapter4/section3_tf.ipynb"}]}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,c){g(n,o,c),r=!0},i(o){r||(h(n.$$.fragment,o),r=!0)},o(o){d(n.$$.fragment,o),r=!1},d(o){w(n,o)}}}function Ks(_){let n,r;return n=new zs({props:{chapter:4,classNames:"absolute z-10 right-0 top-0",notebooks:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/en/chapter4/section3_pt.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/en/chapter4/section3_pt.ipynb"}]}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,c){g(n,o,c),r=!0},i(o){r||(h(n.$$.fragment,o),r=!0)},o(o){d(n.$$.fragment,o),r=!1},d(o){w(n,o)}}}function ea(_){let n,r;return n=new Sn({props:{id:"pUh5cGmNV8Y"}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,c){g(n,o,c),r=!0},i(o){r||(h(n.$$.fragment,o),r=!0)},o(o){d(n.$$.fragment,o),r=!1},d(o){w(n,o)}}}function ta(_){let n,r;return n=new Sn({props:{id:"Zh0FfmVrKX0"}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,c){g(n,o,c),r=!0},i(o){r||(h(n.$$.fragment,o),r=!0)},o(o){d(n.$$.fragment,o),r=!1},d(o){w(n,o)}}}function la(_){let n,r="If you are using Keras to train your model, the easiest way to upload it to the Hub is to pass along a <code>PushToHubCallback</code> when you call <code>model.fit()</code>:",o,c,v,f,T="Then you should add <code>callbacks=[callback]</code> in your call to <code>model.fit()</code>. The callback will then upload your model to the Hub each time it is saved (here every epoch) in a repository in your namespace. That repository will be named like the output directory you picked (here <code>bert-finetuned-mrpc</code>) but you can choose a different name with <code>hub_model_id = &quot;a_different_name&quot;</code>.",C,U,J="To upload you model to an organization you are a member of, just pass it with <code>hub_model_id = &quot;my_organization/my_repo_name&quot;</code>.",Z;return c=new $({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFB1c2hUb0h1YkNhbGxiYWNrJTBBJTBBY2FsbGJhY2slMjAlM0QlMjBQdXNoVG9IdWJDYWxsYmFjayglMEElMjAlMjAlMjAlMjAlMjJiZXJ0LWZpbmV0dW5lZC1tcnBjJTIyJTJDJTIwc2F2ZV9zdHJhdGVneSUzRCUyMmVwb2NoJTIyJTJDJTIwdG9rZW5pemVyJTNEdG9rZW5pemVyJTBBKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PushToHubCallback

callback = PushToHubCallback(
    <span class="hljs-string">&quot;bert-finetuned-mrpc&quot;</span>, save_strategy=<span class="hljs-string">&quot;epoch&quot;</span>, tokenizer=tokenizer
)`,wrap:!1}}),{c(){n=p("p"),n.innerHTML=r,o=s(),b(c.$$.fragment),v=s(),f=p("p"),f.innerHTML=T,C=s(),U=p("p"),U.innerHTML=J},l(y){n=u(y,"P",{"data-svelte-h":!0}),m(n)!=="svelte-1lt55a0"&&(n.innerHTML=r),o=a(y),M(c.$$.fragment,y),v=a(y),f=u(y,"P",{"data-svelte-h":!0}),m(f)!=="svelte-1koxui"&&(f.innerHTML=T),C=a(y),U=u(y,"P",{"data-svelte-h":!0}),m(U)!=="svelte-f8xwvf"&&(U.innerHTML=J)},m(y,j){i(y,n,j),i(y,o,j),g(c,y,j),i(y,v,j),i(y,f,j),i(y,C,j),i(y,U,j),Z=!0},i(y){Z||(h(c.$$.fragment,y),Z=!0)},o(y){d(c.$$.fragment,y),Z=!1},d(y){y&&(l(n),l(o),l(v),l(f),l(C),l(U)),w(c,y)}}}function ia(_){let n,r="If you have played around with the <code>Trainer</code> API to train a model, the easiest way to upload it to the Hub is to set <code>push_to_hub=True</code> when you define your <code>TrainingArguments</code>:",o,c,v,f,T="When you call <code>trainer.train()</code>, the <code>Trainer</code> will then upload your model to the Hub each time it is saved (here every epoch) in a repository in your namespace. That repository will be named like the output directory you picked (here <code>bert-finetuned-mrpc</code>) but you can choose a different name with <code>hub_model_id = &quot;a_different_name&quot;</code>.",C,U,J="To upload your model to an organization you are a member of, just pass it with <code>hub_model_id = &quot;my_organization/my_repo_name&quot;</code>.",Z,y,j="Once your training is finished, you should do a final <code>trainer.push_to_hub()</code> to upload the last version of your model. It will also generate a model card with all the relevant metadata, reporting the hyperparameters used and the evaluation results! Here is an example of the content you might find in a such a model card:",B,I,pe='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/model_card.png" alt="An example of an auto-generated model card." width="100%"/>',x;return c=new $({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBdHJhaW5pbmdfYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUwQSUyMCUyMCUyMCUyMCUyMmJlcnQtZmluZXR1bmVkLW1ycGMlMjIlMkMlMjBzYXZlX3N0cmF0ZWd5JTNEJTIyZXBvY2glMjIlMkMlMjBwdXNoX3RvX2h1YiUzRFRydWUlMEEp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

training_args = TrainingArguments(
    <span class="hljs-string">&quot;bert-finetuned-mrpc&quot;</span>, save_strategy=<span class="hljs-string">&quot;epoch&quot;</span>, push_to_hub=<span class="hljs-literal">True</span>
)`,wrap:!1}}),{c(){n=p("p"),n.innerHTML=r,o=s(),b(c.$$.fragment),v=s(),f=p("p"),f.innerHTML=T,C=s(),U=p("p"),U.innerHTML=J,Z=s(),y=p("p"),y.innerHTML=j,B=s(),I=p("div"),I.innerHTML=pe,this.h()},l(k){n=u(k,"P",{"data-svelte-h":!0}),m(n)!=="svelte-hqpw93"&&(n.innerHTML=r),o=a(k),M(c.$$.fragment,k),v=a(k),f=u(k,"P",{"data-svelte-h":!0}),m(f)!=="svelte-f1gbgd"&&(f.innerHTML=T),C=a(k),U=u(k,"P",{"data-svelte-h":!0}),m(U)!=="svelte-123gl5x"&&(U.innerHTML=J),Z=a(k),y=u(k,"P",{"data-svelte-h":!0}),m(y)!=="svelte-7btvjn"&&(y.innerHTML=j),B=a(k),I=u(k,"DIV",{class:!0,"data-svelte-h":!0}),m(I)!=="svelte-1lhrimn"&&(I.innerHTML=pe),this.h()},h(){W(I,"class","flex justify-center")},m(k,G){i(k,n,G),i(k,o,G),g(c,k,G),i(k,v,G),i(k,f,G),i(k,C,G),i(k,U,G),i(k,Z,G),i(k,y,G),i(k,B,G),i(k,I,G),x=!0},i(k){x||(h(c.$$.fragment,k),x=!0)},o(k){d(c.$$.fragment,k),x=!1},d(k){k&&(l(n),l(o),l(v),l(f),l(C),l(U),l(Z),l(y),l(B),l(I)),w(c,k)}}}function na(_){let n,r;return n=new $({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGQXV0b01vZGVsRm9yTWFza2VkTE0lMkMlMjBBdXRvVG9rZW5pemVyJTBBJTBBY2hlY2twb2ludCUyMCUzRCUyMCUyMmNhbWVtYmVydC1iYXNlJTIyJTBBJTBBbW9kZWwlMjAlM0QlMjBURkF1dG9Nb2RlbEZvck1hc2tlZExNLmZyb21fcHJldHJhaW5lZChjaGVja3BvaW50KSUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKGNoZWNrcG9pbnQp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TFAutoModelForMaskedLM, AutoTokenizer

checkpoint = <span class="hljs-string">&quot;camembert-base&quot;</span>

model = TFAutoModelForMaskedLM.from_pretrained(checkpoint)
tokenizer = AutoTokenizer.from_pretrained(checkpoint)`,wrap:!1}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,c){g(n,o,c),r=!0},i(o){r||(h(n.$$.fragment,o),r=!0)},o(o){d(n.$$.fragment,o),r=!1},d(o){w(n,o)}}}function oa(_){let n,r;return n=new $({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvck1hc2tlZExNJTJDJTIwQXV0b1Rva2VuaXplciUwQSUwQWNoZWNrcG9pbnQlMjAlM0QlMjAlMjJjYW1lbWJlcnQtYmFzZSUyMiUwQSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yTWFza2VkTE0uZnJvbV9wcmV0cmFpbmVkKGNoZWNrcG9pbnQpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoY2hlY2twb2ludCk=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForMaskedLM, AutoTokenizer

checkpoint = <span class="hljs-string">&quot;camembert-base&quot;</span>

model = AutoModelForMaskedLM.from_pretrained(checkpoint)
tokenizer = AutoTokenizer.from_pretrained(checkpoint)`,wrap:!1}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,c){g(n,o,c),r=!0},i(o){r||(h(n.$$.fragment,o),r=!0)},o(o){d(n.$$.fragment,o),r=!1},d(o){w(n,o)}}}function sa(_){let n,r='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/push_to_hub_dummy_model_tf.png" alt="Dummy model containing both the tokenizer and model files." width="80%"/>';return{c(){n=p("div"),n.innerHTML=r,this.h()},l(o){n=u(o,"DIV",{class:!0,"data-svelte-h":!0}),m(n)!=="svelte-5a3kk0"&&(n.innerHTML=r),this.h()},h(){W(n,"class","flex justify-center")},m(o,c){i(o,n,c)},d(o){o&&l(n)}}}function aa(_){let n,r='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/push_to_hub_dummy_model.png" alt="Dummy model containing both the tokenizer and model files." width="80%"/>';return{c(){n=p("div"),n.innerHTML=r,this.h()},l(o){n=u(o,"DIV",{class:!0,"data-svelte-h":!0}),m(n)!=="svelte-19u1vyv"&&(n.innerHTML=r),this.h()},h(){W(n,"class","flex justify-center")},m(o,c){i(o,n,c)},d(o){o&&l(n)}}}function ra(_){let n,r="✏️ <strong>Try it out!</strong> Take the model and tokenizer associated with the <code>bert-base-cased</code> checkpoint and upload them to a repo in your namespace using the <code>push_to_hub()</code> method. Double-check that the repo appears properly on your page before deleting it.";return{c(){n=p("p"),n.innerHTML=r},l(o){n=u(o,"P",{"data-svelte-h":!0}),m(n)!=="svelte-ns8n6q"&&(n.innerHTML=r)},m(o,c){i(o,n,c)},p:As,d(o){o&&l(n)}}}function pa(_){let n,r;return n=new $({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGQXV0b01vZGVsRm9yTWFza2VkTE0lMkMlMjBBdXRvVG9rZW5pemVyJTBBJTBBY2hlY2twb2ludCUyMCUzRCUyMCUyMmNhbWVtYmVydC1iYXNlJTIyJTBBJTBBbW9kZWwlMjAlM0QlMjBURkF1dG9Nb2RlbEZvck1hc2tlZExNLmZyb21fcHJldHJhaW5lZChjaGVja3BvaW50KSUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKGNoZWNrcG9pbnQpJTBBJTBBJTIzJTIwRG8lMjB3aGF0ZXZlciUyMHdpdGglMjB0aGUlMjBtb2RlbCUyQyUyMHRyYWluJTIwaXQlMkMlMjBmaW5lLXR1bmUlMjBpdC4uLiUwQSUwQW1vZGVsLnNhdmVfcHJldHJhaW5lZCglMjIlM0NwYXRoX3RvX2R1bW15X2ZvbGRlciUzRSUyMiklMEF0b2tlbml6ZXIuc2F2ZV9wcmV0cmFpbmVkKCUyMiUzQ3BhdGhfdG9fZHVtbXlfZm9sZGVyJTNFJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TFAutoModelForMaskedLM, AutoTokenizer

checkpoint = <span class="hljs-string">&quot;camembert-base&quot;</span>

model = TFAutoModelForMaskedLM.from_pretrained(checkpoint)
tokenizer = AutoTokenizer.from_pretrained(checkpoint)

<span class="hljs-comment"># Do whatever with the model, train it, fine-tune it...</span>

model.save_pretrained(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>)
tokenizer.save_pretrained(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>)`,wrap:!1}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,c){g(n,o,c),r=!0},i(o){r||(h(n.$$.fragment,o),r=!0)},o(o){d(n.$$.fragment,o),r=!1},d(o){w(n,o)}}}function ua(_){let n,r;return n=new $({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvck1hc2tlZExNJTJDJTIwQXV0b1Rva2VuaXplciUwQSUwQWNoZWNrcG9pbnQlMjAlM0QlMjAlMjJjYW1lbWJlcnQtYmFzZSUyMiUwQSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yTWFza2VkTE0uZnJvbV9wcmV0cmFpbmVkKGNoZWNrcG9pbnQpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoY2hlY2twb2ludCklMEElMEElMjMlMjBEbyUyMHdoYXRldmVyJTIwd2l0aCUyMHRoZSUyMG1vZGVsJTJDJTIwdHJhaW4lMjBpdCUyQyUyMGZpbmUtdHVuZSUyMGl0Li4uJTBBJTBBbW9kZWwuc2F2ZV9wcmV0cmFpbmVkKCUyMiUzQ3BhdGhfdG9fZHVtbXlfZm9sZGVyJTNFJTIyKSUwQXRva2VuaXplci5zYXZlX3ByZXRyYWluZWQoJTIyJTNDcGF0aF90b19kdW1teV9mb2xkZXIlM0UlMjIp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForMaskedLM, AutoTokenizer

checkpoint = <span class="hljs-string">&quot;camembert-base&quot;</span>

model = AutoModelForMaskedLM.from_pretrained(checkpoint)
tokenizer = AutoTokenizer.from_pretrained(checkpoint)

<span class="hljs-comment"># Do whatever with the model, train it, fine-tune it...</span>

model.save_pretrained(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>)
tokenizer.save_pretrained(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>)`,wrap:!1}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,c){g(n,o,c),r=!0},i(o){r||(h(n.$$.fragment,o),r=!0)},o(o){d(n.$$.fragment,o),r=!1},d(o){w(n,o)}}}function ma(_){let n,r,o,c="If you look at the file sizes (for example, with <code>ls -lh</code>), you should see that the model state dict file (<em>t5_model.h5</em>) is the only outlier, at more than 400 MB.",v;return n=new $({props:{code:"Y29uZmlnLmpzb24lMjAlMjBSRUFETUUubWQlMjAlMjBzZW50ZW5jZXBpZWNlLmJwZS5tb2RlbCUyMCUyMHNwZWNpYWxfdG9rZW5zX21hcC5qc29uJTIwJTIwdGZfbW9kZWwuaDUlMjAlMjB0b2tlbml6ZXJfY29uZmlnLmpzb24lMjAlMjB0b2tlbml6ZXIuanNvbg==",highlighted:"config.json  README.md  sentencepiece.bpe.model  special_tokens_map.json  tf_model.h5  tokenizer_config.json  tokenizer.json",wrap:!1}}),{c(){b(n.$$.fragment),r=s(),o=p("p"),o.innerHTML=c},l(f){M(n.$$.fragment,f),r=a(f),o=u(f,"P",{"data-svelte-h":!0}),m(o)!=="svelte-1sqai1o"&&(o.innerHTML=c)},m(f,T){g(n,f,T),i(f,r,T),i(f,o,T),v=!0},i(f){v||(h(n.$$.fragment,f),v=!0)},o(f){d(n.$$.fragment,f),v=!1},d(f){f&&(l(r),l(o)),w(n,f)}}}function fa(_){let n,r,o,c="If you look at the file sizes (for example, with <code>ls -lh</code>), you should see that the model state dict file (<em>pytorch_model.bin</em>) is the only outlier, at more than 400 MB.",v;return n=new $({props:{code:"Y29uZmlnLmpzb24lMjAlMjBweXRvcmNoX21vZGVsLmJpbiUyMCUyMFJFQURNRS5tZCUyMCUyMHNlbnRlbmNlcGllY2UuYnBlLm1vZGVsJTIwJTIwc3BlY2lhbF90b2tlbnNfbWFwLmpzb24lMjB0b2tlbml6ZXJfY29uZmlnLmpzb24lMjAlMjB0b2tlbml6ZXIuanNvbg==",highlighted:"config.json  pytorch_model.bin  README.md  sentencepiece.bpe.model  special_tokens_map.json tokenizer_config.json  tokenizer.json",wrap:!1}}),{c(){b(n.$$.fragment),r=s(),o=p("p"),o.innerHTML=c},l(f){M(n.$$.fragment,f),r=a(f),o=u(f,"P",{"data-svelte-h":!0}),m(o)!=="svelte-174jxm4"&&(o.innerHTML=c)},m(f,T){g(n,f,T),i(f,r,T),i(f,o,T),v=!0},i(f){v||(h(n.$$.fragment,f),v=!0)},o(f){d(n.$$.fragment,f),v=!1},d(f){f&&(l(r),l(o)),w(n,f)}}}function ca(_){let n;return{c(){n=Fs("✏️ When creating the repository from the web interface, the *.gitattributes* file is automatically set up to consider files with certain extensions, such as *.bin* and *.h5*, as large files, and git-lfs will track them with no necessary setup on your side.")},l(r){n=Es(r,"✏️ When creating the repository from the web interface, the *.gitattributes* file is automatically set up to consider files with certain extensions, such as *.bin* and *.h5*, as large files, and git-lfs will track them with no necessary setup on your side.")},m(r,o){i(r,n,o)},d(r){r&&l(n)}}}function da(_){let n,r;return n=new $({props:{code:"T24lMjBicmFuY2glMjBtYWluJTBBWW91ciUyMGJyYW5jaCUyMGlzJTIwdXAlMjB0byUyMGRhdGUlMjB3aXRoJTIwJ29yaWdpbiUyRm1haW4nLiUwQSUwQUNoYW5nZXMlMjB0byUyMGJlJTIwY29tbWl0dGVkJTNBJTBBJTIwJTIwKHVzZSUyMCUyMmdpdCUyMHJlc3RvcmUlMjAtLXN0YWdlZCUyMCUzQ2ZpbGUlM0UuLi4lMjIlMjB0byUyMHVuc3RhZ2UpJTBBJTIwJTIwbW9kaWZpZWQlM0ElMjAlMjAlMjAuZ2l0YXR0cmlidXRlcyUwQSUyMCUyMCUwOW5ldyUyMGZpbGUlM0ElMjAlMjAlMjBjb25maWcuanNvbiUwQSUwOW5ldyUyMGZpbGUlM0ElMjAlMjAlMjBzZW50ZW5jZXBpZWNlLmJwZS5tb2RlbCUwQSUwOW5ldyUyMGZpbGUlM0ElMjAlMjAlMjBzcGVjaWFsX3Rva2Vuc19tYXAuanNvbiUwQSUwOW5ldyUyMGZpbGUlM0ElMjAlMjAlMjB0Zl9tb2RlbC5oNSUwQSUwOW5ldyUyMGZpbGUlM0ElMjAlMjAlMjB0b2tlbml6ZXIuanNvbiUwQSUwOW5ldyUyMGZpbGUlM0ElMjAlMjAlMjB0b2tlbml6ZXJfY29uZmlnLmpzb24=",highlighted:`On branch main
Your branch is up to <span class="hljs-built_in">date</span> with <span class="hljs-string">&#x27;origin/main&#x27;</span>.

Changes to be committed:
  (use <span class="hljs-string">&quot;git restore --staged &lt;file&gt;...&quot;</span> to unstage)
  modified:   .gitattributes
  	new file:   config.json
	new file:   sentencepiece.bpe.model
	new file:   special_tokens_map.json
	new file:   tf_model.h5
	new file:   tokenizer.json
	new file:   tokenizer_config.json`,wrap:!1}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,c){g(n,o,c),r=!0},i(o){r||(h(n.$$.fragment,o),r=!0)},o(o){d(n.$$.fragment,o),r=!1},d(o){w(n,o)}}}function ha(_){let n,r;return n=new $({props:{code:"T24lMjBicmFuY2glMjBtYWluJTBBWW91ciUyMGJyYW5jaCUyMGlzJTIwdXAlMjB0byUyMGRhdGUlMjB3aXRoJTIwJ29yaWdpbiUyRm1haW4nLiUwQSUwQUNoYW5nZXMlMjB0byUyMGJlJTIwY29tbWl0dGVkJTNBJTBBJTIwJTIwKHVzZSUyMCUyMmdpdCUyMHJlc3RvcmUlMjAtLXN0YWdlZCUyMCUzQ2ZpbGUlM0UuLi4lMjIlMjB0byUyMHVuc3RhZ2UpJTBBJTIwJTIwbW9kaWZpZWQlM0ElMjAlMjAlMjAuZ2l0YXR0cmlidXRlcyUwQSUwOW5ldyUyMGZpbGUlM0ElMjAlMjAlMjBjb25maWcuanNvbiUwQSUwOW5ldyUyMGZpbGUlM0ElMjAlMjAlMjBweXRvcmNoX21vZGVsLmJpbiUwQSUwOW5ldyUyMGZpbGUlM0ElMjAlMjAlMjBzZW50ZW5jZXBpZWNlLmJwZS5tb2RlbCUwQSUwOW5ldyUyMGZpbGUlM0ElMjAlMjAlMjBzcGVjaWFsX3Rva2Vuc19tYXAuanNvbiUwQSUwOW5ldyUyMGZpbGUlM0ElMjAlMjAlMjB0b2tlbml6ZXIuanNvbiUwQSUwOW5ldyUyMGZpbGUlM0ElMjAlMjAlMjB0b2tlbml6ZXJfY29uZmlnLmpzb24=",highlighted:`On branch main
Your branch is up to <span class="hljs-built_in">date</span> with <span class="hljs-string">&#x27;origin/main&#x27;</span>.

Changes to be committed:
  (use <span class="hljs-string">&quot;git restore --staged &lt;file&gt;...&quot;</span> to unstage)
  modified:   .gitattributes
	new file:   config.json
	new file:   pytorch_model.bin
	new file:   sentencepiece.bpe.model
	new file:   special_tokens_map.json
	new file:   tokenizer.json
	new file:   tokenizer_config.json`,wrap:!1}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,c){g(n,o,c),r=!0},i(o){r||(h(n.$$.fragment,o),r=!0)},o(o){d(n.$$.fragment,o),r=!1},d(o){w(n,o)}}}function ya(_){let n,r,o,c="We can see that all files have <code>Git</code> as a handler, except <em>t5_model.h5</em>, which has <code>LFS</code>. Great!",v;return n=new $({props:{code:"T24lMjBicmFuY2glMjBtYWluJTBBT2JqZWN0cyUyMHRvJTIwYmUlMjBwdXNoZWQlMjB0byUyMG9yaWdpbiUyRm1haW4lM0ElMEElMEElMEFPYmplY3RzJTIwdG8lMjBiZSUyMGNvbW1pdHRlZCUzQSUwQSUwQSUwOWNvbmZpZy5qc29uJTIwKEdpdCUzQSUyMGJjMjBmZjIpJTBBJTA5c2VudGVuY2VwaWVjZS5icGUubW9kZWwlMjAoTEZTJTNBJTIwOTg4YmM1YSklMEElMDlzcGVjaWFsX3Rva2Vuc19tYXAuanNvbiUyMChHaXQlM0ElMjBjYjIzOTMxKSUwQSUwOXRmX21vZGVsLmg1JTIwKExGUyUzQSUyMDg2ZmNlMjkpJTBBJTA5dG9rZW5pemVyLmpzb24lMjAoR2l0JTNBJTIwODUxZmYzZSklMEElMDl0b2tlbml6ZXJfY29uZmlnLmpzb24lMjAoR2l0JTNBJTIwZjBmNzc4MyklMEElMEFPYmplY3RzJTIwbm90JTIwc3RhZ2VkJTIwZm9yJTIwY29tbWl0JTNBJTBBJTBB",highlighted:`On branch main
Objects to be pushed to origin/main:


Objects to be committed:

	config.json (Git: bc20ff2)
	sentencepiece.bpe.model (LFS: 988bc5a)
	special_tokens_map.json (Git: cb23931)
	tf_model.h5 (LFS: 86fce29)
	tokenizer.json (Git: 851ff3e)
	tokenizer_config.json (Git: f0f7783)

Objects not staged <span class="hljs-keyword">for</span> commit:

`,wrap:!1}}),{c(){b(n.$$.fragment),r=s(),o=p("p"),o.innerHTML=c},l(f){M(n.$$.fragment,f),r=a(f),o=u(f,"P",{"data-svelte-h":!0}),m(o)!=="svelte-vzlgj3"&&(o.innerHTML=c)},m(f,T){g(n,f,T),i(f,r,T),i(f,o,T),v=!0},i(f){v||(h(n.$$.fragment,f),v=!0)},o(f){d(n.$$.fragment,f),v=!1},d(f){f&&(l(r),l(o)),w(n,f)}}}function ba(_){let n,r,o,c="We can see that all files have <code>Git</code> as a handler, except <em>pytorch_model.bin</em> and <em>sentencepiece.bpe.model</em>, which have <code>LFS</code>. Great!",v;return n=new $({props:{code:"T24lMjBicmFuY2glMjBtYWluJTBBT2JqZWN0cyUyMHRvJTIwYmUlMjBwdXNoZWQlMjB0byUyMG9yaWdpbiUyRm1haW4lM0ElMEElMEElMEFPYmplY3RzJTIwdG8lMjBiZSUyMGNvbW1pdHRlZCUzQSUwQSUwQSUwOWNvbmZpZy5qc29uJTIwKEdpdCUzQSUyMGJjMjBmZjIpJTBBJTA5cHl0b3JjaF9tb2RlbC5iaW4lMjAoTEZTJTNBJTIwMzU2ODZjMiklMEElMDlzZW50ZW5jZXBpZWNlLmJwZS5tb2RlbCUyMChMRlMlM0ElMjA5ODhiYzVhKSUwQSUwOXNwZWNpYWxfdG9rZW5zX21hcC5qc29uJTIwKEdpdCUzQSUyMGNiMjM5MzEpJTBBJTA5dG9rZW5pemVyLmpzb24lMjAoR2l0JTNBJTIwODUxZmYzZSklMEElMDl0b2tlbml6ZXJfY29uZmlnLmpzb24lMjAoR2l0JTNBJTIwZjBmNzc4MyklMEElMEFPYmplY3RzJTIwbm90JTIwc3RhZ2VkJTIwZm9yJTIwY29tbWl0JTNBJTBBJTBB",highlighted:`On branch main
Objects to be pushed to origin/main:


Objects to be committed:

	config.json (Git: bc20ff2)
	pytorch_model.bin (LFS: 35686c2)
	sentencepiece.bpe.model (LFS: 988bc5a)
	special_tokens_map.json (Git: cb23931)
	tokenizer.json (Git: 851ff3e)
	tokenizer_config.json (Git: f0f7783)

Objects not staged <span class="hljs-keyword">for</span> commit:

`,wrap:!1}}),{c(){b(n.$$.fragment),r=s(),o=p("p"),o.innerHTML=c},l(f){M(n.$$.fragment,f),r=a(f),o=u(f,"P",{"data-svelte-h":!0}),m(o)!=="svelte-1t3qvv6"&&(o.innerHTML=c)},m(f,T){g(n,f,T),i(f,r,T),i(f,o,T),v=!0},i(f){v||(h(n.$$.fragment,f),v=!0)},o(f){d(n.$$.fragment,f),v=!1},d(f){f&&(l(r),l(o)),w(n,f)}}}function Ma(_){let n,r;return n=new $({props:{code:"JTVCbWFpbiUyMGIwOGFhYjElNUQlMjBGaXJzdCUyMG1vZGVsJTIwdmVyc2lvbiUwQSUyMDYlMjBmaWxlcyUyMGNoYW5nZWQlMkMlMjAzNiUyMGluc2VydGlvbnMoJTJCKSUwQSUyMGNyZWF0ZSUyMG1vZGUlMjAxMDA2NDQlMjBjb25maWcuanNvbiUwQSUyMGNyZWF0ZSUyMG1vZGUlMjAxMDA2NDQlMjBzZW50ZW5jZXBpZWNlLmJwZS5tb2RlbCUwQSUyMGNyZWF0ZSUyMG1vZGUlMjAxMDA2NDQlMjBzcGVjaWFsX3Rva2Vuc19tYXAuanNvbiUwQSUyMGNyZWF0ZSUyMG1vZGUlMjAxMDA2NDQlMjB0Zl9tb2RlbC5oNSUwQSUyMGNyZWF0ZSUyMG1vZGUlMjAxMDA2NDQlMjB0b2tlbml6ZXIuanNvbiUwQSUyMGNyZWF0ZSUyMG1vZGUlMjAxMDA2NDQlMjB0b2tlbml6ZXJfY29uZmlnLmpzb24=",highlighted:`[main b08aab1] First model version
 6 files changed, 36 insertions(+)
 create mode 100644 config.json
 create mode 100644 sentencepiece.bpe.model
 create mode 100644 special_tokens_map.json
 create mode 100644 tf_model.h5
 create mode 100644 tokenizer.json
 create mode 100644 tokenizer_config.json`,wrap:!1}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,c){g(n,o,c),r=!0},i(o){r||(h(n.$$.fragment,o),r=!0)},o(o){d(n.$$.fragment,o),r=!1},d(o){w(n,o)}}}function ga(_){let n,r;return n=new $({props:{code:"JTVCbWFpbiUyMGIwOGFhYjElNUQlMjBGaXJzdCUyMG1vZGVsJTIwdmVyc2lvbiUwQSUyMDclMjBmaWxlcyUyMGNoYW5nZWQlMkMlMjAyOTAyNyUyMGluc2VydGlvbnMoJTJCKSUwQSUyMCUyMDYlMjBmaWxlcyUyMGNoYW5nZWQlMkMlMjAzNiUyMGluc2VydGlvbnMoJTJCKSUwQSUyMGNyZWF0ZSUyMG1vZGUlMjAxMDA2NDQlMjBjb25maWcuanNvbiUwQSUyMGNyZWF0ZSUyMG1vZGUlMjAxMDA2NDQlMjBweXRvcmNoX21vZGVsLmJpbiUwQSUyMGNyZWF0ZSUyMG1vZGUlMjAxMDA2NDQlMjBzZW50ZW5jZXBpZWNlLmJwZS5tb2RlbCUwQSUyMGNyZWF0ZSUyMG1vZGUlMjAxMDA2NDQlMjBzcGVjaWFsX3Rva2Vuc19tYXAuanNvbiUwQSUyMGNyZWF0ZSUyMG1vZGUlMjAxMDA2NDQlMjB0b2tlbml6ZXIuanNvbiUwQSUyMGNyZWF0ZSUyMG1vZGUlMjAxMDA2NDQlMjB0b2tlbml6ZXJfY29uZmlnLmpzb24=",highlighted:`[main b08aab1] First model version
 7 files changed, 29027 insertions(+)
  6 files changed, 36 insertions(+)
 create mode 100644 config.json
 create mode 100644 pytorch_model.bin
 create mode 100644 sentencepiece.bpe.model
 create mode 100644 special_tokens_map.json
 create mode 100644 tokenizer.json
 create mode 100644 tokenizer_config.json`,wrap:!1}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,c){g(n,o,c),r=!0},i(o){r||(h(n.$$.fragment,o),r=!0)},o(o){d(n.$$.fragment,o),r=!1},d(o){w(n,o)}}}function wa(_){let n,r="If we take a look at the model repository when this is finished, we can see all the recently added files:",o,c,v='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/full_model_tf.png" alt="The &#39;Files and versions&#39; tab now contains all the recently uploaded files." width="80%"/>',f,T,C="The UI allows you to explore the model files and commits and to see the diff introduced by each commit:",U,J,Z='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/diffstf.gif" alt="The diff introduced by the recent commit." width="80%"/>';return{c(){n=p("p"),n.textContent=r,o=s(),c=p("div"),c.innerHTML=v,f=s(),T=p("p"),T.textContent=C,U=s(),J=p("div"),J.innerHTML=Z,this.h()},l(y){n=u(y,"P",{"data-svelte-h":!0}),m(n)!=="svelte-dr5wot"&&(n.textContent=r),o=a(y),c=u(y,"DIV",{class:!0,"data-svelte-h":!0}),m(c)!=="svelte-tz4fi2"&&(c.innerHTML=v),f=a(y),T=u(y,"P",{"data-svelte-h":!0}),m(T)!=="svelte-9fow57"&&(T.textContent=C),U=a(y),J=u(y,"DIV",{class:!0,"data-svelte-h":!0}),m(J)!=="svelte-2jd8bj"&&(J.innerHTML=Z),this.h()},h(){W(c,"class","flex justify-center"),W(J,"class","flex justify-center")},m(y,j){i(y,n,j),i(y,o,j),i(y,c,j),i(y,f,j),i(y,T,j),i(y,U,j),i(y,J,j)},d(y){y&&(l(n),l(o),l(c),l(f),l(T),l(U),l(J))}}}function _a(_){let n,r="If we take a look at the model repository when this is finished, we can see all the recently added files:",o,c,v='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/full_model.png" alt="The &#39;Files and versions&#39; tab now contains all the recently uploaded files." width="80%"/>',f,T,C="The UI allows you to explore the model files and commits and to see the diff introduced by each commit:",U,J,Z='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/diffs.gif" alt="The diff introduced by the recent commit." width="80%"/>';return{c(){n=p("p"),n.textContent=r,o=s(),c=p("div"),c.innerHTML=v,f=s(),T=p("p"),T.textContent=C,U=s(),J=p("div"),J.innerHTML=Z,this.h()},l(y){n=u(y,"P",{"data-svelte-h":!0}),m(n)!=="svelte-dr5wot"&&(n.textContent=r),o=a(y),c=u(y,"DIV",{class:!0,"data-svelte-h":!0}),m(c)!=="svelte-1v39mjb"&&(c.innerHTML=v),f=a(y),T=u(y,"P",{"data-svelte-h":!0}),m(T)!=="svelte-9fow57"&&(T.textContent=C),U=a(y),J=u(y,"DIV",{class:!0,"data-svelte-h":!0}),m(J)!=="svelte-1g561m5"&&(J.innerHTML=Z),this.h()},h(){W(c,"class","flex justify-center"),W(J,"class","flex justify-center")},m(y,j){i(y,n,j),i(y,o,j),i(y,c,j),i(y,f,j),i(y,T,j),i(y,U,j),i(y,J,j)},d(y){y&&(l(n),l(o),l(c),l(f),l(T),l(U),l(J))}}}function Ta(_){let n,r,o,c,v,f,T,C,U,J,Z,y,j,B,I="In the steps below, we’ll take a look at the easiest ways to share pretrained models to the 🤗 Hub. There are tools and utilities available that make it simple to share and update models directly on the Hub, which we will explore below.",pe,x,k,G,Fn="We encourage all users that train models to contribute by sharing them with the community — sharing models, even when trained on very specific datasets, will help others, saving them time and compute resources and providing access to useful trained artifacts. In turn, you can benefit from the work that others have done!",Jl,ue,En="There are three ways to go about creating new model repositories:",Zl,me,Pn="<li>Using the <code>push_to_hub</code> API</li> <li>Using the <code>huggingface_hub</code> Python library</li> <li>Using the web interface</li>",Cl,fe,qn="Once you’ve created a repository, you can upload files to it via git and git-lfs. We’ll walk you through creating model repositories and uploading files to them in the following sections.",Gl,ce,Wl,H,L,bl,de,Dn="The simplest way to upload files to the Hub is by leveraging the <code>push_to_hub</code> API.",Bl,he,On='Before going further, you’ll need to generate an authentication token so that the <code>huggingface_hub</code> API knows who you are and what namespaces you have write access to. Make sure you are in an environment where you have <code>transformers</code> installed (see <a href="/course/chapter0">Setup</a>). If you are in a notebook, you can use the following function to login:',xl,ye,Il,be,Kn="In a terminal, you can run:",Hl,Me,Ll,ge,eo='In both cases, you should be prompted for your username and password, which are the same ones you use to log in to the Hub. If you do not have a Hub profile yet, you should create one <a href="https://huggingface.co/join" rel="nofollow">here</a>.',Nl,we,to="Great! You now have your authentication token stored in your cache folder. Let’s create some repositories!",zl,N,z,Ml,_e,lo="At a lower level, accessing the Model Hub can be done directly on models, tokenizers, and configuration objects via their <code>push_to_hub()</code> method. This method takes care of both the repository creation and pushing the model and tokenizer files directly to the repository. No manual handling is required, unlike with the API we’ll see below.",Vl,Te,io="To get an idea of how it works, let’s first initialize a model and a tokenizer:",Xl,V,X,gl,ve,no="You’re free to do whatever you want with these — add tokens to the tokenizer, train the model, fine-tune it. Once you’re happy with the resulting model, weights, and tokenizer, you can leverage the <code>push_to_hub()</code> method directly available on the <code>model</code> object:",Al,$e,Rl,ke,oo=`This will create the new repository <code>dummy-model</code> in your profile, and populate it with your model files.
Do the same with the tokenizer, so that all the files are now available in this repository:`,Yl,Ue,Ql,je,so="If you belong to an organization, simply specify the <code>organization</code> argument to upload to that organization’s namespace:",Sl,Je,Fl,Ze,ao="If you wish to use a specific Hugging Face token, you’re free to specify it to the <code>push_to_hub()</code> method as well:",El,Ce,Pl,Ge,ro='Now head to the Model Hub to find your newly uploaded model: <em><a href="https://huggingface.co/user-or-organization/dummy-model" rel="nofollow">https://huggingface.co/user-or-organization/dummy-model</a></em>.',ql,We,po="Click on the “Files and versions” tab, and you should see the files visible in the following screenshot:",Dl,wl,le,Ol,Be,uo='As you’ve seen, the <code>push_to_hub()</code> method accepts several arguments, making it possible to upload to a specific repository or organization namespace, or to use a different API token. We recommend you take a look at the method specification available directly in the <a href="https://huggingface.co/transformers/model_sharing" rel="nofollow">🤗 Transformers documentation</a> to get an idea of what is possible.',Kl,xe,mo='The <code>push_to_hub()</code> method is backed by the <a href="https://github.com/huggingface/huggingface_hub" rel="nofollow"><code>huggingface_hub</code></a> Python package, which offers a direct API to the Hugging Face Hub. It’s integrated within 🤗 Transformers and several other machine learning libraries, like <a href="https://github.com/allenai/allennlp" rel="nofollow"><code>allenlp</code></a>. Although we focus on the 🤗 Transformers integration in this chapter, integrating it into your own code or library is simple.',ei,Ie,fo="Jump to the last section to see how to upload files to your newly created repository!",ti,He,li,Le,co=`The <code>huggingface_hub</code> Python library is a package which offers a set of tools for the model and datasets hubs. It provides simple methods and classes for common tasks like
getting information about repositories on the hub and managing them. It provides simple APIs that work on top of git to manage those repositories’ content and to integrate the Hub
in your projects and libraries.`,ii,Ne,ho="Similarly to using the <code>push_to_hub</code> API, this will require you to have your API token saved in your cache. In order to do this, you will need to use the <code>login</code> command from the CLI, as mentioned in the previous section (again, make sure to prepend these commands with the <code>!</code> character if running in Google Colab):",ni,ze,oi,Ve,yo="The <code>huggingface_hub</code> package offers several methods and classes which are useful for our purpose. Firstly, there are a few methods to manage repository creation, deletion, and others:",si,Xe,ai,Ae,bo="Additionally, it offers the very powerful <code>Repository</code> class to manage a local repository. We will explore these methods and that class in the next few section to understand how to leverage them.",ri,Re,Mo="The <code>create_repo</code> method can be used to create a new repository on the hub:",pi,Ye,ui,Qe,go="This will create the repository <code>dummy-model</code> in your namespace. If you like, you can specify which organization the repository should belong to using the <code>organization</code> argument:",mi,Se,fi,Fe,wo=`This will create the <code>dummy-model</code> repository in the <code>huggingface</code> namespace, assuming you belong to that organization.
Other arguments which may be useful are:`,ci,Ee,_o="<li><code>private</code>, in order to specify if the repository should be visible from others or not.</li> <li><code>token</code>, if you would like to override the token stored in your cache by a given token.</li> <li><code>repo_type</code>, if you would like to create a <code>dataset</code> or a <code>space</code> instead of a model. Accepted values are <code>&quot;dataset&quot;</code> and <code>&quot;space&quot;</code>.</li>",di,Pe,To="Once the repository is created, we should add files to it! Jump to the next section to see the three ways this can be handled.",hi,qe,yi,De,vo="The web interface offers tools to manage repositories directly in the Hub. Using the interface, you can easily create repositories, add files (even large ones!), explore models, visualize diffs, and much more.",bi,Oe,$o='To create a new repository, visit <a href="https://huggingface.co/new" rel="nofollow">huggingface.co/new</a>:',Mi,ie,ko='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/new_model.png" alt="Page showcasing the model used for the creation of a new model repository." width="80%"/>',gi,Ke,Uo="First, specify the owner of the repository: this can be either you or any of the organizations you’re affiliated with. If you choose an organization, the model will be featured on the organization’s page and every member of the organization will have the ability to contribute to the repository.",wi,et,jo="Next, enter your model’s name. This will also be the name of the repository. Finally, you can specify whether you want your model to be public or private. Private models are hidden from public view.",_i,tt,Jo="After creating your model repository, you should see a page like this:",Ti,ne,Zo='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/empty_model.png" alt="An empty model page after creating a new repository." width="80%"/>',vi,lt,Co="This is where your model will be hosted. To start populating it, you can add a README file directly from the web interface.",$i,oe,Go='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/dummy_model.png" alt="The README file showing the Markdown capabilities." width="80%"/>',ki,it,Wo="The README file is in Markdown — feel free to go wild with it! The third part of this chapter is dedicated to building a model card. These are of prime importance in bringing value to your model, as they’re where you tell others what it can do.",Ui,nt,Bo="If you look at the “Files and versions” tab, you’ll see that there aren’t many files there yet — just the <em>README.md</em> you just created and the <em>.gitattributes</em> file that keeps track of large files.",ji,se,xo='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/files.png" alt="The &#39;Files and versions&#39; tab only shows the .gitattributes and README.md files." width="80%"/>',Ji,ot,Io="We’ll take a look at how to add some new files next.",Zi,st,Ci,at,Ho='The system to manage files on the Hugging Face Hub is based on git for regular files, and git-lfs (which stands for <a href="https://git-lfs.github.com/" rel="nofollow">Git Large File Storage</a>) for larger files.',Gi,rt,Lo="In the next section, we go over three different ways of uploading files to the Hub: through <code>huggingface_hub</code> and through git commands.",Wi,pt,Bi,ut,No=`Using <code>upload_file</code> does not require git and git-lfs to be installed on your system. It pushes files directly to the 🤗 Hub using HTTP POST requests. A limitation of this approach is that it doesn’t handle files that are larger than 5GB in size.
If your files are larger than 5GB, please follow the two other methods detailed below.`,xi,mt,zo="The API may be used as follows:",Ii,ft,Hi,ct,Vo=`This will upload the file <code>config.json</code> available at <code>&lt;path_to_file&gt;</code> to the root of the repository as <code>config.json</code>, to the <code>dummy-model</code> repository.
Other arguments which may be useful are:`,Li,dt,Xo="<li><code>token</code>, if you would like to override the token stored in your cache by a given token.</li> <li><code>repo_type</code>, if you would like to upload to a <code>dataset</code> or a <code>space</code> instead of a model. Accepted values are <code>&quot;dataset&quot;</code> and <code>&quot;space&quot;</code>.</li>",Ni,ht,zi,yt,Ao="The <code>Repository</code> class manages a local repository in a git-like manner. It abstracts most of the pain points one may have with git to provide all features that we require.",Vi,bt,Ro='Using this class requires having git and git-lfs installed, so make sure you have git-lfs installed (see <a href="https://git-lfs.github.com/" rel="nofollow">here</a> for installation instructions) and set up before you begin.',Xi,Mt,Yo="In order to start playing around with the repository we have just created, we can start by initialising it into a local folder by cloning the remote repository:",Ai,gt,Ri,wt,Qo="This created the folder <code>&lt;path_to_dummy_folder&gt;</code> in our working directory. This folder only contains the <code>.gitattributes</code> file as that’s the only file created when instantiating the repository through <code>create_repo</code>.",Yi,_t,So="From this point on, we may leverage several of the traditional git methods:",Qi,Tt,Si,vt,Fo='And others! We recommend taking a look at the <code>Repository</code> documentation available <a href="https://github.com/huggingface/huggingface_hub/tree/main/src/huggingface_hub#advanced-programmatic-repository-management" rel="nofollow">here</a> for an overview of all available methods.',Fi,$t,Eo="At present, we have a model and a tokenizer that we would like to push to the hub. We have successfully cloned the repository, we can therefore save the files within that repository.",Ei,kt,Po="We first make sure that our local clone is up to date by pulling the latest changes:",Pi,Ut,qi,jt,qo="Once that is done, we save the model and tokenizer files:",Di,Jt,Oi,Zt,Do="The <code>&lt;path_to_dummy_folder&gt;</code> now contains all the model and tokenizer files. We follow the usual git workflow by adding files to the staging area, committing them and pushing them to the hub:",Ki,Ct,en,Gt,Oo="Congratulations! You just pushed your first files on the hub.",tn,Wt,ln,Bt,Ko="This is the very barebones approach to uploading files: we’ll do so with git and git-lfs directly. Most of the difficulty is abstracted away by previous approaches, but there are a few caveats with the following method so we’ll follow a more complex use-case.",nn,xt,es='Using this class requires having git and git-lfs installed, so make sure you have <a href="https://git-lfs.github.com/" rel="nofollow">git-lfs</a> installed (see here for installation instructions) and set up before you begin.',on,It,ts="First start by initializing git-lfs:",sn,Ht,an,Lt,rn,Nt,ls="Once that’s done, the first step is to clone your model repository:",pn,zt,un,Vt,is="My username is <code>lysandre</code> and I’ve used the model name <code>dummy</code>, so for me the command ends up looking like the following:",mn,Xt,fn,At,ns="I now have a folder named <em>dummy</em> in my working directory. I can <code>cd</code> into the folder and have a look at the contents:",cn,Rt,dn,Yt,hn,Qt,os="If you just created your repository using Hugging Face Hub’s <code>create_repo</code> method, this folder should only contain a hidden <code>.gitattributes</code> file. If you followed the instructions in the previous section to create a repository using the web interface, the folder should contain a single <em>README.md</em> file alongside the hidden <code>.gitattributes</code> file, as shown here.",yn,St,ss="Adding a regular-sized file, such as a configuration file, a vocabulary file, or basically any file under a few megabytes, is done exactly as one would do it in any git-based system. However, bigger files must be registered through git-lfs in order to push them to <em>huggingface.co</em>.",bn,Ft,as="Let’s go back to Python for a bit to generate a model and tokenizer that we’d like to commit to our dummy repository:",Mn,A,R,_l,Et,rs="Now that we’ve saved some model and tokenizer artifacts, let’s take another look at the <em>dummy</em> folder:",gn,Pt,wn,Y,Q,Tl,ae,_n,qt,ps="We can now go ahead and proceed like we would usually do with traditional Git repositories. We can add all the files to Git’s staging environment using the <code>git add</code> command:",Tn,Dt,vn,Ot,us="We can then have a look at the files that are currently staged:",$n,Kt,kn,S,F,vl,el,ms="Similarly, we can make sure that git-lfs is tracking the correct files by using its <code>status</code> command:",Un,tl,jn,E,P,$l,ll,fs="Let’s proceed to the final steps, committing and pushing to the <em>huggingface.co</em> remote repository:",Jn,il,Zn,q,D,kl,nl,cs="Pushing can take a bit of time, depending on the speed of your internet connection and the size of your files:",Cn,ol,Gn,sl,Wn,Ul,al,Bn,jl,xn;v=new Ds({props:{fw:_[0]}}),T=new Ps({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),U=new re({props:{title:"Sharing pretrained models",local:"sharing-pretrained-models",headingTag:"h1"}});const ds=[Ks,Os],rl=[];function hs(e,t){return e[0]==="pt"?0:1}Z=hs(_),y=rl[Z]=ds[Z](_),x=new Sn({props:{id:"9yY3RB_GSPM"}}),ce=new re({props:{title:"Using the push_to_hub API",local:"using-the-pushtohub-api",headingTag:"h2"}});const ys=[ta,ea],pl=[];function bs(e,t){return e[0]==="pt"?0:1}H=bs(_),L=pl[H]=ys[H](_),ye=new $({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMG5vdGVib29rX2xvZ2luJTBBJTBBbm90ZWJvb2tfbG9naW4oKQ==",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> notebook_login

notebook_login()`,wrap:!1}}),Me=new $({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwbG9naW4=",highlighted:"huggingface-cli login",wrap:!1}});const Ms=[ia,la],ul=[];function gs(e,t){return e[0]==="pt"?0:1}N=gs(_),z=ul[N]=Ms[N](_);const ws=[oa,na],ml=[];function _s(e,t){return e[0]==="pt"?0:1}V=_s(_),X=ml[V]=ws[V](_),$e=new $({props:{code:"bW9kZWwucHVzaF90b19odWIoJTIyZHVtbXktbW9kZWwlMjIp",highlighted:'model.push_to_hub(<span class="hljs-string">&quot;dummy-model&quot;</span>)',wrap:!1}}),Ue=new $({props:{code:"dG9rZW5pemVyLnB1c2hfdG9faHViKCUyMmR1bW15LW1vZGVsJTIyKQ==",highlighted:'tokenizer.push_to_hub(<span class="hljs-string">&quot;dummy-model&quot;</span>)',wrap:!1}}),Je=new $({props:{code:"dG9rZW5pemVyLnB1c2hfdG9faHViKCUyMmR1bW15LW1vZGVsJTIyJTJDJTIwb3JnYW5pemF0aW9uJTNEJTIyaHVnZ2luZ2ZhY2UlMjIp",highlighted:'tokenizer.push_to_hub(<span class="hljs-string">&quot;dummy-model&quot;</span>, organization=<span class="hljs-string">&quot;huggingface&quot;</span>)',wrap:!1}}),Ce=new $({props:{code:"dG9rZW5pemVyLnB1c2hfdG9faHViKCUyMmR1bW15LW1vZGVsJTIyJTJDJTIwb3JnYW5pemF0aW9uJTNEJTIyaHVnZ2luZ2ZhY2UlMjIlMkMlMjB1c2VfYXV0aF90b2tlbiUzRCUyMiUzQ1RPS0VOJTNFJTIyKQ==",highlighted:'tokenizer.push_to_hub(<span class="hljs-string">&quot;dummy-model&quot;</span>, organization=<span class="hljs-string">&quot;huggingface&quot;</span>, use_auth_token=<span class="hljs-string">&quot;&lt;TOKEN&gt;&quot;</span>)',wrap:!1}});function Ts(e,t){return e[0]==="pt"?aa:sa}let In=Ts(_),O=In(_);le=new Ns({props:{$$slots:{default:[ra]},$$scope:{ctx:_}}}),He=new re({props:{title:"Using the huggingface_hub Python library",local:"using-the-huggingfacehub-python-library",headingTag:"h2"}}),ze=new $({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwbG9naW4=",highlighted:"huggingface-cli login",wrap:!1}}),Xe=new $({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMCglMEElMjAlMjAlMjAlMjAlMjMlMjBVc2VyJTIwbWFuYWdlbWVudCUwQSUyMCUyMCUyMCUyMGxvZ2luJTJDJTBBJTIwJTIwJTIwJTIwbG9nb3V0JTJDJTBBJTIwJTIwJTIwJTIwd2hvYW1pJTJDJTBBJTBBJTIwJTIwJTIwJTIwJTIzJTIwUmVwb3NpdG9yeSUyMGNyZWF0aW9uJTIwYW5kJTIwbWFuYWdlbWVudCUwQSUyMCUyMCUyMCUyMGNyZWF0ZV9yZXBvJTJDJTBBJTIwJTIwJTIwJTIwZGVsZXRlX3JlcG8lMkMlMEElMjAlMjAlMjAlMjB1cGRhdGVfcmVwb192aXNpYmlsaXR5JTJDJTBBJTBBJTIwJTIwJTIwJTIwJTIzJTIwQW5kJTIwc29tZSUyMG1ldGhvZHMlMjB0byUyMHJldHJpZXZlJTJGY2hhbmdlJTIwaW5mb3JtYXRpb24lMjBhYm91dCUyMHRoZSUyMGNvbnRlbnQlMEElMjAlMjAlMjAlMjBsaXN0X21vZGVscyUyQyUwQSUyMCUyMCUyMCUyMGxpc3RfZGF0YXNldHMlMkMlMEElMjAlMjAlMjAlMjBsaXN0X21ldHJpY3MlMkMlMEElMjAlMjAlMjAlMjBsaXN0X3JlcG9fZmlsZXMlMkMlMEElMjAlMjAlMjAlMjB1cGxvYWRfZmlsZSUyQyUwQSUyMCUyMCUyMCUyMGRlbGV0ZV9maWxlJTJDJTBBKQ==",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> (
    <span class="hljs-comment"># User management</span>
    login,
    logout,
    whoami,

    <span class="hljs-comment"># Repository creation and management</span>
    create_repo,
    delete_repo,
    update_repo_visibility,

    <span class="hljs-comment"># And some methods to retrieve/change information about the content</span>
    list_models,
    list_datasets,
    list_metrics,
    list_repo_files,
    upload_file,
    delete_file,
)`,wrap:!1}}),Ye=new $({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNyZWF0ZV9yZXBvJTBBJTBBY3JlYXRlX3JlcG8oJTIyZHVtbXktbW9kZWwlMjIp",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_repo

create_repo(<span class="hljs-string">&quot;dummy-model&quot;</span>)`,wrap:!1}}),Se=new $({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNyZWF0ZV9yZXBvJTBBJTBBY3JlYXRlX3JlcG8oJTIyZHVtbXktbW9kZWwlMjIlMkMlMjBvcmdhbml6YXRpb24lM0QlMjJodWdnaW5nZmFjZSUyMik=",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_repo

create_repo(<span class="hljs-string">&quot;dummy-model&quot;</span>, organization=<span class="hljs-string">&quot;huggingface&quot;</span>)`,wrap:!1}}),qe=new re({props:{title:"Using the web interface",local:"using-the-web-interface",headingTag:"h2"}}),st=new re({props:{title:"Uploading the model files",local:"uploading-the-model-files",headingTag:"h2"}}),pt=new re({props:{title:"The upload_file approach",local:"the-uploadfile-approach",headingTag:"h3"}}),ft=new $({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHVwbG9hZF9maWxlJTBBJTBBdXBsb2FkX2ZpbGUoJTBBJTIwJTIwJTIwJTIwJTIyJTNDcGF0aF90b19maWxlJTNFJTJGY29uZmlnLmpzb24lMjIlMkMlMEElMjAlMjAlMjAlMjBwYXRoX2luX3JlcG8lM0QlMjJjb25maWcuanNvbiUyMiUyQyUwQSUyMCUyMCUyMCUyMHJlcG9faWQlM0QlMjIlM0NuYW1lc3BhY2UlM0UlMkZkdW1teS1tb2RlbCUyMiUyQyUwQSk=",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> upload_file

upload_file(
    <span class="hljs-string">&quot;&lt;path_to_file&gt;/config.json&quot;</span>,
    path_in_repo=<span class="hljs-string">&quot;config.json&quot;</span>,
    repo_id=<span class="hljs-string">&quot;&lt;namespace&gt;/dummy-model&quot;</span>,
)`,wrap:!1}}),ht=new re({props:{title:"The Repository class",local:"the-repository-class",headingTag:"h3"}}),gt=new $({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMFJlcG9zaXRvcnklMEElMEFyZXBvJTIwJTNEJTIwUmVwb3NpdG9yeSglMjIlM0NwYXRoX3RvX2R1bW15X2ZvbGRlciUzRSUyMiUyQyUyMGNsb25lX2Zyb20lM0QlMjIlM0NuYW1lc3BhY2UlM0UlMkZkdW1teS1tb2RlbCUyMik=",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> Repository

repo = Repository(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>, clone_from=<span class="hljs-string">&quot;&lt;namespace&gt;/dummy-model&quot;</span>)`,wrap:!1}}),Tt=new $({props:{code:"cmVwby5naXRfcHVsbCgpJTBBcmVwby5naXRfYWRkKCklMEFyZXBvLmdpdF9jb21taXQoKSUwQXJlcG8uZ2l0X3B1c2goKSUwQXJlcG8uZ2l0X3RhZygp",highlighted:`repo.git_pull()
repo.git_add()
repo.git_commit()
repo.git_push()
repo.git_tag()`,wrap:!1}}),Ut=new $({props:{code:"cmVwby5naXRfcHVsbCgp",highlighted:"repo.git_pull()",wrap:!1}}),Jt=new $({props:{code:"bW9kZWwuc2F2ZV9wcmV0cmFpbmVkKCUyMiUzQ3BhdGhfdG9fZHVtbXlfZm9sZGVyJTNFJTIyKSUwQXRva2VuaXplci5zYXZlX3ByZXRyYWluZWQoJTIyJTNDcGF0aF90b19kdW1teV9mb2xkZXIlM0UlMjIp",highlighted:`model.save_pretrained(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>)
tokenizer.save_pretrained(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>)`,wrap:!1}}),Ct=new $({props:{code:"cmVwby5naXRfYWRkKCklMEFyZXBvLmdpdF9jb21taXQoJTIyQWRkJTIwbW9kZWwlMjBhbmQlMjB0b2tlbml6ZXIlMjBmaWxlcyUyMiklMEFyZXBvLmdpdF9wdXNoKCk=",highlighted:`repo.git_add()
repo.git_commit(<span class="hljs-string">&quot;Add model and tokenizer files&quot;</span>)
repo.git_push()`,wrap:!1}}),Wt=new re({props:{title:"The git-based approach",local:"the-git-based-approach",headingTag:"h3"}}),Ht=new $({props:{code:"Z2l0JTIwbGZzJTIwaW5zdGFsbA==",highlighted:"git lfs install",wrap:!1}}),Lt=new $({props:{code:"VXBkYXRlZCUyMGdpdCUyMGhvb2tzLiUwQUdpdCUyMExGUyUyMGluaXRpYWxpemVkLg==",highlighted:`Updated git hooks.
Git LFS initialized.`,wrap:!1}}),zt=new $({props:{code:"Z2l0JTIwY2xvbmUlMjBodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGJTNDbmFtZXNwYWNlJTNFJTJGJTNDeW91ci1tb2RlbC1pZCUzRQ==",highlighted:'git <span class="hljs-built_in">clone</span> https://huggingface.co/&lt;namespace&gt;/&lt;your-model-id&gt;',wrap:!1}}),Xt=new $({props:{code:"Z2l0JTIwY2xvbmUlMjBodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGbHlzYW5kcmUlMkZkdW1teQ==",highlighted:'git clone https:<span class="hljs-regexp">//</span>huggingface.co<span class="hljs-regexp">/lysandre/</span>dummy',wrap:!1}}),Rt=new $({props:{code:"Y2QlMjBkdW1teSUyMCUyNiUyNiUyMGxz",highlighted:'<span class="hljs-built_in">cd</span> dummy &amp;&amp; <span class="hljs-built_in">ls</span>',wrap:!1}}),Yt=new $({props:{code:"UkVBRE1FLm1k",highlighted:"README.md",wrap:!1}});const vs=[ua,pa],fl=[];function $s(e,t){return e[0]==="pt"?0:1}A=$s(_),R=fl[A]=vs[A](_),Pt=new $({props:{code:"bHM=",highlighted:'<span class="hljs-built_in">ls</span>',wrap:!1}});const ks=[fa,ma],cl=[];function Us(e,t){return e[0]==="pt"?0:1}Y=Us(_),Q=cl[Y]=ks[Y](_),ae=new Ns({props:{$$slots:{default:[ca]},$$scope:{ctx:_}}}),Dt=new $({props:{code:"Z2l0JTIwYWRkJTIwLg==",highlighted:"git add .",wrap:!1}}),Kt=new $({props:{code:"Z2l0JTIwc3RhdHVz",highlighted:"git status",wrap:!1}});const js=[ha,da],dl=[];function Js(e,t){return e[0]==="pt"?0:1}S=Js(_),F=dl[S]=js[S](_),tl=new $({props:{code:"Z2l0JTIwbGZzJTIwc3RhdHVz",highlighted:"git lfs status",wrap:!1}});const Zs=[ba,ya],hl=[];function Cs(e,t){return e[0]==="pt"?0:1}E=Cs(_),P=hl[E]=Zs[E](_),il=new $({props:{code:"Z2l0JTIwY29tbWl0JTIwLW0lMjAlMjJGaXJzdCUyMG1vZGVsJTIwdmVyc2lvbiUyMg==",highlighted:'git commit -m <span class="hljs-string">&quot;First model version&quot;</span>',wrap:!1}});const Gs=[ga,Ma],yl=[];function Ws(e,t){return e[0]==="pt"?0:1}q=Ws(_),D=yl[q]=Gs[q](_),ol=new $({props:{code:"Z2l0JTIwcHVzaA==",highlighted:"git push",wrap:!1}}),sl=new $({props:{code:"VXBsb2FkaW5nJTIwTEZTJTIwb2JqZWN0cyUzQSUyMDEwMCUyNSUyMCgxJTJGMSklMkMlMjA0MzMlMjBNQiUyMCU3QyUyMDEuMyUyME1CJTJGcyUyQyUyMGRvbmUuJTBBRW51bWVyYXRpbmclMjBvYmplY3RzJTNBJTIwMTElMkMlMjBkb25lLiUwQUNvdW50aW5nJTIwb2JqZWN0cyUzQSUyMDEwMCUyNSUyMCgxMSUyRjExKSUyQyUyMGRvbmUuJTBBRGVsdGElMjBjb21wcmVzc2lvbiUyMHVzaW5nJTIwdXAlMjB0byUyMDEyJTIwdGhyZWFkcyUwQUNvbXByZXNzaW5nJTIwb2JqZWN0cyUzQSUyMDEwMCUyNSUyMCg5JTJGOSklMkMlMjBkb25lLiUwQVdyaXRpbmclMjBvYmplY3RzJTNBJTIwMTAwJTI1JTIwKDklMkY5KSUyQyUyMDI4OC4yNyUyMEtpQiUyMCU3QyUyMDYuMjclMjBNaUIlMkZzJTJDJTIwZG9uZS4lMEFUb3RhbCUyMDklMjAoZGVsdGElMjAxKSUyQyUyMHJldXNlZCUyMDAlMjAoZGVsdGElMjAwKSUyQyUyMHBhY2stcmV1c2VkJTIwMCUwQVRvJTIwaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmx5c2FuZHJlJTJGZHVtbXklMEElMjAlMjAlMjA4OTFiNDFkLi5iMDhhYWIxJTIwJTIwbWFpbiUyMC0lM0UlMjBtYWlu",highlighted:`Uploading LFS objects: 100% (1/1), 433 MB | 1.3 MB/s, <span class="hljs-keyword">done</span>.
Enumerating objects: 11, <span class="hljs-keyword">done</span>.
Counting objects: 100% (11/11), <span class="hljs-keyword">done</span>.
Delta compression using up to 12 threads
Compressing objects: 100% (9/9), <span class="hljs-keyword">done</span>.
Writing objects: 100% (9/9), 288.27 KiB | 6.27 MiB/s, <span class="hljs-keyword">done</span>.
Total 9 (delta 1), reused 0 (delta 0), pack-reused 0
To https://huggingface.co/lysandre/dummy
   891b41d..b08aab1  main -&gt; main`,wrap:!1}});function Bs(e,t){return e[0]==="pt"?_a:wa}let Hn=Bs(_),K=Hn(_);return al=new qs({props:{source:"https://github.com/huggingface/course/blob/main/chapters/en/chapter4/3.mdx"}}),{c(){n=p("meta"),r=s(),o=p("p"),c=s(),b(v.$$.fragment),f=s(),b(T.$$.fragment),C=s(),b(U.$$.fragment),J=s(),y.c(),j=s(),B=p("p"),B.textContent=I,pe=s(),b(x.$$.fragment),k=s(),G=p("p"),G.textContent=Fn,Jl=s(),ue=p("p"),ue.textContent=En,Zl=s(),me=p("ul"),me.innerHTML=Pn,Cl=s(),fe=p("p"),fe.textContent=qn,Gl=s(),b(ce.$$.fragment),Wl=s(),L.c(),bl=s(),de=p("p"),de.innerHTML=Dn,Bl=s(),he=p("p"),he.innerHTML=On,xl=s(),b(ye.$$.fragment),Il=s(),be=p("p"),be.textContent=Kn,Hl=s(),b(Me.$$.fragment),Ll=s(),ge=p("p"),ge.innerHTML=eo,Nl=s(),we=p("p"),we.textContent=to,zl=s(),z.c(),Ml=s(),_e=p("p"),_e.innerHTML=lo,Vl=s(),Te=p("p"),Te.textContent=io,Xl=s(),X.c(),gl=s(),ve=p("p"),ve.innerHTML=no,Al=s(),b($e.$$.fragment),Rl=s(),ke=p("p"),ke.innerHTML=oo,Yl=s(),b(Ue.$$.fragment),Ql=s(),je=p("p"),je.innerHTML=so,Sl=s(),b(Je.$$.fragment),Fl=s(),Ze=p("p"),Ze.innerHTML=ao,El=s(),b(Ce.$$.fragment),Pl=s(),Ge=p("p"),Ge.innerHTML=ro,ql=s(),We=p("p"),We.textContent=po,Dl=s(),O.c(),wl=s(),b(le.$$.fragment),Ol=s(),Be=p("p"),Be.innerHTML=uo,Kl=s(),xe=p("p"),xe.innerHTML=mo,ei=s(),Ie=p("p"),Ie.textContent=fo,ti=s(),b(He.$$.fragment),li=s(),Le=p("p"),Le.innerHTML=co,ii=s(),Ne=p("p"),Ne.innerHTML=ho,ni=s(),b(ze.$$.fragment),oi=s(),Ve=p("p"),Ve.innerHTML=yo,si=s(),b(Xe.$$.fragment),ai=s(),Ae=p("p"),Ae.innerHTML=bo,ri=s(),Re=p("p"),Re.innerHTML=Mo,pi=s(),b(Ye.$$.fragment),ui=s(),Qe=p("p"),Qe.innerHTML=go,mi=s(),b(Se.$$.fragment),fi=s(),Fe=p("p"),Fe.innerHTML=wo,ci=s(),Ee=p("ul"),Ee.innerHTML=_o,di=s(),Pe=p("p"),Pe.textContent=To,hi=s(),b(qe.$$.fragment),yi=s(),De=p("p"),De.textContent=vo,bi=s(),Oe=p("p"),Oe.innerHTML=$o,Mi=s(),ie=p("div"),ie.innerHTML=ko,gi=s(),Ke=p("p"),Ke.textContent=Uo,wi=s(),et=p("p"),et.textContent=jo,_i=s(),tt=p("p"),tt.textContent=Jo,Ti=s(),ne=p("div"),ne.innerHTML=Zo,vi=s(),lt=p("p"),lt.textContent=Co,$i=s(),oe=p("div"),oe.innerHTML=Go,ki=s(),it=p("p"),it.textContent=Wo,Ui=s(),nt=p("p"),nt.innerHTML=Bo,ji=s(),se=p("div"),se.innerHTML=xo,Ji=s(),ot=p("p"),ot.textContent=Io,Zi=s(),b(st.$$.fragment),Ci=s(),at=p("p"),at.innerHTML=Ho,Gi=s(),rt=p("p"),rt.innerHTML=Lo,Wi=s(),b(pt.$$.fragment),Bi=s(),ut=p("p"),ut.innerHTML=No,xi=s(),mt=p("p"),mt.textContent=zo,Ii=s(),b(ft.$$.fragment),Hi=s(),ct=p("p"),ct.innerHTML=Vo,Li=s(),dt=p("ul"),dt.innerHTML=Xo,Ni=s(),b(ht.$$.fragment),zi=s(),yt=p("p"),yt.innerHTML=Ao,Vi=s(),bt=p("p"),bt.innerHTML=Ro,Xi=s(),Mt=p("p"),Mt.textContent=Yo,Ai=s(),b(gt.$$.fragment),Ri=s(),wt=p("p"),wt.innerHTML=Qo,Yi=s(),_t=p("p"),_t.textContent=So,Qi=s(),b(Tt.$$.fragment),Si=s(),vt=p("p"),vt.innerHTML=Fo,Fi=s(),$t=p("p"),$t.textContent=Eo,Ei=s(),kt=p("p"),kt.textContent=Po,Pi=s(),b(Ut.$$.fragment),qi=s(),jt=p("p"),jt.textContent=qo,Di=s(),b(Jt.$$.fragment),Oi=s(),Zt=p("p"),Zt.innerHTML=Do,Ki=s(),b(Ct.$$.fragment),en=s(),Gt=p("p"),Gt.textContent=Oo,tn=s(),b(Wt.$$.fragment),ln=s(),Bt=p("p"),Bt.textContent=Ko,nn=s(),xt=p("p"),xt.innerHTML=es,on=s(),It=p("p"),It.textContent=ts,sn=s(),b(Ht.$$.fragment),an=s(),b(Lt.$$.fragment),rn=s(),Nt=p("p"),Nt.textContent=ls,pn=s(),b(zt.$$.fragment),un=s(),Vt=p("p"),Vt.innerHTML=is,mn=s(),b(Xt.$$.fragment),fn=s(),At=p("p"),At.innerHTML=ns,cn=s(),b(Rt.$$.fragment),dn=s(),b(Yt.$$.fragment),hn=s(),Qt=p("p"),Qt.innerHTML=os,yn=s(),St=p("p"),St.innerHTML=ss,bn=s(),Ft=p("p"),Ft.textContent=as,Mn=s(),R.c(),_l=s(),Et=p("p"),Et.innerHTML=rs,gn=s(),b(Pt.$$.fragment),wn=s(),Q.c(),Tl=s(),b(ae.$$.fragment),_n=s(),qt=p("p"),qt.innerHTML=ps,Tn=s(),b(Dt.$$.fragment),vn=s(),Ot=p("p"),Ot.textContent=us,$n=s(),b(Kt.$$.fragment),kn=s(),F.c(),vl=s(),el=p("p"),el.innerHTML=ms,Un=s(),b(tl.$$.fragment),jn=s(),P.c(),$l=s(),ll=p("p"),ll.innerHTML=fs,Jn=s(),b(il.$$.fragment),Zn=s(),D.c(),kl=s(),nl=p("p"),nl.textContent=cs,Cn=s(),b(ol.$$.fragment),Gn=s(),b(sl.$$.fragment),Wn=s(),K.c(),Ul=s(),b(al.$$.fragment),Bn=s(),jl=p("p"),this.h()},l(e){const t=Qs("svelte-u9bgzb",document.head);n=u(t,"META",{name:!0,content:!0}),t.forEach(l),r=a(e),o=u(e,"P",{}),Ls(o).forEach(l),c=a(e),M(v.$$.fragment,e),f=a(e),M(T.$$.fragment,e),C=a(e),M(U.$$.fragment,e),J=a(e),y.l(e),j=a(e),B=u(e,"P",{"data-svelte-h":!0}),m(B)!=="svelte-ppejdx"&&(B.textContent=I),pe=a(e),M(x.$$.fragment,e),k=a(e),G=u(e,"P",{"data-svelte-h":!0}),m(G)!=="svelte-1so2b8u"&&(G.textContent=Fn),Jl=a(e),ue=u(e,"P",{"data-svelte-h":!0}),m(ue)!=="svelte-3t0lku"&&(ue.textContent=En),Zl=a(e),me=u(e,"UL",{"data-svelte-h":!0}),m(me)!=="svelte-heqbow"&&(me.innerHTML=Pn),Cl=a(e),fe=u(e,"P",{"data-svelte-h":!0}),m(fe)!=="svelte-5x2k3g"&&(fe.textContent=qn),Gl=a(e),M(ce.$$.fragment,e),Wl=a(e),L.l(e),bl=a(e),de=u(e,"P",{"data-svelte-h":!0}),m(de)!=="svelte-mv0tkm"&&(de.innerHTML=Dn),Bl=a(e),he=u(e,"P",{"data-svelte-h":!0}),m(he)!=="svelte-1r6p14q"&&(he.innerHTML=On),xl=a(e),M(ye.$$.fragment,e),Il=a(e),be=u(e,"P",{"data-svelte-h":!0}),m(be)!=="svelte-1tlouu2"&&(be.textContent=Kn),Hl=a(e),M(Me.$$.fragment,e),Ll=a(e),ge=u(e,"P",{"data-svelte-h":!0}),m(ge)!=="svelte-9y2bb9"&&(ge.innerHTML=eo),Nl=a(e),we=u(e,"P",{"data-svelte-h":!0}),m(we)!=="svelte-85z3ji"&&(we.textContent=to),zl=a(e),z.l(e),Ml=a(e),_e=u(e,"P",{"data-svelte-h":!0}),m(_e)!=="svelte-gf5p05"&&(_e.innerHTML=lo),Vl=a(e),Te=u(e,"P",{"data-svelte-h":!0}),m(Te)!=="svelte-14cacm3"&&(Te.textContent=io),Xl=a(e),X.l(e),gl=a(e),ve=u(e,"P",{"data-svelte-h":!0}),m(ve)!=="svelte-1gmq897"&&(ve.innerHTML=no),Al=a(e),M($e.$$.fragment,e),Rl=a(e),ke=u(e,"P",{"data-svelte-h":!0}),m(ke)!=="svelte-s13zgw"&&(ke.innerHTML=oo),Yl=a(e),M(Ue.$$.fragment,e),Ql=a(e),je=u(e,"P",{"data-svelte-h":!0}),m(je)!=="svelte-das8gh"&&(je.innerHTML=so),Sl=a(e),M(Je.$$.fragment,e),Fl=a(e),Ze=u(e,"P",{"data-svelte-h":!0}),m(Ze)!=="svelte-owixe6"&&(Ze.innerHTML=ao),El=a(e),M(Ce.$$.fragment,e),Pl=a(e),Ge=u(e,"P",{"data-svelte-h":!0}),m(Ge)!=="svelte-nnv7ej"&&(Ge.innerHTML=ro),ql=a(e),We=u(e,"P",{"data-svelte-h":!0}),m(We)!=="svelte-1ortiw0"&&(We.textContent=po),Dl=a(e),O.l(e),wl=a(e),M(le.$$.fragment,e),Ol=a(e),Be=u(e,"P",{"data-svelte-h":!0}),m(Be)!=="svelte-10mrgkm"&&(Be.innerHTML=uo),Kl=a(e),xe=u(e,"P",{"data-svelte-h":!0}),m(xe)!=="svelte-h3theh"&&(xe.innerHTML=mo),ei=a(e),Ie=u(e,"P",{"data-svelte-h":!0}),m(Ie)!=="svelte-1g2t46s"&&(Ie.textContent=fo),ti=a(e),M(He.$$.fragment,e),li=a(e),Le=u(e,"P",{"data-svelte-h":!0}),m(Le)!=="svelte-1wacfmd"&&(Le.innerHTML=co),ii=a(e),Ne=u(e,"P",{"data-svelte-h":!0}),m(Ne)!=="svelte-x4hhbi"&&(Ne.innerHTML=ho),ni=a(e),M(ze.$$.fragment,e),oi=a(e),Ve=u(e,"P",{"data-svelte-h":!0}),m(Ve)!=="svelte-bqmt11"&&(Ve.innerHTML=yo),si=a(e),M(Xe.$$.fragment,e),ai=a(e),Ae=u(e,"P",{"data-svelte-h":!0}),m(Ae)!=="svelte-1chdaq7"&&(Ae.innerHTML=bo),ri=a(e),Re=u(e,"P",{"data-svelte-h":!0}),m(Re)!=="svelte-tvm62z"&&(Re.innerHTML=Mo),pi=a(e),M(Ye.$$.fragment,e),ui=a(e),Qe=u(e,"P",{"data-svelte-h":!0}),m(Qe)!=="svelte-1wdbtp8"&&(Qe.innerHTML=go),mi=a(e),M(Se.$$.fragment,e),fi=a(e),Fe=u(e,"P",{"data-svelte-h":!0}),m(Fe)!=="svelte-19l06uh"&&(Fe.innerHTML=wo),ci=a(e),Ee=u(e,"UL",{"data-svelte-h":!0}),m(Ee)!=="svelte-qyrs4a"&&(Ee.innerHTML=_o),di=a(e),Pe=u(e,"P",{"data-svelte-h":!0}),m(Pe)!=="svelte-dns72a"&&(Pe.textContent=To),hi=a(e),M(qe.$$.fragment,e),yi=a(e),De=u(e,"P",{"data-svelte-h":!0}),m(De)!=="svelte-16ot8al"&&(De.textContent=vo),bi=a(e),Oe=u(e,"P",{"data-svelte-h":!0}),m(Oe)!=="svelte-5m7y3f"&&(Oe.innerHTML=$o),Mi=a(e),ie=u(e,"DIV",{class:!0,"data-svelte-h":!0}),m(ie)!=="svelte-4qsgxt"&&(ie.innerHTML=ko),gi=a(e),Ke=u(e,"P",{"data-svelte-h":!0}),m(Ke)!=="svelte-x97blf"&&(Ke.textContent=Uo),wi=a(e),et=u(e,"P",{"data-svelte-h":!0}),m(et)!=="svelte-1in2cel"&&(et.textContent=jo),_i=a(e),tt=u(e,"P",{"data-svelte-h":!0}),m(tt)!=="svelte-1glo7k3"&&(tt.textContent=Jo),Ti=a(e),ne=u(e,"DIV",{class:!0,"data-svelte-h":!0}),m(ne)!=="svelte-1xh6nig"&&(ne.innerHTML=Zo),vi=a(e),lt=u(e,"P",{"data-svelte-h":!0}),m(lt)!=="svelte-upitwx"&&(lt.textContent=Co),$i=a(e),oe=u(e,"DIV",{class:!0,"data-svelte-h":!0}),m(oe)!=="svelte-1jm8l0p"&&(oe.innerHTML=Go),ki=a(e),it=u(e,"P",{"data-svelte-h":!0}),m(it)!=="svelte-1yrho5p"&&(it.textContent=Wo),Ui=a(e),nt=u(e,"P",{"data-svelte-h":!0}),m(nt)!=="svelte-xc0p0w"&&(nt.innerHTML=Bo),ji=a(e),se=u(e,"DIV",{class:!0,"data-svelte-h":!0}),m(se)!=="svelte-1kuf5jc"&&(se.innerHTML=xo),Ji=a(e),ot=u(e,"P",{"data-svelte-h":!0}),m(ot)!=="svelte-1dwybc3"&&(ot.textContent=Io),Zi=a(e),M(st.$$.fragment,e),Ci=a(e),at=u(e,"P",{"data-svelte-h":!0}),m(at)!=="svelte-1wpsmq7"&&(at.innerHTML=Ho),Gi=a(e),rt=u(e,"P",{"data-svelte-h":!0}),m(rt)!=="svelte-1twb1vd"&&(rt.innerHTML=Lo),Wi=a(e),M(pt.$$.fragment,e),Bi=a(e),ut=u(e,"P",{"data-svelte-h":!0}),m(ut)!=="svelte-16aw51k"&&(ut.innerHTML=No),xi=a(e),mt=u(e,"P",{"data-svelte-h":!0}),m(mt)!=="svelte-1p0r8t0"&&(mt.textContent=zo),Ii=a(e),M(ft.$$.fragment,e),Hi=a(e),ct=u(e,"P",{"data-svelte-h":!0}),m(ct)!=="svelte-1brzfhu"&&(ct.innerHTML=Vo),Li=a(e),dt=u(e,"UL",{"data-svelte-h":!0}),m(dt)!=="svelte-11e7gtr"&&(dt.innerHTML=Xo),Ni=a(e),M(ht.$$.fragment,e),zi=a(e),yt=u(e,"P",{"data-svelte-h":!0}),m(yt)!=="svelte-k5kitw"&&(yt.innerHTML=Ao),Vi=a(e),bt=u(e,"P",{"data-svelte-h":!0}),m(bt)!=="svelte-fwvr06"&&(bt.innerHTML=Ro),Xi=a(e),Mt=u(e,"P",{"data-svelte-h":!0}),m(Mt)!=="svelte-a4yvdi"&&(Mt.textContent=Yo),Ai=a(e),M(gt.$$.fragment,e),Ri=a(e),wt=u(e,"P",{"data-svelte-h":!0}),m(wt)!=="svelte-1oga5bi"&&(wt.innerHTML=Qo),Yi=a(e),_t=u(e,"P",{"data-svelte-h":!0}),m(_t)!=="svelte-1jk7bgg"&&(_t.textContent=So),Qi=a(e),M(Tt.$$.fragment,e),Si=a(e),vt=u(e,"P",{"data-svelte-h":!0}),m(vt)!=="svelte-11pj2x7"&&(vt.innerHTML=Fo),Fi=a(e),$t=u(e,"P",{"data-svelte-h":!0}),m($t)!=="svelte-fnzt1c"&&($t.textContent=Eo),Ei=a(e),kt=u(e,"P",{"data-svelte-h":!0}),m(kt)!=="svelte-12xtsul"&&(kt.textContent=Po),Pi=a(e),M(Ut.$$.fragment,e),qi=a(e),jt=u(e,"P",{"data-svelte-h":!0}),m(jt)!=="svelte-54bp1s"&&(jt.textContent=qo),Di=a(e),M(Jt.$$.fragment,e),Oi=a(e),Zt=u(e,"P",{"data-svelte-h":!0}),m(Zt)!=="svelte-xoedu"&&(Zt.innerHTML=Do),Ki=a(e),M(Ct.$$.fragment,e),en=a(e),Gt=u(e,"P",{"data-svelte-h":!0}),m(Gt)!=="svelte-64yxkl"&&(Gt.textContent=Oo),tn=a(e),M(Wt.$$.fragment,e),ln=a(e),Bt=u(e,"P",{"data-svelte-h":!0}),m(Bt)!=="svelte-3pkutz"&&(Bt.textContent=Ko),nn=a(e),xt=u(e,"P",{"data-svelte-h":!0}),m(xt)!=="svelte-1azu84o"&&(xt.innerHTML=es),on=a(e),It=u(e,"P",{"data-svelte-h":!0}),m(It)!=="svelte-la0lds"&&(It.textContent=ts),sn=a(e),M(Ht.$$.fragment,e),an=a(e),M(Lt.$$.fragment,e),rn=a(e),Nt=u(e,"P",{"data-svelte-h":!0}),m(Nt)!=="svelte-nox6q5"&&(Nt.textContent=ls),pn=a(e),M(zt.$$.fragment,e),un=a(e),Vt=u(e,"P",{"data-svelte-h":!0}),m(Vt)!=="svelte-yv7tw4"&&(Vt.innerHTML=is),mn=a(e),M(Xt.$$.fragment,e),fn=a(e),At=u(e,"P",{"data-svelte-h":!0}),m(At)!=="svelte-93i3n2"&&(At.innerHTML=ns),cn=a(e),M(Rt.$$.fragment,e),dn=a(e),M(Yt.$$.fragment,e),hn=a(e),Qt=u(e,"P",{"data-svelte-h":!0}),m(Qt)!=="svelte-nrsb3i"&&(Qt.innerHTML=os),yn=a(e),St=u(e,"P",{"data-svelte-h":!0}),m(St)!=="svelte-1rymwil"&&(St.innerHTML=ss),bn=a(e),Ft=u(e,"P",{"data-svelte-h":!0}),m(Ft)!=="svelte-1430t88"&&(Ft.textContent=as),Mn=a(e),R.l(e),_l=a(e),Et=u(e,"P",{"data-svelte-h":!0}),m(Et)!=="svelte-1jchcsx"&&(Et.innerHTML=rs),gn=a(e),M(Pt.$$.fragment,e),wn=a(e),Q.l(e),Tl=a(e),M(ae.$$.fragment,e),_n=a(e),qt=u(e,"P",{"data-svelte-h":!0}),m(qt)!=="svelte-1tr3c7g"&&(qt.innerHTML=ps),Tn=a(e),M(Dt.$$.fragment,e),vn=a(e),Ot=u(e,"P",{"data-svelte-h":!0}),m(Ot)!=="svelte-10785kr"&&(Ot.textContent=us),$n=a(e),M(Kt.$$.fragment,e),kn=a(e),F.l(e),vl=a(e),el=u(e,"P",{"data-svelte-h":!0}),m(el)!=="svelte-1k5g004"&&(el.innerHTML=ms),Un=a(e),M(tl.$$.fragment,e),jn=a(e),P.l(e),$l=a(e),ll=u(e,"P",{"data-svelte-h":!0}),m(ll)!=="svelte-74jbhj"&&(ll.innerHTML=fs),Jn=a(e),M(il.$$.fragment,e),Zn=a(e),D.l(e),kl=a(e),nl=u(e,"P",{"data-svelte-h":!0}),m(nl)!=="svelte-g3ryff"&&(nl.textContent=cs),Cn=a(e),M(ol.$$.fragment,e),Gn=a(e),M(sl.$$.fragment,e),Wn=a(e),K.l(e),Ul=a(e),M(al.$$.fragment,e),Bn=a(e),jl=u(e,"P",{}),Ls(jl).forEach(l),this.h()},h(){W(n,"name","hf:doc:metadata"),W(n,"content",va),W(ie,"class","flex justify-center"),W(ne,"class","flex justify-center"),W(oe,"class","flex justify-center"),W(se,"class","flex justify-center")},m(e,t){Ss(document.head,n),i(e,r,t),i(e,o,t),i(e,c,t),g(v,e,t),i(e,f,t),g(T,e,t),i(e,C,t),g(U,e,t),i(e,J,t),rl[Z].m(e,t),i(e,j,t),i(e,B,t),i(e,pe,t),g(x,e,t),i(e,k,t),i(e,G,t),i(e,Jl,t),i(e,ue,t),i(e,Zl,t),i(e,me,t),i(e,Cl,t),i(e,fe,t),i(e,Gl,t),g(ce,e,t),i(e,Wl,t),pl[H].m(e,t),i(e,bl,t),i(e,de,t),i(e,Bl,t),i(e,he,t),i(e,xl,t),g(ye,e,t),i(e,Il,t),i(e,be,t),i(e,Hl,t),g(Me,e,t),i(e,Ll,t),i(e,ge,t),i(e,Nl,t),i(e,we,t),i(e,zl,t),ul[N].m(e,t),i(e,Ml,t),i(e,_e,t),i(e,Vl,t),i(e,Te,t),i(e,Xl,t),ml[V].m(e,t),i(e,gl,t),i(e,ve,t),i(e,Al,t),g($e,e,t),i(e,Rl,t),i(e,ke,t),i(e,Yl,t),g(Ue,e,t),i(e,Ql,t),i(e,je,t),i(e,Sl,t),g(Je,e,t),i(e,Fl,t),i(e,Ze,t),i(e,El,t),g(Ce,e,t),i(e,Pl,t),i(e,Ge,t),i(e,ql,t),i(e,We,t),i(e,Dl,t),O.m(e,t),i(e,wl,t),g(le,e,t),i(e,Ol,t),i(e,Be,t),i(e,Kl,t),i(e,xe,t),i(e,ei,t),i(e,Ie,t),i(e,ti,t),g(He,e,t),i(e,li,t),i(e,Le,t),i(e,ii,t),i(e,Ne,t),i(e,ni,t),g(ze,e,t),i(e,oi,t),i(e,Ve,t),i(e,si,t),g(Xe,e,t),i(e,ai,t),i(e,Ae,t),i(e,ri,t),i(e,Re,t),i(e,pi,t),g(Ye,e,t),i(e,ui,t),i(e,Qe,t),i(e,mi,t),g(Se,e,t),i(e,fi,t),i(e,Fe,t),i(e,ci,t),i(e,Ee,t),i(e,di,t),i(e,Pe,t),i(e,hi,t),g(qe,e,t),i(e,yi,t),i(e,De,t),i(e,bi,t),i(e,Oe,t),i(e,Mi,t),i(e,ie,t),i(e,gi,t),i(e,Ke,t),i(e,wi,t),i(e,et,t),i(e,_i,t),i(e,tt,t),i(e,Ti,t),i(e,ne,t),i(e,vi,t),i(e,lt,t),i(e,$i,t),i(e,oe,t),i(e,ki,t),i(e,it,t),i(e,Ui,t),i(e,nt,t),i(e,ji,t),i(e,se,t),i(e,Ji,t),i(e,ot,t),i(e,Zi,t),g(st,e,t),i(e,Ci,t),i(e,at,t),i(e,Gi,t),i(e,rt,t),i(e,Wi,t),g(pt,e,t),i(e,Bi,t),i(e,ut,t),i(e,xi,t),i(e,mt,t),i(e,Ii,t),g(ft,e,t),i(e,Hi,t),i(e,ct,t),i(e,Li,t),i(e,dt,t),i(e,Ni,t),g(ht,e,t),i(e,zi,t),i(e,yt,t),i(e,Vi,t),i(e,bt,t),i(e,Xi,t),i(e,Mt,t),i(e,Ai,t),g(gt,e,t),i(e,Ri,t),i(e,wt,t),i(e,Yi,t),i(e,_t,t),i(e,Qi,t),g(Tt,e,t),i(e,Si,t),i(e,vt,t),i(e,Fi,t),i(e,$t,t),i(e,Ei,t),i(e,kt,t),i(e,Pi,t),g(Ut,e,t),i(e,qi,t),i(e,jt,t),i(e,Di,t),g(Jt,e,t),i(e,Oi,t),i(e,Zt,t),i(e,Ki,t),g(Ct,e,t),i(e,en,t),i(e,Gt,t),i(e,tn,t),g(Wt,e,t),i(e,ln,t),i(e,Bt,t),i(e,nn,t),i(e,xt,t),i(e,on,t),i(e,It,t),i(e,sn,t),g(Ht,e,t),i(e,an,t),g(Lt,e,t),i(e,rn,t),i(e,Nt,t),i(e,pn,t),g(zt,e,t),i(e,un,t),i(e,Vt,t),i(e,mn,t),g(Xt,e,t),i(e,fn,t),i(e,At,t),i(e,cn,t),g(Rt,e,t),i(e,dn,t),g(Yt,e,t),i(e,hn,t),i(e,Qt,t),i(e,yn,t),i(e,St,t),i(e,bn,t),i(e,Ft,t),i(e,Mn,t),fl[A].m(e,t),i(e,_l,t),i(e,Et,t),i(e,gn,t),g(Pt,e,t),i(e,wn,t),cl[Y].m(e,t),i(e,Tl,t),g(ae,e,t),i(e,_n,t),i(e,qt,t),i(e,Tn,t),g(Dt,e,t),i(e,vn,t),i(e,Ot,t),i(e,$n,t),g(Kt,e,t),i(e,kn,t),dl[S].m(e,t),i(e,vl,t),i(e,el,t),i(e,Un,t),g(tl,e,t),i(e,jn,t),hl[E].m(e,t),i(e,$l,t),i(e,ll,t),i(e,Jn,t),g(il,e,t),i(e,Zn,t),yl[q].m(e,t),i(e,kl,t),i(e,nl,t),i(e,Cn,t),g(ol,e,t),i(e,Gn,t),g(sl,e,t),i(e,Wn,t),K.m(e,t),i(e,Ul,t),g(al,e,t),i(e,Bn,t),i(e,jl,t),xn=!0},p(e,[t]){const xs={};t&1&&(xs.fw=e[0]),v.$set(xs);let Ln=Z;Z=hs(e),Z!==Ln&&(te(),d(rl[Ln],1,1,()=>{rl[Ln]=null}),ee(),y=rl[Z],y||(y=rl[Z]=ds[Z](e),y.c()),h(y,1),y.m(j.parentNode,j));let Nn=H;H=bs(e),H!==Nn&&(te(),d(pl[Nn],1,1,()=>{pl[Nn]=null}),ee(),L=pl[H],L||(L=pl[H]=ys[H](e),L.c()),h(L,1),L.m(bl.parentNode,bl));let zn=N;N=gs(e),N!==zn&&(te(),d(ul[zn],1,1,()=>{ul[zn]=null}),ee(),z=ul[N],z||(z=ul[N]=Ms[N](e),z.c()),h(z,1),z.m(Ml.parentNode,Ml));let Vn=V;V=_s(e),V!==Vn&&(te(),d(ml[Vn],1,1,()=>{ml[Vn]=null}),ee(),X=ml[V],X||(X=ml[V]=ws[V](e),X.c()),h(X,1),X.m(gl.parentNode,gl)),In!==(In=Ts(e))&&(O.d(1),O=In(e),O&&(O.c(),O.m(wl.parentNode,wl)));const Is={};t&2&&(Is.$$scope={dirty:t,ctx:e}),le.$set(Is);let Xn=A;A=$s(e),A!==Xn&&(te(),d(fl[Xn],1,1,()=>{fl[Xn]=null}),ee(),R=fl[A],R||(R=fl[A]=vs[A](e),R.c()),h(R,1),R.m(_l.parentNode,_l));let An=Y;Y=Us(e),Y!==An&&(te(),d(cl[An],1,1,()=>{cl[An]=null}),ee(),Q=cl[Y],Q||(Q=cl[Y]=ks[Y](e),Q.c()),h(Q,1),Q.m(Tl.parentNode,Tl));const Hs={};t&2&&(Hs.$$scope={dirty:t,ctx:e}),ae.$set(Hs);let Rn=S;S=Js(e),S!==Rn&&(te(),d(dl[Rn],1,1,()=>{dl[Rn]=null}),ee(),F=dl[S],F||(F=dl[S]=js[S](e),F.c()),h(F,1),F.m(vl.parentNode,vl));let Yn=E;E=Cs(e),E!==Yn&&(te(),d(hl[Yn],1,1,()=>{hl[Yn]=null}),ee(),P=hl[E],P||(P=hl[E]=Zs[E](e),P.c()),h(P,1),P.m($l.parentNode,$l));let Qn=q;q=Ws(e),q!==Qn&&(te(),d(yl[Qn],1,1,()=>{yl[Qn]=null}),ee(),D=yl[q],D||(D=yl[q]=Gs[q](e),D.c()),h(D,1),D.m(kl.parentNode,kl)),Hn!==(Hn=Bs(e))&&(K.d(1),K=Hn(e),K&&(K.c(),K.m(Ul.parentNode,Ul)))},i(e){xn||(h(v.$$.fragment,e),h(T.$$.fragment,e),h(U.$$.fragment,e),h(y),h(x.$$.fragment,e),h(ce.$$.fragment,e),h(L),h(ye.$$.fragment,e),h(Me.$$.fragment,e),h(z),h(X),h($e.$$.fragment,e),h(Ue.$$.fragment,e),h(Je.$$.fragment,e),h(Ce.$$.fragment,e),h(le.$$.fragment,e),h(He.$$.fragment,e),h(ze.$$.fragment,e),h(Xe.$$.fragment,e),h(Ye.$$.fragment,e),h(Se.$$.fragment,e),h(qe.$$.fragment,e),h(st.$$.fragment,e),h(pt.$$.fragment,e),h(ft.$$.fragment,e),h(ht.$$.fragment,e),h(gt.$$.fragment,e),h(Tt.$$.fragment,e),h(Ut.$$.fragment,e),h(Jt.$$.fragment,e),h(Ct.$$.fragment,e),h(Wt.$$.fragment,e),h(Ht.$$.fragment,e),h(Lt.$$.fragment,e),h(zt.$$.fragment,e),h(Xt.$$.fragment,e),h(Rt.$$.fragment,e),h(Yt.$$.fragment,e),h(R),h(Pt.$$.fragment,e),h(Q),h(ae.$$.fragment,e),h(Dt.$$.fragment,e),h(Kt.$$.fragment,e),h(F),h(tl.$$.fragment,e),h(P),h(il.$$.fragment,e),h(D),h(ol.$$.fragment,e),h(sl.$$.fragment,e),h(al.$$.fragment,e),xn=!0)},o(e){d(v.$$.fragment,e),d(T.$$.fragment,e),d(U.$$.fragment,e),d(y),d(x.$$.fragment,e),d(ce.$$.fragment,e),d(L),d(ye.$$.fragment,e),d(Me.$$.fragment,e),d(z),d(X),d($e.$$.fragment,e),d(Ue.$$.fragment,e),d(Je.$$.fragment,e),d(Ce.$$.fragment,e),d(le.$$.fragment,e),d(He.$$.fragment,e),d(ze.$$.fragment,e),d(Xe.$$.fragment,e),d(Ye.$$.fragment,e),d(Se.$$.fragment,e),d(qe.$$.fragment,e),d(st.$$.fragment,e),d(pt.$$.fragment,e),d(ft.$$.fragment,e),d(ht.$$.fragment,e),d(gt.$$.fragment,e),d(Tt.$$.fragment,e),d(Ut.$$.fragment,e),d(Jt.$$.fragment,e),d(Ct.$$.fragment,e),d(Wt.$$.fragment,e),d(Ht.$$.fragment,e),d(Lt.$$.fragment,e),d(zt.$$.fragment,e),d(Xt.$$.fragment,e),d(Rt.$$.fragment,e),d(Yt.$$.fragment,e),d(R),d(Pt.$$.fragment,e),d(Q),d(ae.$$.fragment,e),d(Dt.$$.fragment,e),d(Kt.$$.fragment,e),d(F),d(tl.$$.fragment,e),d(P),d(il.$$.fragment,e),d(D),d(ol.$$.fragment,e),d(sl.$$.fragment,e),d(al.$$.fragment,e),xn=!1},d(e){e&&(l(r),l(o),l(c),l(f),l(C),l(J),l(j),l(B),l(pe),l(k),l(G),l(Jl),l(ue),l(Zl),l(me),l(Cl),l(fe),l(Gl),l(Wl),l(bl),l(de),l(Bl),l(he),l(xl),l(Il),l(be),l(Hl),l(Ll),l(ge),l(Nl),l(we),l(zl),l(Ml),l(_e),l(Vl),l(Te),l(Xl),l(gl),l(ve),l(Al),l(Rl),l(ke),l(Yl),l(Ql),l(je),l(Sl),l(Fl),l(Ze),l(El),l(Pl),l(Ge),l(ql),l(We),l(Dl),l(wl),l(Ol),l(Be),l(Kl),l(xe),l(ei),l(Ie),l(ti),l(li),l(Le),l(ii),l(Ne),l(ni),l(oi),l(Ve),l(si),l(ai),l(Ae),l(ri),l(Re),l(pi),l(ui),l(Qe),l(mi),l(fi),l(Fe),l(ci),l(Ee),l(di),l(Pe),l(hi),l(yi),l(De),l(bi),l(Oe),l(Mi),l(ie),l(gi),l(Ke),l(wi),l(et),l(_i),l(tt),l(Ti),l(ne),l(vi),l(lt),l($i),l(oe),l(ki),l(it),l(Ui),l(nt),l(ji),l(se),l(Ji),l(ot),l(Zi),l(Ci),l(at),l(Gi),l(rt),l(Wi),l(Bi),l(ut),l(xi),l(mt),l(Ii),l(Hi),l(ct),l(Li),l(dt),l(Ni),l(zi),l(yt),l(Vi),l(bt),l(Xi),l(Mt),l(Ai),l(Ri),l(wt),l(Yi),l(_t),l(Qi),l(Si),l(vt),l(Fi),l($t),l(Ei),l(kt),l(Pi),l(qi),l(jt),l(Di),l(Oi),l(Zt),l(Ki),l(en),l(Gt),l(tn),l(ln),l(Bt),l(nn),l(xt),l(on),l(It),l(sn),l(an),l(rn),l(Nt),l(pn),l(un),l(Vt),l(mn),l(fn),l(At),l(cn),l(dn),l(hn),l(Qt),l(yn),l(St),l(bn),l(Ft),l(Mn),l(_l),l(Et),l(gn),l(wn),l(Tl),l(_n),l(qt),l(Tn),l(vn),l(Ot),l($n),l(kn),l(vl),l(el),l(Un),l(jn),l($l),l(ll),l(Jn),l(Zn),l(kl),l(nl),l(Cn),l(Gn),l(Wn),l(Ul),l(Bn),l(jl)),l(n),w(v,e),w(T,e),w(U,e),rl[Z].d(e),w(x,e),w(ce,e),pl[H].d(e),w(ye,e),w(Me,e),ul[N].d(e),ml[V].d(e),w($e,e),w(Ue,e),w(Je,e),w(Ce,e),O.d(e),w(le,e),w(He,e),w(ze,e),w(Xe,e),w(Ye,e),w(Se,e),w(qe,e),w(st,e),w(pt,e),w(ft,e),w(ht,e),w(gt,e),w(Tt,e),w(Ut,e),w(Jt,e),w(Ct,e),w(Wt,e),w(Ht,e),w(Lt,e),w(zt,e),w(Xt,e),w(Rt,e),w(Yt,e),fl[A].d(e),w(Pt,e),cl[Y].d(e),w(ae,e),w(Dt,e),w(Kt,e),dl[S].d(e),w(tl,e),hl[E].d(e),w(il,e),yl[q].d(e),w(ol,e),w(sl,e),K.d(e),w(al,e)}}}const va='{"title":"Sharing pretrained models","local":"sharing-pretrained-models","sections":[{"title":"Using the push_to_hub API","local":"using-the-pushtohub-api","sections":[],"depth":2},{"title":"Using the huggingface_hub Python library","local":"using-the-huggingfacehub-python-library","sections":[],"depth":2},{"title":"Using the web interface","local":"using-the-web-interface","sections":[],"depth":2},{"title":"Uploading the model files","local":"uploading-the-model-files","sections":[{"title":"The upload_file approach","local":"the-uploadfile-approach","sections":[],"depth":3},{"title":"The Repository class","local":"the-repository-class","sections":[],"depth":3},{"title":"The git-based approach","local":"the-git-based-approach","sections":[],"depth":3}],"depth":2}],"depth":1}';function $a(_,n,r){let o="pt";return Xs(()=>{const c=new URLSearchParams(window.location.search);r(0,o=c.get("fw")||"pt")}),[o]}class Ba extends Rs{constructor(n){super(),Ys(this,n,$a,Ta,Vs,{})}}export{Ba as component};
