import{s as lt,n as at,o as it}from"../chunks/scheduler.78382b47.js";import{S as st,i as pt,e as p,s as a,c as m,h as mt,a as o,d as n,b as i,f as et,g as r,j as E,k as nt,l as ot,m as l,n as f,t as $,o as u,p as d}from"../chunks/index.6dd35eb6.js";import{C as rt,H as q,E as ft}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.fed9dfe4.js";import{C as V}from"../chunks/CodeBlock.af1ec02e.js";function $t(Y){let s,J,G,H,g,I,h,j,c,O="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>.",Z,y,X="🤗 PEFT is available on PyPI, as well as GitHub:",k,b,B,w,D="To install 🤗 PEFT from PyPI:",F,v,S,C,z,P,K="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:",L,_,R,x,tt=`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,T,A,M,N,U,Q;return g=new rt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),h=new q({props:{title:"Installation",local:"installation",headingTag:"h1"}}),b=new q({props:{title:"PyPI",local:"pypi",headingTag:"h2"}}),v=new V({props:{code:"cGlwJTIwaW5zdGFsbCUyMHBlZnQ=",highlighted:"pip install peft",wrap:!1}}),C=new q({props:{title:"Source",local:"source",headingTag:"h2"}}),_=new V({props:{code:"cGlwJTIwaW5zdGFsbCUyMGdpdCUyQmh0dHBzJTNBJTJGJTJGZ2l0aHViLmNvbSUyRmh1Z2dpbmdmYWNlJTJGcGVmdA==",highlighted:"pip install git+https://github.com/huggingface/peft",wrap:!1}}),T=new V({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}}),M=new ft({props:{source:"https://github.com/huggingface/peft/blob/main/docs/source/install.md"}}),{c(){s=p("meta"),J=a(),G=p("p"),H=a(),m(g.$$.fragment),I=a(),m(h.$$.fragment),j=a(),c=p("p"),c.innerHTML=O,Z=a(),y=p("p"),y.textContent=X,k=a(),m(b.$$.fragment),B=a(),w=p("p"),w.textContent=D,F=a(),m(v.$$.fragment),S=a(),m(C.$$.fragment),z=a(),P=p("p"),P.textContent=K,L=a(),m(_.$$.fragment),R=a(),x=p("p"),x.textContent=tt,W=a(),m(T.$$.fragment),A=a(),m(M.$$.fragment),N=a(),U=p("p"),this.h()},l(t){const e=mt("svelte-u9bgzb",document.head);s=o(e,"META",{name:!0,content:!0}),e.forEach(n),J=i(t),G=o(t,"P",{}),et(G).forEach(n),H=i(t),r(g.$$.fragment,t),I=i(t),r(h.$$.fragment,t),j=i(t),c=o(t,"P",{"data-svelte-h":!0}),E(c)!=="svelte-d8f1ea"&&(c.innerHTML=O),Z=i(t),y=o(t,"P",{"data-svelte-h":!0}),E(y)!=="svelte-1nqr6cd"&&(y.textContent=X),k=i(t),r(b.$$.fragment,t),B=i(t),w=o(t,"P",{"data-svelte-h":!0}),E(w)!=="svelte-11e4t5g"&&(w.textContent=D),F=i(t),r(v.$$.fragment,t),S=i(t),r(C.$$.fragment,t),z=i(t),P=o(t,"P",{"data-svelte-h":!0}),E(P)!=="svelte-d57qqf"&&(P.textContent=K),L=i(t),r(_.$$.fragment,t),R=i(t),x=o(t,"P",{"data-svelte-h":!0}),E(x)!=="svelte-1vkgb3u"&&(x.textContent=tt),W=i(t),r(T.$$.fragment,t),A=i(t),r(M.$$.fragment,t),N=i(t),U=o(t,"P",{}),et(U).forEach(n),this.h()},h(){nt(s,"name","hf:doc:metadata"),nt(s,"content",ut)},m(t,e){ot(document.head,s),l(t,J,e),l(t,G,e),l(t,H,e),f(g,t,e),l(t,I,e),f(h,t,e),l(t,j,e),l(t,c,e),l(t,Z,e),l(t,y,e),l(t,k,e),f(b,t,e),l(t,B,e),l(t,w,e),l(t,F,e),f(v,t,e),l(t,S,e),f(C,t,e),l(t,z,e),l(t,P,e),l(t,L,e),f(_,t,e),l(t,R,e),l(t,x,e),l(t,W,e),f(T,t,e),l(t,A,e),f(M,t,e),l(t,N,e),l(t,U,e),Q=!0},p:at,i(t){Q||($(g.$$.fragment,t),$(h.$$.fragment,t),$(b.$$.fragment,t),$(v.$$.fragment,t),$(C.$$.fragment,t),$(_.$$.fragment,t),$(T.$$.fragment,t),$(M.$$.fragment,t),Q=!0)},o(t){u(g.$$.fragment,t),u(h.$$.fragment,t),u(b.$$.fragment,t),u(v.$$.fragment,t),u(C.$$.fragment,t),u(_.$$.fragment,t),u(T.$$.fragment,t),u(M.$$.fragment,t),Q=!1},d(t){t&&(n(J),n(G),n(H),n(I),n(j),n(c),n(Z),n(y),n(k),n(B),n(w),n(F),n(S),n(z),n(P),n(L),n(R),n(x),n(W),n(A),n(N),n(U)),n(s),d(g,t),d(h,t),d(b,t),d(v,t),d(C,t),d(_,t),d(T,t),d(M,t)}}}const ut='{"title":"Installation","local":"installation","sections":[{"title":"PyPI","local":"pypi","sections":[],"depth":2},{"title":"Source","local":"source","sections":[],"depth":2}],"depth":1}';function dt(Y){return it(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class bt extends st{constructor(s){super(),pt(this,s,dt,$t,lt,{})}}export{bt as component};
