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