Buckets:
| import{s as et,n as nt,o as lt}from"../chunks/scheduler.c57aa7ef.js";import{S as at,i as st,g as o,s as a,r as v,A as it,h as p,f as n,c as s,j as K,u as P,x as U,k as tt,y as ot,a as l,v as _,d as C,t as T,w as x}from"../chunks/index.394f8801.js";import{C as N}from"../chunks/CodeBlock.b5488637.js";import{H as Q,E as pt}from"../chunks/getInferenceSnippets.01607af0.js";function mt(q){let i,E,G,J,m,H,r,V="Before you start, you will need to setup your environment, install the appropriate packages, and configure 🤗 PEFT. 🤗 PEFT is tested on <strong>Python 3.9+</strong>.",I,f,Y="🤗 PEFT is available on PyPI, as well as GitHub:",j,u,Z,$,O="To install 🤗 PEFT from PyPI:",k,d,B,c,F,h,X="New features that haven’t been released yet are added every day, which also means there may be some bugs. To try them out, install from the GitHub repository:",S,g,R,y,D=`If you’re working on contributing to the library or wish to play with the source code and see live | |
| results as you run the code, an editable version can be installed from a locally-cloned version of the | |
| repository:`,W,b,z,w,A,M,L;return m=new Q({props:{title:"Installation",local:"installation",headingTag:"h1"}}),u=new Q({props:{title:"PyPI",local:"pypi",headingTag:"h2"}}),d=new N({props:{code:"cGlwJTIwaW5zdGFsbCUyMHBlZnQ=",highlighted:"pip install peft",wrap:!1}}),c=new Q({props:{title:"Source",local:"source",headingTag:"h2"}}),g=new N({props:{code:"cGlwJTIwaW5zdGFsbCUyMGdpdCUyQmh0dHBzJTNBJTJGJTJGZ2l0aHViLmNvbSUyRmh1Z2dpbmdmYWNlJTJGcGVmdA==",highlighted:"pip install git+https://github.com/huggingface/peft",wrap:!1}}),b=new N({props:{code:"Z2l0JTIwY2xvbmUlMjBodHRwcyUzQSUyRiUyRmdpdGh1Yi5jb20lMkZodWdnaW5nZmFjZSUyRnBlZnQlMEFjZCUyMHBlZnQlMEFwaXAlMjBpbnN0YWxsJTIwLWUlMjAuJTVCdGVzdCU1RA==",highlighted:`git <span class="hljs-built_in">clone</span> https://github.com/huggingface/peft | |
| <span class="hljs-built_in">cd</span> peft | |
| pip install -e .[<span class="hljs-built_in">test</span>]`,wrap:!1}}),w=new pt({props:{source:"https://github.com/huggingface/peft/blob/main/docs/source/install.md"}}),{c(){i=o("meta"),E=a(),G=o("p"),J=a(),v(m.$$.fragment),H=a(),r=o("p"),r.innerHTML=V,I=a(),f=o("p"),f.textContent=Y,j=a(),v(u.$$.fragment),Z=a(),$=o("p"),$.textContent=O,k=a(),v(d.$$.fragment),B=a(),v(c.$$.fragment),F=a(),h=o("p"),h.textContent=X,S=a(),v(g.$$.fragment),R=a(),y=o("p"),y.textContent=D,W=a(),v(b.$$.fragment),z=a(),v(w.$$.fragment),A=a(),M=o("p"),this.h()},l(t){const e=it("svelte-u9bgzb",document.head);i=p(e,"META",{name:!0,content:!0}),e.forEach(n),E=s(t),G=p(t,"P",{}),K(G).forEach(n),J=s(t),P(m.$$.fragment,t),H=s(t),r=p(t,"P",{"data-svelte-h":!0}),U(r)!=="svelte-d8f1ea"&&(r.innerHTML=V),I=s(t),f=p(t,"P",{"data-svelte-h":!0}),U(f)!=="svelte-1nqr6cd"&&(f.textContent=Y),j=s(t),P(u.$$.fragment,t),Z=s(t),$=p(t,"P",{"data-svelte-h":!0}),U($)!=="svelte-11e4t5g"&&($.textContent=O),k=s(t),P(d.$$.fragment,t),B=s(t),P(c.$$.fragment,t),F=s(t),h=p(t,"P",{"data-svelte-h":!0}),U(h)!=="svelte-d57qqf"&&(h.textContent=X),S=s(t),P(g.$$.fragment,t),R=s(t),y=p(t,"P",{"data-svelte-h":!0}),U(y)!=="svelte-1vkgb3u"&&(y.textContent=D),W=s(t),P(b.$$.fragment,t),z=s(t),P(w.$$.fragment,t),A=s(t),M=p(t,"P",{}),K(M).forEach(n),this.h()},h(){tt(i,"name","hf:doc:metadata"),tt(i,"content",rt)},m(t,e){ot(document.head,i),l(t,E,e),l(t,G,e),l(t,J,e),_(m,t,e),l(t,H,e),l(t,r,e),l(t,I,e),l(t,f,e),l(t,j,e),_(u,t,e),l(t,Z,e),l(t,$,e),l(t,k,e),_(d,t,e),l(t,B,e),_(c,t,e),l(t,F,e),l(t,h,e),l(t,S,e),_(g,t,e),l(t,R,e),l(t,y,e),l(t,W,e),_(b,t,e),l(t,z,e),_(w,t,e),l(t,A,e),l(t,M,e),L=!0},p:nt,i(t){L||(C(m.$$.fragment,t),C(u.$$.fragment,t),C(d.$$.fragment,t),C(c.$$.fragment,t),C(g.$$.fragment,t),C(b.$$.fragment,t),C(w.$$.fragment,t),L=!0)},o(t){T(m.$$.fragment,t),T(u.$$.fragment,t),T(d.$$.fragment,t),T(c.$$.fragment,t),T(g.$$.fragment,t),T(b.$$.fragment,t),T(w.$$.fragment,t),L=!1},d(t){t&&(n(E),n(G),n(J),n(H),n(r),n(I),n(f),n(j),n(Z),n($),n(k),n(B),n(F),n(h),n(S),n(R),n(y),n(W),n(z),n(A),n(M)),n(i),x(m,t),x(u,t),x(d,t),x(c,t),x(g,t),x(b,t),x(w,t)}}}const rt='{"title":"Installation","local":"installation","sections":[{"title":"PyPI","local":"pypi","sections":[],"depth":2},{"title":"Source","local":"source","sections":[],"depth":2}],"depth":1}';function ft(q){return lt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ht extends at{constructor(i){super(),st(this,i,ft,mt,et,{})}}export{ht as component}; | |
Xet Storage Details
- Size:
- 4.4 kB
- Xet hash:
- 0fc11e3e353b0eecda8087402eca7d8301d2041a4ece7fd02ced4b211d0596ee
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.