import{s as We,o as Ne,n as Fe}from"../chunks/scheduler.4cd3e004.js";import{S as He,i as qe,e as l,s as a,c as u,h as Ze,a as p,d as n,b as o,f as S,g as _,j as f,k as G,l as r,m as s,n as v,t as b,o as y,p as w}from"../chunks/index.b664cb2d.js";import{D as he}from"../chunks/Docstring.9ceb4334.js";import{C as Qe}from"../chunks/CodeBlock.8601e34e.js";import{E as ze}from"../chunks/ExampleCodeBlock.4f57b575.js";import{H as K,E as De}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.179b63f8.js";function Oe(ee){let c,A="Example:",L,g,h;return g=new Qe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvckNhdXNhbExNJTBBZnJvbSUyMHBlZnQlMjBpbXBvcnQlMjBWQkxvUkFDb25maWclMkMlMjBnZXRfcGVmdF9tb2RlbCUwQSUwQWJhc2VfbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JDYXVzYWxMTS5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZvcHQtMTI1bSUyMiklMEFjb25maWclMjAlM0QlMjBWQkxvUkFDb25maWcoJTBBJTIwJTIwJTIwJTIwdGFza190eXBlJTNEJTIyU0VRX0NMUyUyMiUyQyUwQSUyMCUyMCUyMCUyMHIlM0Q0JTJDJTBBJTIwJTIwJTIwJTIwdGFyZ2V0X21vZHVsZXMlM0QlNUIlMjJmYzElMjIlMkMlMjAlMjJmYzIlMjIlMkMlMjAlMjJrX3Byb2olMjIlMkMlMjAlMjJvdXRfcHJvaiUyMiUyQyUyMCUyMnFfcHJvaiUyMiUyQyUyMCUyMnZfcHJvaiUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMG51bV92ZWN0b3JzJTNENjAlMkMlMEElMjAlMjAlMjAlMjB2ZWN0b3JfbGVuZ3RoJTNEMjU2JTJDJTBBJTIwJTIwJTIwJTIwc2F2ZV9vbmx5X3RvcGtfd2VpZ2h0cyUzRFRydWUlMkMlMEEpJTBBbW9kZWwlMjAlM0QlMjBnZXRfcGVmdF9tb2RlbChiYXNlX21vZGVsJTJDJTIwY29uZmlnKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForCausalLM
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> peft <span class="hljs-keyword">import</span> VBLoRAConfig, get_peft_model

<span class="hljs-meta">&gt;&gt;&gt; </span>base_model = AutoModelForCausalLM.from_pretrained(<span class="hljs-string">&quot;facebook/opt-125m&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>config = VBLoRAConfig(
<span class="hljs-meta">... </span>    task_type=<span class="hljs-string">&quot;SEQ_CLS&quot;</span>,
<span class="hljs-meta">... </span>    r=<span class="hljs-number">4</span>,
<span class="hljs-meta">... </span>    target_modules=[<span class="hljs-string">&quot;fc1&quot;</span>, <span class="hljs-string">&quot;fc2&quot;</span>, <span class="hljs-string">&quot;k_proj&quot;</span>, <span class="hljs-string">&quot;out_proj&quot;</span>, <span class="hljs-string">&quot;q_proj&quot;</span>, <span class="hljs-string">&quot;v_proj&quot;</span>],
<span class="hljs-meta">... </span>    num_vectors=<span class="hljs-number">60</span>,
<span class="hljs-meta">... </span>    vector_length=<span class="hljs-number">256</span>,
<span class="hljs-meta">... </span>    save_only_topk_weights=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = get_peft_model(base_model, config)`,wrap:!1}}),{c(){c=l("p"),c.textContent=A,L=a(),u(g.$$.fragment)},l(d){c=p(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-11lpom8"&&(c.textContent=A),L=o(d),_(g.$$.fragment,d)},m(d,M){s(d,c,M),s(d,L,M),v(g,d,M),h=!0},p:Fe,i(d){h||(b(g.$$.fragment,d),h=!0)},o(d){y(g.$$.fragment,d),h=!1},d(d){d&&(n(c),n(L)),w(g,d)}}}function Xe(ee){let c,A,L,g,h,d,M,te,R,Be='<a href="https://huggingface.co/papers/2405.15179" rel="nofollow">VB-LoRA</a> is a parameter-efficient fine-tuning technique that extends LoRA by learning a fine-grained parameter-sharing scheme at the sub-vector level, achieving significantly higher parameter efficiency. This makes VB-LoRA especially useful in scenarios where storage and transmission costs are critical. It works by decomposing low-rank matrices—from different layers and modules such as K, Q, V, and FFN—into sub-vectors, which are then globally shared through a vector bank.',ne,V,ke="The abstract from the paper is:",ae,C,Ae="<em>As the adoption of large language models increases and the need for per-user or per-task model customization grows, the parameter-efficient fine-tuning (PEFT) methods, such as low-rank adaptation (LoRA) and its variants, incur substantial storage and transmission costs. To further reduce stored parameters, we introduce a “divide-and-share” paradigm that breaks the barriers of low-rank decomposition across matrix dimensions, modules and layers by sharing parameters globally via a vector bank. As an instantiation of the paradigm to LoRA, our proposed VB-LoRA composites all the low-rank matrices of LoRA from a shared vector bank with a differentiable top-k admixture module. VB-LoRA achieves extreme parameter efficiency while maintaining comparable or better performance compared to state-of-the-art PEFT methods. Extensive experiments demonstrate the effectiveness of VB-LoRA on natural language understanding, natural language generation, and instruction tuning tasks. When fine-tuning the Llama2-13B model, VB-LoRA only uses 0.4% of LoRA’s stored parameters, yet achieves superior results.</em>",oe,j,se,U,Re="<li><p>VB-LoRA utilizes a sparse top-k module to learn the sharing machanism. When saving adapter parameters, you can either save only the top-k weights and their indices by setting <code>save_only_topk_weights = True</code> in <code>VBLoRAConfig</code>, or save all the trainable logits by setting it to <code>False</code>. Enabling <code>save_only_topk_weights = True</code> significantly reduces storage space; for instance, in Llama2-7B, the storage file size decreases from 308MB to 2.5MB. Note that models saved with <code>save_only_topk_weights = True</code> are intended for merging or inference only and cannot be used to resume training.</p></li> <li><p>VB-LoRA has two sets of training parameters: vector bank parameters and logit parameters. In practice, we found that logit parameters require a higher learning rate, while vector bank parameters require a lower learning rate. When using the AdamW optimizer, typical learning rates are 0.01 for logits and 0.001 for vector bank parameters.</p></li>",re,J,ie,$,I,ue,H,Ve='This is the configuration class to store the configuration of a <a href="/docs/peft/main/en/package_reference/vblora#peft.VBLoRAConfig">VBLoRAConfig</a>.',_e,q,Ce='Paper: <a href="https://huggingface.co/papers/2405.15179" rel="nofollow">https://huggingface.co/papers/2405.15179</a>',le,E,pe,i,P,ve,Z,je="Creates VBLoRA model from a pretrained transformers model.",be,Q,Ue='The method is described in detail in <a href="https://huggingface.co/papers/2405.15179" rel="nofollow">https://huggingface.co/papers/2405.15179</a>.',ye,T,we,z,Je="<strong>Attributes</strong>:",Me,D,Ie='<li><strong>model</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel" rel="nofollow">PreTrainedModel</a>) — The model to be adapted.</li> <li><strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/vblora#peft.VBLoRAConfig">VBLoRAConfig</a>): The configuration of the VBLoRAConfig model.</li>',$e,B,W,Le,O,Ee="Returns the number of savable VB-LoRA parameters and other savable parameters.",xe,k,N,Te,X,Pe="Prints the number of savable VB-LoRA parameters and total savable parameters.",de,F,ce,Y,me;return h=new K({props:{title:"VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Banks",local:"vb-lora-extreme-parameter-efficient-fine-tuning-with-vector-banks",headingTag:"h1"}}),M=new K({props:{title:"Overview",local:"overview",headingTag:"h2"}}),j=new K({props:{title:"Usage Tips",local:"usage-tips",headingTag:"h2"}}),J=new K({props:{title:"VBLoRAConfig",local:"peft.VBLoRAConfig",headingTag:"h2"}}),I=new he({props:{name:"class peft.VBLoRAConfig",anchor:"peft.VBLoRAConfig",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 = 4"},{name:"num_vectors",val:": int = 256"},{name:"vector_length",val:": int = 256"},{name:"topk",val:": int = 2"},{name:"target_modules",val:": Optional[Union[list[str], str]] = None"},{name:"exclude_modules",val:": Optional[Union[list[str], str]] = None"},{name:"save_only_topk_weights",val:": bool = False"},{name:"vblora_dropout",val:": float = 0.0"},{name:"fan_in_fan_out",val:": bool = False"},{name:"bias",val:": str = 'none'"},{name:"modules_to_save",val:": Optional[list[str]] = None"},{name:"init_vector_bank_bound",val:": float = 0.02"},{name:"init_logits_std",val:": float = 0.1"},{name:"layers_to_transform",val:": Optional[Union[list[int], int]] = None"},{name:"layers_pattern",val:": Optional[Union[list[str], str]] = None"}],parametersDescription:[{anchor:"peft.VBLoRAConfig.r",description:`<strong>r</strong> (<code>int</code>) &#x2014;
The rank of incremental matrices.`,name:"r"},{anchor:"peft.VBLoRAConfig.num_vectors",description:`<strong>num_vectors</strong> (<code>int</code>) &#x2014;
Number of vectors in the vector bank. Use higher values when the model size increases.`,name:"num_vectors"},{anchor:"peft.VBLoRAConfig.vector_length",description:`<strong>vector_length</strong> (<code>int</code>) &#x2014;
The length of the vectors in the vector bank. The length of the vectors should be divisible by the hidden
dimension of the model.`,name:"vector_length"},{anchor:"peft.VBLoRAConfig.topk",description:`<strong>topk</strong> (<code>int</code>) &#x2014;
The K value for top-K selection. A larger value of K increases the size of the saved model. In practice,
setting K=2 typically provides the best performance and parameter efficiency. For more details, refer to
the discussion in the paper.`,name:"topk"},{anchor:"peft.VBLoRAConfig.target_modules",description:`<strong>target_modules</strong> (<code>Union[List[str], str]</code>) &#x2014;
The names of the modules to apply the adapter to. If this is specified, only the modules with the specified
names will be replaced. When passing a string, a regex match will be performed. When passing a list of
strings, either an exact match will be performed or it is checked if the name of the module ends with any
of the passed strings. If this is specified as &#x2018;all-linear&#x2019;, then all linear/Conv1D modules are chosen,
excluding the output layer. If this is not specified, modules will be chosen according to the model
architecture. If the architecture is not known, an error will be raised &#x2014; in this case, you should specify
the target modules manually.`,name:"target_modules"},{anchor:"peft.VBLoRAConfig.exclude_modules",description:`<strong>exclude_modules</strong> (<code>Optional[Union[List[str], str]]</code>) &#x2014;
The names of the modules to not apply the adapter. When passing a string, a regex match will be performed.
When passing a list of strings, either an exact match will be performed or it is checked if the name of the
module ends with any of the passed strings.`,name:"exclude_modules"},{anchor:"peft.VBLoRAConfig.save_only_topk_weights",description:`<strong>save_only_topk_weights</strong> (<code>bool</code>) &#x2014;
Whether to only save the topk weights. Setting <code>save_only_topk_weights = True</code> significantly reduces
storage space. However, models saved in this mode can be used for merging or inference only, not for
resuming training.`,name:"save_only_topk_weights"},{anchor:"peft.VBLoRAConfig.vblora_dropout",description:`<strong>vblora_dropout</strong> (<code>float</code>) &#x2014;
The dropout probability for VBLoRA layers.`,name:"vblora_dropout"},{anchor:"peft.VBLoRAConfig.fan_in_fan_out",description:`<strong>fan_in_fan_out</strong> (<code>bool</code>) &#x2014;
Set this to True if the layer to replace stores weight like (fan_in, fan_out). For example, gpt-2 uses
<code>Conv1D</code> which stores weights like (fan_in, fan_out) and hence this should be set to <code>True</code>.`,name:"fan_in_fan_out"},{anchor:"peft.VBLoRAConfig.bias",description:`<strong>bias</strong> (<code>str</code>) &#x2014;
Bias type for VBLoRA. Can be &#x2018;none&#x2019;, &#x2018;all&#x2019; or &#x2018;vblora_only&#x2019;. If &#x2018;all&#x2019; or &#x2018;vblora_only&#x2019;, the corresponding
biases will be updated during training. Be aware that this means that, even when disabling the adapters,
the model will not produce the same output as the base model would have without adaptation.`,name:"bias"},{anchor:"peft.VBLoRAConfig.modules_to_save",description:`<strong>modules_to_save</strong> (<code>List[str]</code>) &#x2014;
List of modules apart from VBLoRA layers to be set as trainable and saved in the final checkpoint.`,name:"modules_to_save"},{anchor:"peft.VBLoRAConfig.init_vector_bank_bound",description:`<strong>init_vector_bank_bound</strong> (<code>float</code>) &#x2014;
The vector bank is initialized with a uniform distribution between -init_vector_bank_bound and
init_vector_bank_bound. Avoid initializing the vector bank with all zeros to prevent zero gradients. A
small value, such as 0.02, is typically effective. Initializing with a large value may cause training
instability.`,name:"init_vector_bank_bound"},{anchor:"peft.VBLoRAConfig.init_logits_std",description:`<strong>init_logits_std</strong> (<code>float</code>) &#x2014;
The logits are initialized with a normal distribution with a standard deviation of init_logits_std. Default
is 0.1.`,name:"init_logits_std"},{anchor:"peft.VBLoRAConfig.layers_to_transform",description:`<strong>layers_to_transform</strong> (<code>Union[List[int],int]</code>) &#x2014;
The layer indices to transform. If a list of ints is passed, it will apply the adapter to the layer indices
that are specified in this list. If a single integer is passed, it will apply the transformations on the
layer at this index.`,name:"layers_to_transform"},{anchor:"peft.VBLoRAConfig.layers_pattern",description:`<strong>layers_pattern</strong> (<code>Optional[Union[List[str], str]]</code>) &#x2014;
The layer pattern name, used only if <code>layers_to_transform</code> is different from <code>None</code>. This should target the
<code>nn.ModuleList</code> of the model, which is often called <code>&apos;layers&apos;</code> or <code>&apos;h&apos;</code>.`,name:"layers_pattern"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/tuners/vblora/config.py#L25"}}),E=new K({props:{title:"VBLoRAModel",local:"peft.VBLoRAModel",headingTag:"h2"}}),P=new he({props:{name:"class peft.VBLoRAModel",anchor:"peft.VBLoRAModel",parameters:[{name:"model",val:""},{name:"peft_config",val:": Union[PeftConfig, dict[str, PeftConfig]]"},{name:"adapter_name",val:": str"},{name:"low_cpu_mem_usage",val:": bool = False"},{name:"state_dict",val:": Optional[dict[str, torch.Tensor]] = None"}],parametersDescription:[{anchor:"peft.VBLoRAModel.model",description:'<strong>model</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel" rel="nofollow">PreTrainedModel</a>) &#x2014; The model to be adapted.',name:"model"},{anchor:"peft.VBLoRAModel.config",description:'<strong>config</strong> (<a href="/docs/peft/main/en/package_reference/vblora#peft.VBLoRAConfig">VBLoRAConfig</a>) &#x2014; The configuration of the VBLoRA model.',name:"config"},{anchor:"peft.VBLoRAModel.adapter_name",description:"<strong>adapter_name</strong> (<code>str</code>) &#x2014; The name of the adapter, defaults to <code>&quot;default&quot;</code>.",name:"adapter_name"},{anchor:"peft.VBLoRAModel.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <code>optional</code>, defaults to <code>False</code>) &#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/vblora/model.py#L29",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>torch.nn.Module</code></p>
`}}),T=new ze({props:{anchor:"peft.VBLoRAModel.example",$$slots:{default:[Oe]},$$scope:{ctx:ee}}}),W=new he({props:{name:"get_nb_savable_parameters",anchor:"peft.VBLoRAModel.get_nb_savable_parameters",parameters:[{name:"adapter",val:" = 'default'"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/tuners/vblora/model.py#L165"}}),N=new he({props:{name:"print_savable_parameters",anchor:"peft.VBLoRAModel.print_savable_parameters",parameters:[],source:"https://github.com/huggingface/peft/blob/main/src/peft/tuners/vblora/model.py#L201"}}),F=new De({props:{source:"https://github.com/huggingface/peft/blob/main/docs/source/package_reference/vblora.md"}}),{c(){c=l("meta"),A=a(),L=l("p"),g=a(),u(h.$$.fragment),d=a(),u(M.$$.fragment),te=a(),R=l("p"),R.innerHTML=Be,ne=a(),V=l("p"),V.textContent=ke,ae=a(),C=l("p"),C.innerHTML=Ae,oe=a(),u(j.$$.fragment),se=a(),U=l("ul"),U.innerHTML=Re,re=a(),u(J.$$.fragment),ie=a(),$=l("div"),u(I.$$.fragment),ue=a(),H=l("p"),H.innerHTML=Ve,_e=a(),q=l("p"),q.innerHTML=Ce,le=a(),u(E.$$.fragment),pe=a(),i=l("div"),u(P.$$.fragment),ve=a(),Z=l("p"),Z.textContent=je,be=a(),Q=l("p"),Q.innerHTML=Ue,ye=a(),u(T.$$.fragment),we=a(),z=l("p"),z.innerHTML=Je,Me=a(),D=l("ul"),D.innerHTML=Ie,$e=a(),B=l("div"),u(W.$$.fragment),Le=a(),O=l("p"),O.textContent=Ee,xe=a(),k=l("div"),u(N.$$.fragment),Te=a(),X=l("p"),X.textContent=Pe,de=a(),u(F.$$.fragment),ce=a(),Y=l("p"),this.h()},l(e){const t=Ze("svelte-u9bgzb",document.head);c=p(t,"META",{name:!0,content:!0}),t.forEach(n),A=o(e),L=p(e,"P",{}),S(L).forEach(n),g=o(e),_(h.$$.fragment,e),d=o(e),_(M.$$.fragment,e),te=o(e),R=p(e,"P",{"data-svelte-h":!0}),f(R)!=="svelte-1ul073j"&&(R.innerHTML=Be),ne=o(e),V=p(e,"P",{"data-svelte-h":!0}),f(V)!=="svelte-1cwsb16"&&(V.textContent=ke),ae=o(e),C=p(e,"P",{"data-svelte-h":!0}),f(C)!=="svelte-1hv63r6"&&(C.innerHTML=Ae),oe=o(e),_(j.$$.fragment,e),se=o(e),U=p(e,"UL",{"data-svelte-h":!0}),f(U)!=="svelte-mmhcyj"&&(U.innerHTML=Re),re=o(e),_(J.$$.fragment,e),ie=o(e),$=p(e,"DIV",{class:!0});var x=S($);_(I.$$.fragment,x),ue=o(x),H=p(x,"P",{"data-svelte-h":!0}),f(H)!=="svelte-g31t7b"&&(H.innerHTML=Ve),_e=o(x),q=p(x,"P",{"data-svelte-h":!0}),f(q)!=="svelte-17o5y8t"&&(q.innerHTML=Ce),x.forEach(n),le=o(e),_(E.$$.fragment,e),pe=o(e),i=p(e,"DIV",{class:!0});var m=S(i);_(P.$$.fragment,m),ve=o(m),Z=p(m,"P",{"data-svelte-h":!0}),f(Z)!=="svelte-ouak2a"&&(Z.textContent=je),be=o(m),Q=p(m,"P",{"data-svelte-h":!0}),f(Q)!=="svelte-1kxpbqh"&&(Q.innerHTML=Ue),ye=o(m),_(T.$$.fragment,m),we=o(m),z=p(m,"P",{"data-svelte-h":!0}),f(z)!=="svelte-1xx6nm4"&&(z.innerHTML=Je),Me=o(m),D=p(m,"UL",{"data-svelte-h":!0}),f(D)!=="svelte-z1uvpk"&&(D.innerHTML=Ie),$e=o(m),B=p(m,"DIV",{class:!0});var fe=S(B);_(W.$$.fragment,fe),Le=o(fe),O=p(fe,"P",{"data-svelte-h":!0}),f(O)!=="svelte-id40fq"&&(O.textContent=Ee),fe.forEach(n),xe=o(m),k=p(m,"DIV",{class:!0});var ge=S(k);_(N.$$.fragment,ge),Te=o(ge),X=p(ge,"P",{"data-svelte-h":!0}),f(X)!=="svelte-dktqvv"&&(X.textContent=Pe),ge.forEach(n),m.forEach(n),de=o(e),_(F.$$.fragment,e),ce=o(e),Y=p(e,"P",{}),S(Y).forEach(n),this.h()},h(){G(c,"name","hf:doc:metadata"),G(c,"content",Se),G($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(i,"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,c),s(e,A,t),s(e,L,t),s(e,g,t),v(h,e,t),s(e,d,t),v(M,e,t),s(e,te,t),s(e,R,t),s(e,ne,t),s(e,V,t),s(e,ae,t),s(e,C,t),s(e,oe,t),v(j,e,t),s(e,se,t),s(e,U,t),s(e,re,t),v(J,e,t),s(e,ie,t),s(e,$,t),v(I,$,null),r($,ue),r($,H),r($,_e),r($,q),s(e,le,t),v(E,e,t),s(e,pe,t),s(e,i,t),v(P,i,null),r(i,ve),r(i,Z),r(i,be),r(i,Q),r(i,ye),v(T,i,null),r(i,we),r(i,z),r(i,Me),r(i,D),r(i,$e),r(i,B),v(W,B,null),r(B,Le),r(B,O),r(i,xe),r(i,k),v(N,k,null),r(k,Te),r(k,X),s(e,de,t),v(F,e,t),s(e,ce,t),s(e,Y,t),me=!0},p(e,[t]){const x={};t&2&&(x.$$scope={dirty:t,ctx:e}),T.$set(x)},i(e){me||(b(h.$$.fragment,e),b(M.$$.fragment,e),b(j.$$.fragment,e),b(J.$$.fragment,e),b(I.$$.fragment,e),b(E.$$.fragment,e),b(P.$$.fragment,e),b(T.$$.fragment,e),b(W.$$.fragment,e),b(N.$$.fragment,e),b(F.$$.fragment,e),me=!0)},o(e){y(h.$$.fragment,e),y(M.$$.fragment,e),y(j.$$.fragment,e),y(J.$$.fragment,e),y(I.$$.fragment,e),y(E.$$.fragment,e),y(P.$$.fragment,e),y(T.$$.fragment,e),y(W.$$.fragment,e),y(N.$$.fragment,e),y(F.$$.fragment,e),me=!1},d(e){e&&(n(A),n(L),n(g),n(d),n(te),n(R),n(ne),n(V),n(ae),n(C),n(oe),n(se),n(U),n(re),n(ie),n($),n(le),n(pe),n(i),n(de),n(ce),n(Y)),n(c),w(h,e),w(M,e),w(j,e),w(J,e),w(I),w(E,e),w(P),w(T),w(W),w(N),w(F,e)}}}const Se='{"title":"VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Banks","local":"vb-lora-extreme-parameter-efficient-fine-tuning-with-vector-banks","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Usage Tips","local":"usage-tips","sections":[],"depth":2},{"title":"VBLoRAConfig","local":"peft.VBLoRAConfig","sections":[],"depth":2},{"title":"VBLoRAModel","local":"peft.VBLoRAModel","sections":[],"depth":2}],"depth":1}';function Ge(ee){return Ne(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ot extends He{constructor(c){super(),qe(this,c,Ge,Xe,We,{})}}export{ot as component};
