import{s as Ns,o as zs,n as Vs}from"../chunks/scheduler.37c15a92.js";import{S as Xs,i as As,g as p,s,r as b,A as Rs,h as u,f as l,c as a,j as Is,u as M,x as m,k as B,y as Ys,a as i,v as g,t as d,b as ee,d as h,w,m as Qs,n as Ss,p as te}from"../chunks/index.7cb9c9b8.js";import{T as Hs}from"../chunks/Tip.d10b3fc9.js";import{Y as Qn}from"../chunks/Youtube.8666c400.js";import{C as $}from"../chunks/CodeBlock.abae2786.js";import{C as Ls}from"../chunks/CourseFloatingBanner.df82c153.js";import{F as Fs}from"../chunks/FrameworkSwitchCourse.97630871.js";import{H as re,E as Es}from"../chunks/index.706e2c58.js";function Ps(_){let n,r;return n=new Ls({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,f){g(n,o,f),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 qs(_){let n,r;return n=new Ls({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,f){g(n,o,f),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 Ds(_){let n,r;return n=new Qn({props:{id:"pUh5cGmNV8Y"}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,f){g(n,o,f),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 Os(_){let n,r;return n=new Qn({props:{id:"Zh0FfmVrKX0"}}),{c(){b(n.$$.fragment)},l(o){M(n.$$.fragment,o)},m(o,f){g(n,o,f),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="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,f,v,c,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,k,U="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 f=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(f.$$.fragment),v=s(),c=p("p"),c.innerHTML=T,C=s(),k=p("p"),k.innerHTML=U},l(y){n=u(y,"P",{"data-svelte-h":!0}),m(n)!=="svelte-1lt55a0"&&(n.innerHTML=r),o=a(y),M(f.$$.fragment,y),v=a(y),c=u(y,"P",{"data-svelte-h":!0}),m(c)!=="svelte-1koxui"&&(c.innerHTML=T),C=a(y),k=u(y,"P",{"data-svelte-h":!0}),m(k)!=="svelte-f8xwvf"&&(k.innerHTML=U)},m(y,J){i(y,n,J),i(y,o,J),g(f,y,J),i(y,v,J),i(y,c,J),i(y,C,J),i(y,k,J),Z=!0},i(y){Z||(h(f.$$.fragment,y),Z=!0)},o(y){d(f.$$.fragment,y),Z=!1},d(y){y&&(l(n),l(o),l(v),l(c),l(C),l(k)),w(f,y)}}}function ea(_){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,f,v,c,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,k,U="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:",D,G,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 f=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(f.$$.fragment),v=s(),c=p("p"),c.innerHTML=T,C=s(),k=p("p"),k.innerHTML=U,Z=s(),y=p("p"),y.innerHTML=J,D=s(),G=p("div"),G.innerHTML=pe,this.h()},l(j){n=u(j,"P",{"data-svelte-h":!0}),m(n)!=="svelte-hqpw93"&&(n.innerHTML=r),o=a(j),M(f.$$.fragment,j),v=a(j),c=u(j,"P",{"data-svelte-h":!0}),m(c)!=="svelte-f1gbgd"&&(c.innerHTML=T),C=a(j),k=u(j,"P",{"data-svelte-h":!0}),m(k)!=="svelte-123gl5x"&&(k.innerHTML=U),Z=a(j),y=u(j,"P",{"data-svelte-h":!0}),m(y)!=="svelte-7btvjn"&&(y.innerHTML=J),D=a(j),G=u(j,"DIV",{class:!0,"data-svelte-h":!0}),m(G)!=="svelte-1lhrimn"&&(G.innerHTML=pe),this.h()},h(){B(G,"class","flex justify-center")},m(j,W){i(j,n,W),i(j,o,W),g(f,j,W),i(j,v,W),i(j,c,W),i(j,C,W),i(j,k,W),i(j,Z,W),i(j,y,W),i(j,D,W),i(j,G,W),x=!0},i(j){x||(h(f.$$.fragment,j),x=!0)},o(j){d(f.$$.fragment,j),x=!1},d(j){j&&(l(n),l(o),l(v),l(c),l(C),l(k),l(Z),l(y),l(D),l(G)),w(f,j)}}}function ta(_){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,f){g(n,o,f),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;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,f){g(n,o,f),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 ia(_){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(){B(n,"class","flex justify-center")},m(o,f){i(o,n,f)},d(o){o&&l(n)}}}function na(_){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(){B(n,"class","flex justify-center")},m(o,f){i(o,n,f)},d(o){o&&l(n)}}}function oa(_){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,f){i(o,n,f)},p:Vs,d(o){o&&l(n)}}}function sa(_){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,f){g(n,o,f),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 aa(_){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,f){g(n,o,f),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 ra(_){let n,r,o,f="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=f},l(c){M(n.$$.fragment,c),r=a(c),o=u(c,"P",{"data-svelte-h":!0}),m(o)!=="svelte-1sqai1o"&&(o.innerHTML=f)},m(c,T){g(n,c,T),i(c,r,T),i(c,o,T),v=!0},i(c){v||(h(n.$$.fragment,c),v=!0)},o(c){d(n.$$.fragment,c),v=!1},d(c){c&&(l(r),l(o)),w(n,c)}}}function pa(_){let n,r,o,f="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=f},l(c){M(n.$$.fragment,c),r=a(c),o=u(c,"P",{"data-svelte-h":!0}),m(o)!=="svelte-174jxm4"&&(o.innerHTML=f)},m(c,T){g(n,c,T),i(c,r,T),i(c,o,T),v=!0},i(c){v||(h(n.$$.fragment,c),v=!0)},o(c){d(n.$$.fragment,c),v=!1},d(c){c&&(l(r),l(o)),w(n,c)}}}function ua(_){let n;return{c(){n=Qs("✏️ 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=Ss(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 ma(_){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,f){g(n,o,f),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 ca(_){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,f){g(n,o,f),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 fa(_){let n,r,o,f="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=f},l(c){M(n.$$.fragment,c),r=a(c),o=u(c,"P",{"data-svelte-h":!0}),m(o)!=="svelte-vzlgj3"&&(o.innerHTML=f)},m(c,T){g(n,c,T),i(c,r,T),i(c,o,T),v=!0},i(c){v||(h(n.$$.fragment,c),v=!0)},o(c){d(n.$$.fragment,c),v=!1},d(c){c&&(l(r),l(o)),w(n,c)}}}function da(_){let n,r,o,f="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=f},l(c){M(n.$$.fragment,c),r=a(c),o=u(c,"P",{"data-svelte-h":!0}),m(o)!=="svelte-1t3qvv6"&&(o.innerHTML=f)},m(c,T){g(n,c,T),i(c,r,T),i(c,o,T),v=!0},i(c){v||(h(n.$$.fragment,c),v=!0)},o(c){d(n.$$.fragment,c),v=!1},d(c){c&&(l(r),l(o)),w(n,c)}}}function ha(_){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,f){g(n,o,f),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;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,f){g(n,o,f),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 ba(_){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,f,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%"/>',c,T,C="The UI allows you to explore the model files and commits and to see the diff introduced by each commit:",k,U,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(),f=p("div"),f.innerHTML=v,c=s(),T=p("p"),T.textContent=C,k=s(),U=p("div"),U.innerHTML=Z,this.h()},l(y){n=u(y,"P",{"data-svelte-h":!0}),m(n)!=="svelte-dr5wot"&&(n.textContent=r),o=a(y),f=u(y,"DIV",{class:!0,"data-svelte-h":!0}),m(f)!=="svelte-tz4fi2"&&(f.innerHTML=v),c=a(y),T=u(y,"P",{"data-svelte-h":!0}),m(T)!=="svelte-9fow57"&&(T.textContent=C),k=a(y),U=u(y,"DIV",{class:!0,"data-svelte-h":!0}),m(U)!=="svelte-2jd8bj"&&(U.innerHTML=Z),this.h()},h(){B(f,"class","flex justify-center"),B(U,"class","flex justify-center")},m(y,J){i(y,n,J),i(y,o,J),i(y,f,J),i(y,c,J),i(y,T,J),i(y,k,J),i(y,U,J)},d(y){y&&(l(n),l(o),l(f),l(c),l(T),l(k),l(U))}}}function Ma(_){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,f,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%"/>',c,T,C="The UI allows you to explore the model files and commits and to see the diff introduced by each commit:",k,U,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(),f=p("div"),f.innerHTML=v,c=s(),T=p("p"),T.textContent=C,k=s(),U=p("div"),U.innerHTML=Z,this.h()},l(y){n=u(y,"P",{"data-svelte-h":!0}),m(n)!=="svelte-dr5wot"&&(n.textContent=r),o=a(y),f=u(y,"DIV",{class:!0,"data-svelte-h":!0}),m(f)!=="svelte-1v39mjb"&&(f.innerHTML=v),c=a(y),T=u(y,"P",{"data-svelte-h":!0}),m(T)!=="svelte-9fow57"&&(T.textContent=C),k=a(y),U=u(y,"DIV",{class:!0,"data-svelte-h":!0}),m(U)!=="svelte-1g561m5"&&(U.innerHTML=Z),this.h()},h(){B(f,"class","flex justify-center"),B(U,"class","flex justify-center")},m(y,J){i(y,n,J),i(y,o,J),i(y,f,J),i(y,c,J),i(y,T,J),i(y,k,J),i(y,U,J)},d(y){y&&(l(n),l(o),l(f),l(c),l(T),l(k),l(U))}}}function ga(_){let n,r,o,f,v,c,T,C,k,U,Z,y,J="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.",D,G,pe,x,j="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!",W,ue,Sn="There are three ways to go about creating new model repositories:",Jl,me,Fn="<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>",Zl,ce,En="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.",Cl,fe,Gl,I,H,bl,de,Pn="The simplest way to upload files to the Hub is by leveraging the <code>push_to_hub</code> API.",Wl,he,qn='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:',Bl,ye,xl,be,Dn="In a terminal, you can run:",Il,Me,Hl,ge,On='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>.',Ll,we,Kn="Great! You now have your authentication token stored in your cache folder. Let’s create some repositories!",Nl,L,N,Ml,_e,eo="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.",zl,Te,to="To get an idea of how it works, let’s first initialize a model and a tokenizer:",Vl,z,V,gl,ve,lo="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:",Xl,$e,Al,ke,io=`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:`,Rl,Ue,Yl,je,no="If you belong to an organization, simply specify the <code>organization</code> argument to upload to that organization’s namespace:",Ql,Je,Sl,Ze,oo="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:",Fl,Ce,El,Ge,so='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>.',Pl,We,ao="Click on the “Files and versions” tab, and you should see the files visible in the following screenshot:",ql,wl,le,Dl,Be,ro='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.',Ol,xe,po='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.',Kl,Ie,uo="Jump to the last section to see how to upload files to your newly created repository!",ei,He,ti,Le,mo=`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.`,li,Ne,co="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):",ii,ze,ni,Ve,fo="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:",oi,Xe,si,Ae,ho="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.",ai,Re,yo="The <code>create_repo</code> method can be used to create a new repository on the hub:",ri,Ye,pi,Qe,bo="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:",ui,Se,mi,Fe,Mo=`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,go="<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>",fi,Pe,wo="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.",di,qe,hi,De,_o="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.",yi,Oe,To='To create a new repository, visit <a href="https://huggingface.co/new" rel="nofollow">huggingface.co/new</a>:',bi,ie,vo='<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%"/>',Mi,Ke,$o="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.",gi,et,ko="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.",wi,tt,Uo="After creating your model repository, you should see a page like this:",_i,ne,jo='<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%"/>',Ti,lt,Jo="This is where your model will be hosted. To start populating it, you can add a README file directly from the web interface.",vi,oe,Zo='<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%"/>',$i,it,Co="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.",ki,nt,Go="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.",Ui,se,Wo='<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,Bo="We’ll take a look at how to add some new files next.",Ji,st,Zi,at,xo='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.',Ci,rt,Io="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.",Gi,pt,Wi,ut,Ho=`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.`,Bi,mt,Lo="The API may be used as follows:",xi,ct,Ii,ft,No=`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:`,Hi,dt,zo="<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>",Li,ht,Ni,yt,Vo="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.",zi,bt,Xo='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.',Vi,Mt,Ao="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:",Xi,gt,Ai,wt,Ro="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>.",Ri,_t,Yo="From this point on, we may leverage several of the traditional git methods:",Yi,Tt,Qi,vt,Qo='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.',Si,$t,So="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.",Fi,kt,Fo="We first make sure that our local clone is up to date by pulling the latest changes:",Ei,Ut,Pi,jt,Eo="Once that is done, we save the model and tokenizer files:",qi,Jt,Di,Zt,Po="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:",Oi,Ct,Ki,Gt,qo="Congratulations! You just pushed your first files on the hub.",en,Wt,tn,Bt,Do="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.",ln,xt,Oo='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.',nn,It,Ko="First start by initializing git-lfs:",on,Ht,sn,Lt,an,Nt,es="Once that’s done, the first step is to clone your model repository:",rn,zt,pn,Vt,ts="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:",un,Xt,mn,At,ls="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,fn,Yt,dn,Qt,is="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.",hn,St,ns="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>.",yn,Ft,os="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:",bn,X,A,_l,Et,ss="Now that we’ve saved some model and tokenizer artifacts, let’s take another look at the <em>dummy</em> folder:",Mn,Pt,gn,R,Y,Tl,ae,wn,qt,as="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:",_n,Dt,Tn,Ot,rs="We can then have a look at the files that are currently staged:",vn,Kt,$n,Q,S,vl,el,ps="Similarly, we can make sure that git-lfs is tracking the correct files by using its <code>status</code> command:",kn,tl,Un,F,E,$l,ll,us="Let’s proceed to the final steps, committing and pushing to the <em>huggingface.co</em> remote repository:",jn,il,Jn,P,q,kl,nl,ms="Pushing can take a bit of time, depending on the speed of your internet connection and the size of your files:",Zn,ol,Cn,sl,Gn,Ul,al,Wn,jl,Bn;v=new Fs({props:{fw:_[0]}}),T=new re({props:{title:"Sharing pretrained models",local:"sharing-pretrained-models",headingTag:"h1"}});const cs=[qs,Ps],rl=[];function fs(e,t){return e[0]==="pt"?0:1}k=fs(_),U=rl[k]=cs[k](_),G=new Qn({props:{id:"9yY3RB_GSPM"}}),fe=new re({props:{title:"Using the push_to_hub API",local:"using-the-pushtohub-api",headingTag:"h2"}});const ds=[Os,Ds],pl=[];function hs(e,t){return e[0]==="pt"?0:1}I=hs(_),H=pl[I]=ds[I](_),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 ys=[ea,Ks],ul=[];function bs(e,t){return e[0]==="pt"?0:1}L=bs(_),N=ul[L]=ys[L](_);const Ms=[la,ta],ml=[];function gs(e,t){return e[0]==="pt"?0:1}z=gs(_),V=ml[z]=Ms[z](_),$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 ws(e,t){return e[0]==="pt"?na:ia}let xn=ws(_),O=xn(_);le=new Hs({props:{$$slots:{default:[oa]},$$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"}}),ct=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 _s=[aa,sa],cl=[];function Ts(e,t){return e[0]==="pt"?0:1}X=Ts(_),A=cl[X]=_s[X](_),Pt=new $({props:{code:"bHM=",highlighted:'<span class="hljs-built_in">ls</span>',wrap:!1}});const vs=[pa,ra],fl=[];function $s(e,t){return e[0]==="pt"?0:1}R=$s(_),Y=fl[R]=vs[R](_),ae=new Hs({props:{$$slots:{default:[ua]},$$scope:{ctx:_}}}),Dt=new $({props:{code:"Z2l0JTIwYWRkJTIwLg==",highlighted:"git add .",wrap:!1}}),Kt=new $({props:{code:"Z2l0JTIwc3RhdHVz",highlighted:"git status",wrap:!1}});const ks=[ca,ma],dl=[];function Us(e,t){return e[0]==="pt"?0:1}Q=Us(_),S=dl[Q]=ks[Q](_),tl=new $({props:{code:"Z2l0JTIwbGZzJTIwc3RhdHVz",highlighted:"git lfs status",wrap:!1}});const js=[da,fa],hl=[];function Js(e,t){return e[0]==="pt"?0:1}F=Js(_),E=hl[F]=js[F](_),il=new $({props:{code:"Z2l0JTIwY29tbWl0JTIwLW0lMjAlMjJGaXJzdCUyMG1vZGVsJTIwdmVyc2lvbiUyMg==",highlighted:'git commit -m <span class="hljs-string">&quot;First model version&quot;</span>',wrap:!1}});const Zs=[ya,ha],yl=[];function Cs(e,t){return e[0]==="pt"?0:1}P=Cs(_),q=yl[P]=Zs[P](_),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 Gs(e,t){return e[0]==="pt"?Ma:ba}let In=Gs(_),K=In(_);return al=new Es({props:{source:"https://github.com/huggingface/course/blob/main/chapters/en/chapter4/3.mdx"}}),{c(){n=p("meta"),r=s(),o=p("p"),f=s(),b(v.$$.fragment),c=s(),b(T.$$.fragment),C=s(),U.c(),Z=s(),y=p("p"),y.textContent=J,D=s(),b(G.$$.fragment),pe=s(),x=p("p"),x.textContent=j,W=s(),ue=p("p"),ue.textContent=Sn,Jl=s(),me=p("ul"),me.innerHTML=Fn,Zl=s(),ce=p("p"),ce.textContent=En,Cl=s(),b(fe.$$.fragment),Gl=s(),H.c(),bl=s(),de=p("p"),de.innerHTML=Pn,Wl=s(),he=p("p"),he.innerHTML=qn,Bl=s(),b(ye.$$.fragment),xl=s(),be=p("p"),be.textContent=Dn,Il=s(),b(Me.$$.fragment),Hl=s(),ge=p("p"),ge.innerHTML=On,Ll=s(),we=p("p"),we.textContent=Kn,Nl=s(),N.c(),Ml=s(),_e=p("p"),_e.innerHTML=eo,zl=s(),Te=p("p"),Te.textContent=to,Vl=s(),V.c(),gl=s(),ve=p("p"),ve.innerHTML=lo,Xl=s(),b($e.$$.fragment),Al=s(),ke=p("p"),ke.innerHTML=io,Rl=s(),b(Ue.$$.fragment),Yl=s(),je=p("p"),je.innerHTML=no,Ql=s(),b(Je.$$.fragment),Sl=s(),Ze=p("p"),Ze.innerHTML=oo,Fl=s(),b(Ce.$$.fragment),El=s(),Ge=p("p"),Ge.innerHTML=so,Pl=s(),We=p("p"),We.textContent=ao,ql=s(),O.c(),wl=s(),b(le.$$.fragment),Dl=s(),Be=p("p"),Be.innerHTML=ro,Ol=s(),xe=p("p"),xe.innerHTML=po,Kl=s(),Ie=p("p"),Ie.textContent=uo,ei=s(),b(He.$$.fragment),ti=s(),Le=p("p"),Le.innerHTML=mo,li=s(),Ne=p("p"),Ne.innerHTML=co,ii=s(),b(ze.$$.fragment),ni=s(),Ve=p("p"),Ve.innerHTML=fo,oi=s(),b(Xe.$$.fragment),si=s(),Ae=p("p"),Ae.innerHTML=ho,ai=s(),Re=p("p"),Re.innerHTML=yo,ri=s(),b(Ye.$$.fragment),pi=s(),Qe=p("p"),Qe.innerHTML=bo,ui=s(),b(Se.$$.fragment),mi=s(),Fe=p("p"),Fe.innerHTML=Mo,ci=s(),Ee=p("ul"),Ee.innerHTML=go,fi=s(),Pe=p("p"),Pe.textContent=wo,di=s(),b(qe.$$.fragment),hi=s(),De=p("p"),De.textContent=_o,yi=s(),Oe=p("p"),Oe.innerHTML=To,bi=s(),ie=p("div"),ie.innerHTML=vo,Mi=s(),Ke=p("p"),Ke.textContent=$o,gi=s(),et=p("p"),et.textContent=ko,wi=s(),tt=p("p"),tt.textContent=Uo,_i=s(),ne=p("div"),ne.innerHTML=jo,Ti=s(),lt=p("p"),lt.textContent=Jo,vi=s(),oe=p("div"),oe.innerHTML=Zo,$i=s(),it=p("p"),it.textContent=Co,ki=s(),nt=p("p"),nt.innerHTML=Go,Ui=s(),se=p("div"),se.innerHTML=Wo,ji=s(),ot=p("p"),ot.textContent=Bo,Ji=s(),b(st.$$.fragment),Zi=s(),at=p("p"),at.innerHTML=xo,Ci=s(),rt=p("p"),rt.innerHTML=Io,Gi=s(),b(pt.$$.fragment),Wi=s(),ut=p("p"),ut.innerHTML=Ho,Bi=s(),mt=p("p"),mt.textContent=Lo,xi=s(),b(ct.$$.fragment),Ii=s(),ft=p("p"),ft.innerHTML=No,Hi=s(),dt=p("ul"),dt.innerHTML=zo,Li=s(),b(ht.$$.fragment),Ni=s(),yt=p("p"),yt.innerHTML=Vo,zi=s(),bt=p("p"),bt.innerHTML=Xo,Vi=s(),Mt=p("p"),Mt.textContent=Ao,Xi=s(),b(gt.$$.fragment),Ai=s(),wt=p("p"),wt.innerHTML=Ro,Ri=s(),_t=p("p"),_t.textContent=Yo,Yi=s(),b(Tt.$$.fragment),Qi=s(),vt=p("p"),vt.innerHTML=Qo,Si=s(),$t=p("p"),$t.textContent=So,Fi=s(),kt=p("p"),kt.textContent=Fo,Ei=s(),b(Ut.$$.fragment),Pi=s(),jt=p("p"),jt.textContent=Eo,qi=s(),b(Jt.$$.fragment),Di=s(),Zt=p("p"),Zt.innerHTML=Po,Oi=s(),b(Ct.$$.fragment),Ki=s(),Gt=p("p"),Gt.textContent=qo,en=s(),b(Wt.$$.fragment),tn=s(),Bt=p("p"),Bt.textContent=Do,ln=s(),xt=p("p"),xt.innerHTML=Oo,nn=s(),It=p("p"),It.textContent=Ko,on=s(),b(Ht.$$.fragment),sn=s(),b(Lt.$$.fragment),an=s(),Nt=p("p"),Nt.textContent=es,rn=s(),b(zt.$$.fragment),pn=s(),Vt=p("p"),Vt.innerHTML=ts,un=s(),b(Xt.$$.fragment),mn=s(),At=p("p"),At.innerHTML=ls,cn=s(),b(Rt.$$.fragment),fn=s(),b(Yt.$$.fragment),dn=s(),Qt=p("p"),Qt.innerHTML=is,hn=s(),St=p("p"),St.innerHTML=ns,yn=s(),Ft=p("p"),Ft.textContent=os,bn=s(),A.c(),_l=s(),Et=p("p"),Et.innerHTML=ss,Mn=s(),b(Pt.$$.fragment),gn=s(),Y.c(),Tl=s(),b(ae.$$.fragment),wn=s(),qt=p("p"),qt.innerHTML=as,_n=s(),b(Dt.$$.fragment),Tn=s(),Ot=p("p"),Ot.textContent=rs,vn=s(),b(Kt.$$.fragment),$n=s(),S.c(),vl=s(),el=p("p"),el.innerHTML=ps,kn=s(),b(tl.$$.fragment),Un=s(),E.c(),$l=s(),ll=p("p"),ll.innerHTML=us,jn=s(),b(il.$$.fragment),Jn=s(),q.c(),kl=s(),nl=p("p"),nl.textContent=ms,Zn=s(),b(ol.$$.fragment),Cn=s(),b(sl.$$.fragment),Gn=s(),K.c(),Ul=s(),b(al.$$.fragment),Wn=s(),jl=p("p"),this.h()},l(e){const t=Rs("svelte-u9bgzb",document.head);n=u(t,"META",{name:!0,content:!0}),t.forEach(l),r=a(e),o=u(e,"P",{}),Is(o).forEach(l),f=a(e),M(v.$$.fragment,e),c=a(e),M(T.$$.fragment,e),C=a(e),U.l(e),Z=a(e),y=u(e,"P",{"data-svelte-h":!0}),m(y)!=="svelte-ppejdx"&&(y.textContent=J),D=a(e),M(G.$$.fragment,e),pe=a(e),x=u(e,"P",{"data-svelte-h":!0}),m(x)!=="svelte-1so2b8u"&&(x.textContent=j),W=a(e),ue=u(e,"P",{"data-svelte-h":!0}),m(ue)!=="svelte-3t0lku"&&(ue.textContent=Sn),Jl=a(e),me=u(e,"UL",{"data-svelte-h":!0}),m(me)!=="svelte-heqbow"&&(me.innerHTML=Fn),Zl=a(e),ce=u(e,"P",{"data-svelte-h":!0}),m(ce)!=="svelte-5x2k3g"&&(ce.textContent=En),Cl=a(e),M(fe.$$.fragment,e),Gl=a(e),H.l(e),bl=a(e),de=u(e,"P",{"data-svelte-h":!0}),m(de)!=="svelte-mv0tkm"&&(de.innerHTML=Pn),Wl=a(e),he=u(e,"P",{"data-svelte-h":!0}),m(he)!=="svelte-1r6p14q"&&(he.innerHTML=qn),Bl=a(e),M(ye.$$.fragment,e),xl=a(e),be=u(e,"P",{"data-svelte-h":!0}),m(be)!=="svelte-1tlouu2"&&(be.textContent=Dn),Il=a(e),M(Me.$$.fragment,e),Hl=a(e),ge=u(e,"P",{"data-svelte-h":!0}),m(ge)!=="svelte-9y2bb9"&&(ge.innerHTML=On),Ll=a(e),we=u(e,"P",{"data-svelte-h":!0}),m(we)!=="svelte-85z3ji"&&(we.textContent=Kn),Nl=a(e),N.l(e),Ml=a(e),_e=u(e,"P",{"data-svelte-h":!0}),m(_e)!=="svelte-gf5p05"&&(_e.innerHTML=eo),zl=a(e),Te=u(e,"P",{"data-svelte-h":!0}),m(Te)!=="svelte-14cacm3"&&(Te.textContent=to),Vl=a(e),V.l(e),gl=a(e),ve=u(e,"P",{"data-svelte-h":!0}),m(ve)!=="svelte-1gmq897"&&(ve.innerHTML=lo),Xl=a(e),M($e.$$.fragment,e),Al=a(e),ke=u(e,"P",{"data-svelte-h":!0}),m(ke)!=="svelte-s13zgw"&&(ke.innerHTML=io),Rl=a(e),M(Ue.$$.fragment,e),Yl=a(e),je=u(e,"P",{"data-svelte-h":!0}),m(je)!=="svelte-das8gh"&&(je.innerHTML=no),Ql=a(e),M(Je.$$.fragment,e),Sl=a(e),Ze=u(e,"P",{"data-svelte-h":!0}),m(Ze)!=="svelte-owixe6"&&(Ze.innerHTML=oo),Fl=a(e),M(Ce.$$.fragment,e),El=a(e),Ge=u(e,"P",{"data-svelte-h":!0}),m(Ge)!=="svelte-nnv7ej"&&(Ge.innerHTML=so),Pl=a(e),We=u(e,"P",{"data-svelte-h":!0}),m(We)!=="svelte-1ortiw0"&&(We.textContent=ao),ql=a(e),O.l(e),wl=a(e),M(le.$$.fragment,e),Dl=a(e),Be=u(e,"P",{"data-svelte-h":!0}),m(Be)!=="svelte-10mrgkm"&&(Be.innerHTML=ro),Ol=a(e),xe=u(e,"P",{"data-svelte-h":!0}),m(xe)!=="svelte-h3theh"&&(xe.innerHTML=po),Kl=a(e),Ie=u(e,"P",{"data-svelte-h":!0}),m(Ie)!=="svelte-1g2t46s"&&(Ie.textContent=uo),ei=a(e),M(He.$$.fragment,e),ti=a(e),Le=u(e,"P",{"data-svelte-h":!0}),m(Le)!=="svelte-1wacfmd"&&(Le.innerHTML=mo),li=a(e),Ne=u(e,"P",{"data-svelte-h":!0}),m(Ne)!=="svelte-x4hhbi"&&(Ne.innerHTML=co),ii=a(e),M(ze.$$.fragment,e),ni=a(e),Ve=u(e,"P",{"data-svelte-h":!0}),m(Ve)!=="svelte-bqmt11"&&(Ve.innerHTML=fo),oi=a(e),M(Xe.$$.fragment,e),si=a(e),Ae=u(e,"P",{"data-svelte-h":!0}),m(Ae)!=="svelte-1chdaq7"&&(Ae.innerHTML=ho),ai=a(e),Re=u(e,"P",{"data-svelte-h":!0}),m(Re)!=="svelte-tvm62z"&&(Re.innerHTML=yo),ri=a(e),M(Ye.$$.fragment,e),pi=a(e),Qe=u(e,"P",{"data-svelte-h":!0}),m(Qe)!=="svelte-1wdbtp8"&&(Qe.innerHTML=bo),ui=a(e),M(Se.$$.fragment,e),mi=a(e),Fe=u(e,"P",{"data-svelte-h":!0}),m(Fe)!=="svelte-19l06uh"&&(Fe.innerHTML=Mo),ci=a(e),Ee=u(e,"UL",{"data-svelte-h":!0}),m(Ee)!=="svelte-qyrs4a"&&(Ee.innerHTML=go),fi=a(e),Pe=u(e,"P",{"data-svelte-h":!0}),m(Pe)!=="svelte-dns72a"&&(Pe.textContent=wo),di=a(e),M(qe.$$.fragment,e),hi=a(e),De=u(e,"P",{"data-svelte-h":!0}),m(De)!=="svelte-16ot8al"&&(De.textContent=_o),yi=a(e),Oe=u(e,"P",{"data-svelte-h":!0}),m(Oe)!=="svelte-5m7y3f"&&(Oe.innerHTML=To),bi=a(e),ie=u(e,"DIV",{class:!0,"data-svelte-h":!0}),m(ie)!=="svelte-4qsgxt"&&(ie.innerHTML=vo),Mi=a(e),Ke=u(e,"P",{"data-svelte-h":!0}),m(Ke)!=="svelte-x97blf"&&(Ke.textContent=$o),gi=a(e),et=u(e,"P",{"data-svelte-h":!0}),m(et)!=="svelte-1in2cel"&&(et.textContent=ko),wi=a(e),tt=u(e,"P",{"data-svelte-h":!0}),m(tt)!=="svelte-1glo7k3"&&(tt.textContent=Uo),_i=a(e),ne=u(e,"DIV",{class:!0,"data-svelte-h":!0}),m(ne)!=="svelte-1xh6nig"&&(ne.innerHTML=jo),Ti=a(e),lt=u(e,"P",{"data-svelte-h":!0}),m(lt)!=="svelte-upitwx"&&(lt.textContent=Jo),vi=a(e),oe=u(e,"DIV",{class:!0,"data-svelte-h":!0}),m(oe)!=="svelte-1jm8l0p"&&(oe.innerHTML=Zo),$i=a(e),it=u(e,"P",{"data-svelte-h":!0}),m(it)!=="svelte-1yrho5p"&&(it.textContent=Co),ki=a(e),nt=u(e,"P",{"data-svelte-h":!0}),m(nt)!=="svelte-xc0p0w"&&(nt.innerHTML=Go),Ui=a(e),se=u(e,"DIV",{class:!0,"data-svelte-h":!0}),m(se)!=="svelte-1kuf5jc"&&(se.innerHTML=Wo),ji=a(e),ot=u(e,"P",{"data-svelte-h":!0}),m(ot)!=="svelte-1dwybc3"&&(ot.textContent=Bo),Ji=a(e),M(st.$$.fragment,e),Zi=a(e),at=u(e,"P",{"data-svelte-h":!0}),m(at)!=="svelte-1wpsmq7"&&(at.innerHTML=xo),Ci=a(e),rt=u(e,"P",{"data-svelte-h":!0}),m(rt)!=="svelte-1twb1vd"&&(rt.innerHTML=Io),Gi=a(e),M(pt.$$.fragment,e),Wi=a(e),ut=u(e,"P",{"data-svelte-h":!0}),m(ut)!=="svelte-16aw51k"&&(ut.innerHTML=Ho),Bi=a(e),mt=u(e,"P",{"data-svelte-h":!0}),m(mt)!=="svelte-1p0r8t0"&&(mt.textContent=Lo),xi=a(e),M(ct.$$.fragment,e),Ii=a(e),ft=u(e,"P",{"data-svelte-h":!0}),m(ft)!=="svelte-1brzfhu"&&(ft.innerHTML=No),Hi=a(e),dt=u(e,"UL",{"data-svelte-h":!0}),m(dt)!=="svelte-11e7gtr"&&(dt.innerHTML=zo),Li=a(e),M(ht.$$.fragment,e),Ni=a(e),yt=u(e,"P",{"data-svelte-h":!0}),m(yt)!=="svelte-k5kitw"&&(yt.innerHTML=Vo),zi=a(e),bt=u(e,"P",{"data-svelte-h":!0}),m(bt)!=="svelte-fwvr06"&&(bt.innerHTML=Xo),Vi=a(e),Mt=u(e,"P",{"data-svelte-h":!0}),m(Mt)!=="svelte-a4yvdi"&&(Mt.textContent=Ao),Xi=a(e),M(gt.$$.fragment,e),Ai=a(e),wt=u(e,"P",{"data-svelte-h":!0}),m(wt)!=="svelte-1oga5bi"&&(wt.innerHTML=Ro),Ri=a(e),_t=u(e,"P",{"data-svelte-h":!0}),m(_t)!=="svelte-1jk7bgg"&&(_t.textContent=Yo),Yi=a(e),M(Tt.$$.fragment,e),Qi=a(e),vt=u(e,"P",{"data-svelte-h":!0}),m(vt)!=="svelte-11pj2x7"&&(vt.innerHTML=Qo),Si=a(e),$t=u(e,"P",{"data-svelte-h":!0}),m($t)!=="svelte-fnzt1c"&&($t.textContent=So),Fi=a(e),kt=u(e,"P",{"data-svelte-h":!0}),m(kt)!=="svelte-12xtsul"&&(kt.textContent=Fo),Ei=a(e),M(Ut.$$.fragment,e),Pi=a(e),jt=u(e,"P",{"data-svelte-h":!0}),m(jt)!=="svelte-54bp1s"&&(jt.textContent=Eo),qi=a(e),M(Jt.$$.fragment,e),Di=a(e),Zt=u(e,"P",{"data-svelte-h":!0}),m(Zt)!=="svelte-xoedu"&&(Zt.innerHTML=Po),Oi=a(e),M(Ct.$$.fragment,e),Ki=a(e),Gt=u(e,"P",{"data-svelte-h":!0}),m(Gt)!=="svelte-64yxkl"&&(Gt.textContent=qo),en=a(e),M(Wt.$$.fragment,e),tn=a(e),Bt=u(e,"P",{"data-svelte-h":!0}),m(Bt)!=="svelte-3pkutz"&&(Bt.textContent=Do),ln=a(e),xt=u(e,"P",{"data-svelte-h":!0}),m(xt)!=="svelte-1azu84o"&&(xt.innerHTML=Oo),nn=a(e),It=u(e,"P",{"data-svelte-h":!0}),m(It)!=="svelte-la0lds"&&(It.textContent=Ko),on=a(e),M(Ht.$$.fragment,e),sn=a(e),M(Lt.$$.fragment,e),an=a(e),Nt=u(e,"P",{"data-svelte-h":!0}),m(Nt)!=="svelte-nox6q5"&&(Nt.textContent=es),rn=a(e),M(zt.$$.fragment,e),pn=a(e),Vt=u(e,"P",{"data-svelte-h":!0}),m(Vt)!=="svelte-yv7tw4"&&(Vt.innerHTML=ts),un=a(e),M(Xt.$$.fragment,e),mn=a(e),At=u(e,"P",{"data-svelte-h":!0}),m(At)!=="svelte-93i3n2"&&(At.innerHTML=ls),cn=a(e),M(Rt.$$.fragment,e),fn=a(e),M(Yt.$$.fragment,e),dn=a(e),Qt=u(e,"P",{"data-svelte-h":!0}),m(Qt)!=="svelte-nrsb3i"&&(Qt.innerHTML=is),hn=a(e),St=u(e,"P",{"data-svelte-h":!0}),m(St)!=="svelte-1rymwil"&&(St.innerHTML=ns),yn=a(e),Ft=u(e,"P",{"data-svelte-h":!0}),m(Ft)!=="svelte-1430t88"&&(Ft.textContent=os),bn=a(e),A.l(e),_l=a(e),Et=u(e,"P",{"data-svelte-h":!0}),m(Et)!=="svelte-1jchcsx"&&(Et.innerHTML=ss),Mn=a(e),M(Pt.$$.fragment,e),gn=a(e),Y.l(e),Tl=a(e),M(ae.$$.fragment,e),wn=a(e),qt=u(e,"P",{"data-svelte-h":!0}),m(qt)!=="svelte-1tr3c7g"&&(qt.innerHTML=as),_n=a(e),M(Dt.$$.fragment,e),Tn=a(e),Ot=u(e,"P",{"data-svelte-h":!0}),m(Ot)!=="svelte-10785kr"&&(Ot.textContent=rs),vn=a(e),M(Kt.$$.fragment,e),$n=a(e),S.l(e),vl=a(e),el=u(e,"P",{"data-svelte-h":!0}),m(el)!=="svelte-1k5g004"&&(el.innerHTML=ps),kn=a(e),M(tl.$$.fragment,e),Un=a(e),E.l(e),$l=a(e),ll=u(e,"P",{"data-svelte-h":!0}),m(ll)!=="svelte-74jbhj"&&(ll.innerHTML=us),jn=a(e),M(il.$$.fragment,e),Jn=a(e),q.l(e),kl=a(e),nl=u(e,"P",{"data-svelte-h":!0}),m(nl)!=="svelte-g3ryff"&&(nl.textContent=ms),Zn=a(e),M(ol.$$.fragment,e),Cn=a(e),M(sl.$$.fragment,e),Gn=a(e),K.l(e),Ul=a(e),M(al.$$.fragment,e),Wn=a(e),jl=u(e,"P",{}),Is(jl).forEach(l),this.h()},h(){B(n,"name","hf:doc:metadata"),B(n,"content",wa),B(ie,"class","flex justify-center"),B(ne,"class","flex justify-center"),B(oe,"class","flex justify-center"),B(se,"class","flex justify-center")},m(e,t){Ys(document.head,n),i(e,r,t),i(e,o,t),i(e,f,t),g(v,e,t),i(e,c,t),g(T,e,t),i(e,C,t),rl[k].m(e,t),i(e,Z,t),i(e,y,t),i(e,D,t),g(G,e,t),i(e,pe,t),i(e,x,t),i(e,W,t),i(e,ue,t),i(e,Jl,t),i(e,me,t),i(e,Zl,t),i(e,ce,t),i(e,Cl,t),g(fe,e,t),i(e,Gl,t),pl[I].m(e,t),i(e,bl,t),i(e,de,t),i(e,Wl,t),i(e,he,t),i(e,Bl,t),g(ye,e,t),i(e,xl,t),i(e,be,t),i(e,Il,t),g(Me,e,t),i(e,Hl,t),i(e,ge,t),i(e,Ll,t),i(e,we,t),i(e,Nl,t),ul[L].m(e,t),i(e,Ml,t),i(e,_e,t),i(e,zl,t),i(e,Te,t),i(e,Vl,t),ml[z].m(e,t),i(e,gl,t),i(e,ve,t),i(e,Xl,t),g($e,e,t),i(e,Al,t),i(e,ke,t),i(e,Rl,t),g(Ue,e,t),i(e,Yl,t),i(e,je,t),i(e,Ql,t),g(Je,e,t),i(e,Sl,t),i(e,Ze,t),i(e,Fl,t),g(Ce,e,t),i(e,El,t),i(e,Ge,t),i(e,Pl,t),i(e,We,t),i(e,ql,t),O.m(e,t),i(e,wl,t),g(le,e,t),i(e,Dl,t),i(e,Be,t),i(e,Ol,t),i(e,xe,t),i(e,Kl,t),i(e,Ie,t),i(e,ei,t),g(He,e,t),i(e,ti,t),i(e,Le,t),i(e,li,t),i(e,Ne,t),i(e,ii,t),g(ze,e,t),i(e,ni,t),i(e,Ve,t),i(e,oi,t),g(Xe,e,t),i(e,si,t),i(e,Ae,t),i(e,ai,t),i(e,Re,t),i(e,ri,t),g(Ye,e,t),i(e,pi,t),i(e,Qe,t),i(e,ui,t),g(Se,e,t),i(e,mi,t),i(e,Fe,t),i(e,ci,t),i(e,Ee,t),i(e,fi,t),i(e,Pe,t),i(e,di,t),g(qe,e,t),i(e,hi,t),i(e,De,t),i(e,yi,t),i(e,Oe,t),i(e,bi,t),i(e,ie,t),i(e,Mi,t),i(e,Ke,t),i(e,gi,t),i(e,et,t),i(e,wi,t),i(e,tt,t),i(e,_i,t),i(e,ne,t),i(e,Ti,t),i(e,lt,t),i(e,vi,t),i(e,oe,t),i(e,$i,t),i(e,it,t),i(e,ki,t),i(e,nt,t),i(e,Ui,t),i(e,se,t),i(e,ji,t),i(e,ot,t),i(e,Ji,t),g(st,e,t),i(e,Zi,t),i(e,at,t),i(e,Ci,t),i(e,rt,t),i(e,Gi,t),g(pt,e,t),i(e,Wi,t),i(e,ut,t),i(e,Bi,t),i(e,mt,t),i(e,xi,t),g(ct,e,t),i(e,Ii,t),i(e,ft,t),i(e,Hi,t),i(e,dt,t),i(e,Li,t),g(ht,e,t),i(e,Ni,t),i(e,yt,t),i(e,zi,t),i(e,bt,t),i(e,Vi,t),i(e,Mt,t),i(e,Xi,t),g(gt,e,t),i(e,Ai,t),i(e,wt,t),i(e,Ri,t),i(e,_t,t),i(e,Yi,t),g(Tt,e,t),i(e,Qi,t),i(e,vt,t),i(e,Si,t),i(e,$t,t),i(e,Fi,t),i(e,kt,t),i(e,Ei,t),g(Ut,e,t),i(e,Pi,t),i(e,jt,t),i(e,qi,t),g(Jt,e,t),i(e,Di,t),i(e,Zt,t),i(e,Oi,t),g(Ct,e,t),i(e,Ki,t),i(e,Gt,t),i(e,en,t),g(Wt,e,t),i(e,tn,t),i(e,Bt,t),i(e,ln,t),i(e,xt,t),i(e,nn,t),i(e,It,t),i(e,on,t),g(Ht,e,t),i(e,sn,t),g(Lt,e,t),i(e,an,t),i(e,Nt,t),i(e,rn,t),g(zt,e,t),i(e,pn,t),i(e,Vt,t),i(e,un,t),g(Xt,e,t),i(e,mn,t),i(e,At,t),i(e,cn,t),g(Rt,e,t),i(e,fn,t),g(Yt,e,t),i(e,dn,t),i(e,Qt,t),i(e,hn,t),i(e,St,t),i(e,yn,t),i(e,Ft,t),i(e,bn,t),cl[X].m(e,t),i(e,_l,t),i(e,Et,t),i(e,Mn,t),g(Pt,e,t),i(e,gn,t),fl[R].m(e,t),i(e,Tl,t),g(ae,e,t),i(e,wn,t),i(e,qt,t),i(e,_n,t),g(Dt,e,t),i(e,Tn,t),i(e,Ot,t),i(e,vn,t),g(Kt,e,t),i(e,$n,t),dl[Q].m(e,t),i(e,vl,t),i(e,el,t),i(e,kn,t),g(tl,e,t),i(e,Un,t),hl[F].m(e,t),i(e,$l,t),i(e,ll,t),i(e,jn,t),g(il,e,t),i(e,Jn,t),yl[P].m(e,t),i(e,kl,t),i(e,nl,t),i(e,Zn,t),g(ol,e,t),i(e,Cn,t),g(sl,e,t),i(e,Gn,t),K.m(e,t),i(e,Ul,t),g(al,e,t),i(e,Wn,t),i(e,jl,t),Bn=!0},p(e,[t]){const Ws={};t&1&&(Ws.fw=e[0]),v.$set(Ws);let Hn=k;k=fs(e),k!==Hn&&(te(),d(rl[Hn],1,1,()=>{rl[Hn]=null}),ee(),U=rl[k],U||(U=rl[k]=cs[k](e),U.c()),h(U,1),U.m(Z.parentNode,Z));let Ln=I;I=hs(e),I!==Ln&&(te(),d(pl[Ln],1,1,()=>{pl[Ln]=null}),ee(),H=pl[I],H||(H=pl[I]=ds[I](e),H.c()),h(H,1),H.m(bl.parentNode,bl));let Nn=L;L=bs(e),L!==Nn&&(te(),d(ul[Nn],1,1,()=>{ul[Nn]=null}),ee(),N=ul[L],N||(N=ul[L]=ys[L](e),N.c()),h(N,1),N.m(Ml.parentNode,Ml));let zn=z;z=gs(e),z!==zn&&(te(),d(ml[zn],1,1,()=>{ml[zn]=null}),ee(),V=ml[z],V||(V=ml[z]=Ms[z](e),V.c()),h(V,1),V.m(gl.parentNode,gl)),xn!==(xn=ws(e))&&(O.d(1),O=xn(e),O&&(O.c(),O.m(wl.parentNode,wl)));const Bs={};t&2&&(Bs.$$scope={dirty:t,ctx:e}),le.$set(Bs);let Vn=X;X=Ts(e),X!==Vn&&(te(),d(cl[Vn],1,1,()=>{cl[Vn]=null}),ee(),A=cl[X],A||(A=cl[X]=_s[X](e),A.c()),h(A,1),A.m(_l.parentNode,_l));let Xn=R;R=$s(e),R!==Xn&&(te(),d(fl[Xn],1,1,()=>{fl[Xn]=null}),ee(),Y=fl[R],Y||(Y=fl[R]=vs[R](e),Y.c()),h(Y,1),Y.m(Tl.parentNode,Tl));const xs={};t&2&&(xs.$$scope={dirty:t,ctx:e}),ae.$set(xs);let An=Q;Q=Us(e),Q!==An&&(te(),d(dl[An],1,1,()=>{dl[An]=null}),ee(),S=dl[Q],S||(S=dl[Q]=ks[Q](e),S.c()),h(S,1),S.m(vl.parentNode,vl));let Rn=F;F=Js(e),F!==Rn&&(te(),d(hl[Rn],1,1,()=>{hl[Rn]=null}),ee(),E=hl[F],E||(E=hl[F]=js[F](e),E.c()),h(E,1),E.m($l.parentNode,$l));let Yn=P;P=Cs(e),P!==Yn&&(te(),d(yl[Yn],1,1,()=>{yl[Yn]=null}),ee(),q=yl[P],q||(q=yl[P]=Zs[P](e),q.c()),h(q,1),q.m(kl.parentNode,kl)),In!==(In=Gs(e))&&(K.d(1),K=In(e),K&&(K.c(),K.m(Ul.parentNode,Ul)))},i(e){Bn||(h(v.$$.fragment,e),h(T.$$.fragment,e),h(U),h(G.$$.fragment,e),h(fe.$$.fragment,e),h(H),h(ye.$$.fragment,e),h(Me.$$.fragment,e),h(N),h(V),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(ct.$$.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(A),h(Pt.$$.fragment,e),h(Y),h(ae.$$.fragment,e),h(Dt.$$.fragment,e),h(Kt.$$.fragment,e),h(S),h(tl.$$.fragment,e),h(E),h(il.$$.fragment,e),h(q),h(ol.$$.fragment,e),h(sl.$$.fragment,e),h(al.$$.fragment,e),Bn=!0)},o(e){d(v.$$.fragment,e),d(T.$$.fragment,e),d(U),d(G.$$.fragment,e),d(fe.$$.fragment,e),d(H),d(ye.$$.fragment,e),d(Me.$$.fragment,e),d(N),d(V),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(ct.$$.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(A),d(Pt.$$.fragment,e),d(Y),d(ae.$$.fragment,e),d(Dt.$$.fragment,e),d(Kt.$$.fragment,e),d(S),d(tl.$$.fragment,e),d(E),d(il.$$.fragment,e),d(q),d(ol.$$.fragment,e),d(sl.$$.fragment,e),d(al.$$.fragment,e),Bn=!1},d(e){e&&(l(r),l(o),l(f),l(c),l(C),l(Z),l(y),l(D),l(pe),l(x),l(W),l(ue),l(Jl),l(me),l(Zl),l(ce),l(Cl),l(Gl),l(bl),l(de),l(Wl),l(he),l(Bl),l(xl),l(be),l(Il),l(Hl),l(ge),l(Ll),l(we),l(Nl),l(Ml),l(_e),l(zl),l(Te),l(Vl),l(gl),l(ve),l(Xl),l(Al),l(ke),l(Rl),l(Yl),l(je),l(Ql),l(Sl),l(Ze),l(Fl),l(El),l(Ge),l(Pl),l(We),l(ql),l(wl),l(Dl),l(Be),l(Ol),l(xe),l(Kl),l(Ie),l(ei),l(ti),l(Le),l(li),l(Ne),l(ii),l(ni),l(Ve),l(oi),l(si),l(Ae),l(ai),l(Re),l(ri),l(pi),l(Qe),l(ui),l(mi),l(Fe),l(ci),l(Ee),l(fi),l(Pe),l(di),l(hi),l(De),l(yi),l(Oe),l(bi),l(ie),l(Mi),l(Ke),l(gi),l(et),l(wi),l(tt),l(_i),l(ne),l(Ti),l(lt),l(vi),l(oe),l($i),l(it),l(ki),l(nt),l(Ui),l(se),l(ji),l(ot),l(Ji),l(Zi),l(at),l(Ci),l(rt),l(Gi),l(Wi),l(ut),l(Bi),l(mt),l(xi),l(Ii),l(ft),l(Hi),l(dt),l(Li),l(Ni),l(yt),l(zi),l(bt),l(Vi),l(Mt),l(Xi),l(Ai),l(wt),l(Ri),l(_t),l(Yi),l(Qi),l(vt),l(Si),l($t),l(Fi),l(kt),l(Ei),l(Pi),l(jt),l(qi),l(Di),l(Zt),l(Oi),l(Ki),l(Gt),l(en),l(tn),l(Bt),l(ln),l(xt),l(nn),l(It),l(on),l(sn),l(an),l(Nt),l(rn),l(pn),l(Vt),l(un),l(mn),l(At),l(cn),l(fn),l(dn),l(Qt),l(hn),l(St),l(yn),l(Ft),l(bn),l(_l),l(Et),l(Mn),l(gn),l(Tl),l(wn),l(qt),l(_n),l(Tn),l(Ot),l(vn),l($n),l(vl),l(el),l(kn),l(Un),l($l),l(ll),l(jn),l(Jn),l(kl),l(nl),l(Zn),l(Cn),l(Gn),l(Ul),l(Wn),l(jl)),l(n),w(v,e),w(T,e),rl[k].d(e),w(G,e),w(fe,e),pl[I].d(e),w(ye,e),w(Me,e),ul[L].d(e),ml[z].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(ct,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),cl[X].d(e),w(Pt,e),fl[R].d(e),w(ae,e),w(Dt,e),w(Kt,e),dl[Q].d(e),w(tl,e),hl[F].d(e),w(il,e),yl[P].d(e),w(ol,e),w(sl,e),K.d(e),w(al,e)}}}const wa='{"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 zs(()=>{const f=new URLSearchParams(window.location.search);r(0,o=f.get("fw")||"pt")}),[o]}class Ca extends Xs{constructor(n){super(),As(this,n,_a,ga,Ns,{})}}export{Ca as component};
