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