import{s as O,o as W,n as J}from"../chunks/scheduler.cc52f4b9.js";import{S as Q,i as V,e as u,s as m,c as b,h as X,a as $,d as a,b as c,f as B,g as L,j as C,k as K,l as Y,m as i,n as M,t as y,o as g,p as H}from"../chunks/index.9480bb2b.js";import{T as Z}from"../chunks/Tip.f7b80743.js";import{C as ee,H as te,E as ne}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.52103c90.js";import{F as ae}from"../chunks/FrameworkSwitchCourse.42d12053.js";function re(h){let t,f='為此，您需要利用<a href="/course/chapter3">第三章</a>中學到的有關Keras API、<a href="/course/chapter5">第五章</a>中的 🤗 Datasets 庫以及<a href="/course/chapter6">第六章</a>中的 🤗 Tokenizers 庫的所有知識。我們還會將結果上傳到模型中心，就像我們在<a href="/course/chapter4">第四章</a>中所做的那樣，所以這確實是將之前所有內容彙集在一起的章節！',r,l,o="每個部分都可以獨立閱讀。";return{c(){t=u("p"),t.innerHTML=f,r=m(),l=u("p"),l.textContent=o},l(s){t=$(s,"P",{"data-svelte-h":!0}),C(t)!=="svelte-6ysyr6"&&(t.innerHTML=f),r=c(s),l=$(s,"P",{"data-svelte-h":!0}),C(l)!=="svelte-k4r7wt"&&(l.textContent=o)},m(s,p){i(s,t,p),i(s,r,p),i(s,l,p)},d(s){s&&(a(t),a(r),a(l))}}}function le(h){let t,f='為此，您需要利用<a href="/course/chapter3">第三章</a>中學到的<code>Trainer</code> API 和🤗Accelerate 庫、<a href="/course/chapter5">第五章</a>中的 🤗 Datasets 庫以及<a href="/course/chapter6">第六章</a>中的 🤗 Tokenizers 庫的所有知識。我們還會將結果上傳到模型中心，就像我們在<a href="/course/chapter4">第四章</a>中所做的那樣，所以這確實是將之前所有內容彙集在一起的章節！',r,l,o="每個部分都可以獨立閱讀，並將向您展示如何使用API或按照您自己的訓練循環訓練模型，使用🤗 Accelerate 加速。你可以隨意跳過其中一部分，把注意力集中在你最感興趣的那一部分：API可以優化或訓練您的模型而無需擔心幕後發生了什麼，而訓練循環使用可以讓您更輕鬆地自定義所需的任何結構。";return{c(){t=u("p"),t.innerHTML=f,r=m(),l=u("p"),l.textContent=o},l(s){t=$(s,"P",{"data-svelte-h":!0}),C(t)!=="svelte-7wxrw"&&(t.innerHTML=f),r=c(s),l=$(s,"P",{"data-svelte-h":!0}),C(l)!=="svelte-32rsx1"&&(l.textContent=o)},m(s,p){i(s,t,p),i(s,r,p),i(s,l,p)},d(s){s&&(a(t),a(r),a(l))}}}function se(h){let t,f="如果您按順序閱讀這些部分，您會注意到它們有很多共同的代碼和陳述。 重複是有意為之的，讓您可以深入（或稍後返回）任何您感興趣的任務並找到一個完整的工作示例。";return{c(){t=u("p"),t.textContent=f},l(r){t=$(r,"P",{"data-svelte-h":!0}),C(t)!=="svelte-hvk0zv"&&(t.textContent=f)},m(r,l){i(r,t,l)},p:J,d(r){r&&a(t)}}}function ie(h){let t,f,r,l,o,s,p,A,v,E,x,N='在<a href="/course/chapter3">第三章</a>，您瞭解瞭如何微調文本分類的模型。在本章中，我們將處理以下常見NLP任務：',z,T,R="<li>標記(token)分類</li> <li>遮罩語言建模（如BERT）</li> <li>提取文本摘要</li> <li>翻譯</li> <li>因果語言建模預訓練（如GPT-2）</li> <li>問答</li>",S,P,w,I,d,D,k,F;o=new ae({props:{fw:h[0]}}),p=new ee({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),v=new te({props:{title:"章節簡介",local:"章節簡介",headingTag:"h1"}});function U(e,n){return e[0]==="pt"?le:re}let G=U(h),_=G(h);return w=new Z({props:{$$slots:{default:[se]},$$scope:{ctx:h}}}),d=new ne({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-TW/chapter7/1.mdx"}}),{c(){t=u("meta"),f=m(),r=u("p"),l=m(),b(o.$$.fragment),s=m(),b(p.$$.fragment),A=m(),b(v.$$.fragment),E=m(),x=u("p"),x.innerHTML=N,z=m(),T=u("ul"),T.innerHTML=R,S=m(),_.c(),P=m(),b(w.$$.fragment),I=m(),b(d.$$.fragment),D=m(),k=u("p"),this.h()},l(e){const n=X("svelte-u9bgzb",document.head);t=$(n,"META",{name:!0,content:!0}),n.forEach(a),f=c(e),r=$(e,"P",{}),B(r).forEach(a),l=c(e),L(o.$$.fragment,e),s=c(e),L(p.$$.fragment,e),A=c(e),L(v.$$.fragment,e),E=c(e),x=$(e,"P",{"data-svelte-h":!0}),C(x)!=="svelte-lmb249"&&(x.innerHTML=N),z=c(e),T=$(e,"UL",{"data-svelte-h":!0}),C(T)!=="svelte-my8k01"&&(T.innerHTML=R),S=c(e),_.l(e),P=c(e),L(w.$$.fragment,e),I=c(e),L(d.$$.fragment,e),D=c(e),k=$(e,"P",{}),B(k).forEach(a),this.h()},h(){K(t,"name","hf:doc:metadata"),K(t,"content",fe)},m(e,n){Y(document.head,t),i(e,f,n),i(e,r,n),i(e,l,n),M(o,e,n),i(e,s,n),M(p,e,n),i(e,A,n),M(v,e,n),i(e,E,n),i(e,x,n),i(e,z,n),i(e,T,n),i(e,S,n),_.m(e,n),i(e,P,n),M(w,e,n),i(e,I,n),M(d,e,n),i(e,D,n),i(e,k,n),F=!0},p(e,[n]){const j={};n&1&&(j.fw=e[0]),o.$set(j),G!==(G=U(e))&&(_.d(1),_=G(e),_&&(_.c(),_.m(P.parentNode,P)));const q={};n&2&&(q.$$scope={dirty:n,ctx:e}),w.$set(q)},i(e){F||(y(o.$$.fragment,e),y(p.$$.fragment,e),y(v.$$.fragment,e),y(w.$$.fragment,e),y(d.$$.fragment,e),F=!0)},o(e){g(o.$$.fragment,e),g(p.$$.fragment,e),g(v.$$.fragment,e),g(w.$$.fragment,e),g(d.$$.fragment,e),F=!1},d(e){e&&(a(f),a(r),a(l),a(s),a(A),a(E),a(x),a(z),a(T),a(S),a(P),a(I),a(D),a(k)),a(t),H(o,e),H(p,e),H(v,e),_.d(e),H(w,e),H(d,e)}}}const fe='{"title":"章節簡介","local":"章節簡介","sections":[],"depth":1}';function pe(h,t,f){let r="pt";return W(()=>{const l=new URLSearchParams(window.location.search);f(0,r=l.get("fw")||"pt")}),[r]}class he extends Q{constructor(t){super(),V(this,t,pe,ie,O,{})}}export{he as component};
