import{s as le,a as ie,n as ne,o as se}from"../chunks/scheduler.cc52f4b9.js";import{S as ae,i as oe,e as r,s as n,c as z,h as re,a as u,d as i,b as s,f as D,g as b,j as q,k as m,l as ue,m as l,n as T,t as E,o as M,p as P}from"../chunks/index.5b747fde.js";import{C as me,H as J,E as fe}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.d38ac5a9.js";function pe(K){let f,L,y,k,p,H,c,S,h,N="It’s time to put your knowledge to the test! We’ve prepared a short quiz for you to test your understanding of the concepts covered in this chapter.",I,d,V="To take the quiz, you will need to follow these steps:",j,$,X="<li>Sign in to your Hugging Face account.</li> <li>Answer the questions in the quiz.</li> <li>Submit your answers.</li>",A,_,Q,x,Y="In this quiz, you will be asked to select the correct answer from a list of options. We’ll test you on the fundamentals of supervised finetuning.",R,a,Z,F,g,W,v,ee="In this quiz, you will be asked to write code to complete a task. We’ll test you on the code you’ve studied in the course from libraries like <code>datasets</code>, <code>transformers</code>, <code>peft</code>, and <code>TRL</code>.",O,o,te,G,w,U,C,B;return p=new me({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),c=new J({props:{title:"Exam Time!",local:"exam-time",headingTag:"h1"}}),_=new J({props:{title:"Multiple Choice Quiz",local:"multiple-choice-quiz",headingTag:"h2"}}),g=new J({props:{title:"Code Quiz",local:"code-quiz",headingTag:"h2"}}),w=new fe({props:{source:"https://github.com/huggingface/course/blob/main/chapters/en/chapter11/7.mdx"}}),{c(){f=r("meta"),L=n(),y=r("p"),k=n(),z(p.$$.fragment),H=n(),z(c.$$.fragment),S=n(),h=r("p"),h.textContent=N,I=n(),d=r("p"),d.textContent=V,j=n(),$=r("ol"),$.innerHTML=X,A=n(),z(_.$$.fragment),Q=n(),x=r("p"),x.textContent=Y,R=n(),a=r("iframe"),F=n(),z(g.$$.fragment),W=n(),v=r("p"),v.innerHTML=ee,O=n(),o=r("iframe"),G=n(),z(w.$$.fragment),U=n(),C=r("p"),this.h()},l(e){const t=re("svelte-u9bgzb",document.head);f=u(t,"META",{name:!0,content:!0}),t.forEach(i),L=s(e),y=u(e,"P",{}),D(y).forEach(i),k=s(e),b(p.$$.fragment,e),H=s(e),b(c.$$.fragment,e),S=s(e),h=u(e,"P",{"data-svelte-h":!0}),q(h)!=="svelte-1j40xyg"&&(h.textContent=N),I=s(e),d=u(e,"P",{"data-svelte-h":!0}),q(d)!=="svelte-id5ipj"&&(d.textContent=V),j=s(e),$=u(e,"OL",{"data-svelte-h":!0}),q($)!=="svelte-f0cv6n"&&($.innerHTML=X),A=s(e),b(_.$$.fragment,e),Q=s(e),x=u(e,"P",{"data-svelte-h":!0}),q(x)!=="svelte-u7tqvq"&&(x.textContent=Y),R=s(e),a=u(e,"IFRAME",{src:!0,frameborder:!0,width:!0,height:!0}),D(a).forEach(i),F=s(e),b(g.$$.fragment,e),W=s(e),v=u(e,"P",{"data-svelte-h":!0}),q(v)!=="svelte-yjfvyp"&&(v.innerHTML=ee),O=s(e),o=u(e,"IFRAME",{src:!0,frameborder:!0,width:!0,height:!0}),D(o).forEach(i),G=s(e),b(w.$$.fragment,e),U=s(e),C=u(e,"P",{}),D(C).forEach(i),this.h()},h(){m(f,"name","hf:doc:metadata"),m(f,"content",ce),ie(a.src,Z="https://nlp-course-supervised-finetuning-quiz.hf.space")||m(a,"src",Z),m(a,"frameborder","0"),m(a,"width","850"),m(a,"height","450"),ie(o.src,te="https://nlp-course-sft-code-quiz.hf.space")||m(o,"src",te),m(o,"frameborder","0"),m(o,"width","850"),m(o,"height","450")},m(e,t){ue(document.head,f),l(e,L,t),l(e,y,t),l(e,k,t),T(p,e,t),l(e,H,t),T(c,e,t),l(e,S,t),l(e,h,t),l(e,I,t),l(e,d,t),l(e,j,t),l(e,$,t),l(e,A,t),T(_,e,t),l(e,Q,t),l(e,x,t),l(e,R,t),l(e,a,t),l(e,F,t),T(g,e,t),l(e,W,t),l(e,v,t),l(e,O,t),l(e,o,t),l(e,G,t),T(w,e,t),l(e,U,t),l(e,C,t),B=!0},p:ne,i(e){B||(E(p.$$.fragment,e),E(c.$$.fragment,e),E(_.$$.fragment,e),E(g.$$.fragment,e),E(w.$$.fragment,e),B=!0)},o(e){M(p.$$.fragment,e),M(c.$$.fragment,e),M(_.$$.fragment,e),M(g.$$.fragment,e),M(w.$$.fragment,e),B=!1},d(e){e&&(i(L),i(y),i(k),i(H),i(S),i(h),i(I),i(d),i(j),i($),i(A),i(Q),i(x),i(R),i(a),i(F),i(W),i(v),i(O),i(o),i(G),i(U),i(C)),i(f),P(p,e),P(c,e),P(_,e),P(g,e),P(w,e)}}}const ce='{"title":"Exam Time!","local":"exam-time","sections":[{"title":"Multiple Choice Quiz","local":"multiple-choice-quiz","sections":[],"depth":2},{"title":"Code Quiz","local":"code-quiz","sections":[],"depth":2}],"depth":1}';function he(K){return se(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class xe extends ae{constructor(f){super(),oe(this,f,he,pe,le,{})}}export{xe as component};
