import{s as et,o as tt,n as Be}from"../chunks/scheduler.78382b47.js";import{S as at,i as nt,e as i,s as o,c as L,h as ot,a as p,d as s,b as r,f as ae,g as w,j as g,k as ne,l as a,m as d,n as y,t as T,o as A,p as x}from"../chunks/index.6dd35eb6.js";import{C as rt,H as Ne,E as st}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.6888f903.js";import{D as he}from"../chunks/Docstring.286e0aef.js";import{C as Ke}from"../chunks/CodeBlock.658dd679.js";import{E as Xe}from"../chunks/ExampleCodeBlock.3f133c9f.js";function lt(z){let l,M="Example:",_,m,u;return m=new Ke({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcTJTZXFMTSUyMCUzRSUzRSUzRSUyMGZyb20lMjBwZWZ0JTIwaW1wb3J0JTIwTG9yYUNvbmZpZyUyQyUyMEFkYUxvcmFNb2RlbCUyQyUyMEFkYUxvcmFDb25maWclMEFjb25maWclMjAlM0QlMjBBZGFMb3JhQ29uZmlnKCUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yU2VxMlNlcUxNLmZyb21fcHJldHJhaW5lZCglMjJ0NS1iYXNlJTIyKSUyMCUzRSUzRSUzRSUyMG1vZGVsJTIwJTNEJTIwQWRhTG9yYU1vZGVsKG1vZGVsJTJDJTIwY29uZmlnJTJDJTIwJTIyZGVmYXVsdCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSeq2SeqLM &gt;&gt;&gt; <span class="hljs-keyword">from</span> peft <span class="hljs-keyword">import</span> LoraConfig, AdaLoraModel, AdaLoraConfig
<span class="hljs-meta">&gt;&gt;&gt; </span>config = AdaLoraConfig(
peft_type=<span class="hljs-string">&quot;ADALORA&quot;</span>, task_type=<span class="hljs-string">&quot;SEQ_2_SEQ_LM&quot;</span>, init_r=<span class="hljs-number">12</span>, lora_alpha=<span class="hljs-number">32</span>, target_modules=[<span class="hljs-string">&quot;q&quot;</span>, <span class="hljs-string">&quot;v&quot;</span>],
lora_dropout=<span class="hljs-number">0.01</span>,
)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForSeq2SeqLM.from_pretrained(<span class="hljs-string">&quot;t5-base&quot;</span>) &gt;&gt;&gt; model = AdaLoraModel(model, config, <span class="hljs-string">&quot;default&quot;</span>)`,wrap:!1}}),{c(){l=i("p"),l.textContent=M,_=o(),L(m.$$.fragment)},l(t){l=p(t,"P",{"data-svelte-h":!0}),g(l)!=="svelte-11lpom8"&&(l.textContent=M),_=r(t),w(m.$$.fragment,t)},m(t,b){d(t,l,b),d(t,_,b),y(m,t,b),u=!0},p:Be,i(t){u||(T(m.$$.fragment,t),u=!0)},o(t){A(m.$$.fragment,t),u=!1},d(t){t&&(s(l),s(_)),x(m,t)}}}function it(z){let l,M="Example:",_,m,u;return m=new Ke({props:{code:"bG9zcyUyMCUzRCUyMG1vZGVsKCoqaW5wdXQpLmxvc3MlMEFsb3NzLmJhY2t3YXJkKCklMEFvcHRpbWl6ZXIuc3RlcCgpJTBBbW9kZWwuYmFzZV9tb2RlbC51cGRhdGVfYW5kX2FsbG9jYXRlKGlfc3RlcCklMEFvcHRpbWl6ZXIuemVyb19ncmFkKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**<span class="hljs-built_in">input</span>).loss
<span class="hljs-meta">&gt;&gt;&gt; </span>loss.backward()
<span class="hljs-meta">&gt;&gt;&gt; </span>optimizer.step()
<span class="hljs-meta">&gt;&gt;&gt; </span>model.base_model.update_and_allocate(i_step)
<span class="hljs-meta">&gt;&gt;&gt; </span>optimizer.zero_grad()`,wrap:!1}}),{c(){l=i("p"),l.textContent=M,_=o(),L(m.$$.fragment)},l(t){l=p(t,"P",{"data-svelte-h":!0}),g(l)!=="svelte-11lpom8"&&(l.textContent=M),_=r(t),w(m.$$.fragment,t)},m(t,b){d(t,l,b),d(t,_,b),y(m,t,b),u=!0},p:Be,i(t){u||(T(m.$$.fragment,t),u=!0)},o(t){A(m.$$.fragment,t),u=!1},d(t){t&&(s(l),s(_)),x(m,t)}}}function pt(z){let l,M,_,m,u,t,b,re,j,qe='<a href="https://hf.co/papers/2303.10512" rel="nofollow">AdaLoRA</a> is a method for optimizing the number of trainable parameters to assign to weight matrices and layers, unlike LoRA, which distributes parameters evenly across all modules. More parameters are budgeted for important weight matrices and layers while less important ones receive fewer parameters.',se,H,Ee="The abstract from the paper is:",le,N,Je='<em>Fine-tuning large pre-trained language models on downstream tasks has become an important paradigm in NLP. However, common practice fine-tunes all of the parameters in a pre-trained model, which becomes prohibitive when a large number of downstream tasks are present. Therefore, many fine-tuning methods are proposed to learn incremental updates of pre-trained weights in a parameter efficient way, e.g., low-rank increments. These methods often evenly distribute the budget of incremental updates across all pre-trained weight matrices, and overlook the varying importance of different weight parameters. As a consequence, the fine-tuning performance is suboptimal. To bridge this gap, we propose AdaLoRA, which adaptively allocates the parameter budget among weight matrices according to their importance score. In particular, AdaLoRA parameterizes the incremental updates in the form of singular value decomposition. Such a novel approach allows us to effectively prune the singular values of unimportant updates, which is essentially to reduce their parameter budget but circumvent intensive exact SVD computations. We conduct extensive experiments with several pre-trained models on natural language processing, question answering, and natural language generation to validate the effectiveness of AdaLoRA. Results demonstrate that AdaLoRA manifests notable improvement over baselines, especially in the low budget settings. Our code is publicly available at <a href="https://github.com/QingruZhang/AdaLoRA" rel="nofollow">https://github.com/QingruZhang/AdaLoRA</a></em>.',ie,q,pe,c,E,ve,G,Pe="This is the configuration class to store the configuration of a <code>~peft.AdaLora</code>.",_e,S,Ze="AdaLoRA has three phases defined by <code>tinit</code>, <code>tfinal</code> and <code>total_step</code>.",be,V,Oe=`The initial phase can be understood as a step for pre-training the adapters so that when reducing their rank, there
is already some information encoded that can be reduced instead of random matrices. This phase is defined by
supplying <code>tinit</code>.`,$e,W,Fe=`After the initial phase is over (<code>tinit</code> steps have passed) and the final phase has not begun, AdaLoRA reduces the
budget of how much rank each layer is allowed to have with each step. This is where the reduction of rank is
happening. This goes on until <code>total_step - tfinal</code> steps are reached.`,Le,I,ze=`The last phase, beginning once <code>total_step - tfinal</code> steps are reached, does not change the layer ranks anymore but
fine-tunes the reduced-rank layers that resulted from the previous phase.`,we,D,Ge=`A practical example: <code>tinit</code> is 10, <code>tfinal</code> is 20, <code>total_step</code> is 100. We spend 10 steps doing pre-training
without rank reduction because our budget is constant (init phase), then we spend 80 (100-20) steps in the
reduction phase where our budget decreases step-wise and, finally, 20 steps in the final fine-tuning stage without
reduction.`,de,J,me,f,P,ye,Y,Se=`Creates AdaLoRA (Adaptive LoRA) model from a pretrained transformers model. Paper:
<a href="https://openreview.net/forum?id=lq62uWRJjiY" rel="nofollow">https://openreview.net/forum?id=lq62uWRJjiY</a>`,Te,k,Ae,Q,Ve="<strong>Attributes</strong>:",xe,X,We="<li><strong>model</strong> ([<em>transformers.PreTrainedModel</em>]) — The model to be adapted.</li> <li><strong>peft_config</strong> ([<em>AdaLoraConfig</em>]): The configuration of the AdaLora model.</li>",Me,R,Z,Ce,B,Ie="This method is not supported for AdaLoRA, use LoRA instead.",ke,$,O,Re,K,De="This method updates Adalora budget and mask.",Ue,ee,Ye="This should be called in every training step after <code>loss.backward()</code> and before <code>zero_grad()</code>.",je,te,Qe="<code>tinit</code>, <code>tfinal</code> and <code>deltaT</code> are handled with in the method.",He,U,ce,F,fe,oe,ge;return u=new rt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),b=new Ne({props:{title:"AdaLoRA",local:"adalora",headingTag:"h1"}}),q=new Ne({props:{title:"AdaLoraConfig",local:"peft.AdaLoraConfig",headingTag:"h2"}}),E=new he({props:{name:"class peft.AdaLoraConfig",anchor:"peft.AdaLoraConfig",parameters:[{name:"task_type",val:": Optional[Union[str, TaskType]] = None"},{name:"peft_type",val:": Optional[Union[str, PeftType]] = None"},{name:"auto_mapping",val:": Optional[dict] = None"},{name:"peft_version",val:": Optional[str] = None"},{name:"base_model_name_or_path",val:": Optional[str] = None"},{name:"revision",val:": Optional[str] = None"},{name:"inference_mode",val:": bool = False"},{name:"r",val:": int = 8"},{name:"target_modules",val:": Optional[Union[list[str], str]] = None"},{name:"exclude_modules",val:": Optional[Union[list[str], str]] = None"},{name:"lora_alpha",val:": int = 8"},{name:"lora_dropout",val:": float = 0.0"},{name:"fan_in_fan_out",val:": bool = False"},{name:"bias",val:": Literal['none', 'all', 'lora_only'] = 'none'"},{name:"use_rslora",val:": bool = False"},{name:"modules_to_save",val:": Optional[list[str]] = None"},{name:"init_lora_weights",val:": bool | Literal['gaussian', 'eva', 'olora', 'pissa', 'pissa_niter_[number of iters]', 'corda', 'loftq', 'orthogonal'] = True"},{name:"layers_to_transform",val:": Optional[Union[list[int], int]] = None"},{name:"layers_pattern",val:": Optional[Union[list[str], str]] = None"},{name:"rank_pattern",val:": typing.Optional[dict] = None"},{name:"alpha_pattern",val:": Optional[dict] = <factory>"},{name:"megatron_config",val:": Optional[dict] = None"},{name:"megatron_core",val:": Optional[str] = 'megatron.core'"},{name:"trainable_token_indices",val:": Optional[Union[list[int], dict[str, list[int]]]] = None"},{name:"loftq_config",val:": Union[LoftQConfig, dict] = <factory>"},{name:"eva_config",val:": Optional[EvaConfig] = None"},{name:"corda_config",val:": Optional[CordaConfig] = None"},{name:"use_dora",val:": bool = False"},{name:"alora_invocation_tokens",val:": Optional[list[int]] = None"},{name:"use_qalora",val:": bool = False"},{name:"qalora_group_size",val:": int = 16"},{name:"layer_replication",val:": Optional[list[tuple[int, int]]] = None"},{name:"runtime_config",val:": LoraRuntimeConfig = <factory>"},{name:"lora_bias",val:": bool = False"},{name:"target_parameters",val:": Optional[list[str]] = None"},{name:"arrow_config",val:": Optional[ArrowConfig] = None"},{name:"ensure_weight_tying",val:": bool = False"},{name:"target_r",val:": int = 8"},{name:"init_r",val:": int = 12"},{name:"tinit",val:": int = 0"},{name:"tfinal",val:": int = 0"},{name:"deltaT",val:": int = 1"},{name:"beta1",val:": float = 0.85"},{name:"beta2",val:": float = 0.85"},{name:"orth_reg_weight",val:": float = 0.5"},{name:"total_step",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"peft.AdaLoraConfig.target_r",description:"<strong>target_r</strong> (<code>int</code>) &#x2014; The target average rank of incremental matrix.",name:"target_r"},{anchor:"peft.AdaLoraConfig.init_r",description:"<strong>init_r</strong> (<code>int</code>) &#x2014; The initial rank for each incremental matrix.",name:"init_r"},{anchor:"peft.AdaLoraConfig.tinit",description:"<strong>tinit</strong> (<code>int</code>) &#x2014; The steps of initial fine-tuning warmup.",name:"tinit"},{anchor:"peft.AdaLoraConfig.tfinal",description:"<strong>tfinal</strong> (<code>int</code>) &#x2014; The number of steps of final fine-tuning.",name:"tfinal"},{anchor:"peft.AdaLoraConfig.deltaT",description:"<strong>deltaT</strong> (<code>int</code>) &#x2014; The time internval between two budget allocations.",name:"deltaT"},{anchor:"peft.AdaLoraConfig.beta1",description:"<strong>beta1</strong> (<code>float</code>) &#x2014; The hyperparameter of EMA for sensitivity smoothing.",name:"beta1"},{anchor:"peft.AdaLoraConfig.beta2",description:"<strong>beta2</strong> (<code>float</code>) &#x2014; The hyperparameter of EMA for undertainty quantification.",name:"beta2"},{anchor:"peft.AdaLoraConfig.orth_reg_weight",description:"<strong>orth_reg_weight</strong> (<code>float</code>) &#x2014; The coefficient of orthogonal regularization.",name:"orth_reg_weight"},{anchor:"peft.AdaLoraConfig.total_step",description:"<strong>total_step</strong> (<code>int</code>) &#x2014; The total training steps that should be specified before training.",name:"total_step"},{anchor:"peft.AdaLoraConfig.rank_pattern",description:"<strong>rank_pattern</strong> (<code>list</code>) &#x2014; The allocated rank for each weight matrix by RankAllocator.",name:"rank_pattern"}],source:"https://github.com/huggingface/peft/blob/v0.18.0/src/peft/tuners/adalora/config.py#L24"}}),J=new Ne({props:{title:"AdaLoraModel",local:"peft.AdaLoraModel",headingTag:"h2"}}),P=new he({props:{name:"class peft.AdaLoraModel",anchor:"peft.AdaLoraModel",parameters:[{name:"model",val:""},{name:"config",val:""},{name:"adapter_name",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"peft.AdaLoraModel.model",description:"<strong>model</strong> ([<em>transformers.PreTrainedModel</em>]) &#x2014; The model to be adapted.",name:"model"},{anchor:"peft.AdaLoraModel.config",description:"<strong>config</strong> ([<em>AdaLoraConfig</em>]) &#x2014; The configuration of the AdaLora model.",name:"config"},{anchor:"peft.AdaLoraModel.adapter_name",description:"<strong>adapter_name</strong> (<em>str</em>) &#x2014; The name of the adapter, defaults to <em>&#x201C;default&#x201D;</em>.",name:"adapter_name"},{anchor:"peft.AdaLoraModel.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<em>bool</em>, <em>optional</em>, defaults to <em>False</em>) &#x2014;
Create empty adapter weights on meta device. Useful to speed up the loading process.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/peft/blob/v0.18.0/src/peft/tuners/adalora/model.py#L37",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The AdaLora model.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><em>torch.nn.Module</em></p>
`}}),k=new Xe({props:{anchor:"peft.AdaLoraModel.example",$$slots:{default:[lt]},$$scope:{ctx:z}}}),Z=new he({props:{name:"add_weighted_adapter",anchor:"peft.AdaLoraModel.add_weighted_adapter",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/peft/blob/v0.18.0/src/peft/tuners/adalora/model.py#L344"}}),O=new he({props:{name:"update_and_allocate",anchor:"peft.AdaLoraModel.update_and_allocate",parameters:[{name:"global_step",val:""}],parametersDescription:[{anchor:"peft.AdaLoraModel.update_and_allocate.global_step",description:"<strong>global_step</strong> (<code>int</code>) &#x2014; The current training step, it is used to calculate adalora budget.",name:"global_step"}],source:"https://github.com/huggingface/peft/blob/v0.18.0/src/peft/tuners/adalora/model.py#L302"}}),U=new Xe({props:{anchor:"peft.AdaLoraModel.update_and_allocate.example",$$slots:{default:[it]},$$scope:{ctx:z}}}),F=new st({props:{source:"https://github.com/huggingface/peft/blob/main/docs/source/package_reference/adalora.md"}}),{c(){l=i("meta"),M=o(),_=i("p"),m=o(),L(u.$$.fragment),t=o(),L(b.$$.fragment),re=o(),j=i("p"),j.innerHTML=qe,se=o(),H=i("p"),H.textContent=Ee,le=o(),N=i("p"),N.innerHTML=Je,ie=o(),L(q.$$.fragment),pe=o(),c=i("div"),L(E.$$.fragment),ve=o(),G=i("p"),G.innerHTML=Pe,_e=o(),S=i("p"),S.innerHTML=Ze,be=o(),V=i("p"),V.innerHTML=Oe,$e=o(),W=i("p"),W.innerHTML=Fe,Le=o(),I=i("p"),I.innerHTML=ze,we=o(),D=i("p"),D.innerHTML=Ge,de=o(),L(J.$$.fragment),me=o(),f=i("div"),L(P.$$.fragment),ye=o(),Y=i("p"),Y.innerHTML=Se,Te=o(),L(k.$$.fragment),Ae=o(),Q=i("p"),Q.innerHTML=Ve,xe=o(),X=i("ul"),X.innerHTML=We,Me=o(),R=i("div"),L(Z.$$.fragment),Ce=o(),B=i("p"),B.textContent=Ie,ke=o(),$=i("div"),L(O.$$.fragment),Re=o(),K=i("p"),K.textContent=De,Ue=o(),ee=i("p"),ee.innerHTML=Ye,je=o(),te=i("p"),te.innerHTML=Qe,He=o(),L(U.$$.fragment),ce=o(),L(F.$$.fragment),fe=o(),oe=i("p"),this.h()},l(e){const n=ot("svelte-u9bgzb",document.head);l=p(n,"META",{name:!0,content:!0}),n.forEach(s),M=r(e),_=p(e,"P",{}),ae(_).forEach(s),m=r(e),w(u.$$.fragment,e),t=r(e),w(b.$$.fragment,e),re=r(e),j=p(e,"P",{"data-svelte-h":!0}),g(j)!=="svelte-xkvjld"&&(j.innerHTML=qe),se=r(e),H=p(e,"P",{"data-svelte-h":!0}),g(H)!=="svelte-1cwsb16"&&(H.textContent=Ee),le=r(e),N=p(e,"P",{"data-svelte-h":!0}),g(N)!=="svelte-af04m4"&&(N.innerHTML=Je),ie=r(e),w(q.$$.fragment,e),pe=r(e),c=p(e,"DIV",{class:!0});var h=ae(c);w(E.$$.fragment,h),ve=r(h),G=p(h,"P",{"data-svelte-h":!0}),g(G)!=="svelte-1vu3n1i"&&(G.innerHTML=Pe),_e=r(h),S=p(h,"P",{"data-svelte-h":!0}),g(S)!=="svelte-hhh8jx"&&(S.innerHTML=Ze),be=r(h),V=p(h,"P",{"data-svelte-h":!0}),g(V)!=="svelte-1k7zjqc"&&(V.innerHTML=Oe),$e=r(h),W=p(h,"P",{"data-svelte-h":!0}),g(W)!=="svelte-121fi7c"&&(W.innerHTML=Fe),Le=r(h),I=p(h,"P",{"data-svelte-h":!0}),g(I)!=="svelte-1atm1tx"&&(I.innerHTML=ze),we=r(h),D=p(h,"P",{"data-svelte-h":!0}),g(D)!=="svelte-1s0ewr0"&&(D.innerHTML=Ge),h.forEach(s),de=r(e),w(J.$$.fragment,e),me=r(e),f=p(e,"DIV",{class:!0});var v=ae(f);w(P.$$.fragment,v),ye=r(v),Y=p(v,"P",{"data-svelte-h":!0}),g(Y)!=="svelte-4r2zwi"&&(Y.innerHTML=Se),Te=r(v),w(k.$$.fragment,v),Ae=r(v),Q=p(v,"P",{"data-svelte-h":!0}),g(Q)!=="svelte-1re89ak"&&(Q.innerHTML=Ve),xe=r(v),X=p(v,"UL",{"data-svelte-h":!0}),g(X)!=="svelte-d2iep5"&&(X.innerHTML=We),Me=r(v),R=p(v,"DIV",{class:!0});var ue=ae(R);w(Z.$$.fragment,ue),Ce=r(ue),B=p(ue,"P",{"data-svelte-h":!0}),g(B)!=="svelte-pyj2oa"&&(B.textContent=Ie),ue.forEach(s),ke=r(v),$=p(v,"DIV",{class:!0});var C=ae($);w(O.$$.fragment,C),Re=r(C),K=p(C,"P",{"data-svelte-h":!0}),g(K)!=="svelte-g6ousd"&&(K.textContent=De),Ue=r(C),ee=p(C,"P",{"data-svelte-h":!0}),g(ee)!=="svelte-1eavagi"&&(ee.innerHTML=Ye),je=r(C),te=p(C,"P",{"data-svelte-h":!0}),g(te)!=="svelte-bo5rjt"&&(te.innerHTML=Qe),He=r(C),w(U.$$.fragment,C),C.forEach(s),v.forEach(s),ce=r(e),w(F.$$.fragment,e),fe=r(e),oe=p(e,"P",{}),ae(oe).forEach(s),this.h()},h(){ne(l,"name","hf:doc:metadata"),ne(l,"content",dt),ne(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ne(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ne($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ne(f,"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,n){a(document.head,l),d(e,M,n),d(e,_,n),d(e,m,n),y(u,e,n),d(e,t,n),y(b,e,n),d(e,re,n),d(e,j,n),d(e,se,n),d(e,H,n),d(e,le,n),d(e,N,n),d(e,ie,n),y(q,e,n),d(e,pe,n),d(e,c,n),y(E,c,null),a(c,ve),a(c,G),a(c,_e),a(c,S),a(c,be),a(c,V),a(c,$e),a(c,W),a(c,Le),a(c,I),a(c,we),a(c,D),d(e,de,n),y(J,e,n),d(e,me,n),d(e,f,n),y(P,f,null),a(f,ye),a(f,Y),a(f,Te),y(k,f,null),a(f,Ae),a(f,Q),a(f,xe),a(f,X),a(f,Me),a(f,R),y(Z,R,null),a(R,Ce),a(R,B),a(f,ke),a(f,$),y(O,$,null),a($,Re),a($,K),a($,Ue),a($,ee),a($,je),a($,te),a($,He),y(U,$,null),d(e,ce,n),y(F,e,n),d(e,fe,n),d(e,oe,n),ge=!0},p(e,[n]){const h={};n&2&&(h.$$scope={dirty:n,ctx:e}),k.$set(h);const v={};n&2&&(v.$$scope={dirty:n,ctx:e}),U.$set(v)},i(e){ge||(T(u.$$.fragment,e),T(b.$$.fragment,e),T(q.$$.fragment,e),T(E.$$.fragment,e),T(J.$$.fragment,e),T(P.$$.fragment,e),T(k.$$.fragment,e),T(Z.$$.fragment,e),T(O.$$.fragment,e),T(U.$$.fragment,e),T(F.$$.fragment,e),ge=!0)},o(e){A(u.$$.fragment,e),A(b.$$.fragment,e),A(q.$$.fragment,e),A(E.$$.fragment,e),A(J.$$.fragment,e),A(P.$$.fragment,e),A(k.$$.fragment,e),A(Z.$$.fragment,e),A(O.$$.fragment,e),A(U.$$.fragment,e),A(F.$$.fragment,e),ge=!1},d(e){e&&(s(M),s(_),s(m),s(t),s(re),s(j),s(se),s(H),s(le),s(N),s(ie),s(pe),s(c),s(de),s(me),s(f),s(ce),s(fe),s(oe)),s(l),x(u,e),x(b,e),x(q,e),x(E),x(J,e),x(P),x(k),x(Z),x(O),x(U),x(F,e)}}}const dt='{"title":"AdaLoRA","local":"adalora","sections":[{"title":"AdaLoraConfig","local":"peft.AdaLoraConfig","sections":[],"depth":2},{"title":"AdaLoraModel","local":"peft.AdaLoraModel","sections":[],"depth":2}],"depth":1}';function mt(z){return tt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _t extends at{constructor(l){super(),nt(this,l,mt,pt,et,{})}}export{_t as component};
