import{s as ue,n as de,o as Te}from"../chunks/scheduler.78382b47.js";import{S as ce,i as $e,e as f,s as a,c as P,h as ge,a as m,d as l,b as n,f as j,g as E,j as A,k as B,l as r,m as i,n as L,t as x,o as N,p as b}from"../chunks/index.6dd35eb6.js";import{C as _e,H as le,E as ye}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.fed9dfe4.js";import{D as oe}from"../chunks/Docstring.32e826ec.js";function he(ae){let o,w,F,U,T,H,c,D,$,ne='<a href="/docs/peft/main/en/package_reference/peft_types#peft.PeftType">PeftType</a> includes the supported adapters in PEFT, and <a href="/docs/peft/main/en/package_reference/peft_types#peft.TaskType">TaskType</a> includes PEFT-supported tasks.',q,g,G,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> <li>ADAMSS</li>",Q,y,V,p,h,Z,S,re="Enum class for the different types of tasks supported by PEFT.",ee,k,fe="Overview of the supported task types:",te,M,me=`<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>`,z,v,K,I,X;return T=new _e({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),c=new le({props:{title:"PEFT types",local:"peft-types",headingTag:"h1"}}),g=new le({props:{title:"PeftType",local:"peft.PeftType",headingTag:"h2"}}),_=new oe({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/main/src/peft/utils/peft_types.py#L19"}}),y=new le({props:{title:"TaskType",local:"peft.TaskType",headingTag:"h2"}}),h=new oe({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/main/src/peft/utils/peft_types.py#L94"}}),v=new ye({props:{source:"https://github.com/huggingface/peft/blob/main/docs/source/package_reference/peft_types.md"}}),{c(){o=f("meta"),w=a(),F=f("p"),U=a(),P(T.$$.fragment),H=a(),P(c.$$.fragment),D=a(),$=f("p"),$.innerHTML=ne,q=a(),P(g.$$.fragment),G=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(y.$$.fragment),V=a(),p=f("div"),P(h.$$.fragment),Z=a(),S=f("p"),S.textContent=re,ee=a(),k=f("p"),k.textContent=fe,te=a(),M=f("ul"),M.innerHTML=me,z=a(),P(v.$$.fragment),K=a(),I=f("p"),this.h()},l(e){const t=ge("svelte-u9bgzb",document.head);o=m(t,"META",{name:!0,content:!0}),t.forEach(l),w=n(e),F=m(e,"P",{}),j(F).forEach(l),U=n(e),E(T.$$.fragment,e),H=n(e),E(c.$$.fragment,e),D=n(e),$=m(e,"P",{"data-svelte-h":!0}),A($)!=="svelte-1m2hslm"&&($.innerHTML=ne),q=n(e),E(g.$$.fragment,e),G=n(e),s=m(e,"DIV",{class:!0});var u=j(s);E(_.$$.fragment,u),W=n(u),C=m(u,"P",{"data-svelte-h":!0}),A(C)!=="svelte-12q47m8"&&(C.textContent=ie),Y=n(u),O=m(u,"P",{"data-svelte-h":!0}),A(O)!=="svelte-8tjp18"&&(O.textContent=se),J=n(u),R=m(u,"UL",{"data-svelte-h":!0}),A(R)!=="svelte-9quyzf"&&(R.innerHTML=pe),u.forEach(l),Q=n(e),E(y.$$.fragment,e),V=n(e),p=m(e,"DIV",{class:!0});var d=j(p);E(h.$$.fragment,d),Z=n(d),S=m(d,"P",{"data-svelte-h":!0}),A(S)!=="svelte-1fs64u2"&&(S.textContent=re),ee=n(d),k=m(d,"P",{"data-svelte-h":!0}),A(k)!=="svelte-f3it03"&&(k.textContent=fe),te=n(d),M=m(d,"UL",{"data-svelte-h":!0}),A(M)!=="svelte-163k0ki"&&(M.innerHTML=me),d.forEach(l),z=n(e),E(v.$$.fragment,e),K=n(e),I=m(e,"P",{}),j(I).forEach(l),this.h()},h(){B(o,"name","hf:doc:metadata"),B(o,"content",ve),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,o),i(e,w,t),i(e,F,t),i(e,U,t),L(T,e,t),i(e,H,t),L(c,e,t),i(e,D,t),i(e,$,t),i(e,q,t),L(g,e,t),i(e,G,t),i(e,s,t),L(_,s,null),r(s,W),r(s,C),r(s,Y),r(s,O),r(s,J),r(s,R),i(e,Q,t),L(y,e,t),i(e,V,t),i(e,p,t),L(h,p,null),r(p,Z),r(p,S),r(p,ee),r(p,k),r(p,te),r(p,M),i(e,z,t),L(v,e,t),i(e,K,t),i(e,I,t),X=!0},p:de,i(e){X||(x(T.$$.fragment,e),x(c.$$.fragment,e),x(g.$$.fragment,e),x(_.$$.fragment,e),x(y.$$.fragment,e),x(h.$$.fragment,e),x(v.$$.fragment,e),X=!0)},o(e){N(T.$$.fragment,e),N(c.$$.fragment,e),N(g.$$.fragment,e),N(_.$$.fragment,e),N(y.$$.fragment,e),N(h.$$.fragment,e),N(v.$$.fragment,e),X=!1},d(e){e&&(l(w),l(F),l(U),l(H),l(D),l($),l(q),l(G),l(s),l(Q),l(V),l(p),l(z),l(K),l(I)),l(o),b(T,e),b(c,e),b(g,e),b(_),b(y,e),b(h),b(v,e)}}}const ve='{"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 Te(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ne extends ce{constructor(o){super(),$e(this,o,Pe,he,ue,{})}}export{Ne as component};
