import{s as G,n as O,o as R}from"../chunks/scheduler.37c15a92.js";import{S as B,i as D,g as c,s as l,r as S,A as I,h,f as n,c as i,j as q,u as A,x as H,k as F,y as J,a,v as N,d as U,t as j,w as k}from"../chunks/index.2bf4358c.js";import{H as K,E as Q}from"../chunks/getInferenceSnippets.1837c472.js";function V(T){let s,$,_,d,o,x,m,y="现在，你已经知道如何使用🤗 Transformers 处理最常见的 NLP 任务，可以开始调试自己的项目了！在本章中我们将探讨可能遇到的问题以及解决方法。你将学习如何成功调试代码和训练，以及在无法自行解决问题时如何向社区寻求帮助。如果你发现了 Hugging Face 库中的一个 bug，我们会告诉你报告 bug 的最佳方法，以便尽快解决问题。",v,r,L="更准确地说，在本章中，你将学习：",b,u,z='<li>出现错误时要做的第一件事</li> <li>如何在 <a href="https://discuss.huggingface.co" rel="nofollow">论坛</a> 寻求帮助</li> <li>如何调试你的训练管道</li> <li>如何写一个好问题</li>',C,p,M="当然，所有这些都与 🤗 Transformers 或 Hugging Face 生态无关；本章的经验教训适用于大多数开源项目！",P,f,w,g,E;return o=new K({props:{title:"介绍",local:"介绍",headingTag:"h1"}}),f=new Q({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter8/1.mdx"}}),{c(){s=c("meta"),$=l(),_=c("p"),d=l(),S(o.$$.fragment),x=l(),m=c("p"),m.textContent=y,v=l(),r=c("p"),r.textContent=L,b=l(),u=c("ul"),u.innerHTML=z,C=l(),p=c("p"),p.textContent=M,P=l(),S(f.$$.fragment),w=l(),g=c("p"),this.h()},l(t){const e=I("svelte-u9bgzb",document.head);s=h(e,"META",{name:!0,content:!0}),e.forEach(n),$=i(t),_=h(t,"P",{}),q(_).forEach(n),d=i(t),A(o.$$.fragment,t),x=i(t),m=h(t,"P",{"data-svelte-h":!0}),H(m)!=="svelte-1vbbut2"&&(m.textContent=y),v=i(t),r=h(t,"P",{"data-svelte-h":!0}),H(r)!=="svelte-1qibfiz"&&(r.textContent=L),b=i(t),u=h(t,"UL",{"data-svelte-h":!0}),H(u)!=="svelte-anryhm"&&(u.innerHTML=z),C=i(t),p=h(t,"P",{"data-svelte-h":!0}),H(p)!=="svelte-gz9nt6"&&(p.textContent=M),P=i(t),A(f.$$.fragment,t),w=i(t),g=h(t,"P",{}),q(g).forEach(n),this.h()},h(){F(s,"name","hf:doc:metadata"),F(s,"content",W)},m(t,e){J(document.head,s),a(t,$,e),a(t,_,e),a(t,d,e),N(o,t,e),a(t,x,e),a(t,m,e),a(t,v,e),a(t,r,e),a(t,b,e),a(t,u,e),a(t,C,e),a(t,p,e),a(t,P,e),N(f,t,e),a(t,w,e),a(t,g,e),E=!0},p:O,i(t){E||(U(o.$$.fragment,t),U(f.$$.fragment,t),E=!0)},o(t){j(o.$$.fragment,t),j(f.$$.fragment,t),E=!1},d(t){t&&(n($),n(_),n(d),n(x),n(m),n(v),n(r),n(b),n(u),n(C),n(p),n(P),n(w),n(g)),n(s),k(o,t),k(f,t)}}}const W='{"title":"介绍","local":"介绍","sections":[],"depth":1}';function X(T){return R(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class et extends B{constructor(s){super(),D(this,s,X,V,G,{})}}export{et as component};
