import{s as Zi,o as Ri,n as Gi}from"../chunks/scheduler.25b97de1.js";import{S as ji,i as Si,g as s,s as o,r as m,A as qi,h as a,f as n,c as i,j as L,u as f,x as r,k as Wi,y as u,a as l,v as h,d as c,t as y,w as g}from"../chunks/index.d9030fc9.js";import{T as Fi}from"../chunks/Tip.baa67368.js";import{C as w}from"../chunks/CodeBlock.e6cd0d95.js";import{H as M,E as Yi}from"../chunks/EditOnGithub.91d95064.js";function Xi(zt){let $,I="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=I},l(C){$=a(C,"P",{"data-svelte-h":!0}),r($)!=="svelte-1m2ro5n"&&($.innerHTML=I)},m(C,ft){l(C,$,ft)},p:Gi,d(C){C&&n($)}}}function Ni(zt){let $,I,C,ft,P,Vt,U,ao=`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.`,Et,J,ro=`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.`,Bt,W,uo=`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>.`,Ot,Z,po='<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>',At,R,Qt,G,mo="There are several ways you can contribute to 🤗 Transformers:",Dt,j,fo="<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>",Kt,S,ho=`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. The best way to do that is to open a Pull Request and link it to the issue that you’d like to work on. We try to give priority to opened PRs as we can easily track the progress of the fix, and if the contributor does not have time anymore, someone else can take the PR over.`,en,q,co='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! 🚀',tn,F,yo="<p>All contributions are equally valuable to the community. 🥰</p>",nn,Y,ln,X,go='If you notice an issue with the existing code and have a fix in mind, feel free to <a href="#create-a-pull-request">start contributing</a> and open a Pull Request!',on,N,sn,z,wo=`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.`,an,V,rn,E,bo="The 🤗 Transformers library is robust and reliable thanks to users who report the problems they encounter.",un,B,$o=`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.`,pn,O,vo="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:",dn,A,To=`<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>`,mn,Q,Mo="To get the OS and software versions automatically, run the following command:",fn,D,hn,K,xo="You can also run the same command from the root of the repository:",cn,ee,yn,te,gn,ne,Co="If there is a new feature you’d like to see in 🤗 Transformers, please open an issue and describe:",wn,le,ko="<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>",bn,oe,Lo="If your issue is well written we’re already 80% of the way there by the time you create it.",$n,ie,Ho='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.',vn,se,Tn,ae,_o="New models are constantly released and if you want to implement a new model, please provide the following information:",Mn,re,Io="<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>",xn,ue,Po="If you are willing to contribute the model yourself, let us know so we can help you add it to 🤗 Transformers!",Cn,pe,Uo='We have a technical guide for <a href="https://huggingface.co/docs/transformers/add_new_model" rel="nofollow">how to add a model to 🤗 Transformers</a>.',kn,de,Ln,me,Jo="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!",Hn,fe,Wo='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>.',_n,he,In,ce,Zo=`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.`,Pn,ye,Ro=`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.`,Un,ge,Go='You’ll need <strong><a href="https://github.com/huggingface/transformers/blob/main/setup.py#L426" rel="nofollow">Python 3.8</a></strong> or above to contribute to 🤗 Transformers. Follow the steps below to start contributing:',Jn,b,ht,jo=`<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>`,bl,we,ct,So="Clone your fork to your local disk, and add the base repository as a remote:",$l,be,vl,k,yt,qo="Create a new branch to hold your development changes:",Tl,$e,Ml,gt,Fo="🚨 <strong>Do not</strong> work on the <code>main</code> branch!",xl,T,wt,Yo="Set up a development environment by running the following command in a virtual environment:",Cl,ve,kl,bt,Xo=`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.`,Ll,$t,No=`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:`,Hl,Te,_l,vt,zo="which should be enough for most use cases.",Il,p,Tt,Vo="Develop the features in your branch.",Pl,Mt,Eo=`As you work on your code, you should make sure the test suite
passes. Run the tests impacted by your changes like this:`,Ul,Me,Jl,xt,Bo=`For more information about tests, check out the
<a href="https://huggingface.co/docs/transformers/testing" rel="nofollow">Testing</a> guide.`,Wl,Ct,Oo=`🤗 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:`,Zl,xe,Rl,kt,Ao="This target is also optimized to only work with files modified by the PR you’re working on.",Gl,Lt,Qo=`If you prefer to run the checks one after the other, the following command applies the
style corrections:`,jl,Ce,Sl,Ht,Do=`🤗 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:`,ql,ke,Fl,_t,Ko=`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:`,Yl,Le,Xl,It,ei=`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.`,Nl,Pt,ti=`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:`,zl,He,Vl,Ut,ni="Run the following command from the root of the repository:",El,_e,Bl,Jt,li=`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.`,Ol,Wt,oi=`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>:`,Al,Ie,Ql,Zt,ii=`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!`,Dl,Rt,si=`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:`,Kl,Pe,eo,Gt,ai="Push your changes to your branch:",to,Ue,no,jt,ri="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.",lo,St,ui='<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="#pull-request-checklist">checklist</a> below. When you’re ready, you can send your changes to the project maintainers for review.</p>',oo,qt,pi=`<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>`,Wn,Je,Zn,We,di=`☐ 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/>`,Rn,Ze,mi=`<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>`,Gn,Re,fi=`☐ 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 repository and ask a Hugging Face member to merge it.`,jn,Ge,hi='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.',Sn,je,qn,Se,ci=`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.`,Fn,qe,yi=`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:`,Yn,Fe,Xn,Ye,gi="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:",Nn,Xe,zn,Ne,wi="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>)!",Vn,ze,bi=`You can also specify a smaller set of tests in order to test only the feature
you’re working on.`,En,Ve,$i=`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!`,Bn,H,On,Ee,An,Be,vi="Like the slow tests, there are other environment variables available which not enabled by default during testing:",Qn,Oe,Ti="<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>",Dn,Ae,Mi='More environment variables and additional information can be found in the <a href="src/transformers/testing_utils.py">testing_utils.py</a>.',Kn,Qe,xi=`🤗 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.`,el,De,Ci=`This means <code>unittest</code> is fully supported. Here’s how to run tests with
<code>unittest</code>:`,tl,Ke,nl,et,ll,tt,ki=`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.`,ol,nt,il,lt,Li='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:',sl,ot,al,it,Hi="One way to run the <code>make</code> command on Windows is with MSYS2:",rl,st,_i='<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>',ul,at,Ii="You can now use <code>make</code> from any terminal (PowerShell, cmd.exe, etc.)! 🎉",pl,rt,dl,ut,Pi="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.",ml,_,Ft,Ui="<p>When possible, avoid syncing with the upstream using a branch and PR on the forked repository. Instead, merge directly into the forked main.</p>",io,pt,Yt,Ji="If a PR is absolutely necessary, use the following steps after checking out your branch:",so,dt,fl,mt,hl,Nt,cl;return P=new M({props:{title:"Contribute to 🤗 Transformers",local:"contribute-to--transformers",headingTag:"h1"}}),R=new M({props:{title:"Ways to contribute",local:"ways-to-contribute",headingTag:"h2"}}),Y=new M({props:{title:"Fixing outstanding issues",local:"fixing-outstanding-issues",headingTag:"h2"}}),N=new M({props:{title:"Submitting a bug-related issue or feature request",local:"submitting-a-bug-related-issue-or-feature-request",headingTag:"h2"}}),V=new M({props:{title:"Did you find a bug?",local:"did-you-find-a-bug",headingTag:"h3"}}),D=new w({props:{code:"dHJhbnNmb3JtZXJzLWNsaSUyMGVudg==",highlighted:'transformers-cli <span class="hljs-built_in">env</span>',wrap:!1}}),ee=new w({props:{code:"cHl0aG9uJTIwc3JjJTJGdHJhbnNmb3JtZXJzJTJGY29tbWFuZHMlMkZ0cmFuc2Zvcm1lcnNfY2xpLnB5JTIwZW52",highlighted:'python src/transformers/commands/transformers_cli.py <span class="hljs-built_in">env</span>',wrap:!1}}),te=new M({props:{title:"Do you want a new feature?",local:"do-you-want-a-new-feature",headingTag:"h3"}}),se=new M({props:{title:"Do you want to implement a new model?",local:"do-you-want-to-implement-a-new-model",headingTag:"h2"}}),de=new M({props:{title:"Do you want to add documentation?",local:"do-you-want-to-add-documentation",headingTag:"h2"}}),he=new M({props:{title:"Create a Pull Request",local:"create-a-pull-request",headingTag:"h2"}}),be=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}}),$e=new w({props:{code:"Z2l0JTIwY2hlY2tvdXQlMjAtYiUyMGEtZGVzY3JpcHRpdmUtbmFtZS1mb3ItbXktY2hhbmdlcw==",highlighted:"git checkout -b a-descriptive-name-for-my-changes",wrap:!1}}),ve=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1lJTIwJTIyLiU1QmRldiU1RCUyMg==",highlighted:'pip install -e <span class="hljs-string">&quot;.[dev]&quot;</span>',wrap:!1}}),Te=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1lJTIwJTIyLiU1QnF1YWxpdHklNUQlMjI=",highlighted:'pip install -e <span class="hljs-string">&quot;.[quality]&quot;</span>',wrap:!1}}),Me=new w({props:{code:"cHl0ZXN0JTIwdGVzdHMlMkYlM0NURVNUX1RPX1JVTiUzRS5weQ==",highlighted:"pytest tests/&lt;TEST_TO_RUN&gt;.py",wrap:!1}}),xe=new w({props:{code:"bWFrZSUyMGZpeHVw",highlighted:"make fixup",wrap:!1}}),Ce=new w({props:{code:"bWFrZSUyMHN0eWxl",highlighted:"make style",wrap:!1}}),ke=new w({props:{code:"bWFrZSUyMHF1YWxpdHk=",highlighted:"make quality",wrap:!1}}),Le=new w({props:{code:"bWFrZSUyMHJlcG8tY29uc2lzdGVuY3k=",highlighted:"make repo-consistency",wrap:!1}}),He=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMCUyMi4lNUJkb2NzJTVEJTIy",highlighted:'pip install <span class="hljs-string">&quot;.[docs]&quot;</span>',wrap:!1}}),_e=new w({props:{code:"ZG9jLWJ1aWxkZXIlMjBidWlsZCUyMHRyYW5zZm9ybWVycyUyMGRvY3MlMkZzb3VyY2UlMkZlbiUyMC0tYnVpbGRfZGlyJTIwfiUyRnRtcCUyRnRlc3QtYnVpbGQ=",highlighted:"doc-builder build transformers docs/source/en --build_dir ~/tmp/test-build",wrap:!1}}),Ie=new w({props:{code:"Z2l0JTIwYWRkJTIwbW9kaWZpZWRfZmlsZS5weSUwQWdpdCUyMGNvbW1pdA==",highlighted:`git add modified_file.py
git commit`,wrap:!1}}),Pe=new w({props:{code:"Z2l0JTIwZmV0Y2glMjB1cHN0cmVhbSUwQWdpdCUyMHJlYmFzZSUyMHVwc3RyZWFtJTJGbWFpbg==",highlighted:`git fetch upstream
git rebase upstream/main`,wrap:!1}}),Ue=new w({props:{code:"Z2l0JTIwcHVzaCUyMC11JTIwb3JpZ2luJTIwYS1kZXNjcmlwdGl2ZS1uYW1lLWZvci1teS1jaGFuZ2Vz",highlighted:"git push -u origin a-descriptive-name-for-my-changes",wrap:!1}}),Je=new M({props:{title:"Pull request checklist",local:"pull-request-checklist",headingTag:"h3"}}),je=new M({props:{title:"Tests",local:"tests",headingTag:"h3"}}),Fe=new w({props:{code:"cHl0aG9uJTIwLW0lMjBweXRlc3QlMjAtbiUyMGF1dG8lMjAtLWRpc3QlM0Rsb2FkZmlsZSUyMC1zJTIwLXYlMjAuJTJGdGVzdHMlMkZtb2RlbHMlMkZteV9uZXdfbW9kZWw=",highlighted:"python -m pytest -n auto --dist=loadfile -s -v ./tests/models/my_new_model",wrap:!1}}),Xe=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 Fi({props:{warning:!0,$$slots:{default:[Xi]},$$scope:{ctx:zt}}}),Ee=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}}),Ke=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}}),et=new M({props:{title:"Style guide",local:"style-guide",headingTag:"h3"}}),nt=new M({props:{title:"Develop on Windows",local:"develop-on-windows",headingTag:"h3"}}),ot=new w({props:{code:"Z2l0JTIwY29uZmlnJTIwY29yZS5hdXRvY3JsZiUyMGlucHV0",highlighted:"git config core.autocrlf input",wrap:!1}}),rt=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"}}),dt=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}}),mt=new Yi({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/contributing.md"}}),{c(){$=s("meta"),I=o(),C=s("p"),ft=o(),m(P.$$.fragment),Vt=o(),U=s("p"),U.textContent=ao,Et=o(),J=s("p"),J.textContent=ro,Bt=o(),W=s("p"),W.innerHTML=uo,Ot=o(),Z=s("p"),Z.innerHTML=po,At=o(),m(R.$$.fragment),Qt=o(),G=s("p"),G.textContent=mo,Dt=o(),j=s("ul"),j.innerHTML=fo,Kt=o(),S=s("p"),S.innerHTML=ho,en=o(),q=s("p"),q.innerHTML=co,tn=o(),F=s("blockquote"),F.innerHTML=yo,nn=o(),m(Y.$$.fragment),ln=o(),X=s("p"),X.innerHTML=go,on=o(),m(N.$$.fragment),sn=o(),z=s("p"),z.textContent=wo,an=o(),m(V.$$.fragment),rn=o(),E=s("p"),E.textContent=bo,un=o(),B=s("p"),B.innerHTML=$o,pn=o(),O=s("p"),O.textContent=vo,dn=o(),A=s("ul"),A.innerHTML=To,mn=o(),Q=s("p"),Q.textContent=Mo,fn=o(),m(D.$$.fragment),hn=o(),K=s("p"),K.textContent=xo,cn=o(),m(ee.$$.fragment),yn=o(),m(te.$$.fragment),gn=o(),ne=s("p"),ne.textContent=Co,wn=o(),le=s("ol"),le.innerHTML=ko,bn=o(),oe=s("p"),oe.textContent=Lo,$n=o(),ie=s("p"),ie.innerHTML=Ho,vn=o(),m(se.$$.fragment),Tn=o(),ae=s("p"),ae.textContent=_o,Mn=o(),re=s("ul"),re.innerHTML=Io,xn=o(),ue=s("p"),ue.textContent=Po,Cn=o(),pe=s("p"),pe.innerHTML=Uo,kn=o(),m(de.$$.fragment),Ln=o(),me=s("p"),me.textContent=Jo,Hn=o(),fe=s("p"),fe.innerHTML=Wo,_n=o(),m(he.$$.fragment),In=o(),ce=s("p"),ce.textContent=Zo,Pn=o(),ye=s("p"),ye.innerHTML=Ro,Un=o(),ge=s("p"),ge.innerHTML=Go,Jn=o(),b=s("ol"),ht=s("li"),ht.innerHTML=jo,bl=o(),we=s("li"),ct=s("p"),ct.textContent=So,$l=o(),m(be.$$.fragment),vl=o(),k=s("li"),yt=s("p"),yt.textContent=qo,Tl=o(),m($e.$$.fragment),Ml=o(),gt=s("p"),gt.innerHTML=Fo,xl=o(),T=s("li"),wt=s("p"),wt.textContent=Yo,Cl=o(),m(ve.$$.fragment),kl=o(),bt=s("p"),bt.innerHTML=Xo,Ll=o(),$t=s("p"),$t.textContent=No,Hl=o(),m(Te.$$.fragment),_l=o(),vt=s("p"),vt.textContent=zo,Il=o(),p=s("li"),Tt=s("p"),Tt.textContent=Vo,Pl=o(),Mt=s("p"),Mt.textContent=Eo,Ul=o(),m(Me.$$.fragment),Jl=o(),xt=s("p"),xt.innerHTML=Bo,Wl=o(),Ct=s("p"),Ct.innerHTML=Oo,Zl=o(),m(xe.$$.fragment),Rl=o(),kt=s("p"),kt.textContent=Ao,Gl=o(),Lt=s("p"),Lt.textContent=Qo,jl=o(),m(Ce.$$.fragment),Sl=o(),Ht=s("p"),Ht.innerHTML=Do,ql=o(),m(ke.$$.fragment),Fl=o(),_t=s("p"),_t.textContent=Ko,Yl=o(),m(Le.$$.fragment),Xl=o(),It=s("p"),It.innerHTML=ei,Nl=o(),Pt=s("p"),Pt.innerHTML=ti,zl=o(),m(He.$$.fragment),Vl=o(),Ut=s("p"),Ut.textContent=ni,El=o(),m(_e.$$.fragment),Bl=o(),Jt=s("p"),Jt.innerHTML=li,Ol=o(),Wt=s("p"),Wt.innerHTML=oi,Al=o(),m(Ie.$$.fragment),Ql=o(),Zt=s("p"),Zt.innerHTML=ii,Dl=o(),Rt=s("p"),Rt.innerHTML=si,Kl=o(),m(Pe.$$.fragment),eo=o(),Gt=s("p"),Gt.textContent=ai,to=o(),m(Ue.$$.fragment),no=o(),jt=s("p"),jt.innerHTML=ri,lo=o(),St=s("li"),St.innerHTML=ui,oo=o(),qt=s("li"),qt.innerHTML=pi,Wn=o(),m(Je.$$.fragment),Zn=o(),We=s("p"),We.innerHTML=di,Rn=o(),Ze=s("ul"),Ze.innerHTML=mi,Gn=o(),Re=s("p"),Re.innerHTML=fi,jn=o(),Ge=s("p"),Ge.innerHTML=hi,Sn=o(),m(je.$$.fragment),qn=o(),Se=s("p"),Se.innerHTML=ci,Fn=o(),qe=s("p"),qe.innerHTML=yi,Yn=o(),m(Fe.$$.fragment),Xn=o(),Ye=s("p"),Ye.innerHTML=gi,Nn=o(),m(Xe.$$.fragment),zn=o(),Ne=s("p"),Ne.innerHTML=wi,Vn=o(),ze=s("p"),ze.textContent=bi,En=o(),Ve=s("p"),Ve.innerHTML=$i,Bn=o(),m(H.$$.fragment),On=o(),m(Ee.$$.fragment),An=o(),Be=s("p"),Be.textContent=vi,Qn=o(),Oe=s("ul"),Oe.innerHTML=Ti,Dn=o(),Ae=s("p"),Ae.innerHTML=Mi,Kn=o(),Qe=s("p"),Qe.innerHTML=xi,el=o(),De=s("p"),De.innerHTML=Ci,tl=o(),m(Ke.$$.fragment),nl=o(),m(et.$$.fragment),ll=o(),tt=s("p"),tt.innerHTML=ki,ol=o(),m(nt.$$.fragment),il=o(),lt=s("p"),lt.innerHTML=Li,sl=o(),m(ot.$$.fragment),al=o(),it=s("p"),it.innerHTML=Hi,rl=o(),st=s("ol"),st.innerHTML=_i,ul=o(),at=s("p"),at.innerHTML=Ii,pl=o(),m(rt.$$.fragment),dl=o(),ut=s("p"),ut.textContent=Pi,ml=o(),_=s("ol"),Ft=s("li"),Ft.innerHTML=Ui,io=o(),pt=s("li"),Yt=s("p"),Yt.textContent=Ji,so=o(),m(dt.$$.fragment),fl=o(),m(mt.$$.fragment),hl=o(),Nt=s("p"),this.h()},l(e){const t=qi("svelte-u9bgzb",document.head);$=a(t,"META",{name:!0,content:!0}),t.forEach(n),I=i(e),C=a(e,"P",{}),L(C).forEach(n),ft=i(e),f(P.$$.fragment,e),Vt=i(e),U=a(e,"P",{"data-svelte-h":!0}),r(U)!=="svelte-17zei9j"&&(U.textContent=ao),Et=i(e),J=a(e,"P",{"data-svelte-h":!0}),r(J)!=="svelte-5mizch"&&(J.textContent=ro),Bt=i(e),W=a(e,"P",{"data-svelte-h":!0}),r(W)!=="svelte-1w7r9jb"&&(W.innerHTML=uo),Ot=i(e),Z=a(e,"P",{"data-svelte-h":!0}),r(Z)!=="svelte-wk85tc"&&(Z.innerHTML=po),At=i(e),f(R.$$.fragment,e),Qt=i(e),G=a(e,"P",{"data-svelte-h":!0}),r(G)!=="svelte-1dsh31e"&&(G.textContent=mo),Dt=i(e),j=a(e,"UL",{"data-svelte-h":!0}),r(j)!=="svelte-17j8zhz"&&(j.innerHTML=fo),Kt=i(e),S=a(e,"P",{"data-svelte-h":!0}),r(S)!=="svelte-1ykw184"&&(S.innerHTML=ho),en=i(e),q=a(e,"P",{"data-svelte-h":!0}),r(q)!=="svelte-w2y5z"&&(q.innerHTML=co),tn=i(e),F=a(e,"BLOCKQUOTE",{"data-svelte-h":!0}),r(F)!=="svelte-1mqvx2f"&&(F.innerHTML=yo),nn=i(e),f(Y.$$.fragment,e),ln=i(e),X=a(e,"P",{"data-svelte-h":!0}),r(X)!=="svelte-19btvjr"&&(X.innerHTML=go),on=i(e),f(N.$$.fragment,e),sn=i(e),z=a(e,"P",{"data-svelte-h":!0}),r(z)!=="svelte-108cg5e"&&(z.textContent=wo),an=i(e),f(V.$$.fragment,e),rn=i(e),E=a(e,"P",{"data-svelte-h":!0}),r(E)!=="svelte-ijemu5"&&(E.textContent=bo),un=i(e),B=a(e,"P",{"data-svelte-h":!0}),r(B)!=="svelte-jdxn5f"&&(B.innerHTML=$o),pn=i(e),O=a(e,"P",{"data-svelte-h":!0}),r(O)!=="svelte-dqob4m"&&(O.textContent=vo),dn=i(e),A=a(e,"UL",{"data-svelte-h":!0}),r(A)!=="svelte-ktzqgj"&&(A.innerHTML=To),mn=i(e),Q=a(e,"P",{"data-svelte-h":!0}),r(Q)!=="svelte-4jhsms"&&(Q.textContent=Mo),fn=i(e),f(D.$$.fragment,e),hn=i(e),K=a(e,"P",{"data-svelte-h":!0}),r(K)!=="svelte-kgyo48"&&(K.textContent=xo),cn=i(e),f(ee.$$.fragment,e),yn=i(e),f(te.$$.fragment,e),gn=i(e),ne=a(e,"P",{"data-svelte-h":!0}),r(ne)!=="svelte-1u371yh"&&(ne.textContent=Co),wn=i(e),le=a(e,"OL",{"data-svelte-h":!0}),r(le)!=="svelte-1te0rep"&&(le.innerHTML=ko),bn=i(e),oe=a(e,"P",{"data-svelte-h":!0}),r(oe)!=="svelte-1fqxsv7"&&(oe.textContent=Lo),$n=i(e),ie=a(e,"P",{"data-svelte-h":!0}),r(ie)!=="svelte-14hxcfo"&&(ie.innerHTML=Ho),vn=i(e),f(se.$$.fragment,e),Tn=i(e),ae=a(e,"P",{"data-svelte-h":!0}),r(ae)!=="svelte-mldr4e"&&(ae.textContent=_o),Mn=i(e),re=a(e,"UL",{"data-svelte-h":!0}),r(re)!=="svelte-1h1qhap"&&(re.innerHTML=Io),xn=i(e),ue=a(e,"P",{"data-svelte-h":!0}),r(ue)!=="svelte-1mjerq"&&(ue.textContent=Po),Cn=i(e),pe=a(e,"P",{"data-svelte-h":!0}),r(pe)!=="svelte-19dt3lb"&&(pe.innerHTML=Uo),kn=i(e),f(de.$$.fragment,e),Ln=i(e),me=a(e,"P",{"data-svelte-h":!0}),r(me)!=="svelte-jtu4in"&&(me.textContent=Jo),Hn=i(e),fe=a(e,"P",{"data-svelte-h":!0}),r(fe)!=="svelte-4dvo0q"&&(fe.innerHTML=Wo),_n=i(e),f(he.$$.fragment,e),In=i(e),ce=a(e,"P",{"data-svelte-h":!0}),r(ce)!=="svelte-1rpxelp"&&(ce.textContent=Zo),Pn=i(e),ye=a(e,"P",{"data-svelte-h":!0}),r(ye)!=="svelte-fpr8gf"&&(ye.innerHTML=Ro),Un=i(e),ge=a(e,"P",{"data-svelte-h":!0}),r(ge)!=="svelte-kxnt2j"&&(ge.innerHTML=Go),Jn=i(e),b=a(e,"OL",{});var v=L(b);ht=a(v,"LI",{"data-svelte-h":!0}),r(ht)!=="svelte-10yv6sw"&&(ht.innerHTML=jo),bl=i(v),we=a(v,"LI",{});var yl=L(we);ct=a(yl,"P",{"data-svelte-h":!0}),r(ct)!=="svelte-clge5v"&&(ct.textContent=So),$l=i(yl),f(be.$$.fragment,yl),yl.forEach(n),vl=i(v),k=a(v,"LI",{});var Xt=L(k);yt=a(Xt,"P",{"data-svelte-h":!0}),r(yt)!=="svelte-imt6wq"&&(yt.textContent=qo),Tl=i(Xt),f($e.$$.fragment,Xt),Ml=i(Xt),gt=a(Xt,"P",{"data-svelte-h":!0}),r(gt)!=="svelte-z4p9gk"&&(gt.innerHTML=Fo),Xt.forEach(n),xl=i(v),T=a(v,"LI",{});var x=L(T);wt=a(x,"P",{"data-svelte-h":!0}),r(wt)!=="svelte-1sxg1ux"&&(wt.textContent=Yo),Cl=i(x),f(ve.$$.fragment,x),kl=i(x),bt=a(x,"P",{"data-svelte-h":!0}),r(bt)!=="svelte-szp5je"&&(bt.innerHTML=Xo),Ll=i(x),$t=a(x,"P",{"data-svelte-h":!0}),r($t)!=="svelte-4wf1r3"&&($t.textContent=No),Hl=i(x),f(Te.$$.fragment,x),_l=i(x),vt=a(x,"P",{"data-svelte-h":!0}),r(vt)!=="svelte-1bkerhb"&&(vt.textContent=zo),x.forEach(n),Il=i(v),p=a(v,"LI",{});var d=L(p);Tt=a(d,"P",{"data-svelte-h":!0}),r(Tt)!=="svelte-105oq3v"&&(Tt.textContent=Vo),Pl=i(d),Mt=a(d,"P",{"data-svelte-h":!0}),r(Mt)!=="svelte-1aspzlq"&&(Mt.textContent=Eo),Ul=i(d),f(Me.$$.fragment,d),Jl=i(d),xt=a(d,"P",{"data-svelte-h":!0}),r(xt)!=="svelte-1qr0iqb"&&(xt.innerHTML=Bo),Wl=i(d),Ct=a(d,"P",{"data-svelte-h":!0}),r(Ct)!=="svelte-1w5oqi3"&&(Ct.innerHTML=Oo),Zl=i(d),f(xe.$$.fragment,d),Rl=i(d),kt=a(d,"P",{"data-svelte-h":!0}),r(kt)!=="svelte-meck0e"&&(kt.textContent=Ao),Gl=i(d),Lt=a(d,"P",{"data-svelte-h":!0}),r(Lt)!=="svelte-5jyajj"&&(Lt.textContent=Qo),jl=i(d),f(Ce.$$.fragment,d),Sl=i(d),Ht=a(d,"P",{"data-svelte-h":!0}),r(Ht)!=="svelte-avcbit"&&(Ht.innerHTML=Do),ql=i(d),f(ke.$$.fragment,d),Fl=i(d),_t=a(d,"P",{"data-svelte-h":!0}),r(_t)!=="svelte-cekxra"&&(_t.textContent=Ko),Yl=i(d),f(Le.$$.fragment,d),Xl=i(d),It=a(d,"P",{"data-svelte-h":!0}),r(It)!=="svelte-4ie1ee"&&(It.innerHTML=ei),Nl=i(d),Pt=a(d,"P",{"data-svelte-h":!0}),r(Pt)!=="svelte-1abe5l4"&&(Pt.innerHTML=ti),zl=i(d),f(He.$$.fragment,d),Vl=i(d),Ut=a(d,"P",{"data-svelte-h":!0}),r(Ut)!=="svelte-1cx4ayh"&&(Ut.textContent=ni),El=i(d),f(_e.$$.fragment,d),Bl=i(d),Jt=a(d,"P",{"data-svelte-h":!0}),r(Jt)!=="svelte-sp8uj2"&&(Jt.innerHTML=li),Ol=i(d),Wt=a(d,"P",{"data-svelte-h":!0}),r(Wt)!=="svelte-1ist3rx"&&(Wt.innerHTML=oi),Al=i(d),f(Ie.$$.fragment,d),Ql=i(d),Zt=a(d,"P",{"data-svelte-h":!0}),r(Zt)!=="svelte-pyd5qz"&&(Zt.innerHTML=ii),Dl=i(d),Rt=a(d,"P",{"data-svelte-h":!0}),r(Rt)!=="svelte-17b2d3o"&&(Rt.innerHTML=si),Kl=i(d),f(Pe.$$.fragment,d),eo=i(d),Gt=a(d,"P",{"data-svelte-h":!0}),r(Gt)!=="svelte-1dpehw0"&&(Gt.textContent=ai),to=i(d),f(Ue.$$.fragment,d),no=i(d),jt=a(d,"P",{"data-svelte-h":!0}),r(jt)!=="svelte-1cg39wg"&&(jt.innerHTML=ri),d.forEach(n),lo=i(v),St=a(v,"LI",{"data-svelte-h":!0}),r(St)!=="svelte-1i2x2rq"&&(St.innerHTML=ui),oo=i(v),qt=a(v,"LI",{"data-svelte-h":!0}),r(qt)!=="svelte-1259sg6"&&(qt.innerHTML=pi),v.forEach(n),Wn=i(e),f(Je.$$.fragment,e),Zn=i(e),We=a(e,"P",{"data-svelte-h":!0}),r(We)!=="svelte-k6tfhd"&&(We.innerHTML=di),Rn=i(e),Ze=a(e,"UL",{"data-svelte-h":!0}),r(Ze)!=="svelte-yk5n2o"&&(Ze.innerHTML=mi),Gn=i(e),Re=a(e,"P",{"data-svelte-h":!0}),r(Re)!=="svelte-1c42ehl"&&(Re.innerHTML=fi),jn=i(e),Ge=a(e,"P",{"data-svelte-h":!0}),r(Ge)!=="svelte-lji0px"&&(Ge.innerHTML=hi),Sn=i(e),f(je.$$.fragment,e),qn=i(e),Se=a(e,"P",{"data-svelte-h":!0}),r(Se)!=="svelte-d0jm0j"&&(Se.innerHTML=ci),Fn=i(e),qe=a(e,"P",{"data-svelte-h":!0}),r(qe)!=="svelte-uvq9xf"&&(qe.innerHTML=yi),Yn=i(e),f(Fe.$$.fragment,e),Xn=i(e),Ye=a(e,"P",{"data-svelte-h":!0}),r(Ye)!=="svelte-194ulgy"&&(Ye.innerHTML=gi),Nn=i(e),f(Xe.$$.fragment,e),zn=i(e),Ne=a(e,"P",{"data-svelte-h":!0}),r(Ne)!=="svelte-s8530j"&&(Ne.innerHTML=wi),Vn=i(e),ze=a(e,"P",{"data-svelte-h":!0}),r(ze)!=="svelte-1libq1e"&&(ze.textContent=bi),En=i(e),Ve=a(e,"P",{"data-svelte-h":!0}),r(Ve)!=="svelte-x9o71g"&&(Ve.innerHTML=$i),Bn=i(e),f(H.$$.fragment,e),On=i(e),f(Ee.$$.fragment,e),An=i(e),Be=a(e,"P",{"data-svelte-h":!0}),r(Be)!=="svelte-1tkgk09"&&(Be.textContent=vi),Qn=i(e),Oe=a(e,"UL",{"data-svelte-h":!0}),r(Oe)!=="svelte-173krs2"&&(Oe.innerHTML=Ti),Dn=i(e),Ae=a(e,"P",{"data-svelte-h":!0}),r(Ae)!=="svelte-1in21lf"&&(Ae.innerHTML=Mi),Kn=i(e),Qe=a(e,"P",{"data-svelte-h":!0}),r(Qe)!=="svelte-xi3qip"&&(Qe.innerHTML=xi),el=i(e),De=a(e,"P",{"data-svelte-h":!0}),r(De)!=="svelte-8hji3v"&&(De.innerHTML=Ci),tl=i(e),f(Ke.$$.fragment,e),nl=i(e),f(et.$$.fragment,e),ll=i(e),tt=a(e,"P",{"data-svelte-h":!0}),r(tt)!=="svelte-qp7919"&&(tt.innerHTML=ki),ol=i(e),f(nt.$$.fragment,e),il=i(e),lt=a(e,"P",{"data-svelte-h":!0}),r(lt)!=="svelte-a92mws"&&(lt.innerHTML=Li),sl=i(e),f(ot.$$.fragment,e),al=i(e),it=a(e,"P",{"data-svelte-h":!0}),r(it)!=="svelte-65es6o"&&(it.innerHTML=Hi),rl=i(e),st=a(e,"OL",{"data-svelte-h":!0}),r(st)!=="svelte-1m9z4k7"&&(st.innerHTML=_i),ul=i(e),at=a(e,"P",{"data-svelte-h":!0}),r(at)!=="svelte-14n2gmt"&&(at.innerHTML=Ii),pl=i(e),f(rt.$$.fragment,e),dl=i(e),ut=a(e,"P",{"data-svelte-h":!0}),r(ut)!=="svelte-14o855d"&&(ut.textContent=Pi),ml=i(e),_=a(e,"OL",{});var gl=L(_);Ft=a(gl,"LI",{"data-svelte-h":!0}),r(Ft)!=="svelte-hhycjy"&&(Ft.innerHTML=Ui),io=i(gl),pt=a(gl,"LI",{});var wl=L(pt);Yt=a(wl,"P",{"data-svelte-h":!0}),r(Yt)!=="svelte-1m83gji"&&(Yt.textContent=Ji),so=i(wl),f(dt.$$.fragment,wl),wl.forEach(n),gl.forEach(n),fl=i(e),f(mt.$$.fragment,e),hl=i(e),Nt=a(e,"P",{}),L(Nt).forEach(n),this.h()},h(){Wi($,"name","hf:doc:metadata"),Wi($,"content",zi)},m(e,t){u(document.head,$),l(e,I,t),l(e,C,t),l(e,ft,t),h(P,e,t),l(e,Vt,t),l(e,U,t),l(e,Et,t),l(e,J,t),l(e,Bt,t),l(e,W,t),l(e,Ot,t),l(e,Z,t),l(e,At,t),h(R,e,t),l(e,Qt,t),l(e,G,t),l(e,Dt,t),l(e,j,t),l(e,Kt,t),l(e,S,t),l(e,en,t),l(e,q,t),l(e,tn,t),l(e,F,t),l(e,nn,t),h(Y,e,t),l(e,ln,t),l(e,X,t),l(e,on,t),h(N,e,t),l(e,sn,t),l(e,z,t),l(e,an,t),h(V,e,t),l(e,rn,t),l(e,E,t),l(e,un,t),l(e,B,t),l(e,pn,t),l(e,O,t),l(e,dn,t),l(e,A,t),l(e,mn,t),l(e,Q,t),l(e,fn,t),h(D,e,t),l(e,hn,t),l(e,K,t),l(e,cn,t),h(ee,e,t),l(e,yn,t),h(te,e,t),l(e,gn,t),l(e,ne,t),l(e,wn,t),l(e,le,t),l(e,bn,t),l(e,oe,t),l(e,$n,t),l(e,ie,t),l(e,vn,t),h(se,e,t),l(e,Tn,t),l(e,ae,t),l(e,Mn,t),l(e,re,t),l(e,xn,t),l(e,ue,t),l(e,Cn,t),l(e,pe,t),l(e,kn,t),h(de,e,t),l(e,Ln,t),l(e,me,t),l(e,Hn,t),l(e,fe,t),l(e,_n,t),h(he,e,t),l(e,In,t),l(e,ce,t),l(e,Pn,t),l(e,ye,t),l(e,Un,t),l(e,ge,t),l(e,Jn,t),l(e,b,t),u(b,ht),u(b,bl),u(b,we),u(we,ct),u(we,$l),h(be,we,null),u(b,vl),u(b,k),u(k,yt),u(k,Tl),h($e,k,null),u(k,Ml),u(k,gt),u(b,xl),u(b,T),u(T,wt),u(T,Cl),h(ve,T,null),u(T,kl),u(T,bt),u(T,Ll),u(T,$t),u(T,Hl),h(Te,T,null),u(T,_l),u(T,vt),u(b,Il),u(b,p),u(p,Tt),u(p,Pl),u(p,Mt),u(p,Ul),h(Me,p,null),u(p,Jl),u(p,xt),u(p,Wl),u(p,Ct),u(p,Zl),h(xe,p,null),u(p,Rl),u(p,kt),u(p,Gl),u(p,Lt),u(p,jl),h(Ce,p,null),u(p,Sl),u(p,Ht),u(p,ql),h(ke,p,null),u(p,Fl),u(p,_t),u(p,Yl),h(Le,p,null),u(p,Xl),u(p,It),u(p,Nl),u(p,Pt),u(p,zl),h(He,p,null),u(p,Vl),u(p,Ut),u(p,El),h(_e,p,null),u(p,Bl),u(p,Jt),u(p,Ol),u(p,Wt),u(p,Al),h(Ie,p,null),u(p,Ql),u(p,Zt),u(p,Dl),u(p,Rt),u(p,Kl),h(Pe,p,null),u(p,eo),u(p,Gt),u(p,to),h(Ue,p,null),u(p,no),u(p,jt),u(b,lo),u(b,St),u(b,oo),u(b,qt),l(e,Wn,t),h(Je,e,t),l(e,Zn,t),l(e,We,t),l(e,Rn,t),l(e,Ze,t),l(e,Gn,t),l(e,Re,t),l(e,jn,t),l(e,Ge,t),l(e,Sn,t),h(je,e,t),l(e,qn,t),l(e,Se,t),l(e,Fn,t),l(e,qe,t),l(e,Yn,t),h(Fe,e,t),l(e,Xn,t),l(e,Ye,t),l(e,Nn,t),h(Xe,e,t),l(e,zn,t),l(e,Ne,t),l(e,Vn,t),l(e,ze,t),l(e,En,t),l(e,Ve,t),l(e,Bn,t),h(H,e,t),l(e,On,t),h(Ee,e,t),l(e,An,t),l(e,Be,t),l(e,Qn,t),l(e,Oe,t),l(e,Dn,t),l(e,Ae,t),l(e,Kn,t),l(e,Qe,t),l(e,el,t),l(e,De,t),l(e,tl,t),h(Ke,e,t),l(e,nl,t),h(et,e,t),l(e,ll,t),l(e,tt,t),l(e,ol,t),h(nt,e,t),l(e,il,t),l(e,lt,t),l(e,sl,t),h(ot,e,t),l(e,al,t),l(e,it,t),l(e,rl,t),l(e,st,t),l(e,ul,t),l(e,at,t),l(e,pl,t),h(rt,e,t),l(e,dl,t),l(e,ut,t),l(e,ml,t),l(e,_,t),u(_,Ft),u(_,io),u(_,pt),u(pt,Yt),u(pt,so),h(dt,pt,null),l(e,fl,t),h(mt,e,t),l(e,hl,t),l(e,Nt,t),cl=!0},p(e,[t]){const v={};t&2&&(v.$$scope={dirty:t,ctx:e}),H.$set(v)},i(e){cl||(c(P.$$.fragment,e),c(R.$$.fragment,e),c(Y.$$.fragment,e),c(N.$$.fragment,e),c(V.$$.fragment,e),c(D.$$.fragment,e),c(ee.$$.fragment,e),c(te.$$.fragment,e),c(se.$$.fragment,e),c(de.$$.fragment,e),c(he.$$.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(Le.$$.fragment,e),c(He.$$.fragment,e),c(_e.$$.fragment,e),c(Ie.$$.fragment,e),c(Pe.$$.fragment,e),c(Ue.$$.fragment,e),c(Je.$$.fragment,e),c(je.$$.fragment,e),c(Fe.$$.fragment,e),c(Xe.$$.fragment,e),c(H.$$.fragment,e),c(Ee.$$.fragment,e),c(Ke.$$.fragment,e),c(et.$$.fragment,e),c(nt.$$.fragment,e),c(ot.$$.fragment,e),c(rt.$$.fragment,e),c(dt.$$.fragment,e),c(mt.$$.fragment,e),cl=!0)},o(e){y(P.$$.fragment,e),y(R.$$.fragment,e),y(Y.$$.fragment,e),y(N.$$.fragment,e),y(V.$$.fragment,e),y(D.$$.fragment,e),y(ee.$$.fragment,e),y(te.$$.fragment,e),y(se.$$.fragment,e),y(de.$$.fragment,e),y(he.$$.fragment,e),y(be.$$.fragment,e),y($e.$$.fragment,e),y(ve.$$.fragment,e),y(Te.$$.fragment,e),y(Me.$$.fragment,e),y(xe.$$.fragment,e),y(Ce.$$.fragment,e),y(ke.$$.fragment,e),y(Le.$$.fragment,e),y(He.$$.fragment,e),y(_e.$$.fragment,e),y(Ie.$$.fragment,e),y(Pe.$$.fragment,e),y(Ue.$$.fragment,e),y(Je.$$.fragment,e),y(je.$$.fragment,e),y(Fe.$$.fragment,e),y(Xe.$$.fragment,e),y(H.$$.fragment,e),y(Ee.$$.fragment,e),y(Ke.$$.fragment,e),y(et.$$.fragment,e),y(nt.$$.fragment,e),y(ot.$$.fragment,e),y(rt.$$.fragment,e),y(dt.$$.fragment,e),y(mt.$$.fragment,e),cl=!1},d(e){e&&(n(I),n(C),n(ft),n(Vt),n(U),n(Et),n(J),n(Bt),n(W),n(Ot),n(Z),n(At),n(Qt),n(G),n(Dt),n(j),n(Kt),n(S),n(en),n(q),n(tn),n(F),n(nn),n(ln),n(X),n(on),n(sn),n(z),n(an),n(rn),n(E),n(un),n(B),n(pn),n(O),n(dn),n(A),n(mn),n(Q),n(fn),n(hn),n(K),n(cn),n(yn),n(gn),n(ne),n(wn),n(le),n(bn),n(oe),n($n),n(ie),n(vn),n(Tn),n(ae),n(Mn),n(re),n(xn),n(ue),n(Cn),n(pe),n(kn),n(Ln),n(me),n(Hn),n(fe),n(_n),n(In),n(ce),n(Pn),n(ye),n(Un),n(ge),n(Jn),n(b),n(Wn),n(Zn),n(We),n(Rn),n(Ze),n(Gn),n(Re),n(jn),n(Ge),n(Sn),n(qn),n(Se),n(Fn),n(qe),n(Yn),n(Xn),n(Ye),n(Nn),n(zn),n(Ne),n(Vn),n(ze),n(En),n(Ve),n(Bn),n(On),n(An),n(Be),n(Qn),n(Oe),n(Dn),n(Ae),n(Kn),n(Qe),n(el),n(De),n(tl),n(nl),n(ll),n(tt),n(ol),n(il),n(lt),n(sl),n(al),n(it),n(rl),n(st),n(ul),n(at),n(pl),n(dl),n(ut),n(ml),n(_),n(fl),n(hl),n(Nt)),n($),g(P,e),g(R,e),g(Y,e),g(N,e),g(V,e),g(D,e),g(ee,e),g(te,e),g(se,e),g(de,e),g(he,e),g(be),g($e),g(ve),g(Te),g(Me),g(xe),g(Ce),g(ke),g(Le),g(He),g(_e),g(Ie),g(Pe),g(Ue),g(Je,e),g(je,e),g(Fe,e),g(Xe,e),g(H,e),g(Ee,e),g(Ke,e),g(et,e),g(nt,e),g(ot,e),g(rt,e),g(dt),g(mt,e)}}}const zi='{"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 Vi(zt){return Ri(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Di extends ji{constructor($){super(),Si(this,$,Vi,Ni,Zi,{})}}export{Di as component};
