import{s as Be,o as Ke,n as Qe}from"../chunks/scheduler.4cd3e004.js";import{S as et,i as tt,e as i,s as o,c as L,h as at,a as p,d as s,b as r,f as te,g as w,j as g,k as ae,l as a,m as d,n as T,t as y,o as A,p as M}from"../chunks/index.b664cb2d.js";import{D as ge}from"../chunks/Docstring.9ceb4334.js";import{C as Xe}from"../chunks/CodeBlock.8601e34e.js";import{E as Ye}from"../chunks/ExampleCodeBlock.4f57b575.js";import{H as je,E as nt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.179b63f8.js";function ot(F){let l,x="Example:",_,m,h;return m=new Xe({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=x,_=o(),L(m.$$.fragment)},l(t){l=p(t,"P",{"data-svelte-h":!0}),g(l)!=="svelte-11lpom8"&&(l.textContent=x),_=r(t),w(m.$$.fragment,t)},m(t,b){d(t,l,b),d(t,_,b),T(m,t,b),h=!0},p:Qe,i(t){h||(y(m.$$.fragment,t),h=!0)},o(t){A(m.$$.fragment,t),h=!1},d(t){t&&(s(l),s(_)),M(m,t)}}}function rt(F){let l,x="Example:",_,m,h;return m=new Xe({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=x,_=o(),L(m.$$.fragment)},l(t){l=p(t,"P",{"data-svelte-h":!0}),g(l)!=="svelte-11lpom8"&&(l.textContent=x),_=r(t),w(m.$$.fragment,t)},m(t,b){d(t,l,b),d(t,_,b),T(m,t,b),h=!0},p:Qe,i(t){h||(y(m.$$.fragment,t),h=!0)},o(t){A(m.$$.fragment,t),h=!1},d(t){t&&(s(l),s(_)),M(m,t)}}}function st(F){let l,x,_,m,h,t,b,He='<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.',oe,j,Ne="The abstract from the paper is:",re,H,qe='<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>.',se,N,le,c,q,he,G,Ee="This is the configuration class to store the configuration of a <code>~peft.AdaLora</code>.",ue,z,Je="AdaLoRA has three phases defined by <code>tinit</code>, <code>tfinal</code> and <code>total_step</code>.",ve,S,Pe=`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,V,Ze=`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.`,be,W,Oe=`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.`,$e,I,Fe=`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.`,ie,E,pe,f,J,Le,D,Ge=`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>`,we,k,Te,Y,ze="<strong>Attributes</strong>:",ye,Q,Se="<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>",Ae,R,P,Me,X,Ve="This method is not supported for AdaLoRA, use LoRA instead.",xe,$,Z,Ce,B,We="This method updates Adalora budget and mask.",ke,K,Ie="This should be called in every training step after <code>loss.backward()</code> and before <code>zero_grad()</code>.",Re,ee,De="<code>tinit</code>, <code>tfinal</code> and <code>deltaT</code> are handled with in the method.",Ue,U,de,O,me,ne,ce;return h=new je({props:{title:"AdaLoRA",local:"adalora",headingTag:"h1"}}),N=new je({props:{title:"AdaLoraConfig",local:"peft.AdaLoraConfig",headingTag:"h2"}}),q=new ge({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:"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/main/src/peft/tuners/adalora/config.py#L24"}}),E=new je({props:{title:"AdaLoraModel",local:"peft.AdaLoraModel",headingTag:"h2"}}),J=new ge({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/main/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 Ye({props:{anchor:"peft.AdaLoraModel.example",$$slots:{default:[ot]},$$scope:{ctx:F}}}),P=new ge({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/main/src/peft/tuners/adalora/model.py#L344"}}),Z=new ge({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/main/src/peft/tuners/adalora/model.py#L302"}}),U=new Ye({props:{anchor:"peft.AdaLoraModel.update_and_allocate.example",$$slots:{default:[rt]},$$scope:{ctx:F}}}),O=new nt({props:{source:"https://github.com/huggingface/peft/blob/main/docs/source/package_reference/adalora.md"}}),{c(){l=i("meta"),x=o(),_=i("p"),m=o(),L(h.$$.fragment),t=o(),b=i("p"),b.innerHTML=He,oe=o(),j=i("p"),j.textContent=Ne,re=o(),H=i("p"),H.innerHTML=qe,se=o(),L(N.$$.fragment),le=o(),c=i("div"),L(q.$$.fragment),he=o(),G=i("p"),G.innerHTML=Ee,ue=o(),z=i("p"),z.innerHTML=Je,ve=o(),S=i("p"),S.innerHTML=Pe,_e=o(),V=i("p"),V.innerHTML=Ze,be=o(),W=i("p"),W.innerHTML=Oe,$e=o(),I=i("p"),I.innerHTML=Fe,ie=o(),L(E.$$.fragment),pe=o(),f=i("div"),L(J.$$.fragment),Le=o(),D=i("p"),D.innerHTML=Ge,we=o(),L(k.$$.fragment),Te=o(),Y=i("p"),Y.innerHTML=ze,ye=o(),Q=i("ul"),Q.innerHTML=Se,Ae=o(),R=i("div"),L(P.$$.fragment),Me=o(),X=i("p"),X.textContent=Ve,xe=o(),$=i("div"),L(Z.$$.fragment),Ce=o(),B=i("p"),B.textContent=We,ke=o(),K=i("p"),K.innerHTML=Ie,Re=o(),ee=i("p"),ee.innerHTML=De,Ue=o(),L(U.$$.fragment),de=o(),L(O.$$.fragment),me=o(),ne=i("p"),this.h()},l(e){const n=at("svelte-u9bgzb",document.head);l=p(n,"META",{name:!0,content:!0}),n.forEach(s),x=r(e),_=p(e,"P",{}),te(_).forEach(s),m=r(e),w(h.$$.fragment,e),t=r(e),b=p(e,"P",{"data-svelte-h":!0}),g(b)!=="svelte-xkvjld"&&(b.innerHTML=He),oe=r(e),j=p(e,"P",{"data-svelte-h":!0}),g(j)!=="svelte-1cwsb16"&&(j.textContent=Ne),re=r(e),H=p(e,"P",{"data-svelte-h":!0}),g(H)!=="svelte-af04m4"&&(H.innerHTML=qe),se=r(e),w(N.$$.fragment,e),le=r(e),c=p(e,"DIV",{class:!0});var u=te(c);w(q.$$.fragment,u),he=r(u),G=p(u,"P",{"data-svelte-h":!0}),g(G)!=="svelte-1vu3n1i"&&(G.innerHTML=Ee),ue=r(u),z=p(u,"P",{"data-svelte-h":!0}),g(z)!=="svelte-hhh8jx"&&(z.innerHTML=Je),ve=r(u),S=p(u,"P",{"data-svelte-h":!0}),g(S)!=="svelte-1k7zjqc"&&(S.innerHTML=Pe),_e=r(u),V=p(u,"P",{"data-svelte-h":!0}),g(V)!=="svelte-121fi7c"&&(V.innerHTML=Ze),be=r(u),W=p(u,"P",{"data-svelte-h":!0}),g(W)!=="svelte-1atm1tx"&&(W.innerHTML=Oe),$e=r(u),I=p(u,"P",{"data-svelte-h":!0}),g(I)!=="svelte-1s0ewr0"&&(I.innerHTML=Fe),u.forEach(s),ie=r(e),w(E.$$.fragment,e),pe=r(e),f=p(e,"DIV",{class:!0});var v=te(f);w(J.$$.fragment,v),Le=r(v),D=p(v,"P",{"data-svelte-h":!0}),g(D)!=="svelte-4r2zwi"&&(D.innerHTML=Ge),we=r(v),w(k.$$.fragment,v),Te=r(v),Y=p(v,"P",{"data-svelte-h":!0}),g(Y)!=="svelte-1re89ak"&&(Y.innerHTML=ze),ye=r(v),Q=p(v,"UL",{"data-svelte-h":!0}),g(Q)!=="svelte-d2iep5"&&(Q.innerHTML=Se),Ae=r(v),R=p(v,"DIV",{class:!0});var fe=te(R);w(P.$$.fragment,fe),Me=r(fe),X=p(fe,"P",{"data-svelte-h":!0}),g(X)!=="svelte-pyj2oa"&&(X.textContent=Ve),fe.forEach(s),xe=r(v),$=p(v,"DIV",{class:!0});var C=te($);w(Z.$$.fragment,C),Ce=r(C),B=p(C,"P",{"data-svelte-h":!0}),g(B)!=="svelte-g6ousd"&&(B.textContent=We),ke=r(C),K=p(C,"P",{"data-svelte-h":!0}),g(K)!=="svelte-1eavagi"&&(K.innerHTML=Ie),Re=r(C),ee=p(C,"P",{"data-svelte-h":!0}),g(ee)!=="svelte-bo5rjt"&&(ee.innerHTML=De),Ue=r(C),w(U.$$.fragment,C),C.forEach(s),v.forEach(s),de=r(e),w(O.$$.fragment,e),me=r(e),ne=p(e,"P",{}),te(ne).forEach(s),this.h()},h(){ae(l,"name","hf:doc:metadata"),ae(l,"content",lt),ae(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ae(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ae($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ae(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,x,n),d(e,_,n),d(e,m,n),T(h,e,n),d(e,t,n),d(e,b,n),d(e,oe,n),d(e,j,n),d(e,re,n),d(e,H,n),d(e,se,n),T(N,e,n),d(e,le,n),d(e,c,n),T(q,c,null),a(c,he),a(c,G),a(c,ue),a(c,z),a(c,ve),a(c,S),a(c,_e),a(c,V),a(c,be),a(c,W),a(c,$e),a(c,I),d(e,ie,n),T(E,e,n),d(e,pe,n),d(e,f,n),T(J,f,null),a(f,Le),a(f,D),a(f,we),T(k,f,null),a(f,Te),a(f,Y),a(f,ye),a(f,Q),a(f,Ae),a(f,R),T(P,R,null),a(R,Me),a(R,X),a(f,xe),a(f,$),T(Z,$,null),a($,Ce),a($,B),a($,ke),a($,K),a($,Re),a($,ee),a($,Ue),T(U,$,null),d(e,de,n),T(O,e,n),d(e,me,n),d(e,ne,n),ce=!0},p(e,[n]){const u={};n&2&&(u.$$scope={dirty:n,ctx:e}),k.$set(u);const v={};n&2&&(v.$$scope={dirty:n,ctx:e}),U.$set(v)},i(e){ce||(y(h.$$.fragment,e),y(N.$$.fragment,e),y(q.$$.fragment,e),y(E.$$.fragment,e),y(J.$$.fragment,e),y(k.$$.fragment,e),y(P.$$.fragment,e),y(Z.$$.fragment,e),y(U.$$.fragment,e),y(O.$$.fragment,e),ce=!0)},o(e){A(h.$$.fragment,e),A(N.$$.fragment,e),A(q.$$.fragment,e),A(E.$$.fragment,e),A(J.$$.fragment,e),A(k.$$.fragment,e),A(P.$$.fragment,e),A(Z.$$.fragment,e),A(U.$$.fragment,e),A(O.$$.fragment,e),ce=!1},d(e){e&&(s(x),s(_),s(m),s(t),s(b),s(oe),s(j),s(re),s(H),s(se),s(le),s(c),s(ie),s(pe),s(f),s(de),s(me),s(ne)),s(l),M(h,e),M(N,e),M(q),M(E,e),M(J),M(k),M(P),M(Z),M(U),M(O,e)}}}const lt='{"title":"AdaLoRA","local":"adalora","sections":[{"title":"AdaLoraConfig","local":"peft.AdaLoraConfig","sections":[],"depth":2},{"title":"AdaLoraModel","local":"peft.AdaLoraModel","sections":[],"depth":2}],"depth":1}';function it(F){return Ke(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ht extends et{constructor(l){super(),tt(this,l,it,st,Be,{})}}export{ht as component};
