import{s as ki,o as Hi,n as Li}from"../chunks/scheduler.9bc65507.js";import{S as _i,i as Ii,g as s,s as o,r as m,A as Pi,h as a,f as n,c as i,j as dt,u as f,x as r,k as Ci,y as u,a as l,v as h,d as c,t as g,w as y}from"../chunks/index.707bf1b6.js";import{T as Ui}from"../chunks/Tip.c2ecdbf4.js";import{C as w}from"../chunks/CodeBlock.54a9f38d.js";import{H as M}from"../chunks/Heading.342b1fa6.js";function Ji(Ft){let $,L="Remember to specify a <em>path to a subfolder or a test file</em> to run the test. Otherwise, you’ll run all the tests in the <code>tests</code> or <code>examples</code> folder, which will take a very long time!";return{c(){$=s("p"),$.innerHTML=L},l(C){$=a(C,"P",{"data-svelte-h":!0}),r($)!=="svelte-1m2ro5n"&&($.innerHTML=L)},m(C,pt){l(C,$,pt)},p:Li,d(C){C&&n($)}}}function Zi(Ft){let $,L,C,pt,_,Yt,I,Kl=`Everyone is welcome to contribute, and we value everybody’s contribution. Code
contributions are not the only way to help the community. Answering questions, helping
others, and improving the documentation are also immensely valuable.`,Xt,P,eo=`It also helps us if you spread the word! Reference the library in blog posts
about the awesome projects it made possible, shout out on Twitter every time it has
helped you, or simply ⭐️ the repository to say thank you.`,Nt,U,to=`However you choose to contribute, please be mindful and respect our
<a href="https://github.com/huggingface/transformers/blob/main/CODE_OF_CONDUCT.md" rel="nofollow">code of conduct</a>.`,zt,J,no='<strong>This guide was heavily inspired by the awesome <a href="https://github.com/scikit-learn/scikit-learn/blob/main/CONTRIBUTING.md" rel="nofollow">scikit-learn guide to contributing</a>.</strong>',Vt,Z,Bt,W,lo="There are several ways you can contribute to 🤗 Transformers:",Ot,R,oo="<li>Fix outstanding issues with the existing code.</li> <li>Submit issues related to bugs or desired new features.</li> <li>Implement new models.</li> <li>Contribute to the examples or to the documentation.</li>",At,G,io=`If you don’t know where to start, there is a special <a href="https://github.com/huggingface/transformers/contribute" rel="nofollow">Good First
Issue</a> listing. It will give you a list of
open issues that are beginner-friendly and help you start contributing to open-source. Just comment on the issue that you’d like to work
on.`,Et,j,so='For something slightly more challenging, you can also take a look at the <a href="https://github.com/huggingface/transformers/labels/Good%20Second%20Issue" rel="nofollow">Good Second Issue</a> list. In general though, if you feel like you know what you’re doing, go for it and we’ll help you get there! 🚀',Qt,S,ao="<p>All contributions are equally valuable to the community. 🥰</p>",Dt,q,Kt,F,ro='If you notice an issue with the existing code and have a fix in mind, feel free to <a href="https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md/#create-a-pull-request" rel="nofollow">start contributing</a> and open a Pull Request!',en,Y,tn,X,uo=`Do your best to follow these guidelines when submitting a bug-related issue or a feature
request. It will make it easier for us to come back to you quickly and with good
feedback.`,nn,N,ln,z,po="The 🤗 Transformers library is robust and reliable thanks to users who report the problems they encounter.",on,V,mo=`Before you report an issue, we would really appreciate it if you could <strong>make sure the bug was not
already reported</strong> (use the search bar on GitHub under Issues). Your issue should also be related to bugs in the library itself, and not your code. If you’re unsure whether the bug is in your code or the library, please ask in the <a href="https://discuss.huggingface.co/" rel="nofollow">forum</a> first. This helps us respond quicker to fixing issues related to the library versus general questions.`,sn,B,fo="Once you’ve confirmed the bug hasn’t already been reported, please include the following information in your issue so we can quickly resolve it:",an,O,ho=`<li>Your <strong>OS type and version</strong> and <strong>Python</strong>, <strong>PyTorch</strong> and
<strong>TensorFlow</strong> versions when applicable.</li> <li>A short, self-contained, code snippet that allows us to reproduce the bug in
less than 30s.</li> <li>The <em>full</em> traceback if an exception is raised.</li> <li>Attach any other additional information, like screenshots, you think may help.</li>`,rn,A,co="To get the OS and software versions automatically, run the following command:",un,E,dn,Q,go="You can also run the same command from the root of the repository:",pn,D,mn,K,fn,ee,yo="If there is a new feature you’d like to see in 🤗 Transformers, please open an issue and describe:",hn,te,wo="<li><p>What is the <em>motivation</em> behind this feature? Is it related to a problem or frustration with the library? Is it a feature related to something you need for a project? Is it something you worked on and think it could benefit the community?</p> <p>Whatever it is, we’d love to hear about it!</p></li> <li><p>Describe your requested feature in as much detail as possible. The more you can tell us about it, the better we’ll be able to help you.</p></li> <li><p>Provide a <em>code snippet</em> that demonstrates the features usage.</p></li> <li><p>If the feature is related to a paper, please include a link.</p></li>",cn,ne,bo="If your issue is well written we’re already 80% of the way there by the time you create it.",gn,le,$o='We have added <a href="https://github.com/huggingface/transformers/tree/main/templates" rel="nofollow">templates</a> to help you get started with your issue.',yn,oe,wn,ie,vo="New models are constantly released and if you want to implement a new model, please provide the following information",bn,se,To="<li>A short description of the model and a link to the paper.</li> <li>Link to the implementation if it is open-sourced.</li> <li>Link to the model weights if they are available.</li>",$n,ae,Mo="If you are willing to contribute the model yourself, let us know so we can help you add it to 🤗 Transformers!",vn,re,xo='We have added a <a href="https://github.com/huggingface/transformers/tree/main/templates" rel="nofollow">detailed guide and templates</a> to help you get started with adding a new model, and we also have a more technical guide for <a href="https://huggingface.co/docs/transformers/add_new_model" rel="nofollow">how to add a model to 🤗 Transformers</a>.',Tn,ue,Mn,de,Co="We’re always looking for improvements to the documentation that make it more clear and accurate. Please let us know how the documentation can be improved such as typos and any content that is missing, unclear or inaccurate. We’ll be happy to make the changes or help you make a contribution if you’re interested!",xn,pe,ko='For more details about how to generate, build, and write the documentation, take a look at the documentation <a href="https://github.com/huggingface/transformers/tree/main/docs" rel="nofollow">README</a>.',Cn,me,kn,fe,Ho=`Before writing any code, we strongly advise you to search through the existing PRs or
issues to make sure nobody is already working on the same thing. If you are
unsure, it is always a good idea to open an issue to get some feedback.`,Hn,he,Lo=`You will need basic <code>git</code> proficiency to contribute to
🤗 Transformers. While <code>git</code> is not the easiest tool to use, it has the greatest
manual. Type <code>git --help</code> in a shell and enjoy! If you prefer books, <a href="https://git-scm.com/book/en/v2" rel="nofollow">Pro
Git</a> is a very good reference.`,Ln,ce,_o='You’ll need <strong><a href="(https://github.com/huggingface/transformers/blob/main/setup.py#L426)">Python 3.8</a></strong> or above to contribute to 🤗 Transformers. Follow the steps below to start contributing:',_n,b,mt,Io=`<p>Fork the <a href="https://github.com/huggingface/transformers" rel="nofollow">repository</a> by
clicking on the <strong><a href="https://github.com/huggingface/transformers/fork" rel="nofollow">Fork</a></strong> button on the repository’s page. This creates a copy of the code
under your GitHub user account.</p>`,fl,ge,ft,Po="Clone your fork to your local disk, and add the base repository as a remote:",hl,ye,cl,k,ht,Uo="Create a new branch to hold your development changes:",gl,we,yl,ct,Jo="🚨 <strong>Do not</strong> work on the <code>main</code> branch!",wl,T,gt,Zo="Set up a development environment by running the following command in a virtual environment:",bl,be,$l,yt,Wo=`If 🤗 Transformers was already installed in the virtual environment, remove
it with <code>pip uninstall transformers</code> before reinstalling it in editable
mode with the <code>-e</code> flag.`,vl,wt,Ro=`Depending on your OS, and since the number of optional dependencies of Transformers is growing, you might get a
failure with this command. If that’s the case make sure to install the Deep Learning framework you are working with
(PyTorch, TensorFlow and/or Flax) then do:`,Tl,$e,Ml,bt,Go="which should be enough for most use cases.",xl,d,$t,jo="Develop the features in your branch.",Cl,vt,So=`As you work on your code, you should make sure the test suite
passes. Run the tests impacted by your changes like this:`,kl,ve,Hl,Tt,qo=`For more information about tests, check out the
<a href="https://huggingface.co/docs/transformers/testing" rel="nofollow">Testing</a> guide.`,Ll,Mt,Fo=`🤗 Transformers relies on <code>black</code> and <code>ruff</code> to format its source code
consistently. After you make changes, apply automatic style corrections and code verifications
that can’t be automated in one go with:`,_l,Te,Il,xt,Yo="This target is also optimized to only work with files modified by the PR you’re working on.",Pl,Ct,Xo=`If you prefer to run the checks one after the other, the following command applies the
style corrections:`,Ul,Me,Jl,kt,No=`🤗 Transformers also uses <code>ruff</code> and a few custom scripts to check for coding mistakes. Quality
controls are run by the CI, but you can run the same checks with:`,Zl,xe,Wl,Ht,zo=`Finally, we have a lot of scripts to make sure we don’t forget to update
some files when adding a new model. You can run these scripts with:`,Rl,Ce,Gl,Lt,Vo=`To learn more about those checks and how to fix any issues with them, check out the
<a href="https://huggingface.co/docs/transformers/pr_checks" rel="nofollow">Checks on a Pull Request</a> guide.`,jl,_t,Bo=`If you’re modifying documents under the <code>docs/source</code> directory, make sure the documentation can still be built. This check will also run in the CI when you open a pull request. To run a local check
make sure you install the documentation builder:`,Sl,ke,ql,It,Oo="Run the following command from the root of the repository:",Fl,He,Yl,Pt,Ao=`This will build the documentation in the <code>~/tmp/test-build</code> folder where you can inspect the generated
Markdown files with your favorite editor. You can also preview the docs on GitHub when you open a pull request.`,Xl,Ut,Eo=`Once you’re happy with your changes, add the changed files with <code>git add</code> and
record your changes locally with <code>git commit</code>:`,Nl,Le,zl,Jt,Qo=`Please remember to write <a href="https://chris.beams.io/posts/git-commit/" rel="nofollow">good commit
messages</a> to clearly communicate the changes you made!`,Vl,Zt,Do=`To keep your copy of the code up to date with the original
repository, rebase your branch on <code>upstream/branch</code> <em>before</em> you open a pull request or if requested by a maintainer:`,Bl,_e,Ol,Wt,Ko="Push your changes to your branch:",Al,Ie,El,Rt,ei="If you’ve already opened a pull request, you’ll need to force push with the <code>--force</code> flag. Otherwise, if the pull request hasn’t been opened yet, you can just push your changes normally.",Ql,Gt,ti='<p>Now you can go to your fork of the repository on GitHub and click on <strong>Pull Request</strong> to open a pull request. Make sure you tick off all the boxes on our <a href="https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md/#pull-request-checklist" rel="nofollow">checklist</a> below. When you’re ready, you can send your changes to the project maintainers for review.</p>',Dl,jt,ni=`<p>It’s ok if maintainers request changes, it happens to our core contributors
too! So everyone can see the changes in the pull request, work in your local
branch and push the changes to your fork. They will automatically appear in
the pull request.</p>`,In,Pe,Pn,Ue,li=`☐ The pull request title should summarize your contribution.<br/>
☐ If your pull request addresses an issue, please mention the issue number in the pull
request description to make sure they are linked (and people viewing the issue know you
are working on it).<br/>
☐ To indicate a work in progress please prefix the title with <code>[WIP]</code>. These are
useful to avoid duplicated work, and to differentiate it from PRs ready to be merged.<br/>
☐ Make sure existing tests pass.<br/>
☐ If adding a new feature, also add tests for it.<br/>`,Un,Je,oi=`<li>If you are adding a new model, make sure you use
<code>ModelTester.all_model_classes = (MyModel, MyModelWithLMHead,...)</code> to trigger the common tests.</li> <li>If you are adding new <code>@slow</code> tests, make sure they pass using
<code>RUN_SLOW=1 python -m pytest tests/models/my_new_model/test_my_new_model.py</code>.</li> <li>If you are adding a new tokenizer, write tests and make sure
<code>RUN_SLOW=1 python -m pytest tests/models/{your_model_name}/test_tokenization_{your_model_name}.py</code> passes.</li> <li>CircleCI does not run the slow tests, but GitHub Actions does every night!<br/></li>`,Jn,Ze,ii=`☐ All public methods must have informative docstrings (see
<a href="https://github.com/huggingface/transformers/blob/main/src/transformers/models/bert/modeling_bert.py" rel="nofollow"><code>modeling_bert.py</code></a>
for an example).<br/>
☐ Due to the rapidly growing repository, don’t add any images, videos and other
non-text files that’ll significantly weigh down the repository. Instead, use a Hub
repository such as <a href="https://huggingface.co/hf-internal-testing" rel="nofollow"><code>hf-internal-testing</code></a>
to host these files and reference them by URL. We recommend placing documentation
related images in the following repository:
<a href="https://huggingface.co/datasets/huggingface/documentation-images" rel="nofollow">huggingface/documentation-images</a>.
You can open a PR on this dataset repostitory and ask a Hugging Face member to merge it.`,Zn,We,si='For more information about the checks run on a pull request, take a look at our <a href="https://huggingface.co/docs/transformers/pr_checks" rel="nofollow">Checks on a Pull Request</a> guide.',Wn,Re,Rn,Ge,ai=`An extensive test suite is included to test the library behavior and several examples. Library tests can be found in
the <a href="https://github.com/huggingface/transformers/tree/main/tests" rel="nofollow">tests</a> folder and examples tests in the
<a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">examples</a> folder.`,Gn,je,ri=`We like <code>pytest</code> and <code>pytest-xdist</code> because it’s faster. From the root of the
repository, specify a <em>path to a subfolder or a test file</em> to run the test.`,jn,Se,Sn,qe,ui="Similarly, for the <code>examples</code> directory, specify a <em>path to a subfolder or test file</em> to run the test. For example, the following command tests the text classification subfolder in the PyTorch <code>examples</code> directory:",qn,Fe,Fn,Ye,di="In fact, this is actually how our <code>make test</code> and <code>make test-examples</code> commands are implemented (not including the <code>pip install</code>)!",Yn,Xe,pi=`You can also specify a smaller set of tests in order to test only the feature
you’re working on.`,Xn,Ne,mi=`By default, slow tests are skipped but you can set the <code>RUN_SLOW</code> environment variable to
<code>yes</code> to run them. This will download many gigabytes of models so make sure you
have enough disk space, a good internet connection or a lot of patience!`,Nn,H,zn,ze,Vn,Ve,fi="Like the slow tests, there are other environment variables available which not enabled by default during testing:",Bn,Be,hi="<li><code>RUN_CUSTOM_TOKENIZERS</code>: Enables tests for custom tokenizers.</li> <li><code>RUN_PT_FLAX_CROSS_TESTS</code>: Enables tests for PyTorch + Flax integration.</li> <li><code>RUN_PT_TF_CROSS_TESTS</code>: Enables tests for TensorFlow + PyTorch integration.</li>",On,Oe,ci='More environment variables and additional information can be found in the <a href="src/transformers/testing_utils.py">testing_utils.py</a>.',An,Ae,gi=`🤗 Transformers uses <code>pytest</code> as a test runner only. It doesn’t use any
<code>pytest</code>-specific features in the test suite itself.`,En,Ee,yi=`This means <code>unittest</code> is fully supported. Here’s how to run tests with
<code>unittest</code>:`,Qn,Qe,Dn,De,Kn,Ke,wi=`For documentation strings, 🤗 Transformers follows the <a href="https://google.github.io/styleguide/pyguide.html" rel="nofollow">Google Python Style Guide</a>.
Check our <a href="https://github.com/huggingface/transformers/tree/main/docs#writing-documentation---specification" rel="nofollow">documentation writing guide</a>
for more information.`,el,et,tl,tt,bi='On Windows (unless you’re working in <a href="https://learn.microsoft.com/en-us/windows/wsl/" rel="nofollow">Windows Subsystem for Linux</a> or WSL), you need to configure git to transform Windows <code>CRLF</code> line endings to Linux <code>LF</code> line endings:',nl,nt,ll,lt,$i="One way to run the <code>make</code> command on Windows is with MSYS2:",ol,ot,vi='<li><a href="https://www.msys2.org/" rel="nofollow">Download MSYS2</a>, and we assume it’s installed in <code>C:\\msys64</code>.</li> <li>Open the command line <code>C:\\msys64\\msys2.exe</code> (it should be available from the <strong>Start</strong> menu).</li> <li>Run in the shell: <code>pacman -Syu</code> and install <code>make</code> with <code>pacman -S make</code>.</li> <li>Add <code>C:\\msys64\\usr\\bin</code> to your PATH environment variable.</li>',il,it,Ti="You can now use <code>make</code> from any terminal (Powershell, cmd.exe, etc.)! 🎉",sl,st,al,at,Mi="When updating the main branch of a forked repository, please follow these steps to avoid pinging the upstream repository which adds reference notes to each upstream PR, and sends unnecessary notifications to the developers involved in these PRs.",rl,rt,xi="<li>When possible, avoid syncing with the upstream using a branch and PR on the forked repository. Instead, merge directly into the forked main.</li> <li>If a PR is absolutely necessary, use the following steps after checking out your branch:</li>",ul,ut,dl,qt,pl;return _=new M({props:{title:"Contribute to 🤗 Transformers",local:"contribute-to--transformers",headingTag:"h1"}}),Z=new M({props:{title:"Ways to contribute",local:"ways-to-contribute",headingTag:"h2"}}),q=new M({props:{title:"Fixing outstanding issues",local:"fixing-outstanding-issues",headingTag:"h2"}}),Y=new M({props:{title:"Submitting a bug-related issue or feature request",local:"submitting-a-bug-related-issue-or-feature-request",headingTag:"h2"}}),N=new M({props:{title:"Did you find a bug?",local:"did-you-find-a-bug",headingTag:"h3"}}),E=new w({props:{code:"dHJhbnNmb3JtZXJzLWNsaSUyMGVudg==",highlighted:'transformers-cli <span class="hljs-built_in">env</span>',wrap:!1}}),D=new w({props:{code:"cHl0aG9uJTIwc3JjJTJGdHJhbnNmb3JtZXJzJTJGY29tbWFuZHMlMkZ0cmFuc2Zvcm1lcnNfY2xpLnB5JTIwZW52",highlighted:'python src/transformers/commands/transformers_cli.py <span class="hljs-built_in">env</span>',wrap:!1}}),K=new M({props:{title:"Do you want a new feature?",local:"do-you-want-a-new-feature",headingTag:"h3"}}),oe=new M({props:{title:"Do you want to implement a new model?",local:"do-you-want-to-implement-a-new-model",headingTag:"h2"}}),ue=new M({props:{title:"Do you want to add documentation?",local:"do-you-want-to-add-documentation",headingTag:"h2"}}),me=new M({props:{title:"Create a Pull Request",local:"create-a-pull-request",headingTag:"h2"}}),ye=new w({props:{code:"Z2l0JTIwY2xvbmUlMjBnaXQlNDBnaXRodWIuY29tJTNBJTNDeW91ciUyMEdpdGh1YiUyMGhhbmRsZSUzRSUyRnRyYW5zZm9ybWVycy5naXQlMEFjZCUyMHRyYW5zZm9ybWVycyUwQWdpdCUyMHJlbW90ZSUyMGFkZCUyMHVwc3RyZWFtJTIwaHR0cHMlM0ElMkYlMkZnaXRodWIuY29tJTJGaHVnZ2luZ2ZhY2UlMkZ0cmFuc2Zvcm1lcnMuZ2l0",highlighted:`git <span class="hljs-built_in">clone</span> git@github.com:&lt;your Github handle&gt;/transformers.git
<span class="hljs-built_in">cd</span> transformers
git remote add upstream https://github.com/huggingface/transformers.git`,wrap:!1}}),we=new w({props:{code:"Z2l0JTIwY2hlY2tvdXQlMjAtYiUyMGEtZGVzY3JpcHRpdmUtbmFtZS1mb3ItbXktY2hhbmdlcw==",highlighted:"git checkout -b a-descriptive-name-for-my-changes",wrap:!1}}),be=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1lJTIwJTIyLiU1QmRldiU1RCUyMg==",highlighted:'pip install -e <span class="hljs-string">&quot;.[dev]&quot;</span>',wrap:!1}}),$e=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1lJTIwJTIyLiU1QnF1YWxpdHklNUQlMjI=",highlighted:'pip install -e <span class="hljs-string">&quot;.[quality]&quot;</span>',wrap:!1}}),ve=new w({props:{code:"cHl0ZXN0JTIwdGVzdHMlMkYlM0NURVNUX1RPX1JVTiUzRS5weQ==",highlighted:"pytest tests/&lt;TEST_TO_RUN&gt;.py",wrap:!1}}),Te=new w({props:{code:"bWFrZSUyMGZpeHVw",highlighted:"make fixup",wrap:!1}}),Me=new w({props:{code:"bWFrZSUyMHN0eWxl",highlighted:"make style",wrap:!1}}),xe=new w({props:{code:"bWFrZSUyMHF1YWxpdHk=",highlighted:"make quality",wrap:!1}}),Ce=new w({props:{code:"bWFrZSUyMHJlcG8tY29uc2lzdGVuY3k=",highlighted:"make repo-consistency",wrap:!1}}),ke=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMCUyMi4lNUJkb2NzJTVEJTIy",highlighted:'pip install <span class="hljs-string">&quot;.[docs]&quot;</span>',wrap:!1}}),He=new w({props:{code:"ZG9jLWJ1aWxkZXIlMjBidWlsZCUyMHRyYW5zZm9ybWVycyUyMGRvY3MlMkZzb3VyY2UlMkZlbiUyMC0tYnVpbGRfZGlyJTIwfiUyRnRtcCUyRnRlc3QtYnVpbGQ=",highlighted:"doc-builder build transformers docs/source/en --build_dir ~/tmp/test-build",wrap:!1}}),Le=new w({props:{code:"Z2l0JTIwYWRkJTIwbW9kaWZpZWRfZmlsZS5weSUwQWdpdCUyMGNvbW1pdA==",highlighted:`git add modified_file.py
git commit`,wrap:!1}}),_e=new w({props:{code:"Z2l0JTIwZmV0Y2glMjB1cHN0cmVhbSUwQWdpdCUyMHJlYmFzZSUyMHVwc3RyZWFtJTJGbWFpbg==",highlighted:`git fetch upstream
git rebase upstream/main`,wrap:!1}}),Ie=new w({props:{code:"Z2l0JTIwcHVzaCUyMC11JTIwb3JpZ2luJTIwYS1kZXNjcmlwdGl2ZS1uYW1lLWZvci1teS1jaGFuZ2Vz",highlighted:"git push -u origin a-descriptive-name-for-my-changes",wrap:!1}}),Pe=new M({props:{title:"Pull request checklist",local:"pull-request-checklist",headingTag:"h3"}}),Re=new M({props:{title:"Tests",local:"tests",headingTag:"h3"}}),Se=new w({props:{code:"cHl0aG9uJTIwLW0lMjBweXRlc3QlMjAtbiUyMGF1dG8lMjAtLWRpc3QlM0Rsb2FkZmlsZSUyMC1zJTIwLXYlMjAuJTJGdGVzdHMlMkZtb2RlbHMlMkZteV9uZXdfbW9kZWw=",highlighted:"python -m pytest -n auto --dist=loadfile -s -v ./tests/models/my_new_model",wrap:!1}}),Fe=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1yJTIwZXhhbXBsZXMlMkZ4eHglMkZyZXF1aXJlbWVudHMudHh0JTIwJTIwJTIzJTIwb25seSUyMG5lZWRlZCUyMHRoZSUyMGZpcnN0JTIwdGltZSUwQXB5dGhvbiUyMC1tJTIwcHl0ZXN0JTIwLW4lMjBhdXRvJTIwLS1kaXN0JTNEbG9hZGZpbGUlMjAtcyUyMC12JTIwLiUyRmV4YW1wbGVzJTJGcHl0b3JjaCUyRnRleHQtY2xhc3NpZmljYXRpb24=",highlighted:`pip install -r examples/xxx/requirements.txt  <span class="hljs-comment"># only needed the first time</span>
python -m pytest -n auto --dist=loadfile -s -v ./examples/pytorch/text-classification`,wrap:!1}}),H=new Ui({props:{warning:!0,$$slots:{default:[Ji]},$$scope:{ctx:Ft}}}),ze=new w({props:{code:"UlVOX1NMT1clM0R5ZXMlMjBweXRob24lMjAtbSUyMHB5dGVzdCUyMC1uJTIwYXV0byUyMC0tZGlzdCUzRGxvYWRmaWxlJTIwLXMlMjAtdiUyMC4lMkZ0ZXN0cyUyRm1vZGVscyUyRm15X25ld19tb2RlbCUwQVJVTl9TTE9XJTNEeWVzJTIwcHl0aG9uJTIwLW0lMjBweXRlc3QlMjAtbiUyMGF1dG8lMjAtLWRpc3QlM0Rsb2FkZmlsZSUyMC1zJTIwLXYlMjAuJTJGZXhhbXBsZXMlMkZweXRvcmNoJTJGdGV4dC1jbGFzc2lmaWNhdGlvbg==",highlighted:`RUN_SLOW=<span class="hljs-built_in">yes</span> python -m pytest -n auto --dist=loadfile -s -v ./tests/models/my_new_model
RUN_SLOW=<span class="hljs-built_in">yes</span> python -m pytest -n auto --dist=loadfile -s -v ./examples/pytorch/text-classification`,wrap:!1}}),Qe=new w({props:{code:"cHl0aG9uJTIwLW0lMjB1bml0dGVzdCUyMGRpc2NvdmVyJTIwLXMlMjB0ZXN0cyUyMC10JTIwLiUyMC12JTBBcHl0aG9uJTIwLW0lMjB1bml0dGVzdCUyMGRpc2NvdmVyJTIwLXMlMjBleGFtcGxlcyUyMC10JTIwZXhhbXBsZXMlMjAtdg==",highlighted:`python -m unittest discover -s tests -t . -v
python -m unittest discover -s examples -t examples -v`,wrap:!1}}),De=new M({props:{title:"Style guide",local:"style-guide",headingTag:"h3"}}),et=new M({props:{title:"Develop on Windows",local:"develop-on-windows",headingTag:"h3"}}),nt=new w({props:{code:"Z2l0JTIwY29uZmlnJTIwY29yZS5hdXRvY3JsZiUyMGlucHV0",highlighted:"git config core.autocrlf input",wrap:!1}}),st=new M({props:{title:"Sync a forked repository with upstream main (the Hugging Face repository)",local:"sync-a-forked-repository-with-upstream-main-the-hugging-face-repository",headingTag:"h3"}}),ut=new w({props:{code:"Z2l0JTIwY2hlY2tvdXQlMjAtYiUyMHlvdXItYnJhbmNoLWZvci1zeW5jaW5nJTBBZ2l0JTIwcHVsbCUyMC0tc3F1YXNoJTIwLS1uby1jb21taXQlMjB1cHN0cmVhbSUyMG1haW4lMEFnaXQlMjBjb21taXQlMjAtbSUyMCclM0N5b3VyJTIwbWVzc2FnZSUyMHdpdGhvdXQlMjBHaXRIdWIlMjByZWZlcmVuY2VzJTNFJyUwQWdpdCUyMHB1c2glMjAtLXNldC11cHN0cmVhbSUyMG9yaWdpbiUyMHlvdXItYnJhbmNoLWZvci1zeW5jaW5n",highlighted:`git checkout -b your-branch-for-syncing
git pull --squash --no-commit upstream main
git commit -m <span class="hljs-string">&#x27;&lt;your message without GitHub references&gt;&#x27;</span>
git push --set-upstream origin your-branch-for-syncing`,wrap:!1}}),{c(){$=s("meta"),L=o(),C=s("p"),pt=o(),m(_.$$.fragment),Yt=o(),I=s("p"),I.textContent=Kl,Xt=o(),P=s("p"),P.textContent=eo,Nt=o(),U=s("p"),U.innerHTML=to,zt=o(),J=s("p"),J.innerHTML=no,Vt=o(),m(Z.$$.fragment),Bt=o(),W=s("p"),W.textContent=lo,Ot=o(),R=s("ul"),R.innerHTML=oo,At=o(),G=s("p"),G.innerHTML=io,Et=o(),j=s("p"),j.innerHTML=so,Qt=o(),S=s("blockquote"),S.innerHTML=ao,Dt=o(),m(q.$$.fragment),Kt=o(),F=s("p"),F.innerHTML=ro,en=o(),m(Y.$$.fragment),tn=o(),X=s("p"),X.textContent=uo,nn=o(),m(N.$$.fragment),ln=o(),z=s("p"),z.textContent=po,on=o(),V=s("p"),V.innerHTML=mo,sn=o(),B=s("p"),B.textContent=fo,an=o(),O=s("ul"),O.innerHTML=ho,rn=o(),A=s("p"),A.textContent=co,un=o(),m(E.$$.fragment),dn=o(),Q=s("p"),Q.textContent=go,pn=o(),m(D.$$.fragment),mn=o(),m(K.$$.fragment),fn=o(),ee=s("p"),ee.textContent=yo,hn=o(),te=s("ol"),te.innerHTML=wo,cn=o(),ne=s("p"),ne.textContent=bo,gn=o(),le=s("p"),le.innerHTML=$o,yn=o(),m(oe.$$.fragment),wn=o(),ie=s("p"),ie.textContent=vo,bn=o(),se=s("ul"),se.innerHTML=To,$n=o(),ae=s("p"),ae.textContent=Mo,vn=o(),re=s("p"),re.innerHTML=xo,Tn=o(),m(ue.$$.fragment),Mn=o(),de=s("p"),de.textContent=Co,xn=o(),pe=s("p"),pe.innerHTML=ko,Cn=o(),m(me.$$.fragment),kn=o(),fe=s("p"),fe.textContent=Ho,Hn=o(),he=s("p"),he.innerHTML=Lo,Ln=o(),ce=s("p"),ce.innerHTML=_o,_n=o(),b=s("ol"),mt=s("li"),mt.innerHTML=Io,fl=o(),ge=s("li"),ft=s("p"),ft.textContent=Po,hl=o(),m(ye.$$.fragment),cl=o(),k=s("li"),ht=s("p"),ht.textContent=Uo,gl=o(),m(we.$$.fragment),yl=o(),ct=s("p"),ct.innerHTML=Jo,wl=o(),T=s("li"),gt=s("p"),gt.textContent=Zo,bl=o(),m(be.$$.fragment),$l=o(),yt=s("p"),yt.innerHTML=Wo,vl=o(),wt=s("p"),wt.textContent=Ro,Tl=o(),m($e.$$.fragment),Ml=o(),bt=s("p"),bt.textContent=Go,xl=o(),d=s("li"),$t=s("p"),$t.textContent=jo,Cl=o(),vt=s("p"),vt.textContent=So,kl=o(),m(ve.$$.fragment),Hl=o(),Tt=s("p"),Tt.innerHTML=qo,Ll=o(),Mt=s("p"),Mt.innerHTML=Fo,_l=o(),m(Te.$$.fragment),Il=o(),xt=s("p"),xt.textContent=Yo,Pl=o(),Ct=s("p"),Ct.textContent=Xo,Ul=o(),m(Me.$$.fragment),Jl=o(),kt=s("p"),kt.innerHTML=No,Zl=o(),m(xe.$$.fragment),Wl=o(),Ht=s("p"),Ht.textContent=zo,Rl=o(),m(Ce.$$.fragment),Gl=o(),Lt=s("p"),Lt.innerHTML=Vo,jl=o(),_t=s("p"),_t.innerHTML=Bo,Sl=o(),m(ke.$$.fragment),ql=o(),It=s("p"),It.textContent=Oo,Fl=o(),m(He.$$.fragment),Yl=o(),Pt=s("p"),Pt.innerHTML=Ao,Xl=o(),Ut=s("p"),Ut.innerHTML=Eo,Nl=o(),m(Le.$$.fragment),zl=o(),Jt=s("p"),Jt.innerHTML=Qo,Vl=o(),Zt=s("p"),Zt.innerHTML=Do,Bl=o(),m(_e.$$.fragment),Ol=o(),Wt=s("p"),Wt.textContent=Ko,Al=o(),m(Ie.$$.fragment),El=o(),Rt=s("p"),Rt.innerHTML=ei,Ql=o(),Gt=s("li"),Gt.innerHTML=ti,Dl=o(),jt=s("li"),jt.innerHTML=ni,In=o(),m(Pe.$$.fragment),Pn=o(),Ue=s("p"),Ue.innerHTML=li,Un=o(),Je=s("ul"),Je.innerHTML=oi,Jn=o(),Ze=s("p"),Ze.innerHTML=ii,Zn=o(),We=s("p"),We.innerHTML=si,Wn=o(),m(Re.$$.fragment),Rn=o(),Ge=s("p"),Ge.innerHTML=ai,Gn=o(),je=s("p"),je.innerHTML=ri,jn=o(),m(Se.$$.fragment),Sn=o(),qe=s("p"),qe.innerHTML=ui,qn=o(),m(Fe.$$.fragment),Fn=o(),Ye=s("p"),Ye.innerHTML=di,Yn=o(),Xe=s("p"),Xe.textContent=pi,Xn=o(),Ne=s("p"),Ne.innerHTML=mi,Nn=o(),m(H.$$.fragment),zn=o(),m(ze.$$.fragment),Vn=o(),Ve=s("p"),Ve.textContent=fi,Bn=o(),Be=s("ul"),Be.innerHTML=hi,On=o(),Oe=s("p"),Oe.innerHTML=ci,An=o(),Ae=s("p"),Ae.innerHTML=gi,En=o(),Ee=s("p"),Ee.innerHTML=yi,Qn=o(),m(Qe.$$.fragment),Dn=o(),m(De.$$.fragment),Kn=o(),Ke=s("p"),Ke.innerHTML=wi,el=o(),m(et.$$.fragment),tl=o(),tt=s("p"),tt.innerHTML=bi,nl=o(),m(nt.$$.fragment),ll=o(),lt=s("p"),lt.innerHTML=$i,ol=o(),ot=s("ol"),ot.innerHTML=vi,il=o(),it=s("p"),it.innerHTML=Ti,sl=o(),m(st.$$.fragment),al=o(),at=s("p"),at.textContent=Mi,rl=o(),rt=s("ol"),rt.innerHTML=xi,ul=o(),m(ut.$$.fragment),dl=o(),qt=s("p"),this.h()},l(e){const t=Pi("svelte-u9bgzb",document.head);$=a(t,"META",{name:!0,content:!0}),t.forEach(n),L=i(e),C=a(e,"P",{}),dt(C).forEach(n),pt=i(e),f(_.$$.fragment,e),Yt=i(e),I=a(e,"P",{"data-svelte-h":!0}),r(I)!=="svelte-17zei9j"&&(I.textContent=Kl),Xt=i(e),P=a(e,"P",{"data-svelte-h":!0}),r(P)!=="svelte-5mizch"&&(P.textContent=eo),Nt=i(e),U=a(e,"P",{"data-svelte-h":!0}),r(U)!=="svelte-1w7r9jb"&&(U.innerHTML=to),zt=i(e),J=a(e,"P",{"data-svelte-h":!0}),r(J)!=="svelte-wk85tc"&&(J.innerHTML=no),Vt=i(e),f(Z.$$.fragment,e),Bt=i(e),W=a(e,"P",{"data-svelte-h":!0}),r(W)!=="svelte-1dsh31e"&&(W.textContent=lo),Ot=i(e),R=a(e,"UL",{"data-svelte-h":!0}),r(R)!=="svelte-17j8zhz"&&(R.innerHTML=oo),At=i(e),G=a(e,"P",{"data-svelte-h":!0}),r(G)!=="svelte-5tha2o"&&(G.innerHTML=io),Et=i(e),j=a(e,"P",{"data-svelte-h":!0}),r(j)!=="svelte-w2y5z"&&(j.innerHTML=so),Qt=i(e),S=a(e,"BLOCKQUOTE",{"data-svelte-h":!0}),r(S)!=="svelte-1mqvx2f"&&(S.innerHTML=ao),Dt=i(e),f(q.$$.fragment,e),Kt=i(e),F=a(e,"P",{"data-svelte-h":!0}),r(F)!=="svelte-1pj1lv1"&&(F.innerHTML=ro),en=i(e),f(Y.$$.fragment,e),tn=i(e),X=a(e,"P",{"data-svelte-h":!0}),r(X)!=="svelte-108cg5e"&&(X.textContent=uo),nn=i(e),f(N.$$.fragment,e),ln=i(e),z=a(e,"P",{"data-svelte-h":!0}),r(z)!=="svelte-ijemu5"&&(z.textContent=po),on=i(e),V=a(e,"P",{"data-svelte-h":!0}),r(V)!=="svelte-jdxn5f"&&(V.innerHTML=mo),sn=i(e),B=a(e,"P",{"data-svelte-h":!0}),r(B)!=="svelte-dqob4m"&&(B.textContent=fo),an=i(e),O=a(e,"UL",{"data-svelte-h":!0}),r(O)!=="svelte-ktzqgj"&&(O.innerHTML=ho),rn=i(e),A=a(e,"P",{"data-svelte-h":!0}),r(A)!=="svelte-4jhsms"&&(A.textContent=co),un=i(e),f(E.$$.fragment,e),dn=i(e),Q=a(e,"P",{"data-svelte-h":!0}),r(Q)!=="svelte-kgyo48"&&(Q.textContent=go),pn=i(e),f(D.$$.fragment,e),mn=i(e),f(K.$$.fragment,e),fn=i(e),ee=a(e,"P",{"data-svelte-h":!0}),r(ee)!=="svelte-1u371yh"&&(ee.textContent=yo),hn=i(e),te=a(e,"OL",{"data-svelte-h":!0}),r(te)!=="svelte-1te0rep"&&(te.innerHTML=wo),cn=i(e),ne=a(e,"P",{"data-svelte-h":!0}),r(ne)!=="svelte-1fqxsv7"&&(ne.textContent=bo),gn=i(e),le=a(e,"P",{"data-svelte-h":!0}),r(le)!=="svelte-14hxcfo"&&(le.innerHTML=$o),yn=i(e),f(oe.$$.fragment,e),wn=i(e),ie=a(e,"P",{"data-svelte-h":!0}),r(ie)!=="svelte-54s6tk"&&(ie.textContent=vo),bn=i(e),se=a(e,"UL",{"data-svelte-h":!0}),r(se)!=="svelte-1h1qhap"&&(se.innerHTML=To),$n=i(e),ae=a(e,"P",{"data-svelte-h":!0}),r(ae)!=="svelte-1mjerq"&&(ae.textContent=Mo),vn=i(e),re=a(e,"P",{"data-svelte-h":!0}),r(re)!=="svelte-gzz3gx"&&(re.innerHTML=xo),Tn=i(e),f(ue.$$.fragment,e),Mn=i(e),de=a(e,"P",{"data-svelte-h":!0}),r(de)!=="svelte-jtu4in"&&(de.textContent=Co),xn=i(e),pe=a(e,"P",{"data-svelte-h":!0}),r(pe)!=="svelte-4dvo0q"&&(pe.innerHTML=ko),Cn=i(e),f(me.$$.fragment,e),kn=i(e),fe=a(e,"P",{"data-svelte-h":!0}),r(fe)!=="svelte-1rpxelp"&&(fe.textContent=Ho),Hn=i(e),he=a(e,"P",{"data-svelte-h":!0}),r(he)!=="svelte-fpr8gf"&&(he.innerHTML=Lo),Ln=i(e),ce=a(e,"P",{"data-svelte-h":!0}),r(ce)!=="svelte-1qnhf9a"&&(ce.innerHTML=_o),_n=i(e),b=a(e,"OL",{});var v=dt(b);mt=a(v,"LI",{"data-svelte-h":!0}),r(mt)!=="svelte-10yv6sw"&&(mt.innerHTML=Io),fl=i(v),ge=a(v,"LI",{});var ml=dt(ge);ft=a(ml,"P",{"data-svelte-h":!0}),r(ft)!=="svelte-clge5v"&&(ft.textContent=Po),hl=i(ml),f(ye.$$.fragment,ml),ml.forEach(n),cl=i(v),k=a(v,"LI",{});var St=dt(k);ht=a(St,"P",{"data-svelte-h":!0}),r(ht)!=="svelte-imt6wq"&&(ht.textContent=Uo),gl=i(St),f(we.$$.fragment,St),yl=i(St),ct=a(St,"P",{"data-svelte-h":!0}),r(ct)!=="svelte-z4p9gk"&&(ct.innerHTML=Jo),St.forEach(n),wl=i(v),T=a(v,"LI",{});var x=dt(T);gt=a(x,"P",{"data-svelte-h":!0}),r(gt)!=="svelte-1sxg1ux"&&(gt.textContent=Zo),bl=i(x),f(be.$$.fragment,x),$l=i(x),yt=a(x,"P",{"data-svelte-h":!0}),r(yt)!=="svelte-szp5je"&&(yt.innerHTML=Wo),vl=i(x),wt=a(x,"P",{"data-svelte-h":!0}),r(wt)!=="svelte-4wf1r3"&&(wt.textContent=Ro),Tl=i(x),f($e.$$.fragment,x),Ml=i(x),bt=a(x,"P",{"data-svelte-h":!0}),r(bt)!=="svelte-1bkerhb"&&(bt.textContent=Go),x.forEach(n),xl=i(v),d=a(v,"LI",{});var p=dt(d);$t=a(p,"P",{"data-svelte-h":!0}),r($t)!=="svelte-105oq3v"&&($t.textContent=jo),Cl=i(p),vt=a(p,"P",{"data-svelte-h":!0}),r(vt)!=="svelte-1aspzlq"&&(vt.textContent=So),kl=i(p),f(ve.$$.fragment,p),Hl=i(p),Tt=a(p,"P",{"data-svelte-h":!0}),r(Tt)!=="svelte-1qr0iqb"&&(Tt.innerHTML=qo),Ll=i(p),Mt=a(p,"P",{"data-svelte-h":!0}),r(Mt)!=="svelte-1w5oqi3"&&(Mt.innerHTML=Fo),_l=i(p),f(Te.$$.fragment,p),Il=i(p),xt=a(p,"P",{"data-svelte-h":!0}),r(xt)!=="svelte-meck0e"&&(xt.textContent=Yo),Pl=i(p),Ct=a(p,"P",{"data-svelte-h":!0}),r(Ct)!=="svelte-5jyajj"&&(Ct.textContent=Xo),Ul=i(p),f(Me.$$.fragment,p),Jl=i(p),kt=a(p,"P",{"data-svelte-h":!0}),r(kt)!=="svelte-avcbit"&&(kt.innerHTML=No),Zl=i(p),f(xe.$$.fragment,p),Wl=i(p),Ht=a(p,"P",{"data-svelte-h":!0}),r(Ht)!=="svelte-cekxra"&&(Ht.textContent=zo),Rl=i(p),f(Ce.$$.fragment,p),Gl=i(p),Lt=a(p,"P",{"data-svelte-h":!0}),r(Lt)!=="svelte-4ie1ee"&&(Lt.innerHTML=Vo),jl=i(p),_t=a(p,"P",{"data-svelte-h":!0}),r(_t)!=="svelte-1abe5l4"&&(_t.innerHTML=Bo),Sl=i(p),f(ke.$$.fragment,p),ql=i(p),It=a(p,"P",{"data-svelte-h":!0}),r(It)!=="svelte-1cx4ayh"&&(It.textContent=Oo),Fl=i(p),f(He.$$.fragment,p),Yl=i(p),Pt=a(p,"P",{"data-svelte-h":!0}),r(Pt)!=="svelte-sp8uj2"&&(Pt.innerHTML=Ao),Xl=i(p),Ut=a(p,"P",{"data-svelte-h":!0}),r(Ut)!=="svelte-1ist3rx"&&(Ut.innerHTML=Eo),Nl=i(p),f(Le.$$.fragment,p),zl=i(p),Jt=a(p,"P",{"data-svelte-h":!0}),r(Jt)!=="svelte-pyd5qz"&&(Jt.innerHTML=Qo),Vl=i(p),Zt=a(p,"P",{"data-svelte-h":!0}),r(Zt)!=="svelte-17b2d3o"&&(Zt.innerHTML=Do),Bl=i(p),f(_e.$$.fragment,p),Ol=i(p),Wt=a(p,"P",{"data-svelte-h":!0}),r(Wt)!=="svelte-1dpehw0"&&(Wt.textContent=Ko),Al=i(p),f(Ie.$$.fragment,p),El=i(p),Rt=a(p,"P",{"data-svelte-h":!0}),r(Rt)!=="svelte-1cg39wg"&&(Rt.innerHTML=ei),p.forEach(n),Ql=i(v),Gt=a(v,"LI",{"data-svelte-h":!0}),r(Gt)!=="svelte-1vbsr8s"&&(Gt.innerHTML=ti),Dl=i(v),jt=a(v,"LI",{"data-svelte-h":!0}),r(jt)!=="svelte-1259sg6"&&(jt.innerHTML=ni),v.forEach(n),In=i(e),f(Pe.$$.fragment,e),Pn=i(e),Ue=a(e,"P",{"data-svelte-h":!0}),r(Ue)!=="svelte-k6tfhd"&&(Ue.innerHTML=li),Un=i(e),Je=a(e,"UL",{"data-svelte-h":!0}),r(Je)!=="svelte-yk5n2o"&&(Je.innerHTML=oi),Jn=i(e),Ze=a(e,"P",{"data-svelte-h":!0}),r(Ze)!=="svelte-1sr0jad"&&(Ze.innerHTML=ii),Zn=i(e),We=a(e,"P",{"data-svelte-h":!0}),r(We)!=="svelte-lji0px"&&(We.innerHTML=si),Wn=i(e),f(Re.$$.fragment,e),Rn=i(e),Ge=a(e,"P",{"data-svelte-h":!0}),r(Ge)!=="svelte-d0jm0j"&&(Ge.innerHTML=ai),Gn=i(e),je=a(e,"P",{"data-svelte-h":!0}),r(je)!=="svelte-16txmj3"&&(je.innerHTML=ri),jn=i(e),f(Se.$$.fragment,e),Sn=i(e),qe=a(e,"P",{"data-svelte-h":!0}),r(qe)!=="svelte-194ulgy"&&(qe.innerHTML=ui),qn=i(e),f(Fe.$$.fragment,e),Fn=i(e),Ye=a(e,"P",{"data-svelte-h":!0}),r(Ye)!=="svelte-s8530j"&&(Ye.innerHTML=di),Yn=i(e),Xe=a(e,"P",{"data-svelte-h":!0}),r(Xe)!=="svelte-1libq1e"&&(Xe.textContent=pi),Xn=i(e),Ne=a(e,"P",{"data-svelte-h":!0}),r(Ne)!=="svelte-x9o71g"&&(Ne.innerHTML=mi),Nn=i(e),f(H.$$.fragment,e),zn=i(e),f(ze.$$.fragment,e),Vn=i(e),Ve=a(e,"P",{"data-svelte-h":!0}),r(Ve)!=="svelte-1tkgk09"&&(Ve.textContent=fi),Bn=i(e),Be=a(e,"UL",{"data-svelte-h":!0}),r(Be)!=="svelte-173krs2"&&(Be.innerHTML=hi),On=i(e),Oe=a(e,"P",{"data-svelte-h":!0}),r(Oe)!=="svelte-1in21lf"&&(Oe.innerHTML=ci),An=i(e),Ae=a(e,"P",{"data-svelte-h":!0}),r(Ae)!=="svelte-xi3qip"&&(Ae.innerHTML=gi),En=i(e),Ee=a(e,"P",{"data-svelte-h":!0}),r(Ee)!=="svelte-8hji3v"&&(Ee.innerHTML=yi),Qn=i(e),f(Qe.$$.fragment,e),Dn=i(e),f(De.$$.fragment,e),Kn=i(e),Ke=a(e,"P",{"data-svelte-h":!0}),r(Ke)!=="svelte-qp7919"&&(Ke.innerHTML=wi),el=i(e),f(et.$$.fragment,e),tl=i(e),tt=a(e,"P",{"data-svelte-h":!0}),r(tt)!=="svelte-a92mws"&&(tt.innerHTML=bi),nl=i(e),f(nt.$$.fragment,e),ll=i(e),lt=a(e,"P",{"data-svelte-h":!0}),r(lt)!=="svelte-65es6o"&&(lt.innerHTML=$i),ol=i(e),ot=a(e,"OL",{"data-svelte-h":!0}),r(ot)!=="svelte-1m9z4k7"&&(ot.innerHTML=vi),il=i(e),it=a(e,"P",{"data-svelte-h":!0}),r(it)!=="svelte-1gywdjp"&&(it.innerHTML=Ti),sl=i(e),f(st.$$.fragment,e),al=i(e),at=a(e,"P",{"data-svelte-h":!0}),r(at)!=="svelte-14o855d"&&(at.textContent=Mi),rl=i(e),rt=a(e,"OL",{"data-svelte-h":!0}),r(rt)!=="svelte-ff502d"&&(rt.innerHTML=xi),ul=i(e),f(ut.$$.fragment,e),dl=i(e),qt=a(e,"P",{}),dt(qt).forEach(n),this.h()},h(){Ci($,"name","hf:doc:metadata"),Ci($,"content",Wi)},m(e,t){u(document.head,$),l(e,L,t),l(e,C,t),l(e,pt,t),h(_,e,t),l(e,Yt,t),l(e,I,t),l(e,Xt,t),l(e,P,t),l(e,Nt,t),l(e,U,t),l(e,zt,t),l(e,J,t),l(e,Vt,t),h(Z,e,t),l(e,Bt,t),l(e,W,t),l(e,Ot,t),l(e,R,t),l(e,At,t),l(e,G,t),l(e,Et,t),l(e,j,t),l(e,Qt,t),l(e,S,t),l(e,Dt,t),h(q,e,t),l(e,Kt,t),l(e,F,t),l(e,en,t),h(Y,e,t),l(e,tn,t),l(e,X,t),l(e,nn,t),h(N,e,t),l(e,ln,t),l(e,z,t),l(e,on,t),l(e,V,t),l(e,sn,t),l(e,B,t),l(e,an,t),l(e,O,t),l(e,rn,t),l(e,A,t),l(e,un,t),h(E,e,t),l(e,dn,t),l(e,Q,t),l(e,pn,t),h(D,e,t),l(e,mn,t),h(K,e,t),l(e,fn,t),l(e,ee,t),l(e,hn,t),l(e,te,t),l(e,cn,t),l(e,ne,t),l(e,gn,t),l(e,le,t),l(e,yn,t),h(oe,e,t),l(e,wn,t),l(e,ie,t),l(e,bn,t),l(e,se,t),l(e,$n,t),l(e,ae,t),l(e,vn,t),l(e,re,t),l(e,Tn,t),h(ue,e,t),l(e,Mn,t),l(e,de,t),l(e,xn,t),l(e,pe,t),l(e,Cn,t),h(me,e,t),l(e,kn,t),l(e,fe,t),l(e,Hn,t),l(e,he,t),l(e,Ln,t),l(e,ce,t),l(e,_n,t),l(e,b,t),u(b,mt),u(b,fl),u(b,ge),u(ge,ft),u(ge,hl),h(ye,ge,null),u(b,cl),u(b,k),u(k,ht),u(k,gl),h(we,k,null),u(k,yl),u(k,ct),u(b,wl),u(b,T),u(T,gt),u(T,bl),h(be,T,null),u(T,$l),u(T,yt),u(T,vl),u(T,wt),u(T,Tl),h($e,T,null),u(T,Ml),u(T,bt),u(b,xl),u(b,d),u(d,$t),u(d,Cl),u(d,vt),u(d,kl),h(ve,d,null),u(d,Hl),u(d,Tt),u(d,Ll),u(d,Mt),u(d,_l),h(Te,d,null),u(d,Il),u(d,xt),u(d,Pl),u(d,Ct),u(d,Ul),h(Me,d,null),u(d,Jl),u(d,kt),u(d,Zl),h(xe,d,null),u(d,Wl),u(d,Ht),u(d,Rl),h(Ce,d,null),u(d,Gl),u(d,Lt),u(d,jl),u(d,_t),u(d,Sl),h(ke,d,null),u(d,ql),u(d,It),u(d,Fl),h(He,d,null),u(d,Yl),u(d,Pt),u(d,Xl),u(d,Ut),u(d,Nl),h(Le,d,null),u(d,zl),u(d,Jt),u(d,Vl),u(d,Zt),u(d,Bl),h(_e,d,null),u(d,Ol),u(d,Wt),u(d,Al),h(Ie,d,null),u(d,El),u(d,Rt),u(b,Ql),u(b,Gt),u(b,Dl),u(b,jt),l(e,In,t),h(Pe,e,t),l(e,Pn,t),l(e,Ue,t),l(e,Un,t),l(e,Je,t),l(e,Jn,t),l(e,Ze,t),l(e,Zn,t),l(e,We,t),l(e,Wn,t),h(Re,e,t),l(e,Rn,t),l(e,Ge,t),l(e,Gn,t),l(e,je,t),l(e,jn,t),h(Se,e,t),l(e,Sn,t),l(e,qe,t),l(e,qn,t),h(Fe,e,t),l(e,Fn,t),l(e,Ye,t),l(e,Yn,t),l(e,Xe,t),l(e,Xn,t),l(e,Ne,t),l(e,Nn,t),h(H,e,t),l(e,zn,t),h(ze,e,t),l(e,Vn,t),l(e,Ve,t),l(e,Bn,t),l(e,Be,t),l(e,On,t),l(e,Oe,t),l(e,An,t),l(e,Ae,t),l(e,En,t),l(e,Ee,t),l(e,Qn,t),h(Qe,e,t),l(e,Dn,t),h(De,e,t),l(e,Kn,t),l(e,Ke,t),l(e,el,t),h(et,e,t),l(e,tl,t),l(e,tt,t),l(e,nl,t),h(nt,e,t),l(e,ll,t),l(e,lt,t),l(e,ol,t),l(e,ot,t),l(e,il,t),l(e,it,t),l(e,sl,t),h(st,e,t),l(e,al,t),l(e,at,t),l(e,rl,t),l(e,rt,t),l(e,ul,t),h(ut,e,t),l(e,dl,t),l(e,qt,t),pl=!0},p(e,[t]){const v={};t&2&&(v.$$scope={dirty:t,ctx:e}),H.$set(v)},i(e){pl||(c(_.$$.fragment,e),c(Z.$$.fragment,e),c(q.$$.fragment,e),c(Y.$$.fragment,e),c(N.$$.fragment,e),c(E.$$.fragment,e),c(D.$$.fragment,e),c(K.$$.fragment,e),c(oe.$$.fragment,e),c(ue.$$.fragment,e),c(me.$$.fragment,e),c(ye.$$.fragment,e),c(we.$$.fragment,e),c(be.$$.fragment,e),c($e.$$.fragment,e),c(ve.$$.fragment,e),c(Te.$$.fragment,e),c(Me.$$.fragment,e),c(xe.$$.fragment,e),c(Ce.$$.fragment,e),c(ke.$$.fragment,e),c(He.$$.fragment,e),c(Le.$$.fragment,e),c(_e.$$.fragment,e),c(Ie.$$.fragment,e),c(Pe.$$.fragment,e),c(Re.$$.fragment,e),c(Se.$$.fragment,e),c(Fe.$$.fragment,e),c(H.$$.fragment,e),c(ze.$$.fragment,e),c(Qe.$$.fragment,e),c(De.$$.fragment,e),c(et.$$.fragment,e),c(nt.$$.fragment,e),c(st.$$.fragment,e),c(ut.$$.fragment,e),pl=!0)},o(e){g(_.$$.fragment,e),g(Z.$$.fragment,e),g(q.$$.fragment,e),g(Y.$$.fragment,e),g(N.$$.fragment,e),g(E.$$.fragment,e),g(D.$$.fragment,e),g(K.$$.fragment,e),g(oe.$$.fragment,e),g(ue.$$.fragment,e),g(me.$$.fragment,e),g(ye.$$.fragment,e),g(we.$$.fragment,e),g(be.$$.fragment,e),g($e.$$.fragment,e),g(ve.$$.fragment,e),g(Te.$$.fragment,e),g(Me.$$.fragment,e),g(xe.$$.fragment,e),g(Ce.$$.fragment,e),g(ke.$$.fragment,e),g(He.$$.fragment,e),g(Le.$$.fragment,e),g(_e.$$.fragment,e),g(Ie.$$.fragment,e),g(Pe.$$.fragment,e),g(Re.$$.fragment,e),g(Se.$$.fragment,e),g(Fe.$$.fragment,e),g(H.$$.fragment,e),g(ze.$$.fragment,e),g(Qe.$$.fragment,e),g(De.$$.fragment,e),g(et.$$.fragment,e),g(nt.$$.fragment,e),g(st.$$.fragment,e),g(ut.$$.fragment,e),pl=!1},d(e){e&&(n(L),n(C),n(pt),n(Yt),n(I),n(Xt),n(P),n(Nt),n(U),n(zt),n(J),n(Vt),n(Bt),n(W),n(Ot),n(R),n(At),n(G),n(Et),n(j),n(Qt),n(S),n(Dt),n(Kt),n(F),n(en),n(tn),n(X),n(nn),n(ln),n(z),n(on),n(V),n(sn),n(B),n(an),n(O),n(rn),n(A),n(un),n(dn),n(Q),n(pn),n(mn),n(fn),n(ee),n(hn),n(te),n(cn),n(ne),n(gn),n(le),n(yn),n(wn),n(ie),n(bn),n(se),n($n),n(ae),n(vn),n(re),n(Tn),n(Mn),n(de),n(xn),n(pe),n(Cn),n(kn),n(fe),n(Hn),n(he),n(Ln),n(ce),n(_n),n(b),n(In),n(Pn),n(Ue),n(Un),n(Je),n(Jn),n(Ze),n(Zn),n(We),n(Wn),n(Rn),n(Ge),n(Gn),n(je),n(jn),n(Sn),n(qe),n(qn),n(Fn),n(Ye),n(Yn),n(Xe),n(Xn),n(Ne),n(Nn),n(zn),n(Vn),n(Ve),n(Bn),n(Be),n(On),n(Oe),n(An),n(Ae),n(En),n(Ee),n(Qn),n(Dn),n(Kn),n(Ke),n(el),n(tl),n(tt),n(nl),n(ll),n(lt),n(ol),n(ot),n(il),n(it),n(sl),n(al),n(at),n(rl),n(rt),n(ul),n(dl),n(qt)),n($),y(_,e),y(Z,e),y(q,e),y(Y,e),y(N,e),y(E,e),y(D,e),y(K,e),y(oe,e),y(ue,e),y(me,e),y(ye),y(we),y(be),y($e),y(ve),y(Te),y(Me),y(xe),y(Ce),y(ke),y(He),y(Le),y(_e),y(Ie),y(Pe,e),y(Re,e),y(Se,e),y(Fe,e),y(H,e),y(ze,e),y(Qe,e),y(De,e),y(et,e),y(nt,e),y(st,e),y(ut,e)}}}const Wi='{"title":"Contribute to 🤗 Transformers","local":"contribute-to--transformers","sections":[{"title":"Ways to contribute","local":"ways-to-contribute","sections":[],"depth":2},{"title":"Fixing outstanding issues","local":"fixing-outstanding-issues","sections":[],"depth":2},{"title":"Submitting a bug-related issue or feature request","local":"submitting-a-bug-related-issue-or-feature-request","sections":[{"title":"Did you find a bug?","local":"did-you-find-a-bug","sections":[],"depth":3},{"title":"Do you want a new feature?","local":"do-you-want-a-new-feature","sections":[],"depth":3}],"depth":2},{"title":"Do you want to implement a new model?","local":"do-you-want-to-implement-a-new-model","sections":[],"depth":2},{"title":"Do you want to add documentation?","local":"do-you-want-to-add-documentation","sections":[],"depth":2},{"title":"Create a Pull Request","local":"create-a-pull-request","sections":[{"title":"Pull request checklist","local":"pull-request-checklist","sections":[],"depth":3},{"title":"Tests","local":"tests","sections":[],"depth":3},{"title":"Style guide","local":"style-guide","sections":[],"depth":3},{"title":"Develop on Windows","local":"develop-on-windows","sections":[],"depth":3},{"title":"Sync a forked repository with upstream main (the Hugging Face repository)","local":"sync-a-forked-repository-with-upstream-main-the-hugging-face-repository","sections":[],"depth":3}],"depth":2}],"depth":1}';function Ri(Ft){return Hi(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Yi extends _i{constructor($){super(),Ii(this,$,Ri,Zi,ki,{})}}export{Yi as component};
