import{s as Q,n as W,o as X}from"../chunks/scheduler.1f027d5a.js";import{S as Z,i as tt,e as s,s as i,c as v,h as et,a as r,d as n,b as a,f as K,g as w,j as C,k as N,l as nt,m as o,n as L,t as x,o as T,p as M}from"../chunks/index.cedebf1a.js";import{C as ot}from"../chunks/CopyLLMTxtMenu.9763f102.js";import{H as U,E as it}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.71ce9e32.js";function at(j){let l,P,k,y,m,A,u,E,p,q=`The Open-Source AI Cookbook is a collection of notebooks illustrating practical aspects of building AI
applications and solving various machine learning tasks using open-source tools and models.`,O,f,R,c,V="Check out the recently added notebooks:",H,g,Y='<li><a href="dspy_gepa">Optimizing Language Models with DSPy GEPA</a></li> <li><a href="grpo_vllm_online_training">Efficient Online Training with GRPO and vLLM in TRL</a></li> <li><a href="function_calling_fine_tuning_llms_on_xlam">Fine-tuning LLMs for Function Calling with the xLAM Dataset</a></li> <li><a href="fine_tuning_vlm_grpo_trl">Post training an VLM for reasoning with GRPO using TRL</a></li> <li><a href="trl_grpo_reasoning_advanced_reward">TRL GRPO Reasoning with Advanced Reward</a></li>',S,h,B='You can also check out the notebooks in the cookbook’s <a href="https://github.com/huggingface/cookbook" rel="nofollow">GitHub repo</a>.',G,$,I,b,J=`The Open-Source AI Cookbook is a community effort, and we welcome contributions from everyone!
Check out the cookbook’s <a href="https://github.com/huggingface/cookbook/blob/main/README.md" rel="nofollow">Contribution guide</a> to learn
how you can add your “recipe”.`,z,_,D,d,F;return m=new ot({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),u=new U({props:{title:"Open-Source AI Cookbook",local:"open-source-ai-cookbook",headingTag:"h1"}}),f=new U({props:{title:"Latest notebooks",local:"latest-notebooks",headingTag:"h2"}}),$=new U({props:{title:"Contributing",local:"contributing",headingTag:"h2"}}),_=new it({props:{source:"https://github.com/huggingface/cookbook/blob/main/notebooks/en/index.md"}}),{c(){l=s("meta"),P=i(),k=s("p"),y=i(),v(m.$$.fragment),A=i(),v(u.$$.fragment),E=i(),p=s("p"),p.textContent=q,O=i(),v(f.$$.fragment),R=i(),c=s("p"),c.textContent=V,H=i(),g=s("ul"),g.innerHTML=Y,S=i(),h=s("p"),h.innerHTML=B,G=i(),v($.$$.fragment),I=i(),b=s("p"),b.innerHTML=J,z=i(),v(_.$$.fragment),D=i(),d=s("p"),this.h()},l(t){const e=et("svelte-u9bgzb",document.head);l=r(e,"META",{name:!0,content:!0}),e.forEach(n),P=a(t),k=r(t,"P",{}),K(k).forEach(n),y=a(t),w(m.$$.fragment,t),A=a(t),w(u.$$.fragment,t),E=a(t),p=r(t,"P",{"data-svelte-h":!0}),C(p)!=="svelte-172bkh9"&&(p.textContent=q),O=a(t),w(f.$$.fragment,t),R=a(t),c=r(t,"P",{"data-svelte-h":!0}),C(c)!=="svelte-1ledt9t"&&(c.textContent=V),H=a(t),g=r(t,"UL",{"data-svelte-h":!0}),C(g)!=="svelte-1l5m6gi"&&(g.innerHTML=Y),S=a(t),h=r(t,"P",{"data-svelte-h":!0}),C(h)!=="svelte-rkum7e"&&(h.innerHTML=B),G=a(t),w($.$$.fragment,t),I=a(t),b=r(t,"P",{"data-svelte-h":!0}),C(b)!=="svelte-1l0twh0"&&(b.innerHTML=J),z=a(t),w(_.$$.fragment,t),D=a(t),d=r(t,"P",{}),K(d).forEach(n),this.h()},h(){N(l,"name","hf:doc:metadata"),N(l,"content",lt)},m(t,e){nt(document.head,l),o(t,P,e),o(t,k,e),o(t,y,e),L(m,t,e),o(t,A,e),L(u,t,e),o(t,E,e),o(t,p,e),o(t,O,e),L(f,t,e),o(t,R,e),o(t,c,e),o(t,H,e),o(t,g,e),o(t,S,e),o(t,h,e),o(t,G,e),L($,t,e),o(t,I,e),o(t,b,e),o(t,z,e),L(_,t,e),o(t,D,e),o(t,d,e),F=!0},p:W,i(t){F||(x(m.$$.fragment,t),x(u.$$.fragment,t),x(f.$$.fragment,t),x($.$$.fragment,t),x(_.$$.fragment,t),F=!0)},o(t){T(m.$$.fragment,t),T(u.$$.fragment,t),T(f.$$.fragment,t),T($.$$.fragment,t),T(_.$$.fragment,t),F=!1},d(t){t&&(n(P),n(k),n(y),n(A),n(E),n(p),n(O),n(R),n(c),n(H),n(g),n(S),n(h),n(G),n(I),n(b),n(z),n(D),n(d)),n(l),M(m,t),M(u,t),M(f,t),M($,t),M(_,t)}}}const lt='{"title":"Open-Source AI Cookbook","local":"open-source-ai-cookbook","sections":[{"title":"Latest notebooks","local":"latest-notebooks","sections":[],"depth":2},{"title":"Contributing","local":"contributing","sections":[],"depth":2}],"depth":1}';function st(j){return X(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ft extends Z{constructor(l){super(),tt(this,l,st,at,Q,{})}}export{ft as component};
