import{s as K,o as O}from"../chunks/scheduler.cc52f4b9.js";import{S as R,i as W,e as d,s as f,c as k,h as D,a as b,d as i,b as m,f as q,g as C,j,k as B,l as I,m as l,n as v,t as y,o as L,p as T}from"../chunks/index.9480bb2b.js";import{C as J,H as Q,E as V}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.52103c90.js";import{C as X}from"../chunks/CourseFloatingBanner.78fb31df.js";import{F as Y}from"../chunks/FrameworkSwitchCourse.42d12053.js";function Z(u){let e,r='<li>瞭解了<a href="https://huggingface.co/datasets" rel="nofollow">Hub</a>中的數據集</li> <li>學習瞭如何加載和預處理數據集</li> <li>學習瞭如何使用 Keras 微調和評估模型</li> <li>實現了自定義指標</li>';return{c(){e=d("ul"),e.innerHTML=r},l(a){e=b(a,"UL",{"data-svelte-h":!0}),j(e)!=="svelte-9nijn0"&&(e.innerHTML=r)},m(a,s){l(a,e,s)},d(a){a&&i(e)}}}function tt(u){let e,r='<li>瞭解了<a href="https://huggingface.co/datasets" rel="nofollow">Hub</a>中的數據集</li> <li>學習瞭如何加載和預處理數據集，包括使用動態填充和整理器</li> <li>實現您自己的模型微調和評估</li> <li>實施了一個較為底層的訓練循環</li> <li>使用 🤗 Accelerate 輕鬆調整您的訓練循環，使其適用於多個 GPU 或 TPU</li>';return{c(){e=d("ul"),e.innerHTML=r},l(a){e=b(a,"UL",{"data-svelte-h":!0}),j(e)!=="svelte-10ukihr"&&(e.innerHTML=r)},m(a,s){l(a,e,s)},d(a){a&&i(e)}}}function et(u){let e,r,a,s,p,H,c,M,$,P,h,E,_,A="這是非常令人高興的！ 在前兩章中，您瞭解了模型和標記器(tokenizer)，現在您知道如何針對您自己的數據對它們進行微調。回顧一下，在本章中，您：",z,w,g,S,x,U;p=new Y({props:{fw:u[0]}}),c=new J({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),$=new Q({props:{title:"微調，檢查!",local:"微調檢查",headingTag:"h1"}}),h=new X({props:{chapter:3,classNames:"absolute z-10 right-0 top-0"}});function G(t,n){return t[0]==="pt"?tt:Z}let F=G(u),o=F(u);return g=new V({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-TW/chapter3/5.mdx"}}),{c(){e=d("meta"),r=f(),a=d("p"),s=f(),k(p.$$.fragment),H=f(),k(c.$$.fragment),M=f(),k($.$$.fragment),P=f(),k(h.$$.fragment),E=f(),_=d("p"),_.textContent=A,z=f(),o.c(),w=f(),k(g.$$.fragment),S=f(),x=d("p"),this.h()},l(t){const n=D("svelte-u9bgzb",document.head);e=b(n,"META",{name:!0,content:!0}),n.forEach(i),r=m(t),a=b(t,"P",{}),q(a).forEach(i),s=m(t),C(p.$$.fragment,t),H=m(t),C(c.$$.fragment,t),M=m(t),C($.$$.fragment,t),P=m(t),C(h.$$.fragment,t),E=m(t),_=b(t,"P",{"data-svelte-h":!0}),j(_)!=="svelte-lardxo"&&(_.textContent=A),z=m(t),o.l(t),w=m(t),C(g.$$.fragment,t),S=m(t),x=b(t,"P",{}),q(x).forEach(i),this.h()},h(){B(e,"name","hf:doc:metadata"),B(e,"content",nt)},m(t,n){I(document.head,e),l(t,r,n),l(t,a,n),l(t,s,n),v(p,t,n),l(t,H,n),v(c,t,n),l(t,M,n),v($,t,n),l(t,P,n),v(h,t,n),l(t,E,n),l(t,_,n),l(t,z,n),o.m(t,n),l(t,w,n),v(g,t,n),l(t,S,n),l(t,x,n),U=!0},p(t,[n]){const N={};n&1&&(N.fw=t[0]),p.$set(N),F!==(F=G(t))&&(o.d(1),o=F(t),o&&(o.c(),o.m(w.parentNode,w)))},i(t){U||(y(p.$$.fragment,t),y(c.$$.fragment,t),y($.$$.fragment,t),y(h.$$.fragment,t),y(g.$$.fragment,t),U=!0)},o(t){L(p.$$.fragment,t),L(c.$$.fragment,t),L($.$$.fragment,t),L(h.$$.fragment,t),L(g.$$.fragment,t),U=!1},d(t){t&&(i(r),i(a),i(s),i(H),i(M),i(P),i(E),i(_),i(z),i(w),i(S),i(x)),i(e),T(p,t),T(c,t),T($,t),T(h,t),o.d(t),T(g,t)}}}const nt='{"title":"微調，檢查!","local":"微調檢查","sections":[],"depth":1}';function at(u,e,r){let a="pt";return O(()=>{const s=new URLSearchParams(window.location.search);r(0,a=s.get("fw")||"pt")}),[a]}class ft extends R{constructor(e){super(),W(this,e,at,et,K,{})}}export{ft as component};
