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