import{s as et,n as nt,o as lt}from"../chunks/scheduler.4cd3e004.js";import{S as at,i as st,e as o,s as a,c as P,h as it,a as p,d as n,b as s,f as K,g as _,j as U,k as tt,l as ot,m as l,n as v,t as C,o as T,p as x}from"../chunks/index.b664cb2d.js";import{C as N}from"../chunks/CodeBlock.8601e34e.js";import{H as Q,E as pt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.179b63f8.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,b,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,y,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}}),y=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(),P(m.$$.fragment),H=a(),r=o("p"),r.innerHTML=V,I=a(),f=o("p"),f.textContent=Y,j=a(),P(u.$$.fragment),Z=a(),$=o("p"),$.textContent=O,k=a(),P(d.$$.fragment),B=a(),P(c.$$.fragment),F=a(),h=o("p"),h.textContent=X,S=a(),P(g.$$.fragment),R=a(),b=o("p"),b.textContent=D,W=a(),P(y.$$.fragment),z=a(),P(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),_(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),_(u.$$.fragment,t),Z=s(t),$=p(t,"P",{"data-svelte-h":!0}),U($)!=="svelte-11e4t5g"&&($.textContent=O),k=s(t),_(d.$$.fragment,t),B=s(t),_(c.$$.fragment,t),F=s(t),h=p(t,"P",{"data-svelte-h":!0}),U(h)!=="svelte-d57qqf"&&(h.textContent=X),S=s(t),_(g.$$.fragment,t),R=s(t),b=p(t,"P",{"data-svelte-h":!0}),U(b)!=="svelte-1vkgb3u"&&(b.textContent=D),W=s(t),_(y.$$.fragment,t),z=s(t),_(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),v(m,t,e),l(t,H,e),l(t,r,e),l(t,I,e),l(t,f,e),l(t,j,e),v(u,t,e),l(t,Z,e),l(t,$,e),l(t,k,e),v(d,t,e),l(t,B,e),v(c,t,e),l(t,F,e),l(t,h,e),l(t,S,e),v(g,t,e),l(t,R,e),l(t,b,e),l(t,W,e),v(y,t,e),l(t,z,e),v(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(y.$$.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(y.$$.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(b),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(y,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};
