import{s as ue,n as re,o as pe}from"../chunks/scheduler.3e4cb221.js";import{S as he,i as de,g as i,s as n,r,A as Me,h as o,f as l,c as s,j as oe,u as p,x as u,k as Bt,y as me,a,v as h,d,t as M,w as m}from"../chunks/index.e1c70545.js";import{C as kt}from"../chunks/CodeBlock.72e9ab19.js";import{H as T,E as Te}from"../chunks/getInferenceSnippets.62bbd402.js";function ce(Pt){let c,tt,Q,et,f,lt,g,Zt="It’s time to submit your DPO-aligned model! This unit uses the same leaderboard-based submission system as Unit 1. Here’s the plan:",at,j,Yt="<li>Read the written guide for the chapter ✅</li> <li>Train a model using what you learned in the chapter.</li> <li>Push the model to the Hugging Face Hub.</li> <li>Evaluate the model using <code>hf jobs</code>.</li> <li>Open a pull request on the leaderboard.</li>",nt,J,Rt="On this page we will go through each step.",st,b,it,U,Gt="For Unit 3’s submission, you should read all the materials in the unit and train a preference-aligned model using DPO. The training code is provided in:",ot,I,Ft='<li><a href="./4">DPO Training Exercise</a> - Complete DPO training guide with SmolLM3</li>',ut,$,zt='You’ll need to combine this with <a href="../unit1/5">Training with Hugging Face Jobs</a> techniques from Unit 1.',rt,C,pt,v,Xt="Once you’ve trained your DPO-aligned model, you’ll need to push it to a repo on the Hugging Face Hub. TRL will take care of this for you if you add the <code>--push_to_hub</code> flag to your training command.",ht,A,dt,W,Mt,L,St='Your trained model will be available at <code>your-username/your-model-name</code>. For detailed documentation, check out the <a href="https://huggingface.co/docs/transformers/trainer#checkpoints" rel="nofollow">checkpoints documentation</a> from <code>transformers</code>.',mt,q,Tt,H,Vt="Now, we will evaluate your DPO-aligned model. We will use <code>hf jobs</code> to evaluate the model and combine it with <code>lighteval</code>. We will push the evaluation results to a dataset on the hub.",ct,w,Ot="<p>For DPO evaluation, we use tasks that test both helpfulness and safety aspects of alignment, including <code>truthfulqa</code>, <code>gsm8k</code>, and other alignment-focused benchmarks.</p>",wt,_,yt,x,Dt="This command will evaluate the model using <code>lighteval</code> and <code>vllm</code> and save the results to the Hugging Face Hub in a dataset repo that you define.",ft,y,Qt="<p>We focus on alignment evaluation in Unit 3, but in Unit 2 we explore evaluation in more detail. The key benchmarks for DPO evaluation include:</p> <ul><li>TruthfulQA: Tests for truthful and honest responses</li> <li>GSM8K: Mathematical reasoning and helpfulness</li> <li>MMLU: Broad knowledge and helpfulness across domains</li></ul>",gt,N,jt,E,Kt="You are now ready to submit your DPO-aligned model to the leaderboard! You need to do two things:",Jt,B,te="<li>Add your model’s results to <code>submissions.json</code></li> <li>Share your training and evaluation commands in the PR text.</li>",bt,k,Ut,P,ee='Open a pull request on the <a href="https://huggingface.co/spaces/smol-course/leaderboard/edit/main/submissions.json" rel="nofollow">leaderboard space</a> to submit your model. You just need to add your model info and reference to the dataset you created in the previous step. We will pull the results and display them on the leaderboard.',It,Z,$t,Y,Ct,R,le="Within the PR text, share both your training and evaluation commands.",vt,G,At,F,ae='Once the PR is merged, your DPO-aligned model will be added to the leaderboard! You can check the leaderboard <a href="https://huggingface.co/spaces/smol-course/leaderboard" rel="nofollow">here</a>.',Wt,z,Lt,X,ne=`You’ve completed the unit — great work!
Now put your learning to the test by taking the <a href="https://huggingface.co/spaces/smol-course/unit_3_quiz" rel="nofollow">quiz</a>.`,qt,S,Ht,V,se='<li><a href="./4">Unit 3 DPO Exercise</a> - Complete DPO training guide</li> <li><a href="https://arxiv.org/abs/2305.18290" rel="nofollow">DPO Paper</a> - Original research paper</li> <li><a href="https://huggingface.co/docs/trl/dpo_trainer" rel="nofollow">TRL DPO Documentation</a> - Implementation details</li> <li><a href="https://arxiv.org/abs/2204.05862" rel="nofollow">Anthropic HH-RLHF Paper</a> - Human feedback methodology</li> <li><a href="https://github.com/huggingface/alignment-handbook" rel="nofollow">Alignment Handbook</a> - Advanced alignment techniques</li>',_t,O,ie="Good luck with your DPO preference alignment submission! 🚀",xt,D,Nt,K,Et;return f=new T({props:{title:"Submit your final project!",local:"submit-your-final-project",headingTag:"h1"}}),b=new T({props:{title:"1. Read the written guide for the chapter and 2. Train a model using what you learned in the chapter.",local:"1-read-the-written-guide-for-the-chapter-and-2-train-a-model-using-what-you-learned-in-the-chapter",headingTag:"h2"}}),C=new T({props:{title:"3. Push the model to the Hugging Face Hub",local:"3-push-the-model-to-the-hugging-face-hub",headingTag:"h2"}}),A=new T({props:{title:"DPO Training with Hub Upload:",local:"dpo-training-with-hub-upload",headingTag:"h3"}}),W=new kt({props:{code:"aGYlMjBqb2JzJTIwdXYlMjBydW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWZsYXZvciUyMGExMDAtbGFyZ2UlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXNlY3JldHMlMjBIRl9UT0tFTiUyMCU1QyUwQSUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSUyRmh1Z2dpbmdmYWNlJTJGdHJsJTJGbWFpbiUyRnRybCUyRnNjcmlwdHMlMkZkcG8ucHklMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW1vZGVsX25hbWVfb3JfcGF0aCUyMEh1Z2dpbmdGYWNlVEIlMkZTbW9sTE0zLTNCJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kYXRhc2V0X25hbWUlMjBBbnRocm9waWMlMkZoaC1ybGhmJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1sZWFybmluZ19yYXRlJTIwNWUtNyUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tYmV0YSUyMDAuMSUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tbWF4X3N0ZXBzJTIwMTAwMCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcHVzaF90b19odWIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWh1Yl9tb2RlbF9pZCUyMHlvdXItdXNlcm5hbWUlMkZzbW9sbG0zLWRwby1hbGlnbmVkJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1yZXBvcnRfdG8lMjB0cmFja2lv",highlighted:`hf <span class="hljs-built_in">jobs</span> uv run \\
    --flavor a100-large \\
    --secrets HF_TOKEN \\
    <span class="hljs-string">&quot;https://raw.githubusercontent.com/huggingface/trl/main/trl/scripts/dpo.py&quot;</span> \\
    --model_name_or_path HuggingFaceTB/SmolLM3-3B \\
    --dataset_name Anthropic/hh-rlhf \\
    --learning_rate 5e-7 \\
    --beta 0.1 \\
    --max_steps 1000 \\
    --push_to_hub \\
    --hub_model_id your-username/smollm3-dpo-aligned \\
    --report_to trackio`,wrap:!1}}),q=new T({props:{title:"4. Evaluate the model using hf jobs",local:"4-evaluate-the-model-using-hf-jobs",headingTag:"h2"}}),_=new kt({props:{code:"aGYlMjBqb2JzJTIwdXYlMjBydW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWZsYXZvciUyMGExMGctbGFyZ2UlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXdpdGglMjAlMjJsaWdodGV2YWwlNUJ2bGxtJTVEJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1zZWNyZXRzJTIwSEZfVE9LRU4lMjAlNUMlMEElMjAlMjAlMjAlMjBsaWdodGV2YWwlMjB2bGxtJTIwJTIybW9kZWxfbmFtZSUzRCUzQ3lvdXItdXNlcm5hbWUlM0UlMkYlM0N5b3VyLW1vZGVsLW5hbWUlM0UlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAlMjJsaWdodGV2YWwlN0N0cnV0aGZ1bHFhJTNBbWMyJTdDMCU3QzAlMkNsaWdodGV2YWwlN0NoZWxsYXN3YWclN0MwJTdDMCUyQ2xpZ2h0ZXZhbCU3Q2FyYyUzQWNoYWxsZW5nZSU3QzAlN0MwJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wdXNoLXRvLWh1YiUyMC0tcmVzdWx0cy1vcmclMjAlM0N5b3VyLXVzZXJuYW1lJTNF",highlighted:`hf <span class="hljs-built_in">jobs</span> uv run \\
    --flavor a10g-large \\
    --with <span class="hljs-string">&quot;lighteval[vllm]&quot;</span> \\
    --secrets HF_TOKEN \\
    lighteval vllm <span class="hljs-string">&quot;model_name=&lt;your-username&gt;/&lt;your-model-name&gt;&quot;</span> \\
    <span class="hljs-string">&quot;lighteval|truthfulqa:mc2|0|0,lighteval|hellaswag|0|0,lighteval|arc:challenge|0|0&quot;</span> \\
    --push-to-hub --results-org &lt;your-username&gt;`,wrap:!1}}),N=new T({props:{title:"5. Open a pull request on the leaderboard space",local:"5-open-a-pull-request-on-the-leaderboard-space",headingTag:"h2"}}),k=new T({props:{title:"Add your model’s results to submissions.json",local:"add-your-models-results-to-submissionsjson",headingTag:"h3"}}),Z=new kt({props:{code:"JTdCJTBBJTIwJTIwJTIwJTIwJTIyc3VibWlzc2lvbnMlMjIlM0ElMjAlNUIlMEElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAuLi4lMjAlMkYlMkYlMjBleGlzdGluZyUyMHN1Ym1pc3Npb25zJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydXNlcm5hbWUlMjIlM0ElMjAlMjIlM0N5b3VyLXVzZXJuYW1lJTNFJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybW9kZWxfbmFtZSUyMiUzQSUyMCUyMiUzQ3lvdXItbW9kZWwtbmFtZSUzRSUyMiUyQyUyMCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNoYXB0ZXIlMjIlM0ElMjAlMjIzJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybWV0aG9kJTIyJTNBJTIwJTIyRFBPJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc3VibWlzc2lvbl9kYXRlJTIyJTNBJTIwJTIyJTNDeW91ci1zdWJtaXNzaW9uLWRhdGUlM0UlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJyZXN1bHRzLWRhdGFzZXQlMjIlM0ElMjAlMjIlM0N5b3VyLXJlc3VsdHMtZGF0YXNldCUzRSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmJhc2VfbW9kZWwlMjIlM0ElMjAlMjJIdWdnaW5nRmFjZVRCJTJGU21vbExNMy0zQiUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnByZWZlcmVuY2VfZGF0YXNldCUyMiUzQSUyMCUyMkFudGhyb3BpYyUyRmhoLXJsaGYlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlNUQlMEElN0Q=",highlighted:`<span class="hljs-punctuation">{</span>
    <span class="hljs-attr">&quot;submissions&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span>

        ... <span class="hljs-comment">// existing submissions</span>
        
        <span class="hljs-punctuation">{</span>
            <span class="hljs-attr">&quot;username&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;&lt;your-username&gt;&quot;</span><span class="hljs-punctuation">,</span>
            <span class="hljs-attr">&quot;model_name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;&lt;your-model-name&gt;&quot;</span><span class="hljs-punctuation">,</span> 
            <span class="hljs-attr">&quot;chapter&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;3&quot;</span><span class="hljs-punctuation">,</span>
            <span class="hljs-attr">&quot;method&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;DPO&quot;</span><span class="hljs-punctuation">,</span>
            <span class="hljs-attr">&quot;submission_date&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;&lt;your-submission-date&gt;&quot;</span><span class="hljs-punctuation">,</span>
            <span class="hljs-attr">&quot;results-dataset&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;&lt;your-results-dataset&gt;&quot;</span><span class="hljs-punctuation">,</span>
            <span class="hljs-attr">&quot;base_model&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;HuggingFaceTB/SmolLM3-3B&quot;</span><span class="hljs-punctuation">,</span>
            <span class="hljs-attr">&quot;preference_dataset&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;Anthropic/hh-rlhf&quot;</span>
        <span class="hljs-punctuation">}</span>
    <span class="hljs-punctuation">]</span>
<span class="hljs-punctuation">}</span>`,wrap:!1}}),Y=new T({props:{title:"Share your training and evaluation commands in the PR text.",local:"share-your-training-and-evaluation-commands-in-the-pr-text",headingTag:"h3"}}),G=new T({props:{title:"Wait for the PR to be merged",local:"wait-for-the-pr-to-be-merged",headingTag:"h3"}}),z=new T({props:{title:"Test your knowledge",local:"test-your-knowledge",headingTag:"h2"}}),S=new T({props:{title:"Resources and Further Reading",local:"resources-and-further-reading",headingTag:"h2"}}),D=new Te({props:{source:"https://github.com/huggingface/smol-course/blob/main/units/en/unit2/4.md"}}),{c(){c=i("meta"),tt=n(),Q=i("p"),et=n(),r(f.$$.fragment),lt=n(),g=i("p"),g.textContent=Zt,at=n(),j=i("ol"),j.innerHTML=Yt,nt=n(),J=i("p"),J.textContent=Rt,st=n(),r(b.$$.fragment),it=n(),U=i("p"),U.textContent=Gt,ot=n(),I=i("ul"),I.innerHTML=Ft,ut=n(),$=i("p"),$.innerHTML=zt,rt=n(),r(C.$$.fragment),pt=n(),v=i("p"),v.innerHTML=Xt,ht=n(),r(A.$$.fragment),dt=n(),r(W.$$.fragment),Mt=n(),L=i("p"),L.innerHTML=St,mt=n(),r(q.$$.fragment),Tt=n(),H=i("p"),H.innerHTML=Vt,ct=n(),w=i("blockquote"),w.innerHTML=Ot,wt=n(),r(_.$$.fragment),yt=n(),x=i("p"),x.innerHTML=Dt,ft=n(),y=i("blockquote"),y.innerHTML=Qt,gt=n(),r(N.$$.fragment),jt=n(),E=i("p"),E.textContent=Kt,Jt=n(),B=i("ol"),B.innerHTML=te,bt=n(),r(k.$$.fragment),Ut=n(),P=i("p"),P.innerHTML=ee,It=n(),r(Z.$$.fragment),$t=n(),r(Y.$$.fragment),Ct=n(),R=i("p"),R.textContent=le,vt=n(),r(G.$$.fragment),At=n(),F=i("p"),F.innerHTML=ae,Wt=n(),r(z.$$.fragment),Lt=n(),X=i("p"),X.innerHTML=ne,qt=n(),r(S.$$.fragment),Ht=n(),V=i("ul"),V.innerHTML=se,_t=n(),O=i("p"),O.textContent=ie,xt=n(),r(D.$$.fragment),Nt=n(),K=i("p"),this.h()},l(t){const e=Me("svelte-u9bgzb",document.head);c=o(e,"META",{name:!0,content:!0}),e.forEach(l),tt=s(t),Q=o(t,"P",{}),oe(Q).forEach(l),et=s(t),p(f.$$.fragment,t),lt=s(t),g=o(t,"P",{"data-svelte-h":!0}),u(g)!=="svelte-a8tqk0"&&(g.textContent=Zt),at=s(t),j=o(t,"OL",{"data-svelte-h":!0}),u(j)!=="svelte-1o2cbb5"&&(j.innerHTML=Yt),nt=s(t),J=o(t,"P",{"data-svelte-h":!0}),u(J)!=="svelte-1qwargy"&&(J.textContent=Rt),st=s(t),p(b.$$.fragment,t),it=s(t),U=o(t,"P",{"data-svelte-h":!0}),u(U)!=="svelte-vp3ys2"&&(U.textContent=Gt),ot=s(t),I=o(t,"UL",{"data-svelte-h":!0}),u(I)!=="svelte-4pml94"&&(I.innerHTML=Ft),ut=s(t),$=o(t,"P",{"data-svelte-h":!0}),u($)!=="svelte-t76afp"&&($.innerHTML=zt),rt=s(t),p(C.$$.fragment,t),pt=s(t),v=o(t,"P",{"data-svelte-h":!0}),u(v)!=="svelte-18djdd1"&&(v.innerHTML=Xt),ht=s(t),p(A.$$.fragment,t),dt=s(t),p(W.$$.fragment,t),Mt=s(t),L=o(t,"P",{"data-svelte-h":!0}),u(L)!=="svelte-1o1ar0u"&&(L.innerHTML=St),mt=s(t),p(q.$$.fragment,t),Tt=s(t),H=o(t,"P",{"data-svelte-h":!0}),u(H)!=="svelte-z55s4b"&&(H.innerHTML=Vt),ct=s(t),w=o(t,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),u(w)!=="svelte-1mlooy6"&&(w.innerHTML=Ot),wt=s(t),p(_.$$.fragment,t),yt=s(t),x=o(t,"P",{"data-svelte-h":!0}),u(x)!=="svelte-1vqdtp1"&&(x.innerHTML=Dt),ft=s(t),y=o(t,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),u(y)!=="svelte-16w157s"&&(y.innerHTML=Qt),gt=s(t),p(N.$$.fragment,t),jt=s(t),E=o(t,"P",{"data-svelte-h":!0}),u(E)!=="svelte-dclmpj"&&(E.textContent=Kt),Jt=s(t),B=o(t,"OL",{"data-svelte-h":!0}),u(B)!=="svelte-11sbuys"&&(B.innerHTML=te),bt=s(t),p(k.$$.fragment,t),Ut=s(t),P=o(t,"P",{"data-svelte-h":!0}),u(P)!=="svelte-vduzj7"&&(P.innerHTML=ee),It=s(t),p(Z.$$.fragment,t),$t=s(t),p(Y.$$.fragment,t),Ct=s(t),R=o(t,"P",{"data-svelte-h":!0}),u(R)!=="svelte-1hm8pcp"&&(R.textContent=le),vt=s(t),p(G.$$.fragment,t),At=s(t),F=o(t,"P",{"data-svelte-h":!0}),u(F)!=="svelte-173fjg4"&&(F.innerHTML=ae),Wt=s(t),p(z.$$.fragment,t),Lt=s(t),X=o(t,"P",{"data-svelte-h":!0}),u(X)!=="svelte-1enj7aa"&&(X.innerHTML=ne),qt=s(t),p(S.$$.fragment,t),Ht=s(t),V=o(t,"UL",{"data-svelte-h":!0}),u(V)!=="svelte-t7e7ih"&&(V.innerHTML=se),_t=s(t),O=o(t,"P",{"data-svelte-h":!0}),u(O)!=="svelte-13gjevs"&&(O.textContent=ie),xt=s(t),p(D.$$.fragment,t),Nt=s(t),K=o(t,"P",{}),oe(K).forEach(l),this.h()},h(){Bt(c,"name","hf:doc:metadata"),Bt(c,"content",we),Bt(w,"class","tip"),Bt(y,"class","tip")},m(t,e){me(document.head,c),a(t,tt,e),a(t,Q,e),a(t,et,e),h(f,t,e),a(t,lt,e),a(t,g,e),a(t,at,e),a(t,j,e),a(t,nt,e),a(t,J,e),a(t,st,e),h(b,t,e),a(t,it,e),a(t,U,e),a(t,ot,e),a(t,I,e),a(t,ut,e),a(t,$,e),a(t,rt,e),h(C,t,e),a(t,pt,e),a(t,v,e),a(t,ht,e),h(A,t,e),a(t,dt,e),h(W,t,e),a(t,Mt,e),a(t,L,e),a(t,mt,e),h(q,t,e),a(t,Tt,e),a(t,H,e),a(t,ct,e),a(t,w,e),a(t,wt,e),h(_,t,e),a(t,yt,e),a(t,x,e),a(t,ft,e),a(t,y,e),a(t,gt,e),h(N,t,e),a(t,jt,e),a(t,E,e),a(t,Jt,e),a(t,B,e),a(t,bt,e),h(k,t,e),a(t,Ut,e),a(t,P,e),a(t,It,e),h(Z,t,e),a(t,$t,e),h(Y,t,e),a(t,Ct,e),a(t,R,e),a(t,vt,e),h(G,t,e),a(t,At,e),a(t,F,e),a(t,Wt,e),h(z,t,e),a(t,Lt,e),a(t,X,e),a(t,qt,e),h(S,t,e),a(t,Ht,e),a(t,V,e),a(t,_t,e),a(t,O,e),a(t,xt,e),h(D,t,e),a(t,Nt,e),a(t,K,e),Et=!0},p:re,i(t){Et||(d(f.$$.fragment,t),d(b.$$.fragment,t),d(C.$$.fragment,t),d(A.$$.fragment,t),d(W.$$.fragment,t),d(q.$$.fragment,t),d(_.$$.fragment,t),d(N.$$.fragment,t),d(k.$$.fragment,t),d(Z.$$.fragment,t),d(Y.$$.fragment,t),d(G.$$.fragment,t),d(z.$$.fragment,t),d(S.$$.fragment,t),d(D.$$.fragment,t),Et=!0)},o(t){M(f.$$.fragment,t),M(b.$$.fragment,t),M(C.$$.fragment,t),M(A.$$.fragment,t),M(W.$$.fragment,t),M(q.$$.fragment,t),M(_.$$.fragment,t),M(N.$$.fragment,t),M(k.$$.fragment,t),M(Z.$$.fragment,t),M(Y.$$.fragment,t),M(G.$$.fragment,t),M(z.$$.fragment,t),M(S.$$.fragment,t),M(D.$$.fragment,t),Et=!1},d(t){t&&(l(tt),l(Q),l(et),l(lt),l(g),l(at),l(j),l(nt),l(J),l(st),l(it),l(U),l(ot),l(I),l(ut),l($),l(rt),l(pt),l(v),l(ht),l(dt),l(Mt),l(L),l(mt),l(Tt),l(H),l(ct),l(w),l(wt),l(yt),l(x),l(ft),l(y),l(gt),l(jt),l(E),l(Jt),l(B),l(bt),l(Ut),l(P),l(It),l($t),l(Ct),l(R),l(vt),l(At),l(F),l(Wt),l(Lt),l(X),l(qt),l(Ht),l(V),l(_t),l(O),l(xt),l(Nt),l(K)),l(c),m(f,t),m(b,t),m(C,t),m(A,t),m(W,t),m(q,t),m(_,t),m(N,t),m(k,t),m(Z,t),m(Y,t),m(G,t),m(z,t),m(S,t),m(D,t)}}}const we='{"title":"Submit your final project!","local":"submit-your-final-project","sections":[{"title":"1. Read the written guide for the chapter and 2. Train a model using what you learned in the chapter.","local":"1-read-the-written-guide-for-the-chapter-and-2-train-a-model-using-what-you-learned-in-the-chapter","sections":[],"depth":2},{"title":"3. Push the model to the Hugging Face Hub","local":"3-push-the-model-to-the-hugging-face-hub","sections":[{"title":"DPO Training with Hub Upload:","local":"dpo-training-with-hub-upload","sections":[],"depth":3}],"depth":2},{"title":"4. Evaluate the model using hf jobs","local":"4-evaluate-the-model-using-hf-jobs","sections":[],"depth":2},{"title":"5. Open a pull request on the leaderboard space","local":"5-open-a-pull-request-on-the-leaderboard-space","sections":[{"title":"Add your model’s results to submissions.json","local":"add-your-models-results-to-submissionsjson","sections":[],"depth":3},{"title":"Share your training and evaluation commands in the PR text.","local":"share-your-training-and-evaluation-commands-in-the-pr-text","sections":[],"depth":3},{"title":"Wait for the PR to be merged","local":"wait-for-the-pr-to-be-merged","sections":[],"depth":3}],"depth":2},{"title":"Test your knowledge","local":"test-your-knowledge","sections":[],"depth":2},{"title":"Resources and Further Reading","local":"resources-and-further-reading","sections":[],"depth":2}],"depth":1}';function ye(Pt){return pe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class be extends he{constructor(c){super(),de(this,c,ye,ce,ue,{})}}export{be as component};
