import{s as ue,n as de,o as ce}from"../chunks/scheduler.78382b47.js";import{S as Te,i as $e,e as f,s as a,c as P,h as ge,a as o,d as l,b as n,f as z,g as E,j as L,k as B,l as r,m as i,n as x,t as A,o as b,p as N}from"../chunks/index.6dd35eb6.js";import{C as _e,H as le,E as ve}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.6888f903.js";import{D as me}from"../chunks/Docstring.286e0aef.js";function ye(ae){let m,w,F,U,c,H,T,D,$,ne='<a href="/docs/peft/v0.18.0/en/package_reference/peft_types#peft.PeftType">PeftType</a> includes the supported adapters in PEFT, and <a href="/docs/peft/v0.18.0/en/package_reference/peft_types#peft.TaskType">TaskType</a> includes PEFT-supported tasks.',G,g,q,s,_,W,C,ie="Enum class for the different types of adapters in PEFT.",Y,O,se="Supported PEFT types:",J,R,pe="<li>PROMPT_TUNING</li> <li>MULTITASK_PROMPT_TUNING</li> <li>P_TUNING</li> <li>PREFIX_TUNING</li> <li>LORA</li> <li>ADALORA</li> <li>BOFT</li> <li>ADAPTION_PROMPT</li> <li>IA3</li> <li>LOHA</li> <li>LOKR</li> <li>OFT</li> <li>XLORA</li> <li>POLY</li> <li>LN_TUNING</li> <li>VERA</li> <li>FOURIERFT</li> <li>HRA</li> <li>BONE</li> <li>MISS</li> <li>RANDLORA</li> <li>SHIRA</li> <li>C3A</li> <li>ROAD</li> <li>WAVEFT</li> <li>OSF</li> <li>DELORA</li> <li>GRALORA</li>",Q,v,V,p,y,Z,k,re="Enum class for the different types of tasks supported by PEFT.",ee,S,fe="Overview of the supported task types:",te,M,oe=`<li>SEQ_CLS: Text classification.</li> <li>SEQ_2_SEQ_LM: Sequence-to-sequence language modeling.</li> <li>CAUSAL_LM: Causal language modeling.</li> <li>TOKEN_CLS: Token classification.</li> <li>QUESTION_ANS: Question answering.</li> <li>FEATURE_EXTRACTION: Feature extraction. Provides the hidden states which can be used as embeddings or features
for downstream tasks.</li>`,K,h,X,I,j;return c=new _e({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),T=new le({props:{title:"PEFT types",local:"peft-types",headingTag:"h1"}}),g=new le({props:{title:"PeftType",local:"peft.PeftType",headingTag:"h2"}}),_=new me({props:{name:"class peft.PeftType",anchor:"peft.PeftType",parameters:[{name:"value",val:""},{name:"names",val:" = None"},{name:"module",val:" = None"},{name:"qualname",val:" = None"},{name:"type",val:" = None"},{name:"start",val:" = 1"}],source:"https://github.com/huggingface/peft/blob/v0.18.0/src/peft/utils/peft_types.py#L19"}}),v=new le({props:{title:"TaskType",local:"peft.TaskType",headingTag:"h2"}}),y=new me({props:{name:"class peft.TaskType",anchor:"peft.TaskType",parameters:[{name:"value",val:""},{name:"names",val:" = None"},{name:"module",val:" = None"},{name:"qualname",val:" = None"},{name:"type",val:" = None"},{name:"start",val:" = 1"}],source:"https://github.com/huggingface/peft/blob/v0.18.0/src/peft/utils/peft_types.py#L87"}}),h=new ve({props:{source:"https://github.com/huggingface/peft/blob/main/docs/source/package_reference/peft_types.md"}}),{c(){m=f("meta"),w=a(),F=f("p"),U=a(),P(c.$$.fragment),H=a(),P(T.$$.fragment),D=a(),$=f("p"),$.innerHTML=ne,G=a(),P(g.$$.fragment),q=a(),s=f("div"),P(_.$$.fragment),W=a(),C=f("p"),C.textContent=ie,Y=a(),O=f("p"),O.textContent=se,J=a(),R=f("ul"),R.innerHTML=pe,Q=a(),P(v.$$.fragment),V=a(),p=f("div"),P(y.$$.fragment),Z=a(),k=f("p"),k.textContent=re,ee=a(),S=f("p"),S.textContent=fe,te=a(),M=f("ul"),M.innerHTML=oe,K=a(),P(h.$$.fragment),X=a(),I=f("p"),this.h()},l(e){const t=ge("svelte-u9bgzb",document.head);m=o(t,"META",{name:!0,content:!0}),t.forEach(l),w=n(e),F=o(e,"P",{}),z(F).forEach(l),U=n(e),E(c.$$.fragment,e),H=n(e),E(T.$$.fragment,e),D=n(e),$=o(e,"P",{"data-svelte-h":!0}),L($)!=="svelte-2tchuy"&&($.innerHTML=ne),G=n(e),E(g.$$.fragment,e),q=n(e),s=o(e,"DIV",{class:!0});var u=z(s);E(_.$$.fragment,u),W=n(u),C=o(u,"P",{"data-svelte-h":!0}),L(C)!=="svelte-12q47m8"&&(C.textContent=ie),Y=n(u),O=o(u,"P",{"data-svelte-h":!0}),L(O)!=="svelte-8tjp18"&&(O.textContent=se),J=n(u),R=o(u,"UL",{"data-svelte-h":!0}),L(R)!=="svelte-1eb9itn"&&(R.innerHTML=pe),u.forEach(l),Q=n(e),E(v.$$.fragment,e),V=n(e),p=o(e,"DIV",{class:!0});var d=z(p);E(y.$$.fragment,d),Z=n(d),k=o(d,"P",{"data-svelte-h":!0}),L(k)!=="svelte-1fs64u2"&&(k.textContent=re),ee=n(d),S=o(d,"P",{"data-svelte-h":!0}),L(S)!=="svelte-f3it03"&&(S.textContent=fe),te=n(d),M=o(d,"UL",{"data-svelte-h":!0}),L(M)!=="svelte-163k0ki"&&(M.innerHTML=oe),d.forEach(l),K=n(e),E(h.$$.fragment,e),X=n(e),I=o(e,"P",{}),z(I).forEach(l),this.h()},h(){B(m,"name","hf:doc:metadata"),B(m,"content",he),B(s,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),B(p,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){r(document.head,m),i(e,w,t),i(e,F,t),i(e,U,t),x(c,e,t),i(e,H,t),x(T,e,t),i(e,D,t),i(e,$,t),i(e,G,t),x(g,e,t),i(e,q,t),i(e,s,t),x(_,s,null),r(s,W),r(s,C),r(s,Y),r(s,O),r(s,J),r(s,R),i(e,Q,t),x(v,e,t),i(e,V,t),i(e,p,t),x(y,p,null),r(p,Z),r(p,k),r(p,ee),r(p,S),r(p,te),r(p,M),i(e,K,t),x(h,e,t),i(e,X,t),i(e,I,t),j=!0},p:de,i(e){j||(A(c.$$.fragment,e),A(T.$$.fragment,e),A(g.$$.fragment,e),A(_.$$.fragment,e),A(v.$$.fragment,e),A(y.$$.fragment,e),A(h.$$.fragment,e),j=!0)},o(e){b(c.$$.fragment,e),b(T.$$.fragment,e),b(g.$$.fragment,e),b(_.$$.fragment,e),b(v.$$.fragment,e),b(y.$$.fragment,e),b(h.$$.fragment,e),j=!1},d(e){e&&(l(w),l(F),l(U),l(H),l(D),l($),l(G),l(q),l(s),l(Q),l(V),l(p),l(K),l(X),l(I)),l(m),N(c,e),N(T,e),N(g,e),N(_),N(v,e),N(y),N(h,e)}}}const he='{"title":"PEFT types","local":"peft-types","sections":[{"title":"PeftType","local":"peft.PeftType","sections":[],"depth":2},{"title":"TaskType","local":"peft.TaskType","sections":[],"depth":2}],"depth":1}';function Pe(ae){return ce(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class be extends Te{constructor(m){super(),$e(this,m,Pe,ye,ue,{})}}export{be as component};
