Buckets:

rtrm's picture
download
raw
6.12 kB
import{s as J,o as V,n as X}from"../chunks/scheduler.37c15a92.js";import{S as Y,i as Z,g as f,s as h,r as L,A as ee,h as m,f as a,c as p,j as O,u as x,x as g,k as Q,y as te,a as l,v as M,d as P,t as H,w as A}from"../chunks/index.7cb9c9b8.js";import{T as ne}from"../chunks/Tip.d10b3fc9.js";import{C as ae}from"../chunks/CourseFloatingBanner.df82c153.js";import{F as ie}from"../chunks/FrameworkSwitchCourse.97630871.js";import{H as re,E as oe}from"../chunks/getInferenceSnippets.f9350a3f.js";function le(d){let t,s='To do this, you’ll need to leverage everything you learned about training models with the Keras API in <a href="/course/chapter3">Chapter 3</a>, the 🤗 Datasets library in <a href="/course/chapter5">Chapter 5</a>, and the 🤗 Tokenizers library in <a href="/course/chapter6">Chapter 6</a>. We’ll also upload our results to the Model Hub, like we did in <a href="/course/chapter4">Chapter 4</a>, so this is really the chapter where everything comes together!',i,r,c="Each section can be read independently.";return{c(){t=f("p"),t.innerHTML=s,i=h(),r=f("p"),r.textContent=c},l(o){t=m(o,"P",{"data-svelte-h":!0}),g(t)!=="svelte-1203ezd"&&(t.innerHTML=s),i=p(o),r=m(o,"P",{"data-svelte-h":!0}),g(r)!=="svelte-1q4m2vs"&&(r.textContent=c)},m(o,u){l(o,t,u),l(o,i,u),l(o,r,u)},d(o){o&&(a(t),a(i),a(r))}}}function se(d){let t,s='To do this, you’ll need to leverage everything you learned about the <code>Trainer</code> API and the 🤗 Accelerate library in <a href="/course/chapter3">Chapter 3</a>, the 🤗 Datasets library in <a href="/course/chapter5">Chapter 5</a>, and the 🤗 Tokenizers library in <a href="/course/chapter6">Chapter 6</a>. We’ll also upload our results to the Model Hub, like we did in <a href="/course/chapter4">Chapter 4</a>, so this is really the chapter where everything comes together!',i,r,c="Each section can be read independently and will show you how to train a model with the <code>Trainer</code> API or with your own training loop, using 🤗 Accelerate. Feel free to skip either part and focus on the one that interests you the most: the <code>Trainer</code> API is great for fine-tuning or training your model without worrying about what’s going on behind the scenes, while the training loop with <code>Accelerate</code> will let you customize any part you want more easily.";return{c(){t=f("p"),t.innerHTML=s,i=h(),r=f("p"),r.innerHTML=c},l(o){t=m(o,"P",{"data-svelte-h":!0}),g(t)!=="svelte-j9oz82"&&(t.innerHTML=s),i=p(o),r=m(o,"P",{"data-svelte-h":!0}),g(r)!=="svelte-gf723x"&&(r.innerHTML=c)},m(o,u){l(o,t,u),l(o,i,u),l(o,r,u)},d(o){o&&(a(t),a(i),a(r))}}}function ue(d){let t,s="If you read the sections in sequence, you will notice that they have quite a bit of code and prose in common. The repetition is intentional, to allow you to dip in (or come back later) to any task that interests you and find a complete working example.";return{c(){t=f("p"),t.textContent=s},l(i){t=m(i,"P",{"data-svelte-h":!0}),g(t)!=="svelte-1se75l1"&&(t.textContent=s)},m(i,r){l(i,t,r)},p:X,d(i){i&&a(t)}}}function ce(d){let t,s,i,r,c,o,u,E,y,I,_,D='In <a href="/course/chapter3">Chapter 3</a>, you saw how to fine-tune a model for text classification. In this chapter, we will tackle the following common language tasks that are essential for working with both traditional NLP models and modern LLMs:',z,b,G="<li>Token classification</li> <li>Masked language modeling (like BERT)</li> <li>Summarization</li> <li>Translation</li> <li>Causal language modeling pretraining (like GPT-2)</li> <li>Question answering</li>",q,v,R="These fundamental tasks form the foundation of how Large Language Models (LLMs) work and understanding them is crucial for effectively working with today’s most advanced language models.",S,C,$,F,k,N,T,j;c=new ie({props:{fw:d[0]}}),u=new re({props:{title:"Introduction",local:"introduction",headingTag:"h1"}}),y=new ae({props:{chapter:7,classNames:"absolute z-10 right-0 top-0"}});function U(e,n){return e[0]==="pt"?se:le}let B=U(d),w=B(d);return $=new ne({props:{$$slots:{default:[ue]},$$scope:{ctx:d}}}),k=new oe({props:{source:"https://github.com/huggingface/course/blob/main/chapters/en/chapter7/1.mdx"}}),{c(){t=f("meta"),s=h(),i=f("p"),r=h(),L(c.$$.fragment),o=h(),L(u.$$.fragment),E=h(),L(y.$$.fragment),I=h(),_=f("p"),_.innerHTML=D,z=h(),b=f("ul"),b.innerHTML=G,q=h(),v=f("p"),v.textContent=R,S=h(),w.c(),C=h(),L($.$$.fragment),F=h(),L(k.$$.fragment),N=h(),T=f("p"),this.h()},l(e){const n=ee("svelte-u9bgzb",document.head);t=m(n,"META",{name:!0,content:!0}),n.forEach(a),s=p(e),i=m(e,"P",{}),O(i).forEach(a),r=p(e),x(c.$$.fragment,e),o=p(e),x(u.$$.fragment,e),E=p(e),x(y.$$.fragment,e),I=p(e),_=m(e,"P",{"data-svelte-h":!0}),g(_)!=="svelte-95s2kh"&&(_.innerHTML=D),z=p(e),b=m(e,"UL",{"data-svelte-h":!0}),g(b)!=="svelte-146pccd"&&(b.innerHTML=G),q=p(e),v=m(e,"P",{"data-svelte-h":!0}),g(v)!=="svelte-pq4i9y"&&(v.textContent=R),S=p(e),w.l(e),C=p(e),x($.$$.fragment,e),F=p(e),x(k.$$.fragment,e),N=p(e),T=m(e,"P",{}),O(T).forEach(a),this.h()},h(){Q(t,"name","hf:doc:metadata"),Q(t,"content",he)},m(e,n){te(document.head,t),l(e,s,n),l(e,i,n),l(e,r,n),M(c,e,n),l(e,o,n),M(u,e,n),l(e,E,n),M(y,e,n),l(e,I,n),l(e,_,n),l(e,z,n),l(e,b,n),l(e,q,n),l(e,v,n),l(e,S,n),w.m(e,n),l(e,C,n),M($,e,n),l(e,F,n),M(k,e,n),l(e,N,n),l(e,T,n),j=!0},p(e,[n]){const W={};n&1&&(W.fw=e[0]),c.$set(W),B!==(B=U(e))&&(w.d(1),w=B(e),w&&(w.c(),w.m(C.parentNode,C)));const K={};n&2&&(K.$$scope={dirty:n,ctx:e}),$.$set(K)},i(e){j||(P(c.$$.fragment,e),P(u.$$.fragment,e),P(y.$$.fragment,e),P($.$$.fragment,e),P(k.$$.fragment,e),j=!0)},o(e){H(c.$$.fragment,e),H(u.$$.fragment,e),H(y.$$.fragment,e),H($.$$.fragment,e),H(k.$$.fragment,e),j=!1},d(e){e&&(a(s),a(i),a(r),a(o),a(E),a(I),a(_),a(z),a(b),a(q),a(v),a(S),a(C),a(F),a(N),a(T)),a(t),A(c,e),A(u,e),A(y,e),w.d(e),A($,e),A(k,e)}}}const he='{"title":"Introduction","local":"introduction","sections":[],"depth":1}';function pe(d,t,s){let i="pt";return V(()=>{const r=new URLSearchParams(window.location.search);s(0,i=r.get("fw")||"pt")}),[i]}class ye extends Y{constructor(t){super(),Z(this,t,pe,ce,J,{})}}export{ye as component};

Xet Storage Details

Size:
6.12 kB
·
Xet hash:
913764ad32130f94dd1db7714ad94ae652bcf43044660070b71f28c1e2e7c597

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.