import{S as Wo,i as Fo,s as Oo,e as a,k as u,w as b,t as r,N as Zo,c as o,d as l,m as f,a as s,x as w,h as i,b as d,G as t,g as h,y,L as Do,q as _,o as g,B as E,v as No}from"../chunks/vendor-hf-doc-builder.js";import{I as Ae}from"../chunks/IconCopyLink-hf-doc-builder.js";import{C as Xt}from"../chunks/CodeBlock-hf-doc-builder.js";function Go(Fa){let M,dt,I,U,Te,D,Qt,$e,Vt,ct,N,Ue,zt,Kt,pt,j,C,Ce,G,el,Le,tl,mt,L,ll,q,al,ol,vt,se,sl,bt,m,ke,rl,il,Se,nl,hl,Be,ul,fl,He,dl,wt,J,k,Pe,R,cl,Ye,pl,yt,S,ml,xe,vl,bl,_t,B,re,We,wl,yl,_l,ie,Fe,gl,El,gt,X,Et,A,H,Oe,Q,Ml,Ze,Il,Mt,V,It,ne,jl,jt,P,he,De,Jl,Al,Tl,ue,Ne,$l,Ul,Jt,T,Y,Ge,z,Cl,qe,Ll,At,fe,de,Re,kl,Sl,Tt,K,$t,ce,Bl,Ut,c,pe,Xe,Hl,Pl,Yl,me,Qe,xl,Wl,Fl,ve,Ve,Ol,Zl,Dl,be,ze,Nl,Gl,ql,x,Ke,Rl,Xl,et,Ql,Vl,zl,we,tt,Kl,ea,ta,ye,lt,la,aa,Ct,ee,_e,at,oa,sa,Lt,te,kt,ge,ra,St,v,W,ot,ia,na,st,ha,ua,fa,Ee,rt,da,ca,pa,Me,it,ma,va,Bt,$,F,nt,le,ba,ht,wa,Ht,O,Ie,ya,ae,_a,ga,je,Ea,oe,Ma,Pt;return D=new Ae({}),G=new Ae({}),R=new Ae({}),X=new Xt({props:{code:"cGlwJTIwaW5zdGFsbCUyMHN0YWJsZS1iYXNlbGluZXMzJTBBcGlwJTIwaW5zdGFsbCUyMGh1Z2dpbmdmYWNlLXNiMw==",highlighted:`pip <span class="hljs-keyword">install </span>stable-<span class="hljs-keyword">baselines3
</span>pip <span class="hljs-keyword">install </span>huggingface-<span class="hljs-keyword">sb3</span>`}}),Q=new Ae({}),V=new Xt({props:{code:"Y2hlY2twb2ludCUyMCUzRCUyMGxvYWRfZnJvbV9odWIoJTBBJTIwJTIwJTIwJTIwcmVwb19pZCUzRCUyMnNiMyUyRmRlbW8taGYtQ2FydFBvbGUtdjElMjIlMkMlMEElMjAlMjAlMjAlMjBmaWxlbmFtZSUzRCUyMnBwby1DYXJ0UG9sZS12MS56aXAlMjIlMkMlMEEp",highlighted:`<span class="hljs-keyword">checkpoint</span> = load_from_hub(
    repo_id=&quot;sb3/demo-hf-CartPole-v1&quot;,
    filename=&quot;ppo-CartPole-v1.zip&quot;,
)`}}),z=new Ae({}),K=new Xt({props:{code:"cGFja2FnZV90b19odWIobW9kZWwlM0Rtb2RlbCUyQyUyMCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMG1vZGVsX25hbWUlM0QlMjJwcG8tTHVuYXJMYW5kZXItdjIlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBtb2RlbF9hcmNoaXRlY3R1cmUlM0QlMjJQUE8lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlbnZfaWQlM0RlbnZfaWQlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBldmFsX2VudiUzRGV2YWxfZW52JTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmVwb19pZCUzRCUyMlRob21hc1NpbW9uaW5pJTJGcHBvLUx1bmFyTGFuZGVyLXYyJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwY29tbWl0X21lc3NhZ2UlM0QlMjJUZXN0JTIwY29tbWl0JTIyKQ==",highlighted:`package_to_hub(<span class="hljs-attribute">model</span>=model, 
               <span class="hljs-attribute">model_name</span>=<span class="hljs-string">&quot;ppo-LunarLander-v2&quot;</span>,
               <span class="hljs-attribute">model_architecture</span>=<span class="hljs-string">&quot;PPO&quot;</span>,
               <span class="hljs-attribute">env_id</span>=env_id,
               <span class="hljs-attribute">eval_env</span>=eval_env,
               <span class="hljs-attribute">repo_id</span>=<span class="hljs-string">&quot;ThomasSimonini/ppo-LunarLander-v2&quot;</span>,
               <span class="hljs-attribute">commit_message</span>=<span class="hljs-string">&quot;Test commit&quot;</span>)`}}),te=new Xt({props:{code:"cHVzaF90b19odWIoJTBBJTIwJTIwJTIwJTIwcmVwb19pZCUzRCUyMlRob21hc1NpbW9uaW5pJTJGcHBvLUx1bmFyTGFuZGVyLXYyJTIyJTJDJTBBJTIwJTIwJTIwJTIwZmlsZW5hbWUlM0QlMjJwcG8tTHVuYXJMYW5kZXItdjIuemlwJTIyJTJDJTBBJTIwJTIwJTIwJTIwY29tbWl0X21lc3NhZ2UlM0QlMjJBZGRlZCUyMEx1bmFyTGFuZGVyLXYyJTIwbW9kZWwlMjB0cmFpbmVkJTIwd2l0aCUyMFBQTyUyMiUyQyUwQSk=",highlighted:`push_to_hub(
    <span class="hljs-attribute">repo_id</span>=<span class="hljs-string">&quot;ThomasSimonini/ppo-LunarLander-v2&quot;</span>,
    <span class="hljs-attribute">filename</span>=<span class="hljs-string">&quot;ppo-LunarLander-v2.zip&quot;</span>,
    <span class="hljs-attribute">commit_message</span>=<span class="hljs-string">&quot;Added LunarLander-v2 model trained with PPO&quot;</span>,
)`}}),le=new Ae({}),{c(){M=a("meta"),dt=u(),I=a("h1"),U=a("a"),Te=a("span"),b(D.$$.fragment),Qt=u(),$e=a("span"),Vt=r("Using Stable-Baselines3 at Hugging Face"),ct=u(),N=a("p"),Ue=a("code"),zt=r("stable-baselines3"),Kt=r(" is a set of reliable implementations of reinforcement learning algorithms in PyTorch."),pt=u(),j=a("h2"),C=a("a"),Ce=a("span"),b(G.$$.fragment),el=u(),Le=a("span"),tl=r("Exploring Stable-Baselines3 in the Hub"),mt=u(),L=a("p"),ll=r("You can find Stable-Baselines3 models by filtering at the left of the "),q=a("a"),al=r("models page"),ol=r("."),vt=u(),se=a("p"),sl=r("All models on the Hub come up with useful features:"),bt=u(),m=a("ol"),ke=a("li"),rl=r("An automatically generated model card with a description, a training configuration, and more."),il=u(),Se=a("li"),nl=r("Metadata tags that help for discoverability."),hl=u(),Be=a("li"),ul=r("Evaluation results to compare with other models."),fl=u(),He=a("li"),dl=r("A video widget where you can watch your agent performing."),wt=u(),J=a("h2"),k=a("a"),Pe=a("span"),b(R.$$.fragment),cl=u(),Ye=a("span"),pl=r("Install the library"),yt=u(),S=a("p"),ml=r("To install the "),xe=a("code"),vl=r("stable-baselines3"),bl=r(" library, you need to install two packages:"),_t=u(),B=a("ul"),re=a("li"),We=a("code"),wl=r("stable-baselines3"),yl=r(": Stable-Baselines3 library."),_l=u(),ie=a("li"),Fe=a("code"),gl=r("huggingface-sb3"),El=r(": additional code to load and upload Stable-baselines3 models from the Hub."),gt=u(),b(X.$$.fragment),Et=u(),A=a("h2"),H=a("a"),Oe=a("span"),b(Q.$$.fragment),Ml=u(),Ze=a("span"),Il=r("Using existing models"),Mt=r(`

You can simply download a model from the Hub using the \`load_from_hub\` function

	`),b(V.$$.fragment),It=u(),ne=a("p"),jl=r("You need to define two parameters:"),jt=u(),P=a("ul"),he=a("li"),De=a("code"),Jl=r("--repo-id"),Al=r(": the name of the Hugging Face repo you want to download."),Tl=u(),ue=a("li"),Ne=a("code"),$l=r("--filename"),Ul=r(": the file you want to download."),Jt=u(),T=a("h2"),Y=a("a"),Ge=a("span"),b(z.$$.fragment),Cl=u(),qe=a("span"),Ll=r("Sharing your models"),At=r(`

You can easily upload your models using two different functions:
`),fe=a("ol"),de=a("li"),Re=a("code"),kl=r("package_to_hub()"),Sl=r(": save the model, evaluate it, generate a model card and record a replay video of your agent before pushing the complete repo to the Hub."),Tt=u(),b(K.$$.fragment),$t=u(),ce=a("p"),Bl=r("You need to define seven parameters:"),Ut=u(),c=a("ul"),pe=a("li"),Xe=a("code"),Hl=r("--model"),Pl=r(": your trained model."),Yl=u(),me=a("li"),Qe=a("code"),xl=r("--model_architecture"),Wl=r(": name of the architecture of your model (DQN, PPO, A2C, SAC\u2026)."),Fl=u(),ve=a("li"),Ve=a("code"),Ol=r("--env_id"),Zl=r(": name of the environment."),Dl=u(),be=a("li"),ze=a("code"),Nl=r("--eval_env"),Gl=r(": environment used to evaluate the agent."),ql=u(),x=a("li"),Ke=a("code"),Rl=r("--repo-id"),Xl=r(": the name of the Hugging Face repo you want to create or update. It\u2019s "),et=a("code"),Ql=r("<your huggingface username>/<the repo name>"),Vl=r("."),zl=u(),we=a("li"),tt=a("code"),Kl=r("--commit-message"),ea=r("."),ta=u(),ye=a("li"),lt=a("code"),la=r("--filename"),aa=r(": the file you want to push to the Hub."),Ct=u(),ee=a("ol"),_e=a("li"),at=a("code"),oa=r("push_to_hub()"),sa=r(": simply push a file to the Hub"),Lt=u(),b(te.$$.fragment),kt=u(),ge=a("p"),ra=r("You need to define three parameters:"),St=u(),v=a("ul"),W=a("li"),ot=a("code"),ia=r("--repo-id"),na=r(": the name of the Hugging Face repo you want to create or update. It\u2019s "),st=a("code"),ha=r("<your huggingface username>/<the repo name>"),ua=r("."),fa=u(),Ee=a("li"),rt=a("code"),da=r("--filename"),ca=r(": the file you want to push to the Hub."),pa=u(),Me=a("li"),it=a("code"),ma=r("--commit-message"),va=r("."),Bt=u(),$=a("h2"),F=a("a"),nt=a("span"),b(le.$$.fragment),ba=u(),ht=a("span"),wa=r("Additional resources"),Ht=u(),O=a("ul"),Ie=a("li"),ya=r("Hugging Face Stable-Baselines3 "),ae=a("a"),_a=r("documentation"),ga=u(),je=a("li"),Ea=r("Stable-Baselines3 "),oe=a("a"),Ma=r("documentation"),this.h()},l(e){const n=Zo('[data-svelte="svelte-1phssyn"]',document.head);M=o(n,"META",{name:!0,content:!0}),n.forEach(l),dt=f(e),I=o(e,"H1",{class:!0});var Yt=s(I);U=o(Yt,"A",{id:!0,class:!0,href:!0});var Oa=s(U);Te=o(Oa,"SPAN",{});var Za=s(Te);w(D.$$.fragment,Za),Za.forEach(l),Oa.forEach(l),Qt=f(Yt),$e=o(Yt,"SPAN",{});var Da=s($e);Vt=i(Da,"Using Stable-Baselines3 at Hugging Face"),Da.forEach(l),Yt.forEach(l),ct=f(e),N=o(e,"P",{});var Ia=s(N);Ue=o(Ia,"CODE",{});var Na=s(Ue);zt=i(Na,"stable-baselines3"),Na.forEach(l),Kt=i(Ia," is a set of reliable implementations of reinforcement learning algorithms in PyTorch."),Ia.forEach(l),pt=f(e),j=o(e,"H2",{class:!0});var xt=s(j);C=o(xt,"A",{id:!0,class:!0,href:!0});var Ga=s(C);Ce=o(Ga,"SPAN",{});var qa=s(Ce);w(G.$$.fragment,qa),qa.forEach(l),Ga.forEach(l),el=f(xt),Le=o(xt,"SPAN",{});var Ra=s(Le);tl=i(Ra,"Exploring Stable-Baselines3 in the Hub"),Ra.forEach(l),xt.forEach(l),mt=f(e),L=o(e,"P",{});var Wt=s(L);ll=i(Wt,"You can find Stable-Baselines3 models by filtering at the left of the "),q=o(Wt,"A",{href:!0,rel:!0});var Xa=s(q);al=i(Xa,"models page"),Xa.forEach(l),ol=i(Wt,"."),Wt.forEach(l),vt=f(e),se=o(e,"P",{});var Qa=s(se);sl=i(Qa,"All models on the Hub come up with useful features:"),Qa.forEach(l),bt=f(e),m=o(e,"OL",{});var Z=s(m);ke=o(Z,"LI",{});var Va=s(ke);rl=i(Va,"An automatically generated model card with a description, a training configuration, and more."),Va.forEach(l),il=f(Z),Se=o(Z,"LI",{});var za=s(Se);nl=i(za,"Metadata tags that help for discoverability."),za.forEach(l),hl=f(Z),Be=o(Z,"LI",{});var Ka=s(Be);ul=i(Ka,"Evaluation results to compare with other models."),Ka.forEach(l),fl=f(Z),He=o(Z,"LI",{});var eo=s(He);dl=i(eo,"A video widget where you can watch your agent performing."),eo.forEach(l),Z.forEach(l),wt=f(e),J=o(e,"H2",{class:!0});var Ft=s(J);k=o(Ft,"A",{id:!0,class:!0,href:!0});var to=s(k);Pe=o(to,"SPAN",{});var lo=s(Pe);w(R.$$.fragment,lo),lo.forEach(l),to.forEach(l),cl=f(Ft),Ye=o(Ft,"SPAN",{});var ao=s(Ye);pl=i(ao,"Install the library"),ao.forEach(l),Ft.forEach(l),yt=f(e),S=o(e,"P",{});var Ot=s(S);ml=i(Ot,"To install the "),xe=o(Ot,"CODE",{});var oo=s(xe);vl=i(oo,"stable-baselines3"),oo.forEach(l),bl=i(Ot," library, you need to install two packages:"),Ot.forEach(l),_t=f(e),B=o(e,"UL",{});var Zt=s(B);re=o(Zt,"LI",{});var ja=s(re);We=o(ja,"CODE",{});var so=s(We);wl=i(so,"stable-baselines3"),so.forEach(l),yl=i(ja,": Stable-Baselines3 library."),ja.forEach(l),_l=f(Zt),ie=o(Zt,"LI",{});var Ja=s(ie);Fe=o(Ja,"CODE",{});var ro=s(Fe);gl=i(ro,"huggingface-sb3"),ro.forEach(l),El=i(Ja,": additional code to load and upload Stable-baselines3 models from the Hub."),Ja.forEach(l),Zt.forEach(l),gt=f(e),w(X.$$.fragment,e),Et=f(e),A=o(e,"H2",{class:!0});var Dt=s(A);H=o(Dt,"A",{id:!0,class:!0,href:!0});var io=s(H);Oe=o(io,"SPAN",{});var no=s(Oe);w(Q.$$.fragment,no),no.forEach(l),io.forEach(l),Ml=f(Dt),Ze=o(Dt,"SPAN",{});var ho=s(Ze);Il=i(ho,"Using existing models"),ho.forEach(l),Dt.forEach(l),Mt=i(e,`

You can simply download a model from the Hub using the \`load_from_hub\` function

	`),w(V.$$.fragment,e),It=f(e),ne=o(e,"P",{});var uo=s(ne);jl=i(uo,"You need to define two parameters:"),uo.forEach(l),jt=f(e),P=o(e,"UL",{});var Nt=s(P);he=o(Nt,"LI",{});var Aa=s(he);De=o(Aa,"CODE",{});var fo=s(De);Jl=i(fo,"--repo-id"),fo.forEach(l),Al=i(Aa,": the name of the Hugging Face repo you want to download."),Aa.forEach(l),Tl=f(Nt),ue=o(Nt,"LI",{});var Ta=s(ue);Ne=o(Ta,"CODE",{});var co=s(Ne);$l=i(co,"--filename"),co.forEach(l),Ul=i(Ta,": the file you want to download."),Ta.forEach(l),Nt.forEach(l),Jt=f(e),T=o(e,"H2",{class:!0});var Gt=s(T);Y=o(Gt,"A",{id:!0,class:!0,href:!0});var po=s(Y);Ge=o(po,"SPAN",{});var mo=s(Ge);w(z.$$.fragment,mo),mo.forEach(l),po.forEach(l),Cl=f(Gt),qe=o(Gt,"SPAN",{});var vo=s(qe);Ll=i(vo,"Sharing your models"),vo.forEach(l),Gt.forEach(l),At=i(e,`

You can easily upload your models using two different functions:
`),fe=o(e,"OL",{});var bo=s(fe);de=o(bo,"LI",{});var $a=s(de);Re=o($a,"CODE",{});var wo=s(Re);kl=i(wo,"package_to_hub()"),wo.forEach(l),Sl=i($a,": save the model, evaluate it, generate a model card and record a replay video of your agent before pushing the complete repo to the Hub."),$a.forEach(l),bo.forEach(l),Tt=f(e),w(K.$$.fragment,e),$t=f(e),ce=o(e,"P",{});var yo=s(ce);Bl=i(yo,"You need to define seven parameters:"),yo.forEach(l),Ut=f(e),c=o(e,"UL",{});var p=s(c);pe=o(p,"LI",{});var Ua=s(pe);Xe=o(Ua,"CODE",{});var _o=s(Xe);Hl=i(_o,"--model"),_o.forEach(l),Pl=i(Ua,": your trained model."),Ua.forEach(l),Yl=f(p),me=o(p,"LI",{});var Ca=s(me);Qe=o(Ca,"CODE",{});var go=s(Qe);xl=i(go,"--model_architecture"),go.forEach(l),Wl=i(Ca,": name of the architecture of your model (DQN, PPO, A2C, SAC\u2026)."),Ca.forEach(l),Fl=f(p),ve=o(p,"LI",{});var La=s(ve);Ve=o(La,"CODE",{});var Eo=s(Ve);Ol=i(Eo,"--env_id"),Eo.forEach(l),Zl=i(La,": name of the environment."),La.forEach(l),Dl=f(p),be=o(p,"LI",{});var ka=s(be);ze=o(ka,"CODE",{});var Mo=s(ze);Nl=i(Mo,"--eval_env"),Mo.forEach(l),Gl=i(ka,": environment used to evaluate the agent."),ka.forEach(l),ql=f(p),x=o(p,"LI",{});var ut=s(x);Ke=o(ut,"CODE",{});var Io=s(Ke);Rl=i(Io,"--repo-id"),Io.forEach(l),Xl=i(ut,": the name of the Hugging Face repo you want to create or update. It\u2019s "),et=o(ut,"CODE",{});var jo=s(et);Ql=i(jo,"<your huggingface username>/<the repo name>"),jo.forEach(l),Vl=i(ut,"."),ut.forEach(l),zl=f(p),we=o(p,"LI",{});var Sa=s(we);tt=o(Sa,"CODE",{});var Jo=s(tt);Kl=i(Jo,"--commit-message"),Jo.forEach(l),ea=i(Sa,"."),Sa.forEach(l),ta=f(p),ye=o(p,"LI",{});var Ba=s(ye);lt=o(Ba,"CODE",{});var Ao=s(lt);la=i(Ao,"--filename"),Ao.forEach(l),aa=i(Ba,": the file you want to push to the Hub."),Ba.forEach(l),p.forEach(l),Ct=f(e),ee=o(e,"OL",{start:!0});var To=s(ee);_e=o(To,"LI",{});var Ha=s(_e);at=o(Ha,"CODE",{});var $o=s(at);oa=i($o,"push_to_hub()"),$o.forEach(l),sa=i(Ha,": simply push a file to the Hub"),Ha.forEach(l),To.forEach(l),Lt=f(e),w(te.$$.fragment,e),kt=f(e),ge=o(e,"P",{});var Uo=s(ge);ra=i(Uo,"You need to define three parameters:"),Uo.forEach(l),St=f(e),v=o(e,"UL",{});var Je=s(v);W=o(Je,"LI",{});var ft=s(W);ot=o(ft,"CODE",{});var Co=s(ot);ia=i(Co,"--repo-id"),Co.forEach(l),na=i(ft,": the name of the Hugging Face repo you want to create or update. It\u2019s "),st=o(ft,"CODE",{});var Lo=s(st);ha=i(Lo,"<your huggingface username>/<the repo name>"),Lo.forEach(l),ua=i(ft,"."),ft.forEach(l),fa=f(Je),Ee=o(Je,"LI",{});var Pa=s(Ee);rt=o(Pa,"CODE",{});var ko=s(rt);da=i(ko,"--filename"),ko.forEach(l),ca=i(Pa,": the file you want to push to the Hub."),Pa.forEach(l),pa=f(Je),Me=o(Je,"LI",{});var Ya=s(Me);it=o(Ya,"CODE",{});var So=s(it);ma=i(So,"--commit-message"),So.forEach(l),va=i(Ya,"."),Ya.forEach(l),Je.forEach(l),Bt=f(e),$=o(e,"H2",{class:!0});var qt=s($);F=o(qt,"A",{id:!0,class:!0,href:!0});var Bo=s(F);nt=o(Bo,"SPAN",{});var Ho=s(nt);w(le.$$.fragment,Ho),Ho.forEach(l),Bo.forEach(l),ba=f(qt),ht=o(qt,"SPAN",{});var Po=s(ht);wa=i(Po,"Additional resources"),Po.forEach(l),qt.forEach(l),Ht=f(e),O=o(e,"UL",{});var Rt=s(O);Ie=o(Rt,"LI",{});var xa=s(Ie);ya=i(xa,"Hugging Face Stable-Baselines3 "),ae=o(xa,"A",{href:!0,rel:!0});var Yo=s(ae);_a=i(Yo,"documentation"),Yo.forEach(l),xa.forEach(l),ga=f(Rt),je=o(Rt,"LI",{});var Wa=s(je);Ea=i(Wa,"Stable-Baselines3 "),oe=o(Wa,"A",{href:!0,rel:!0});var xo=s(oe);Ma=i(xo,"documentation"),xo.forEach(l),Wa.forEach(l),Rt.forEach(l),this.h()},h(){d(M,"name","hf:doc:metadata"),d(M,"content",JSON.stringify(qo)),d(U,"id","using-stablebaselines3-at-hugging-face"),d(U,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(U,"href","#using-stablebaselines3-at-hugging-face"),d(I,"class","relative group"),d(C,"id","exploring-stablebaselines3-in-the-hub"),d(C,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(C,"href","#exploring-stablebaselines3-in-the-hub"),d(j,"class","relative group"),d(q,"href","https://huggingface.co/models?library=stable-baselines3"),d(q,"rel","nofollow"),d(k,"id","install-the-library"),d(k,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(k,"href","#install-the-library"),d(J,"class","relative group"),d(H,"id","using-existing-models"),d(H,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(H,"href","#using-existing-models"),d(A,"class","relative group"),d(Y,"id","sharing-your-models"),d(Y,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Y,"href","#sharing-your-models"),d(T,"class","relative group"),d(ee,"start","2"),d(F,"id","additional-resources"),d(F,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(F,"href","#additional-resources"),d($,"class","relative group"),d(ae,"href","https://github.com/huggingface/huggingface_sb3#hugging-face--x-stable-baselines3-v20"),d(ae,"rel","nofollow"),d(oe,"href","https://stable-baselines3.readthedocs.io/en/master/"),d(oe,"rel","nofollow")},m(e,n){t(document.head,M),h(e,dt,n),h(e,I,n),t(I,U),t(U,Te),y(D,Te,null),t(I,Qt),t(I,$e),t($e,Vt),h(e,ct,n),h(e,N,n),t(N,Ue),t(Ue,zt),t(N,Kt),h(e,pt,n),h(e,j,n),t(j,C),t(C,Ce),y(G,Ce,null),t(j,el),t(j,Le),t(Le,tl),h(e,mt,n),h(e,L,n),t(L,ll),t(L,q),t(q,al),t(L,ol),h(e,vt,n),h(e,se,n),t(se,sl),h(e,bt,n),h(e,m,n),t(m,ke),t(ke,rl),t(m,il),t(m,Se),t(Se,nl),t(m,hl),t(m,Be),t(Be,ul),t(m,fl),t(m,He),t(He,dl),h(e,wt,n),h(e,J,n),t(J,k),t(k,Pe),y(R,Pe,null),t(J,cl),t(J,Ye),t(Ye,pl),h(e,yt,n),h(e,S,n),t(S,ml),t(S,xe),t(xe,vl),t(S,bl),h(e,_t,n),h(e,B,n),t(B,re),t(re,We),t(We,wl),t(re,yl),t(B,_l),t(B,ie),t(ie,Fe),t(Fe,gl),t(ie,El),h(e,gt,n),y(X,e,n),h(e,Et,n),h(e,A,n),t(A,H),t(H,Oe),y(Q,Oe,null),t(A,Ml),t(A,Ze),t(Ze,Il),h(e,Mt,n),y(V,e,n),h(e,It,n),h(e,ne,n),t(ne,jl),h(e,jt,n),h(e,P,n),t(P,he),t(he,De),t(De,Jl),t(he,Al),t(P,Tl),t(P,ue),t(ue,Ne),t(Ne,$l),t(ue,Ul),h(e,Jt,n),h(e,T,n),t(T,Y),t(Y,Ge),y(z,Ge,null),t(T,Cl),t(T,qe),t(qe,Ll),h(e,At,n),h(e,fe,n),t(fe,de),t(de,Re),t(Re,kl),t(de,Sl),h(e,Tt,n),y(K,e,n),h(e,$t,n),h(e,ce,n),t(ce,Bl),h(e,Ut,n),h(e,c,n),t(c,pe),t(pe,Xe),t(Xe,Hl),t(pe,Pl),t(c,Yl),t(c,me),t(me,Qe),t(Qe,xl),t(me,Wl),t(c,Fl),t(c,ve),t(ve,Ve),t(Ve,Ol),t(ve,Zl),t(c,Dl),t(c,be),t(be,ze),t(ze,Nl),t(be,Gl),t(c,ql),t(c,x),t(x,Ke),t(Ke,Rl),t(x,Xl),t(x,et),t(et,Ql),t(x,Vl),t(c,zl),t(c,we),t(we,tt),t(tt,Kl),t(we,ea),t(c,ta),t(c,ye),t(ye,lt),t(lt,la),t(ye,aa),h(e,Ct,n),h(e,ee,n),t(ee,_e),t(_e,at),t(at,oa),t(_e,sa),h(e,Lt,n),y(te,e,n),h(e,kt,n),h(e,ge,n),t(ge,ra),h(e,St,n),h(e,v,n),t(v,W),t(W,ot),t(ot,ia),t(W,na),t(W,st),t(st,ha),t(W,ua),t(v,fa),t(v,Ee),t(Ee,rt),t(rt,da),t(Ee,ca),t(v,pa),t(v,Me),t(Me,it),t(it,ma),t(Me,va),h(e,Bt,n),h(e,$,n),t($,F),t(F,nt),y(le,nt,null),t($,ba),t($,ht),t(ht,wa),h(e,Ht,n),h(e,O,n),t(O,Ie),t(Ie,ya),t(Ie,ae),t(ae,_a),t(O,ga),t(O,je),t(je,Ea),t(je,oe),t(oe,Ma),Pt=!0},p:Do,i(e){Pt||(_(D.$$.fragment,e),_(G.$$.fragment,e),_(R.$$.fragment,e),_(X.$$.fragment,e),_(Q.$$.fragment,e),_(V.$$.fragment,e),_(z.$$.fragment,e),_(K.$$.fragment,e),_(te.$$.fragment,e),_(le.$$.fragment,e),Pt=!0)},o(e){g(D.$$.fragment,e),g(G.$$.fragment,e),g(R.$$.fragment,e),g(X.$$.fragment,e),g(Q.$$.fragment,e),g(V.$$.fragment,e),g(z.$$.fragment,e),g(K.$$.fragment,e),g(te.$$.fragment,e),g(le.$$.fragment,e),Pt=!1},d(e){l(M),e&&l(dt),e&&l(I),E(D),e&&l(ct),e&&l(N),e&&l(pt),e&&l(j),E(G),e&&l(mt),e&&l(L),e&&l(vt),e&&l(se),e&&l(bt),e&&l(m),e&&l(wt),e&&l(J),E(R),e&&l(yt),e&&l(S),e&&l(_t),e&&l(B),e&&l(gt),E(X,e),e&&l(Et),e&&l(A),E(Q),e&&l(Mt),E(V,e),e&&l(It),e&&l(ne),e&&l(jt),e&&l(P),e&&l(Jt),e&&l(T),E(z),e&&l(At),e&&l(fe),e&&l(Tt),E(K,e),e&&l($t),e&&l(ce),e&&l(Ut),e&&l(c),e&&l(Ct),e&&l(ee),e&&l(Lt),E(te,e),e&&l(kt),e&&l(ge),e&&l(St),e&&l(v),e&&l(Bt),e&&l($),E(le),e&&l(Ht),e&&l(O)}}}const qo={local:"using-stablebaselines3-at-hugging-face",sections:[{local:"exploring-stablebaselines3-in-the-hub",title:"Exploring Stable-Baselines3 in the Hub"},{local:"install-the-library",title:"Install the library"},{local:"using-existing-models",title:"Using existing models"},{local:"sharing-your-models",title:"Sharing your models"},{local:"additional-resources",title:"Additional resources"}],title:"Using Stable-Baselines3 at Hugging Face"};function Ro(Fa){return No(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class zo extends Wo{constructor(M){super();Fo(this,M,Ro,Go,Oo,{})}}export{zo as default,qo as metadata};
