import{s as G,n as O,o as R}from"../chunks/scheduler.37c15a92.js";import{S as Y,i as D,g as h,s as a,r as E,A as J,h as d,f as o,c as i,j as U,u as j,x as T,k as B,y as K,a as n,v as L,d as M,t as q,w as N}from"../chunks/index.7cb9c9b8.js";import{C as Q}from"../chunks/CourseFloatingBanner.df82c153.js";import{H as V,E as W}from"../chunks/getInferenceSnippets.b6a8c7d2.js";function X(A){let s,y,g,$,l,b,r,_,u,F="Now that you know how to tackle the most common NLP tasks with 🤗 Transformers, you should be able to get started on your own projects! In this chapter we will explore what to do when you hit a problem. You’ll learn how to successfully debug your code or your training, and how to ask the community for help if you don’t manage to solve the problem by yourself. And if you think you’ve found a bug in one of the Hugging Face libraries, we’ll show you the best way to report it so that the issue is resolved as quickly as possible.",v,m,I="More precisely, in this chapter you will learn:",x,p,S='<li>The first thing to do when you get an error</li> <li>How to ask for help on the <a href="https://discuss.huggingface.co/" rel="nofollow">forums</a></li> <li>How to debug your training pipeline</li> <li>How to write a good issue</li>',C,c,z="None of this is specifically related to 🤗 Transformers or the Hugging Face ecosystem, of course; the lessons from this chapter are applicable to most open source projects!",P,f,H,w,k;return l=new V({props:{title:"Introduction",local:"introduction",headingTag:"h1"}}),r=new Q({props:{chapter:8,classNames:"absolute z-10 right-0 top-0"}}),f=new W({props:{source:"https://github.com/huggingface/course/blob/main/chapters/en/chapter8/1.mdx"}}),{c(){s=h("meta"),y=a(),g=h("p"),$=a(),E(l.$$.fragment),b=a(),E(r.$$.fragment),_=a(),u=h("p"),u.textContent=F,v=a(),m=h("p"),m.textContent=I,x=a(),p=h("ul"),p.innerHTML=S,C=a(),c=h("p"),c.textContent=z,P=a(),E(f.$$.fragment),H=a(),w=h("p"),this.h()},l(t){const e=J("svelte-u9bgzb",document.head);s=d(e,"META",{name:!0,content:!0}),e.forEach(o),y=i(t),g=d(t,"P",{}),U(g).forEach(o),$=i(t),j(l.$$.fragment,t),b=i(t),j(r.$$.fragment,t),_=i(t),u=d(t,"P",{"data-svelte-h":!0}),T(u)!=="svelte-10n9566"&&(u.textContent=F),v=i(t),m=d(t,"P",{"data-svelte-h":!0}),T(m)!=="svelte-q5vjq6"&&(m.textContent=I),x=i(t),p=d(t,"UL",{"data-svelte-h":!0}),T(p)!=="svelte-1wogyao"&&(p.innerHTML=S),C=i(t),c=d(t,"P",{"data-svelte-h":!0}),T(c)!=="svelte-tmyhjr"&&(c.textContent=z),P=i(t),j(f.$$.fragment,t),H=i(t),w=d(t,"P",{}),U(w).forEach(o),this.h()},h(){B(s,"name","hf:doc:metadata"),B(s,"content",Z)},m(t,e){K(document.head,s),n(t,y,e),n(t,g,e),n(t,$,e),L(l,t,e),n(t,b,e),L(r,t,e),n(t,_,e),n(t,u,e),n(t,v,e),n(t,m,e),n(t,x,e),n(t,p,e),n(t,C,e),n(t,c,e),n(t,P,e),L(f,t,e),n(t,H,e),n(t,w,e),k=!0},p:O,i(t){k||(M(l.$$.fragment,t),M(r.$$.fragment,t),M(f.$$.fragment,t),k=!0)},o(t){q(l.$$.fragment,t),q(r.$$.fragment,t),q(f.$$.fragment,t),k=!1},d(t){t&&(o(y),o(g),o($),o(b),o(_),o(u),o(v),o(m),o(x),o(p),o(C),o(c),o(P),o(H),o(w)),o(s),N(l,t),N(r,t),N(f,t)}}}const Z='{"title":"Introduction","local":"introduction","sections":[],"depth":1}';function tt(A){return R(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class at extends Y{constructor(s){super(),D(this,s,tt,X,G,{})}}export{at as component};
