import{s as pe,o as he,n as re}from"../chunks/scheduler.3e4cb221.js";import{S as de,i as me,g as o,s as a,r as p,A as Me,h as u,f as l,c as s,j as ie,u as h,x as r,k as oe,y as Te,a as n,v as d,d as m,t as M,w as T}from"../chunks/index.e1c70545.js";import{T as ue}from"../chunks/Tip.31fd538c.js";import{C as Bt}from"../chunks/CodeBlock.72e9ab19.js";import{H as y,E as ce}from"../chunks/getInferenceSnippets.25162521.js";function fe(lt){let i,j="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.";return{c(){i=o("p"),i.innerHTML=j},l(c){i=u(c,"P",{"data-svelte-h":!0}),r(i)!=="svelte-1vs1ful"&&(i.innerHTML=j)},m(c,f){n(c,i,f)},p:re,d(c){c&&l(i)}}}function we(lt){let i,j="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:",c,f,J="<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>";return{c(){i=o("p"),i.textContent=j,c=a(),f=o("ul"),f.innerHTML=J},l(w){i=u(w,"P",{"data-svelte-h":!0}),r(i)!=="svelte-1ifeji6"&&(i.textContent=j),c=s(w),f=u(w,"UL",{"data-svelte-h":!0}),r(f)!=="svelte-sr7jek"&&(f.innerHTML=J)},m(w,g){n(w,i,g),n(w,c,g),n(w,f,g)},p:re,d(w){w&&(l(i),l(c),l(f))}}}function ge(lt){let i,j,c,f,J,w,g,kt="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,U,Zt="<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>",st,I,Yt="On this page we will go through each step.",it,C,ot,v,Rt="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:",ut,A,Gt='<li><a href="./4">DPO Training Exercise</a> - Complete DPO training guide with SmolLM3</li>',rt,W,Ft='You’ll need to combine this with <a href="../unit1/5">Training with Hugging Face Jobs</a> techniques from Unit 1.',pt,L,ht,_,zt="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.",dt,H,mt,x,Mt,q,Xt='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>.',Tt,N,ct,E,St="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.",ft,b,wt,P,gt,B,Vt="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.",yt,$,jt,k,Jt,Z,Dt="You are now ready to submit your DPO-aligned model to the leaderboard! You need to do two things:",bt,Y,Ot="<li>Add your model’s results to <code>submissions.json</code></li> <li>Share your training and evaluation commands in the PR text.</li>",$t,R,Ut,G,Qt='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,F,Ct,z,vt,X,Kt="Within the PR text, share both your training and evaluation commands.",At,S,Wt,V,te='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>.',Lt,D,_t,O,ee=`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>.`,Ht,Q,xt,K,le='<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>',qt,tt,ne="Good luck with your DPO preference alignment submission! 🚀",Nt,et,Et,nt,Pt;return J=new y({props:{title:"Submit your final project!",local:"submit-your-final-project",headingTag:"h1"}}),C=new y({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"}}),L=new y({props:{title:"3. Push the model to the Hugging Face Hub",local:"3-push-the-model-to-the-hugging-face-hub",headingTag:"h2"}}),H=new y({props:{title:"DPO Training with Hub Upload:",local:"dpo-training-with-hub-upload",headingTag:"h3"}}),x=new Bt({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}}),N=new y({props:{title:"4. Evaluate the model using hf jobs",local:"4-evaluate-the-model-using-hf-jobs",headingTag:"h2"}}),b=new ue({props:{$$slots:{default:[fe]},$$scope:{ctx:lt}}}),P=new Bt({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}}),$=new ue({props:{$$slots:{default:[we]},$$scope:{ctx:lt}}}),k=new y({props:{title:"5. Open a pull request on the leaderboard space",local:"5-open-a-pull-request-on-the-leaderboard-space",headingTag:"h2"}}),R=new y({props:{title:"Add your model’s results to submissions.json",local:"add-your-models-results-to-submissionsjson",headingTag:"h3"}}),F=new Bt({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}}),z=new y({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"}}),S=new y({props:{title:"Wait for the PR to be merged",local:"wait-for-the-pr-to-be-merged",headingTag:"h3"}}),D=new y({props:{title:"Test your knowledge",local:"test-your-knowledge",headingTag:"h2"}}),Q=new y({props:{title:"Resources and Further Reading",local:"resources-and-further-reading",headingTag:"h2"}}),et=new ce({props:{source:"https://github.com/huggingface/smol-course/blob/main/units/en/unit2/4.md"}}),{c(){i=o("meta"),j=a(),c=o("p"),f=a(),p(J.$$.fragment),w=a(),g=o("p"),g.textContent=kt,at=a(),U=o("ol"),U.innerHTML=Zt,st=a(),I=o("p"),I.textContent=Yt,it=a(),p(C.$$.fragment),ot=a(),v=o("p"),v.textContent=Rt,ut=a(),A=o("ul"),A.innerHTML=Gt,rt=a(),W=o("p"),W.innerHTML=Ft,pt=a(),p(L.$$.fragment),ht=a(),_=o("p"),_.innerHTML=zt,dt=a(),p(H.$$.fragment),mt=a(),p(x.$$.fragment),Mt=a(),q=o("p"),q.innerHTML=Xt,Tt=a(),p(N.$$.fragment),ct=a(),E=o("p"),E.innerHTML=St,ft=a(),p(b.$$.fragment),wt=a(),p(P.$$.fragment),gt=a(),B=o("p"),B.innerHTML=Vt,yt=a(),p($.$$.fragment),jt=a(),p(k.$$.fragment),Jt=a(),Z=o("p"),Z.textContent=Dt,bt=a(),Y=o("ol"),Y.innerHTML=Ot,$t=a(),p(R.$$.fragment),Ut=a(),G=o("p"),G.innerHTML=Qt,It=a(),p(F.$$.fragment),Ct=a(),p(z.$$.fragment),vt=a(),X=o("p"),X.textContent=Kt,At=a(),p(S.$$.fragment),Wt=a(),V=o("p"),V.innerHTML=te,Lt=a(),p(D.$$.fragment),_t=a(),O=o("p"),O.innerHTML=ee,Ht=a(),p(Q.$$.fragment),xt=a(),K=o("ul"),K.innerHTML=le,qt=a(),tt=o("p"),tt.textContent=ne,Nt=a(),p(et.$$.fragment),Et=a(),nt=o("p"),this.h()},l(t){const e=Me("svelte-u9bgzb",document.head);i=u(e,"META",{name:!0,content:!0}),e.forEach(l),j=s(t),c=u(t,"P",{}),ie(c).forEach(l),f=s(t),h(J.$$.fragment,t),w=s(t),g=u(t,"P",{"data-svelte-h":!0}),r(g)!=="svelte-a8tqk0"&&(g.textContent=kt),at=s(t),U=u(t,"OL",{"data-svelte-h":!0}),r(U)!=="svelte-1o2cbb5"&&(U.innerHTML=Zt),st=s(t),I=u(t,"P",{"data-svelte-h":!0}),r(I)!=="svelte-1qwargy"&&(I.textContent=Yt),it=s(t),h(C.$$.fragment,t),ot=s(t),v=u(t,"P",{"data-svelte-h":!0}),r(v)!=="svelte-vp3ys2"&&(v.textContent=Rt),ut=s(t),A=u(t,"UL",{"data-svelte-h":!0}),r(A)!=="svelte-4pml94"&&(A.innerHTML=Gt),rt=s(t),W=u(t,"P",{"data-svelte-h":!0}),r(W)!=="svelte-t76afp"&&(W.innerHTML=Ft),pt=s(t),h(L.$$.fragment,t),ht=s(t),_=u(t,"P",{"data-svelte-h":!0}),r(_)!=="svelte-18djdd1"&&(_.innerHTML=zt),dt=s(t),h(H.$$.fragment,t),mt=s(t),h(x.$$.fragment,t),Mt=s(t),q=u(t,"P",{"data-svelte-h":!0}),r(q)!=="svelte-1o1ar0u"&&(q.innerHTML=Xt),Tt=s(t),h(N.$$.fragment,t),ct=s(t),E=u(t,"P",{"data-svelte-h":!0}),r(E)!=="svelte-z55s4b"&&(E.innerHTML=St),ft=s(t),h(b.$$.fragment,t),wt=s(t),h(P.$$.fragment,t),gt=s(t),B=u(t,"P",{"data-svelte-h":!0}),r(B)!=="svelte-1vqdtp1"&&(B.innerHTML=Vt),yt=s(t),h($.$$.fragment,t),jt=s(t),h(k.$$.fragment,t),Jt=s(t),Z=u(t,"P",{"data-svelte-h":!0}),r(Z)!=="svelte-dclmpj"&&(Z.textContent=Dt),bt=s(t),Y=u(t,"OL",{"data-svelte-h":!0}),r(Y)!=="svelte-11sbuys"&&(Y.innerHTML=Ot),$t=s(t),h(R.$$.fragment,t),Ut=s(t),G=u(t,"P",{"data-svelte-h":!0}),r(G)!=="svelte-vduzj7"&&(G.innerHTML=Qt),It=s(t),h(F.$$.fragment,t),Ct=s(t),h(z.$$.fragment,t),vt=s(t),X=u(t,"P",{"data-svelte-h":!0}),r(X)!=="svelte-1hm8pcp"&&(X.textContent=Kt),At=s(t),h(S.$$.fragment,t),Wt=s(t),V=u(t,"P",{"data-svelte-h":!0}),r(V)!=="svelte-173fjg4"&&(V.innerHTML=te),Lt=s(t),h(D.$$.fragment,t),_t=s(t),O=u(t,"P",{"data-svelte-h":!0}),r(O)!=="svelte-1enj7aa"&&(O.innerHTML=ee),Ht=s(t),h(Q.$$.fragment,t),xt=s(t),K=u(t,"UL",{"data-svelte-h":!0}),r(K)!=="svelte-t7e7ih"&&(K.innerHTML=le),qt=s(t),tt=u(t,"P",{"data-svelte-h":!0}),r(tt)!=="svelte-13gjevs"&&(tt.textContent=ne),Nt=s(t),h(et.$$.fragment,t),Et=s(t),nt=u(t,"P",{}),ie(nt).forEach(l),this.h()},h(){oe(i,"name","hf:doc:metadata"),oe(i,"content",ye)},m(t,e){Te(document.head,i),n(t,j,e),n(t,c,e),n(t,f,e),d(J,t,e),n(t,w,e),n(t,g,e),n(t,at,e),n(t,U,e),n(t,st,e),n(t,I,e),n(t,it,e),d(C,t,e),n(t,ot,e),n(t,v,e),n(t,ut,e),n(t,A,e),n(t,rt,e),n(t,W,e),n(t,pt,e),d(L,t,e),n(t,ht,e),n(t,_,e),n(t,dt,e),d(H,t,e),n(t,mt,e),d(x,t,e),n(t,Mt,e),n(t,q,e),n(t,Tt,e),d(N,t,e),n(t,ct,e),n(t,E,e),n(t,ft,e),d(b,t,e),n(t,wt,e),d(P,t,e),n(t,gt,e),n(t,B,e),n(t,yt,e),d($,t,e),n(t,jt,e),d(k,t,e),n(t,Jt,e),n(t,Z,e),n(t,bt,e),n(t,Y,e),n(t,$t,e),d(R,t,e),n(t,Ut,e),n(t,G,e),n(t,It,e),d(F,t,e),n(t,Ct,e),d(z,t,e),n(t,vt,e),n(t,X,e),n(t,At,e),d(S,t,e),n(t,Wt,e),n(t,V,e),n(t,Lt,e),d(D,t,e),n(t,_t,e),n(t,O,e),n(t,Ht,e),d(Q,t,e),n(t,xt,e),n(t,K,e),n(t,qt,e),n(t,tt,e),n(t,Nt,e),d(et,t,e),n(t,Et,e),n(t,nt,e),Pt=!0},p(t,[e]){const ae={};e&2&&(ae.$$scope={dirty:e,ctx:t}),b.$set(ae);const se={};e&2&&(se.$$scope={dirty:e,ctx:t}),$.$set(se)},i(t){Pt||(m(J.$$.fragment,t),m(C.$$.fragment,t),m(L.$$.fragment,t),m(H.$$.fragment,t),m(x.$$.fragment,t),m(N.$$.fragment,t),m(b.$$.fragment,t),m(P.$$.fragment,t),m($.$$.fragment,t),m(k.$$.fragment,t),m(R.$$.fragment,t),m(F.$$.fragment,t),m(z.$$.fragment,t),m(S.$$.fragment,t),m(D.$$.fragment,t),m(Q.$$.fragment,t),m(et.$$.fragment,t),Pt=!0)},o(t){M(J.$$.fragment,t),M(C.$$.fragment,t),M(L.$$.fragment,t),M(H.$$.fragment,t),M(x.$$.fragment,t),M(N.$$.fragment,t),M(b.$$.fragment,t),M(P.$$.fragment,t),M($.$$.fragment,t),M(k.$$.fragment,t),M(R.$$.fragment,t),M(F.$$.fragment,t),M(z.$$.fragment,t),M(S.$$.fragment,t),M(D.$$.fragment,t),M(Q.$$.fragment,t),M(et.$$.fragment,t),Pt=!1},d(t){t&&(l(j),l(c),l(f),l(w),l(g),l(at),l(U),l(st),l(I),l(it),l(ot),l(v),l(ut),l(A),l(rt),l(W),l(pt),l(ht),l(_),l(dt),l(mt),l(Mt),l(q),l(Tt),l(ct),l(E),l(ft),l(wt),l(gt),l(B),l(yt),l(jt),l(Jt),l(Z),l(bt),l(Y),l($t),l(Ut),l(G),l(It),l(Ct),l(vt),l(X),l(At),l(Wt),l(V),l(Lt),l(_t),l(O),l(Ht),l(xt),l(K),l(qt),l(tt),l(Nt),l(Et),l(nt)),l(i),T(J,t),T(C,t),T(L,t),T(H,t),T(x,t),T(N,t),T(b,t),T(P,t),T($,t),T(k,t),T(R,t),T(F,t),T(z,t),T(S,t),T(D,t),T(Q,t),T(et,t)}}}const ye='{"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 je(lt){return he(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ce extends de{constructor(i){super(),me(this,i,je,ge,pe,{})}}export{Ce as component};
