Buckets:

HuggingFaceDocBuilder's picture
download
raw
9.15 kB
import{s as _e,n as xe,o as He}from"../chunks/scheduler.258d2a4d.js";import{S as Ce,i as Fe,e as i,s as n,c as m,h as Je,a as o,d as l,b as a,f as we,g as u,j as r,k as ye,l as Be,m as s,n as f,t as c,o as g,p as h}from"../chunks/index.421344fd.js";import{C as Ze}from"../chunks/CopyLLMTxtMenu.81d32768.js";import{C as Le}from"../chunks/CodeBlock.cae550a8.js";import{H as R,E as Ue}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.2eff8d01.js";function Ge(me){let p,S,I,k,d,A,$,N,b,ue="<code>rl-baselines3-zoo</code> is a training framework for Reinforcement Learning using Stable Baselines3.",Y,T,P,j,fe='You can find RL-Baselines3-Zoo models by filtering at the left of the <a href="https://huggingface.co/models?library=stable-baselines3" rel="nofollow">models page</a>.',X,v,ce='The Stable-Baselines3 team is hosting a collection of +150 trained Reinforcement Learning agents with tuned hyperparameters that you can find <a href="https://huggingface.co/sb3" rel="nofollow">here</a>.',E,M,ge="All models on the Hub come up with useful features:",q,w,he="<li>An automatically generated model card with a description, a training configuration, and more.</li> <li>Metadata tags that help for discoverability.</li> <li>Evaluation results to compare with other models.</li> <li>A video widget where you can watch your agent performing.</li>",V,y,O,L,de="You can simply download a model from the Hub using <code>load_from_hub</code>:",Q,_,D,x,$e="You can define three parameters:",K,H,be="<li><code>--repo-name</code>: The name of the repo.</li> <li><code>-orga</code>: A Hugging Face username or organization.</li> <li><code>-f</code>: The destination folder.</li>",ee,C,te,F,Te="You can easily upload your models with <code>push_to_hub</code>. That will 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.",le,J,se,B,je="You can define three parameters:",ne,Z,ve="<li><code>--repo-name</code>: The name of the repo.</li> <li><code>-orga</code>: Your Hugging Face username.</li> <li><code>-f</code>: The folder where the model is saved.</li>",ae,U,ie,G,Me='<li>RL-Baselines3-Zoo <a href="https://huggingface.co/sb3" rel="nofollow">official trained models</a></li> <li>RL-Baselines3-Zoo <a href="https://github.com/DLR-RM/rl-baselines3-zoo" rel="nofollow">documentation</a></li>',oe,z,re,W,pe;return d=new Ze({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),$=new R({props:{title:"Using RL-Baselines3-Zoo at Hugging Face",local:"using-rl-baselines3-zoo-at-hugging-face",headingTag:"h1"}}),T=new R({props:{title:"Exploring RL-Baselines3-Zoo in the Hub",local:"exploring-rl-baselines3-zoo-in-the-hub",headingTag:"h2"}}),y=new R({props:{title:"Using existing models",local:"using-existing-models",headingTag:"h2"}}),_=new Le({props:{code:"JTIzJTIwRG93bmxvYWQlMjBwcG8lMjBTcGFjZUludmFkZXJzTm9GcmFtZXNraXAtdjQlMjBtb2RlbCUyMGFuZCUyMHNhdmUlMjBpdCUyMGludG8lMjB0aGUlMjBsb2dzJTJGJTIwZm9sZGVyJTBBcHl0aG9uJTIwLW0lMjBybF96b28zLmxvYWRfZnJvbV9odWIlMjAtLWFsZ28lMjBkcW4lMjAtLWVudiUyMFNwYWNlSW52YWRlcnNOb0ZyYW1lc2tpcC12NCUyMC1mJTIwbG9ncyUyRiUyMC1vcmdhJTIwc2IzJTBBcHl0aG9uJTIwZW5qb3kucHklMjAtLWFsZ28lMjBkcW4lMjAtLWVudiUyMFNwYWNlSW52YWRlcnNOb0ZyYW1lc2tpcC12NCUyMCUyMC1mJTIwbG9ncyUyRg==",highlighted:`<span class="hljs-comment"># Download ppo SpaceInvadersNoFrameskip-v4 model and save it into the logs/ folder</span>
<span class="hljs-string">python</span> -<span class="hljs-string">m</span> <span class="hljs-string">rl_zoo3</span>.<span class="hljs-string">load_from_hub</span> <span class="hljs-built_in">--algo</span> <span class="hljs-string">dqn</span> <span class="hljs-built_in">--env</span> <span class="hljs-string">SpaceInvadersNoFrameskip-v4</span> -<span class="hljs-string">f</span> <span class="hljs-string">logs</span>/ -<span class="hljs-string">orga</span> <span class="hljs-string">sb3</span>
<span class="hljs-string">python</span> <span class="hljs-string">enjoy</span>.<span class="hljs-string">py</span> <span class="hljs-built_in">--algo</span> <span class="hljs-string">dqn</span> <span class="hljs-built_in">--env</span> <span class="hljs-string">SpaceInvadersNoFrameskip-v4</span> -<span class="hljs-string">f</span> <span class="hljs-string">logs</span>/`,lang:"",wrap:!1}}),C=new R({props:{title:"Sharing your models",local:"sharing-your-models",headingTag:"h2"}}),J=new Le({props:{code:"cHl0aG9uJTIwLW0lMjBybF96b28zLnB1c2hfdG9faHViJTIwJTIwLS1hbGdvJTIwZHFuJTIwJTIwLS1lbnYlMjBTcGFjZUludmFkZXJzTm9GcmFtZXNraXAtdjQlMjAlMjAtLXJlcG8tbmFtZSUyMGRxbi1TcGFjZUludmFkZXJzTm9GcmFtZXNraXAtdjQlMjAlMjAtb3JnYSUyMFRob21hc1NpbW9uaW5pJTIwJTIwLWYlMjBsb2dzJTJG",highlighted:'python -m rl_zoo3<span class="hljs-selector-class">.push_to_hub</span> <span class="hljs-attr">--algo</span> dqn <span class="hljs-attr">--env</span> SpaceInvadersNoFrameskip-v4 <span class="hljs-attr">--repo-name</span> dqn-SpaceInvadersNoFrameskip-v4 -orga ThomasSimonini -f logs/',lang:"",wrap:!1}}),U=new R({props:{title:"Additional resources",local:"additional-resources",headingTag:"h2"}}),z=new Ue({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/rl-baselines3-zoo.md"}}),{c(){p=i("meta"),S=n(),I=i("p"),k=n(),m(d.$$.fragment),A=n(),m($.$$.fragment),N=n(),b=i("p"),b.innerHTML=ue,Y=n(),m(T.$$.fragment),P=n(),j=i("p"),j.innerHTML=fe,X=n(),v=i("p"),v.innerHTML=ce,E=n(),M=i("p"),M.textContent=ge,q=n(),w=i("ol"),w.innerHTML=he,V=n(),m(y.$$.fragment),O=n(),L=i("p"),L.innerHTML=de,Q=n(),m(_.$$.fragment),D=n(),x=i("p"),x.textContent=$e,K=n(),H=i("ul"),H.innerHTML=be,ee=n(),m(C.$$.fragment),te=n(),F=i("p"),F.innerHTML=Te,le=n(),m(J.$$.fragment),se=n(),B=i("p"),B.textContent=je,ne=n(),Z=i("ul"),Z.innerHTML=ve,ae=n(),m(U.$$.fragment),ie=n(),G=i("ul"),G.innerHTML=Me,oe=n(),m(z.$$.fragment),re=n(),W=i("p"),this.h()},l(e){const t=Je("svelte-u9bgzb",document.head);p=o(t,"META",{name:!0,content:!0}),t.forEach(l),S=a(e),I=o(e,"P",{}),we(I).forEach(l),k=a(e),u(d.$$.fragment,e),A=a(e),u($.$$.fragment,e),N=a(e),b=o(e,"P",{"data-svelte-h":!0}),r(b)!=="svelte-13vc6fz"&&(b.innerHTML=ue),Y=a(e),u(T.$$.fragment,e),P=a(e),j=o(e,"P",{"data-svelte-h":!0}),r(j)!=="svelte-1lfjghp"&&(j.innerHTML=fe),X=a(e),v=o(e,"P",{"data-svelte-h":!0}),r(v)!=="svelte-141t09m"&&(v.innerHTML=ce),E=a(e),M=o(e,"P",{"data-svelte-h":!0}),r(M)!=="svelte-1krwbts"&&(M.textContent=ge),q=a(e),w=o(e,"OL",{"data-svelte-h":!0}),r(w)!=="svelte-117jq8g"&&(w.innerHTML=he),V=a(e),u(y.$$.fragment,e),O=a(e),L=o(e,"P",{"data-svelte-h":!0}),r(L)!=="svelte-1gr4tk3"&&(L.innerHTML=de),Q=a(e),u(_.$$.fragment,e),D=a(e),x=o(e,"P",{"data-svelte-h":!0}),r(x)!=="svelte-1b398m"&&(x.textContent=$e),K=a(e),H=o(e,"UL",{"data-svelte-h":!0}),r(H)!=="svelte-t87f59"&&(H.innerHTML=be),ee=a(e),u(C.$$.fragment,e),te=a(e),F=o(e,"P",{"data-svelte-h":!0}),r(F)!=="svelte-11phago"&&(F.innerHTML=Te),le=a(e),u(J.$$.fragment,e),se=a(e),B=o(e,"P",{"data-svelte-h":!0}),r(B)!=="svelte-1b398m"&&(B.textContent=je),ne=a(e),Z=o(e,"UL",{"data-svelte-h":!0}),r(Z)!=="svelte-l7081z"&&(Z.innerHTML=ve),ae=a(e),u(U.$$.fragment,e),ie=a(e),G=o(e,"UL",{"data-svelte-h":!0}),r(G)!=="svelte-yv0pxq"&&(G.innerHTML=Me),oe=a(e),u(z.$$.fragment,e),re=a(e),W=o(e,"P",{}),we(W).forEach(l),this.h()},h(){ye(p,"name","hf:doc:metadata"),ye(p,"content",ze)},m(e,t){Be(document.head,p),s(e,S,t),s(e,I,t),s(e,k,t),f(d,e,t),s(e,A,t),f($,e,t),s(e,N,t),s(e,b,t),s(e,Y,t),f(T,e,t),s(e,P,t),s(e,j,t),s(e,X,t),s(e,v,t),s(e,E,t),s(e,M,t),s(e,q,t),s(e,w,t),s(e,V,t),f(y,e,t),s(e,O,t),s(e,L,t),s(e,Q,t),f(_,e,t),s(e,D,t),s(e,x,t),s(e,K,t),s(e,H,t),s(e,ee,t),f(C,e,t),s(e,te,t),s(e,F,t),s(e,le,t),f(J,e,t),s(e,se,t),s(e,B,t),s(e,ne,t),s(e,Z,t),s(e,ae,t),f(U,e,t),s(e,ie,t),s(e,G,t),s(e,oe,t),f(z,e,t),s(e,re,t),s(e,W,t),pe=!0},p:xe,i(e){pe||(c(d.$$.fragment,e),c($.$$.fragment,e),c(T.$$.fragment,e),c(y.$$.fragment,e),c(_.$$.fragment,e),c(C.$$.fragment,e),c(J.$$.fragment,e),c(U.$$.fragment,e),c(z.$$.fragment,e),pe=!0)},o(e){g(d.$$.fragment,e),g($.$$.fragment,e),g(T.$$.fragment,e),g(y.$$.fragment,e),g(_.$$.fragment,e),g(C.$$.fragment,e),g(J.$$.fragment,e),g(U.$$.fragment,e),g(z.$$.fragment,e),pe=!1},d(e){e&&(l(S),l(I),l(k),l(A),l(N),l(b),l(Y),l(P),l(j),l(X),l(v),l(E),l(M),l(q),l(w),l(V),l(O),l(L),l(Q),l(D),l(x),l(K),l(H),l(ee),l(te),l(F),l(le),l(se),l(B),l(ne),l(Z),l(ae),l(ie),l(G),l(oe),l(re),l(W)),l(p),h(d,e),h($,e),h(T,e),h(y,e),h(_,e),h(C,e),h(J,e),h(U,e),h(z,e)}}}const ze='{"title":"Using RL-Baselines3-Zoo at Hugging Face","local":"using-rl-baselines3-zoo-at-hugging-face","sections":[{"title":"Exploring RL-Baselines3-Zoo in the Hub","local":"exploring-rl-baselines3-zoo-in-the-hub","sections":[],"depth":2},{"title":"Using existing models","local":"using-existing-models","sections":[],"depth":2},{"title":"Sharing your models","local":"sharing-your-models","sections":[],"depth":2},{"title":"Additional resources","local":"additional-resources","sections":[],"depth":2}],"depth":1}';function Ie(me){return He(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ne extends Ce{constructor(p){super(),Fe(this,p,Ie,Ge,_e,{})}}export{Ne as component};

Xet Storage Details

Size:
9.15 kB
·
Xet hash:
a363a153a5d7a5804c3e743b3ab7d3928e19d5a86f07d7377843371899772ca2

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.