import{s as qi,o as Si,n as ji}from"../chunks/scheduler.25b97de1.js";import{S as Fi,i as Yi,g as s,s as o,r as m,A as Xi,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.d9030fc9.js";import{T as Gi}from"../chunks/Tip.baa67368.js";import{C as b}from"../chunks/CodeBlock.e6cd0d95.js";import{H as x,E as zi}from"../chunks/EditOnGithub.91d95064.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 Ei(gt){let w,k,v,_,W,Bt,J,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.`,Ot,Z,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.`,At,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,F,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,Y,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,X,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,E,$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,B,pn,O,vo="The 🤗 Transformers library is robust and reliable thanks to users who report the problems they encounter.",dn,A,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,P,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,Po='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,Io="New models are constantly released and if you want to implement a new model, please provide the following information:",kn,pe,Uo="<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,Wo="If you are willing to contribute the model yourself, let us know so we can help you add it to 🤗 Transformers!",Hn,me,Jo='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,Pn,he,Zo="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!",In,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>.',Un,ge,Wn,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.`,Jn,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.`,Zn,be,qo='You’ll need <strong><a href="https://github.com/huggingface/transformers/blob/main/setup.py#L449" rel="nofollow">Python 3.8</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,Fo="Clone your fork to your local disk, and add the base repository as a remote:",Tl,ve,Ml,L,bt,Yo="Create a new branch to hold your development changes:",xl,Te,Cl,$t,Xo="🚨 <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:`,Pl,xe,Il,xt,Eo="which should be enough for most use cases.",Ul,p,Ct,Bo="Develop the features in your branch.",Wl,kt,Oo=`As you work on your code, you should make sure the test suite
passes. Run the tests impacted by your changes like this:`,Jl,Ce,Zl,Lt,Ao=`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,Pt,Ko=`If you prefer to run the checks one after the other, the following command applies the
style corrections:`,Sl,Le,Fl,It,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:`,Yl,He,Xl,Ut,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,Wt,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,Jt,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 documentation builder:`,El,Pe,Bl,Zt,oi="Run the following command from the root of the repository:",Ol,Ie,Al,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,Ue,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,We,no,St,ui="Push your changes to your branch:",lo,Je,oo,Ft,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,Yt,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,Xt,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,Ze,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.`,Fn,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.',Yn,Se,Xn,Fe,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,Ye,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,Xe,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:",En,Ne,Bn,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>)!",On,Ee,vi=`You can also specify a smaller set of tests in order to test only the feature
you’re working on.`,An,Be,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,I,Dn,Oe,Kn,Ae,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> <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>",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,Pi="One way to run the <code>make</code> command on Windows is with MSYS2:",dl,rt,Ii='<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,Ui="You can now use <code>make</code> from any terminal (PowerShell, cmd.exe, etc.)! 🎉",fl,pt,hl,dt,Wi="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,U,zt,Ji="<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,Zi="If a PR is absolutely necessary, use the following steps after checking out your branch:",ro,ft,gl,ht,yl,Et,wl;return W=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"}}),B=new x({props:{title:"Did you find a bug?",local:"did-you-find-a-bug",headingTag:"h3"}}),P=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}}),Pe=new b({props:{code:"cGlwJTIwaW5zdGFsbCUyMCUyMi4lNUJkb2NzJTVEJTIy",highlighted:'pip install <span class="hljs-string">&quot;.[docs]&quot;</span>',wrap:!1}}),Ie=new b({props:{code:"ZG9jLWJ1aWxkZXIlMjBidWlsZCUyMHRyYW5zZm9ybWVycyUyMGRvY3MlMkZzb3VyY2UlMkZlbiUyMC0tYnVpbGRfZGlyJTIwfiUyRnRtcCUyRnRlc3QtYnVpbGQ=",highlighted:"doc-builder build transformers docs/source/en --build_dir ~/tmp/test-build",wrap:!1}}),Ue=new b({props:{code:"Z2l0JTIwYWRkJTIwbW9kaWZpZWRfZmlsZS5weSUwQWdpdCUyMGNvbW1pdA==",highlighted:`git add modified_file.py
git commit`,wrap:!1}}),We=new b({props:{code:"Z2l0JTIwZmV0Y2glMjB1cHN0cmVhbSUwQWdpdCUyMHJlYmFzZSUyMHVwc3RyZWFtJTJGbWFpbg==",highlighted:`git fetch upstream
git rebase upstream/main`,wrap:!1}}),Je=new b({props:{code:"Z2l0JTIwcHVzaCUyMC11JTIwb3JpZ2luJTIwYS1kZXNjcmlwdGl2ZS1uYW1lLWZvci1teS1jaGFuZ2Vz",highlighted:"git push -u origin a-descriptive-name-for-my-changes",wrap:!1}}),Ze=new x({props:{title:"Pull request checklist",local:"pull-request-checklist",headingTag:"h3"}}),Se=new x({props:{title:"Tests",local:"tests",headingTag:"h3"}}),Xe=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}}),I=new Gi({props:{warning:!0,$$slots:{default:[Vi]},$$scope:{ctx:gt}}}),Oe=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(W.$$.fragment),Bt=o(),J=s("p"),J.textContent=uo,Ot=o(),Z=s("p"),Z.textContent=po,At=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(),F=s("p"),F.innerHTML=go,nn=o(),Y=s("p"),Y.innerHTML=yo,ln=o(),X=s("blockquote"),X.innerHTML=wo,on=o(),m(z.$$.fragment),sn=o(),N=s("p"),N.innerHTML=bo,an=o(),m(V.$$.fragment),rn=o(),E=s("p"),E.textContent=$o,un=o(),m(B.$$.fragment),pn=o(),O=s("p"),O.textContent=vo,dn=o(),A=s("p"),A.innerHTML=To,mn=o(),m(P.$$.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=Po,xn=o(),m(re.$$.fragment),Cn=o(),ue=s("p"),ue.textContent=Io,kn=o(),pe=s("ul"),pe.innerHTML=Uo,Ln=o(),de=s("p"),de.textContent=Wo,Hn=o(),me=s("p"),me.innerHTML=Jo,_n=o(),m(fe.$$.fragment),Pn=o(),he=s("p"),he.textContent=Zo,In=o(),ce=s("p"),ce.innerHTML=Ro,Un=o(),m(ge.$$.fragment),Wn=o(),ye=s("p"),ye.textContent=Go,Jn=o(),we=s("p"),we.innerHTML=jo,Zn=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=Fo,Tl=o(),m(ve.$$.fragment),Ml=o(),L=s("li"),bt=s("p"),bt.textContent=Yo,xl=o(),m(Te.$$.fragment),Cl=o(),$t=s("p"),$t.innerHTML=Xo,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,Pl=o(),m(xe.$$.fragment),Il=o(),xt=s("p"),xt.textContent=Eo,Ul=o(),p=s("li"),Ct=s("p"),Ct.textContent=Bo,Wl=o(),kt=s("p"),kt.textContent=Oo,Jl=o(),m(Ce.$$.fragment),Zl=o(),Lt=s("p"),Lt.innerHTML=Ao,Rl=o(),Ht=s("p"),Ht.innerHTML=Qo,Gl=o(),m(ke.$$.fragment),jl=o(),_t=s("p"),_t.textContent=Do,ql=o(),Pt=s("p"),Pt.textContent=Ko,Sl=o(),m(Le.$$.fragment),Fl=o(),It=s("p"),It.innerHTML=ei,Yl=o(),m(He.$$.fragment),Xl=o(),Ut=s("p"),Ut.textContent=ti,zl=o(),m(_e.$$.fragment),Nl=o(),Wt=s("p"),Wt.innerHTML=ni,Vl=o(),Jt=s("p"),Jt.innerHTML=li,El=o(),m(Pe.$$.fragment),Bl=o(),Zt=s("p"),Zt.textContent=oi,Ol=o(),m(Ie.$$.fragment),Al=o(),Rt=s("p"),Rt.innerHTML=ii,Ql=o(),Gt=s("p"),Gt.innerHTML=si,Dl=o(),m(Ue.$$.fragment),Kl=o(),jt=s("p"),jt.innerHTML=ai,eo=o(),qt=s("p"),qt.innerHTML=ri,to=o(),m(We.$$.fragment),no=o(),St=s("p"),St.textContent=ui,lo=o(),m(Je.$$.fragment),oo=o(),Ft=s("p"),Ft.innerHTML=pi,io=o(),Yt=s("li"),Yt.innerHTML=di,so=o(),Xt=s("li"),Xt.innerHTML=mi,Gn=o(),m(Ze.$$.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,Fn=o(),qe=s("p"),qe.innerHTML=gi,Yn=o(),m(Se.$$.fragment),Xn=o(),Fe=s("p"),Fe.innerHTML=yi,zn=o(),Ye=s("p"),Ye.innerHTML=wi,Nn=o(),m(Xe.$$.fragment),Vn=o(),ze=s("p"),ze.innerHTML=bi,En=o(),m(Ne.$$.fragment),Bn=o(),Ve=s("p"),Ve.innerHTML=$i,On=o(),Ee=s("p"),Ee.textContent=vi,An=o(),Be=s("p"),Be.innerHTML=Ti,Qn=o(),m(I.$$.fragment),Dn=o(),m(Oe.$$.fragment),Kn=o(),Ae=s("p"),Ae.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=Pi,dl=o(),rt=s("ol"),rt.innerHTML=Ii,ml=o(),ut=s("p"),ut.innerHTML=Ui,fl=o(),m(pt.$$.fragment),hl=o(),dt=s("p"),dt.textContent=Wi,cl=o(),U=s("ol"),zt=s("li"),zt.innerHTML=Ji,ao=o(),mt=s("li"),Nt=s("p"),Nt.textContent=Zi,ro=o(),m(ft.$$.fragment),gl=o(),m(ht.$$.fragment),yl=o(),Et=s("p"),this.h()},l(e){const t=Xi("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(W.$$.fragment,e),Bt=i(e),J=a(e,"P",{"data-svelte-h":!0}),r(J)!=="svelte-17zei9j"&&(J.textContent=uo),Ot=i(e),Z=a(e,"P",{"data-svelte-h":!0}),r(Z)!=="svelte-5mizch"&&(Z.textContent=po),At=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),F=a(e,"P",{"data-svelte-h":!0}),r(F)!=="svelte-1ykw184"&&(F.innerHTML=go),nn=i(e),Y=a(e,"P",{"data-svelte-h":!0}),r(Y)!=="svelte-w2y5z"&&(Y.innerHTML=yo),ln=i(e),X=a(e,"BLOCKQUOTE",{"data-svelte-h":!0}),r(X)!=="svelte-1mqvx2f"&&(X.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),E=a(e,"P",{"data-svelte-h":!0}),r(E)!=="svelte-108cg5e"&&(E.textContent=$o),un=i(e),f(B.$$.fragment,e),pn=i(e),O=a(e,"P",{"data-svelte-h":!0}),r(O)!=="svelte-ijemu5"&&(O.textContent=vo),dn=i(e),A=a(e,"P",{"data-svelte-h":!0}),r(A)!=="svelte-3hxnor"&&(A.innerHTML=To),mn=i(e),f(P.$$.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=Po),xn=i(e),f(re.$$.fragment,e),Cn=i(e),ue=a(e,"P",{"data-svelte-h":!0}),r(ue)!=="svelte-mldr4e"&&(ue.textContent=Io),kn=i(e),pe=a(e,"UL",{"data-svelte-h":!0}),r(pe)!=="svelte-1h1qhap"&&(pe.innerHTML=Uo),Ln=i(e),de=a(e,"P",{"data-svelte-h":!0}),r(de)!=="svelte-1mjerq"&&(de.textContent=Wo),Hn=i(e),me=a(e,"P",{"data-svelte-h":!0}),r(me)!=="svelte-19dt3lb"&&(me.innerHTML=Jo),_n=i(e),f(fe.$$.fragment,e),Pn=i(e),he=a(e,"P",{"data-svelte-h":!0}),r(he)!=="svelte-jtu4in"&&(he.textContent=Zo),In=i(e),ce=a(e,"P",{"data-svelte-h":!0}),r(ce)!=="svelte-4dvo0q"&&(ce.innerHTML=Ro),Un=i(e),f(ge.$$.fragment,e),Wn=i(e),ye=a(e,"P",{"data-svelte-h":!0}),r(ye)!=="svelte-1rpxelp"&&(ye.textContent=Go),Jn=i(e),we=a(e,"P",{"data-svelte-h":!0}),r(we)!=="svelte-fpr8gf"&&(we.innerHTML=jo),Zn=i(e),be=a(e,"P",{"data-svelte-h":!0}),r(be)!=="svelte-z2znbq"&&(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=Fo),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=Yo),xl=i(Vt),f(Te.$$.fragment,Vt),Cl=i(Vt),$t=a(Vt,"P",{"data-svelte-h":!0}),r($t)!=="svelte-z4p9gk"&&($t.innerHTML=Xo),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),Pl=i(C),f(xe.$$.fragment,C),Il=i(C),xt=a(C,"P",{"data-svelte-h":!0}),r(xt)!=="svelte-1bkerhb"&&(xt.textContent=Eo),C.forEach(n),Ul=i(T),p=a(T,"LI",{});var d=H(p);Ct=a(d,"P",{"data-svelte-h":!0}),r(Ct)!=="svelte-105oq3v"&&(Ct.textContent=Bo),Wl=i(d),kt=a(d,"P",{"data-svelte-h":!0}),r(kt)!=="svelte-1aspzlq"&&(kt.textContent=Oo),Jl=i(d),f(Ce.$$.fragment,d),Zl=i(d),Lt=a(d,"P",{"data-svelte-h":!0}),r(Lt)!=="svelte-1qr0iqb"&&(Lt.innerHTML=Ao),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),Pt=a(d,"P",{"data-svelte-h":!0}),r(Pt)!=="svelte-5jyajj"&&(Pt.textContent=Ko),Sl=i(d),f(Le.$$.fragment,d),Fl=i(d),It=a(d,"P",{"data-svelte-h":!0}),r(It)!=="svelte-avcbit"&&(It.innerHTML=ei),Yl=i(d),f(He.$$.fragment,d),Xl=i(d),Ut=a(d,"P",{"data-svelte-h":!0}),r(Ut)!=="svelte-cekxra"&&(Ut.textContent=ti),zl=i(d),f(_e.$$.fragment,d),Nl=i(d),Wt=a(d,"P",{"data-svelte-h":!0}),r(Wt)!=="svelte-4ie1ee"&&(Wt.innerHTML=ni),Vl=i(d),Jt=a(d,"P",{"data-svelte-h":!0}),r(Jt)!=="svelte-1abe5l4"&&(Jt.innerHTML=li),El=i(d),f(Pe.$$.fragment,d),Bl=i(d),Zt=a(d,"P",{"data-svelte-h":!0}),r(Zt)!=="svelte-1cx4ayh"&&(Zt.textContent=oi),Ol=i(d),f(Ie.$$.fragment,d),Al=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(Ue.$$.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(We.$$.fragment,d),no=i(d),St=a(d,"P",{"data-svelte-h":!0}),r(St)!=="svelte-1dpehw0"&&(St.textContent=ui),lo=i(d),f(Je.$$.fragment,d),oo=i(d),Ft=a(d,"P",{"data-svelte-h":!0}),r(Ft)!=="svelte-1cg39wg"&&(Ft.innerHTML=pi),d.forEach(n),io=i(T),Yt=a(T,"LI",{"data-svelte-h":!0}),r(Yt)!=="svelte-1i2x2rq"&&(Yt.innerHTML=di),so=i(T),Xt=a(T,"LI",{"data-svelte-h":!0}),r(Xt)!=="svelte-1259sg6"&&(Xt.innerHTML=mi),T.forEach(n),Gn=i(e),f(Ze.$$.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),Fn=i(e),qe=a(e,"P",{"data-svelte-h":!0}),r(qe)!=="svelte-lji0px"&&(qe.innerHTML=gi),Yn=i(e),f(Se.$$.fragment,e),Xn=i(e),Fe=a(e,"P",{"data-svelte-h":!0}),r(Fe)!=="svelte-d0jm0j"&&(Fe.innerHTML=yi),zn=i(e),Ye=a(e,"P",{"data-svelte-h":!0}),r(Ye)!=="svelte-uvq9xf"&&(Ye.innerHTML=wi),Nn=i(e),f(Xe.$$.fragment,e),Vn=i(e),ze=a(e,"P",{"data-svelte-h":!0}),r(ze)!=="svelte-194ulgy"&&(ze.innerHTML=bi),En=i(e),f(Ne.$$.fragment,e),Bn=i(e),Ve=a(e,"P",{"data-svelte-h":!0}),r(Ve)!=="svelte-s8530j"&&(Ve.innerHTML=$i),On=i(e),Ee=a(e,"P",{"data-svelte-h":!0}),r(Ee)!=="svelte-1libq1e"&&(Ee.textContent=vi),An=i(e),Be=a(e,"P",{"data-svelte-h":!0}),r(Be)!=="svelte-x9o71g"&&(Be.innerHTML=Ti),Qn=i(e),f(I.$$.fragment,e),Dn=i(e),f(Oe.$$.fragment,e),Kn=i(e),Ae=a(e,"P",{"data-svelte-h":!0}),r(Ae)!=="svelte-1ureik3"&&(Ae.textContent=Mi),el=i(e),Qe=a(e,"UL",{"data-svelte-h":!0}),r(Qe)!=="svelte-173krs2"&&(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=Pi),dl=i(e),rt=a(e,"OL",{"data-svelte-h":!0}),r(rt)!=="svelte-1m9z4k7"&&(rt.innerHTML=Ii),ml=i(e),ut=a(e,"P",{"data-svelte-h":!0}),r(ut)!=="svelte-14n2gmt"&&(ut.innerHTML=Ui),fl=i(e),f(pt.$$.fragment,e),hl=i(e),dt=a(e,"P",{"data-svelte-h":!0}),r(dt)!=="svelte-14o855d"&&(dt.textContent=Wi),cl=i(e),U=a(e,"OL",{});var bl=H(U);zt=a(bl,"LI",{"data-svelte-h":!0}),r(zt)!=="svelte-hhycjy"&&(zt.innerHTML=Ji),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=Zi),ro=i($l),f(ft.$$.fragment,$l),$l.forEach(n),bl.forEach(n),gl=i(e),f(ht.$$.fragment,e),yl=i(e),Et=a(e,"P",{}),H(Et).forEach(n),this.h()},h(){Ri(w,"name","hf:doc:metadata"),Ri(w,"content",Bi)},m(e,t){u(document.head,w),l(e,k,t),l(e,v,t),l(e,_,t),h(W,e,t),l(e,Bt,t),l(e,J,t),l(e,Ot,t),l(e,Z,t),l(e,At,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,F,t),l(e,nn,t),l(e,Y,t),l(e,ln,t),l(e,X,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,E,t),l(e,un,t),h(B,e,t),l(e,pn,t),l(e,O,t),l(e,dn,t),l(e,A,t),l(e,mn,t),h(P,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,Pn,t),l(e,he,t),l(e,In,t),l(e,ce,t),l(e,Un,t),h(ge,e,t),l(e,Wn,t),l(e,ye,t),l(e,Jn,t),l(e,we,t),l(e,Zn,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,Pl),h(xe,M,null),u(M,Il),u(M,xt),u($,Ul),u($,p),u(p,Ct),u(p,Wl),u(p,kt),u(p,Jl),h(Ce,p,null),u(p,Zl),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,Pt),u(p,Sl),h(Le,p,null),u(p,Fl),u(p,It),u(p,Yl),h(He,p,null),u(p,Xl),u(p,Ut),u(p,zl),h(_e,p,null),u(p,Nl),u(p,Wt),u(p,Vl),u(p,Jt),u(p,El),h(Pe,p,null),u(p,Bl),u(p,Zt),u(p,Ol),h(Ie,p,null),u(p,Al),u(p,Rt),u(p,Ql),u(p,Gt),u(p,Dl),h(Ue,p,null),u(p,Kl),u(p,jt),u(p,eo),u(p,qt),u(p,to),h(We,p,null),u(p,no),u(p,St),u(p,lo),h(Je,p,null),u(p,oo),u(p,Ft),u($,io),u($,Yt),u($,so),u($,Xt),l(e,Gn,t),h(Ze,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,Fn,t),l(e,qe,t),l(e,Yn,t),h(Se,e,t),l(e,Xn,t),l(e,Fe,t),l(e,zn,t),l(e,Ye,t),l(e,Nn,t),h(Xe,e,t),l(e,Vn,t),l(e,ze,t),l(e,En,t),h(Ne,e,t),l(e,Bn,t),l(e,Ve,t),l(e,On,t),l(e,Ee,t),l(e,An,t),l(e,Be,t),l(e,Qn,t),h(I,e,t),l(e,Dn,t),h(Oe,e,t),l(e,Kn,t),l(e,Ae,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,U,t),u(U,zt),u(U,ao),u(U,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,Et,t),wl=!0},p(e,[t]){const T={};t&2&&(T.$$scope={dirty:t,ctx:e}),P.$set(T);const ct={};t&2&&(ct.$$scope={dirty:t,ctx:e}),I.$set(ct)},i(e){wl||(c(W.$$.fragment,e),c(j.$$.fragment,e),c(z.$$.fragment,e),c(V.$$.fragment,e),c(B.$$.fragment,e),c(P.$$.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(Pe.$$.fragment,e),c(Ie.$$.fragment,e),c(Ue.$$.fragment,e),c(We.$$.fragment,e),c(Je.$$.fragment,e),c(Ze.$$.fragment,e),c(Se.$$.fragment,e),c(Xe.$$.fragment,e),c(Ne.$$.fragment,e),c(I.$$.fragment,e),c(Oe.$$.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(W.$$.fragment,e),g(j.$$.fragment,e),g(z.$$.fragment,e),g(V.$$.fragment,e),g(B.$$.fragment,e),g(P.$$.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(Pe.$$.fragment,e),g(Ie.$$.fragment,e),g(Ue.$$.fragment,e),g(We.$$.fragment,e),g(Je.$$.fragment,e),g(Ze.$$.fragment,e),g(Se.$$.fragment,e),g(Xe.$$.fragment,e),g(Ne.$$.fragment,e),g(I.$$.fragment,e),g(Oe.$$.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(Bt),n(J),n(Ot),n(Z),n(At),n(R),n(Qt),n(G),n(Dt),n(Kt),n(q),n(en),n(S),n(tn),n(F),n(nn),n(Y),n(ln),n(X),n(on),n(sn),n(N),n(an),n(rn),n(E),n(un),n(pn),n(O),n(dn),n(A),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(Pn),n(he),n(In),n(ce),n(Un),n(Wn),n(ye),n(Jn),n(we),n(Zn),n(be),n(Rn),n($),n(Gn),n(jn),n(Re),n(qn),n(Ge),n(Sn),n(je),n(Fn),n(qe),n(Yn),n(Xn),n(Fe),n(zn),n(Ye),n(Nn),n(Vn),n(ze),n(En),n(Bn),n(Ve),n(On),n(Ee),n(An),n(Be),n(Qn),n(Dn),n(Kn),n(Ae),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(U),n(gl),n(yl),n(Et)),n(w),y(W,e),y(j,e),y(z,e),y(V,e),y(B,e),y(P,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(Pe),y(Ie),y(Ue),y(We),y(Je),y(Ze,e),y(Se,e),y(Xe,e),y(Ne,e),y(I,e),y(Oe,e),y(tt,e),y(nt,e),y(ot,e),y(st,e),y(pt,e),y(ft),y(ht,e)}}}const Bi='{"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 Oi(gt){return Si(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ts extends Fi{constructor(w){super(),Yi(this,w,Oi,Ei,qi,{})}}export{ts as component};
