import{s as fe,n as me,o as ue}from"../chunks/scheduler.4cd3e004.js";import{S as de,i as ce,e as o,s as l,c as x,h as Te,a as f,d as a,b as n,f as X,g as C,j as y,k as j,l as r,m as i,n as O,t as k,o as R,p as S}from"../chunks/index.b664cb2d.js";import{D as oe}from"../chunks/Docstring.9ceb4334.js";import{H as ee,E as ge}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.179b63f8.js";function $e(te){let m,w,I,F,c,U,T,ae='<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.',H,g,D,s,$,B,P,le="Enum class for the different types of adapters in PEFT.",z,E,ne="Supported PEFT types:",Y,N,ie="<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>",q,_,G,p,h,J,b,se="Enum class for the different types of tasks supported by PEFT.",W,L,pe="Overview of the supported task types:",Z,A,re=`<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>`,Q,v,K,M,V;return c=new ee({props:{title:"PEFT types",local:"peft-types",headingTag:"h1"}}),g=new ee({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"}}),_=new ee({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#L79"}}),v=new ge({props:{source:"https://github.com/huggingface/peft/blob/main/docs/source/package_reference/peft_types.md"}}),{c(){m=o("meta"),w=l(),I=o("p"),F=l(),x(c.$$.fragment),U=l(),T=o("p"),T.innerHTML=ae,H=l(),x(g.$$.fragment),D=l(),s=o("div"),x($.$$.fragment),B=l(),P=o("p"),P.textContent=le,z=l(),E=o("p"),E.textContent=ne,Y=l(),N=o("ul"),N.innerHTML=ie,q=l(),x(_.$$.fragment),G=l(),p=o("div"),x(h.$$.fragment),J=l(),b=o("p"),b.textContent=se,W=l(),L=o("p"),L.textContent=pe,Z=l(),A=o("ul"),A.innerHTML=re,Q=l(),x(v.$$.fragment),K=l(),M=o("p"),this.h()},l(e){const t=Te("svelte-u9bgzb",document.head);m=f(t,"META",{name:!0,content:!0}),t.forEach(a),w=n(e),I=f(e,"P",{}),X(I).forEach(a),F=n(e),C(c.$$.fragment,e),U=n(e),T=f(e,"P",{"data-svelte-h":!0}),y(T)!=="svelte-1m2hslm"&&(T.innerHTML=ae),H=n(e),C(g.$$.fragment,e),D=n(e),s=f(e,"DIV",{class:!0});var u=X(s);C($.$$.fragment,u),B=n(u),P=f(u,"P",{"data-svelte-h":!0}),y(P)!=="svelte-12q47m8"&&(P.textContent=le),z=n(u),E=f(u,"P",{"data-svelte-h":!0}),y(E)!=="svelte-8tjp18"&&(E.textContent=ne),Y=n(u),N=f(u,"UL",{"data-svelte-h":!0}),y(N)!=="svelte-1578kg1"&&(N.innerHTML=ie),u.forEach(a),q=n(e),C(_.$$.fragment,e),G=n(e),p=f(e,"DIV",{class:!0});var d=X(p);C(h.$$.fragment,d),J=n(d),b=f(d,"P",{"data-svelte-h":!0}),y(b)!=="svelte-1fs64u2"&&(b.textContent=se),W=n(d),L=f(d,"P",{"data-svelte-h":!0}),y(L)!=="svelte-f3it03"&&(L.textContent=pe),Z=n(d),A=f(d,"UL",{"data-svelte-h":!0}),y(A)!=="svelte-163k0ki"&&(A.innerHTML=re),d.forEach(a),Q=n(e),C(v.$$.fragment,e),K=n(e),M=f(e,"P",{}),X(M).forEach(a),this.h()},h(){j(m,"name","hf:doc:metadata"),j(m,"content",_e),j(s,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(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,I,t),i(e,F,t),O(c,e,t),i(e,U,t),i(e,T,t),i(e,H,t),O(g,e,t),i(e,D,t),i(e,s,t),O($,s,null),r(s,B),r(s,P),r(s,z),r(s,E),r(s,Y),r(s,N),i(e,q,t),O(_,e,t),i(e,G,t),i(e,p,t),O(h,p,null),r(p,J),r(p,b),r(p,W),r(p,L),r(p,Z),r(p,A),i(e,Q,t),O(v,e,t),i(e,K,t),i(e,M,t),V=!0},p:me,i(e){V||(k(c.$$.fragment,e),k(g.$$.fragment,e),k($.$$.fragment,e),k(_.$$.fragment,e),k(h.$$.fragment,e),k(v.$$.fragment,e),V=!0)},o(e){R(c.$$.fragment,e),R(g.$$.fragment,e),R($.$$.fragment,e),R(_.$$.fragment,e),R(h.$$.fragment,e),R(v.$$.fragment,e),V=!1},d(e){e&&(a(w),a(I),a(F),a(U),a(T),a(H),a(D),a(s),a(q),a(G),a(p),a(Q),a(K),a(M)),a(m),S(c,e),S(g,e),S($),S(_,e),S(h),S(v,e)}}}const _e='{"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 he(te){return ue(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ne extends de{constructor(m){super(),ce(this,m,he,$e,fe,{})}}export{Ne as component};
