Buckets:
| import{s as lt,o as at,n as nt}from"../chunks/scheduler.7b731bd4.js";import{S as st,i as it,e as y,s as f,c as u,h as ot,a as v,d as i,b as $,f as V,g as c,j as S,k as tt,l as pt,m as o,n as g,t as h,o as d,p as w}from"../chunks/index.cc268345.js";import{C as rt,H as X,E as ft}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.f0d99f98.js";import{C as Q}from"../chunks/CodeBlock.169a125f.js";import{H as $t,a as et}from"../chunks/HfOption.9f04abd1.js";function mt(_){let e,r='uv is a fast Rust-based Python package and project manager. Refer to <a href="https://docs.astral.sh/uv/getting-started/installation/" rel="nofollow">Installation</a> for installation instructions.',a,p,l;return p=new Q({props:{code:"dXYlMjBwaXAlMjBpbnN0YWxsJTIwdHJs",highlighted:"uv pip install trl",wrap:!1}}),{c(){e=y("p"),e.innerHTML=r,a=f(),u(p.$$.fragment)},l(s){e=v(s,"P",{"data-svelte-h":!0}),S(e)!=="svelte-3abrow"&&(e.innerHTML=r),a=$(s),c(p.$$.fragment,s)},m(s,m){o(s,e,m),o(s,a,m),g(p,s,m),l=!0},p:nt,i(s){l||(h(p.$$.fragment,s),l=!0)},o(s){d(p.$$.fragment,s),l=!1},d(s){s&&(i(e),i(a)),w(p,s)}}}function ut(_){let e,r;return e=new Q({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRybA==",highlighted:"pip install trl",wrap:!1}}),{c(){u(e.$$.fragment)},l(a){c(e.$$.fragment,a)},m(a,p){g(e,a,p),r=!0},p:nt,i(a){r||(h(e.$$.fragment,a),r=!0)},o(a){d(e.$$.fragment,a),r=!1},d(a){w(e,a)}}}function ct(_){let e,r,a,p;return e=new et({props:{id:"install",option:"uv",$$slots:{default:[mt]},$$scope:{ctx:_}}}),a=new et({props:{id:"install",option:"pip",$$slots:{default:[ut]},$$scope:{ctx:_}}}),{c(){u(e.$$.fragment),r=f(),u(a.$$.fragment)},l(l){c(e.$$.fragment,l),r=$(l),c(a.$$.fragment,l)},m(l,s){g(e,l,s),o(l,r,s),g(a,l,s),p=!0},p(l,s){const m={};s&2&&(m.$$scope={dirty:s,ctx:l}),e.$set(m);const C={};s&2&&(C.$$scope={dirty:s,ctx:l}),a.$set(C)},i(l){p||(h(e.$$.fragment,l),h(a.$$.fragment,l),p=!0)},o(l){d(e.$$.fragment,l),d(a.$$.fragment,l),p=!1},d(l){l&&i(r),w(e,l),w(a,l)}}}function gt(_){let e,r,a,p,l,s,m,C,M,q="You can install TRL either from PyPI or from source:",k,x,G,P,O='Install the library with pip or <a href="https://docs.astral.sh/uv/" rel="nofollow">uv</a>:',E,b,J,T,z,U,N="You can also install the latest version from source. First clone the repo and then run the installation with <code>pip</code>:",Y,H,Z,R,D="If you want the development install you can replace the pip install with the following:",B,I,F,j,W,L,A;return l=new rt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),m=new X({props:{title:"Installation",local:"installation",headingTag:"h1"}}),x=new X({props:{title:"PyPI",local:"pypi",headingTag:"h2"}}),b=new $t({props:{id:"install",options:["uv","pip"],$$slots:{default:[ct]},$$scope:{ctx:_}}}),T=new X({props:{title:"Source",local:"source",headingTag:"h2"}}),H=new Q({props:{code:"Z2l0JTIwY2xvbmUlMjBodHRwcyUzQSUyRiUyRmdpdGh1Yi5jb20lMkZodWdnaW5nZmFjZSUyRnRybC5naXQlMEFjZCUyMHRybCUyRiUwQXBpcCUyMGluc3RhbGwlMjAtZSUyMC4=",highlighted:`git <span class="hljs-built_in">clone</span> https://github.com/huggingface/trl.git | |
| <span class="hljs-built_in">cd</span> trl/ | |
| pip install -e .`,wrap:!1}}),I=new Q({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1lJTIwJTIyLiU1QmRldiU1RCUyMg==",highlighted:'pip install -e <span class="hljs-string">".[dev]"</span>',wrap:!1}}),j=new ft({props:{source:"https://github.com/huggingface/trl/blob/main/docs/source/installation.md"}}),{c(){e=y("meta"),r=f(),a=y("p"),p=f(),u(l.$$.fragment),s=f(),u(m.$$.fragment),C=f(),M=y("p"),M.textContent=q,k=f(),u(x.$$.fragment),G=f(),P=y("p"),P.innerHTML=O,E=f(),u(b.$$.fragment),J=f(),u(T.$$.fragment),z=f(),U=y("p"),U.innerHTML=N,Y=f(),u(H.$$.fragment),Z=f(),R=y("p"),R.textContent=D,B=f(),u(I.$$.fragment),F=f(),u(j.$$.fragment),W=f(),L=y("p"),this.h()},l(t){const n=ot("svelte-u9bgzb",document.head);e=v(n,"META",{name:!0,content:!0}),n.forEach(i),r=$(t),a=v(t,"P",{}),V(a).forEach(i),p=$(t),c(l.$$.fragment,t),s=$(t),c(m.$$.fragment,t),C=$(t),M=v(t,"P",{"data-svelte-h":!0}),S(M)!=="svelte-1jugt3x"&&(M.textContent=q),k=$(t),c(x.$$.fragment,t),G=$(t),P=v(t,"P",{"data-svelte-h":!0}),S(P)!=="svelte-1vol8zm"&&(P.innerHTML=O),E=$(t),c(b.$$.fragment,t),J=$(t),c(T.$$.fragment,t),z=$(t),U=v(t,"P",{"data-svelte-h":!0}),S(U)!=="svelte-10g068c"&&(U.innerHTML=N),Y=$(t),c(H.$$.fragment,t),Z=$(t),R=v(t,"P",{"data-svelte-h":!0}),S(R)!=="svelte-13d0x05"&&(R.textContent=D),B=$(t),c(I.$$.fragment,t),F=$(t),c(j.$$.fragment,t),W=$(t),L=v(t,"P",{}),V(L).forEach(i),this.h()},h(){tt(e,"name","hf:doc:metadata"),tt(e,"content",ht)},m(t,n){pt(document.head,e),o(t,r,n),o(t,a,n),o(t,p,n),g(l,t,n),o(t,s,n),g(m,t,n),o(t,C,n),o(t,M,n),o(t,k,n),g(x,t,n),o(t,G,n),o(t,P,n),o(t,E,n),g(b,t,n),o(t,J,n),g(T,t,n),o(t,z,n),o(t,U,n),o(t,Y,n),g(H,t,n),o(t,Z,n),o(t,R,n),o(t,B,n),g(I,t,n),o(t,F,n),g(j,t,n),o(t,W,n),o(t,L,n),A=!0},p(t,[n]){const K={};n&2&&(K.$$scope={dirty:n,ctx:t}),b.$set(K)},i(t){A||(h(l.$$.fragment,t),h(m.$$.fragment,t),h(x.$$.fragment,t),h(b.$$.fragment,t),h(T.$$.fragment,t),h(H.$$.fragment,t),h(I.$$.fragment,t),h(j.$$.fragment,t),A=!0)},o(t){d(l.$$.fragment,t),d(m.$$.fragment,t),d(x.$$.fragment,t),d(b.$$.fragment,t),d(T.$$.fragment,t),d(H.$$.fragment,t),d(I.$$.fragment,t),d(j.$$.fragment,t),A=!1},d(t){t&&(i(r),i(a),i(p),i(s),i(C),i(M),i(k),i(G),i(P),i(E),i(J),i(z),i(U),i(Y),i(Z),i(R),i(B),i(F),i(W),i(L)),i(e),w(l,t),w(m,t),w(x,t),w(b,t),w(T,t),w(H,t),w(I,t),w(j,t)}}}const ht='{"title":"Installation","local":"installation","sections":[{"title":"PyPI","local":"pypi","sections":[],"depth":2},{"title":"Source","local":"source","sections":[],"depth":2}],"depth":1}';function dt(_){return at(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ct extends st{constructor(e){super(),it(this,e,dt,gt,lt,{})}}export{Ct as component}; | |
Xet Storage Details
- Size:
- 5.8 kB
- Xet hash:
- 12bd3eac2ca852c6562a9eec9ae510174a8a5cddd609ec659dcf01f442ccd56f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.