import{s as be,o as we,n as je}from"../chunks/scheduler.78382b47.js";import{S as ve,i as Ce,e as p,s as a,c as T,h as Ue,a as c,d as n,b as o,f as G,g as M,j as C,k as z,l as d,m as s,n as _,t as b,o as w,p as j}from"../chunks/index.6dd35eb6.js";import{C as xe,H as de,E as Je}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.8d7e60c0.js";import{D as me}from"../chunks/Docstring.57cb1354.js";import{C as $e}from"../chunks/CodeBlock.4d4112a9.js";import{E as Oe}from"../chunks/ExampleCodeBlock.7440be11.js";function Fe(H){let r,J="Example:",u,m,f;return m=new $e({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTBBZnJvbSUyMHBlZnQlMjBpbXBvcnQlMjBPRlRNb2RlbCUyQyUyME9GVENvbmZpZyUwQSUwQWNvbmZpZ190ZSUyMCUzRCUyME9GVENvbmZpZyglMEElMjAlMjAlMjAlMjByJTNEOCUyQyUwQSUyMCUyMCUyMCUyMHRhcmdldF9tb2R1bGVzJTNEJTVCJTIya19wcm9qJTIyJTJDJTIwJTIycV9wcm9qJTIyJTJDJTIwJTIydl9wcm9qJTIyJTJDJTIwJTIyb3V0X3Byb2olMjIlMkMlMjAlMjJmYzElMjIlMkMlMjAlMjJmYzIlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjBtb2R1bGVfZHJvcG91dCUzRDAuMCUyQyUwQSUyMCUyMCUyMCUyMGluaXRfd2VpZ2h0cyUzRFRydWUlMkMlMEEpJTBBY29uZmlnX3VuZXQlMjAlM0QlMjBPRlRDb25maWcoJTBBJTIwJTIwJTIwJTIwciUzRDglMkMlMEElMjAlMjAlMjAlMjB0YXJnZXRfbW9kdWxlcyUzRCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnByb2pfaW4lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJwcm9qX291dCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnRvX2slMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ0b19xJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIydG9fdiUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnRvX291dC4wJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyZmYubmV0LjAucHJvaiUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmZmLm5ldC4yJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTVEJTJDJTBBJTIwJTIwJTIwJTIwbW9kdWxlX2Ryb3BvdXQlM0QwLjAlMkMlMEElMjAlMjAlMjAlMjBpbml0X3dlaWdodHMlM0RUcnVlJTJDJTBBKSUwQSUwQW1vZGVsJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQW1vZGVsLnRleHRfZW5jb2RlciUyMCUzRCUyME9GVE1vZGVsKG1vZGVsLnRleHRfZW5jb2RlciUyQyUyMGNvbmZpZ190ZSUyQyUyMCUyMmRlZmF1bHQlMjIpJTBBbW9kZWwudW5ldCUyMCUzRCUyME9GVE1vZGVsKG1vZGVsLnVuZXQlMkMlMjBjb25maWdfdW5ldCUyQyUyMCUyMmRlZmF1bHQlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> peft <span class="hljs-keyword">import</span> OFTModel, OFTConfig

<span class="hljs-meta">&gt;&gt;&gt; </span>config_te = OFTConfig(
<span class="hljs-meta">... </span>    r=<span class="hljs-number">8</span>,
<span class="hljs-meta">... </span>    target_modules=[<span class="hljs-string">&quot;k_proj&quot;</span>, <span class="hljs-string">&quot;q_proj&quot;</span>, <span class="hljs-string">&quot;v_proj&quot;</span>, <span class="hljs-string">&quot;out_proj&quot;</span>, <span class="hljs-string">&quot;fc1&quot;</span>, <span class="hljs-string">&quot;fc2&quot;</span>],
<span class="hljs-meta">... </span>    module_dropout=<span class="hljs-number">0.0</span>,
<span class="hljs-meta">... </span>    init_weights=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>config_unet = OFTConfig(
<span class="hljs-meta">... </span>    r=<span class="hljs-number">8</span>,
<span class="hljs-meta">... </span>    target_modules=[
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;proj_in&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;proj_out&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;to_k&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;to_q&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;to_v&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;to_out.0&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;ff.net.0.proj&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;ff.net.2&quot;</span>,
<span class="hljs-meta">... </span>    ],
<span class="hljs-meta">... </span>    module_dropout=<span class="hljs-number">0.0</span>,
<span class="hljs-meta">... </span>    init_weights=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>model = StableDiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model.text_encoder = OFTModel(model.text_encoder, config_te, <span class="hljs-string">&quot;default&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model.unet = OFTModel(model.unet, config_unet, <span class="hljs-string">&quot;default&quot;</span>)`,wrap:!1}}),{c(){r=p("p"),r.textContent=J,u=a(),T(m.$$.fragment)},l(l){r=c(l,"P",{"data-svelte-h":!0}),C(r)!=="svelte-11lpom8"&&(r.textContent=J),u=o(l),M(m.$$.fragment,l)},m(l,h){s(l,r,h),s(l,u,h),_(m,l,h),f=!0},p:je,i(l){f||(b(m.$$.fragment,l),f=!0)},o(l){w(m.$$.fragment,l),f=!1},d(l){l&&(n(r),n(u)),j(m,l)}}}function ke(H){let r,J,u,m,f,l,h,N,$,fe='<a href="https://hf.co/papers/2306.07280" rel="nofollow">Orthogonal Finetuning (OFT)</a> is a method developed for adapting text-to-image diffusion models. It works by reparameterizing the pretrained weight matrices with its orthogonal matrix to preserve information in the pretrained model. To reduce the number of parameters, OFT introduces a block-diagonal structure in the orthogonal matrix.',S,O,he="The abstract from the paper is:",D,F,ge="<em>Large text-to-image diffusion models have impressive capabilities in generating photorealistic images from text prompts. How to effectively guide or control these powerful models to perform different downstream tasks becomes an important open problem. To tackle this challenge, we introduce a principled finetuning method — Orthogonal Finetuning (OFT), for adapting text-to-image diffusion models to downstream tasks. Unlike existing methods, OFT can provably preserve hyperspherical energy which characterizes the pairwise neuron relationship on the unit hypersphere. We find that this property is crucial for preserving the semantic generation ability of text-to-image diffusion models. To improve finetuning stability, we further propose Constrained Orthogonal Finetuning (COFT) which imposes an additional radius constraint to the hypersphere. Specifically, we consider two important finetuning text-to-image tasks: subject-driven generation where the goal is to generate subject-specific images given a few images of a subject and a text prompt, and controllable generation where the goal is to enable the model to take in additional control signals. We empirically show that our OFT framework outperforms existing methods in generation quality and convergence speed</em>.",P,k,X,g,I,ae,R,ue='This is the configuration class to store the configuration of a <a href="/docs/peft/v0.18.0.rc0/en/package_reference/oft#peft.OFTModel">OFTModel</a>.',oe,U,q,le,B,ye="Check if the kwargs are valid for the configuration.",Y,Z,K,i,E,re,L,Te=`Creates Orthogonal Finetuning model from a pretrained model. The method is described in
<a href="https://huggingface.co/papers/2306.07280" rel="nofollow">https://huggingface.co/papers/2306.07280</a>`,ie,x,pe,W,Me="<strong>Attributes</strong>:",ce,Q,_e='<li><strong>model</strong> (<code>~torch.nn.Module</code>) — The model to be adapted.</li> <li><strong>peft_config</strong> (<a href="/docs/peft/v0.18.0.rc0/en/package_reference/oft#peft.OFTConfig">OFTConfig</a>): The configuration of the OFT model.</li>',ee,A,te,V,ne;return f=new xe({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),h=new de({props:{title:"OFT",local:"oft",headingTag:"h1"}}),k=new de({props:{title:"OFTConfig",local:"peft.OFTConfig",headingTag:"h2"}}),I=new me({props:{name:"class peft.OFTConfig",anchor:"peft.OFTConfig",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 = 0"},{name:"oft_block_size",val:": int = 32"},{name:"module_dropout",val:": float = 0.0"},{name:"target_modules",val:": Optional[Union[list[str], str]] = None"},{name:"fan_in_fan_out",val:": bool = False"},{name:"bias",val:": Literal['none', 'all', 'oft_only'] = 'none'"},{name:"exclude_modules",val:": Optional[Union[list[str], str]] = None"},{name:"init_weights",val:": bool = True"},{name:"layers_to_transform",val:": Optional[Union[list[int], int]] = None"},{name:"layers_pattern",val:": Optional[Union[list[str], str]] = None"},{name:"modules_to_save",val:": Optional[list[str]] = None"},{name:"coft",val:": bool = False"},{name:"eps",val:": float = 6e-05"},{name:"block_share",val:": bool = False"},{name:"use_cayley_neumann",val:": bool = True"},{name:"num_cayley_neumann_terms",val:": int = 5"}],parametersDescription:[{anchor:"peft.OFTConfig.r",description:"<strong>r</strong> (<code>int</code>) &#x2014; OFT rank, number of OFT blocks per injected layer.",name:"r"},{anchor:"peft.OFTConfig.oft_block_size",description:"<strong>oft_block_size</strong> (<code>int</code>) &#x2014; OFT block size across different layers.",name:"oft_block_size"},{anchor:"peft.OFTConfig.module_dropout",description:`<strong>module_dropout</strong> (<code>float</code>) &#x2014;
The multiplicative dropout probability, by setting OFT blocks to identity during training, similar to the
dropout layer in LoRA.`,name:"module_dropout"},{anchor:"peft.OFTConfig.target_modules",description:`<strong>target_modules</strong> (<code>Optional[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 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.OFTConfig.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).",name:"fan_in_fan_out"},{anchor:"peft.OFTConfig.bias",description:`<strong>bias</strong> (<code>str</code>) &#x2014; Bias type for OFT. Can be &#x2018;none&#x2019;, &#x2018;all&#x2019; or &#x2018;oft_only&#x2019;. If &#x2018;all&#x2019; or &#x2018;oft_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.OFTConfig.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.OFTConfig.init_weights",description:`<strong>init_weights</strong> (<code>bool</code>) &#x2014;
Whether to perform initialization of OFT weights.`,name:"init_weights"},{anchor:"peft.OFTConfig.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.OFTConfig.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"},{anchor:"peft.OFTConfig.modules_to_save",description:`<strong>modules_to_save</strong> (<code>List[str]</code>) &#x2014;
List of modules apart from adapter layers to be set as trainable and saved in the final checkpoint.`,name:"modules_to_save"},{anchor:"peft.OFTConfig.coft",description:`<strong>coft</strong> (<code>bool</code>) &#x2014;
Whether to use the constrained variant of OFT or not, off by default.`,name:"coft"},{anchor:"peft.OFTConfig.eps",description:`<strong>eps</strong> (<code>float</code>) &#x2014;
The control strength of COFT. The freedom of rotation. Only has an effect if <code>coft</code> is set to True.`,name:"eps"},{anchor:"peft.OFTConfig.block_share",description:`<strong>block_share</strong> (<code>bool</code>) &#x2014;
Whether to share the OFT parameters between blocks or not. This is <code>False</code> by default.`,name:"block_share"}],source:"https://github.com/huggingface/peft/blob/v0.18.0.rc0/src/peft/tuners/oft/config.py#L28"}}),q=new me({props:{name:"check_kwargs",anchor:"peft.OFTConfig.check_kwargs",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"peft.OFTConfig.check_kwargs.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the child class initialization.`,name:"kwargs"}],source:"https://github.com/huggingface/peft/blob/v0.18.0.rc0/src/peft/tuners/oft/config.py#L184"}}),Z=new de({props:{title:"OFTModel",local:"peft.OFTModel",headingTag:"h2"}}),E=new me({props:{name:"class peft.OFTModel",anchor:"peft.OFTModel",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.OFTModel.model",description:"<strong>model</strong> (<code>torch.nn.Module</code>) &#x2014; The model to which the adapter tuner layers will be attached.",name:"model"},{anchor:"peft.OFTModel.config",description:'<strong>config</strong> (<a href="/docs/peft/v0.18.0.rc0/en/package_reference/oft#peft.OFTConfig">OFTConfig</a>) &#x2014; The configuration of the OFT model.',name:"config"},{anchor:"peft.OFTModel.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.OFTModel.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/v0.18.0.rc0/src/peft/tuners/oft/model.py#L34",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>torch.nn.Module</code></p>
`}}),x=new Oe({props:{anchor:"peft.OFTModel.example",$$slots:{default:[Fe]},$$scope:{ctx:H}}}),A=new Je({props:{source:"https://github.com/huggingface/peft/blob/main/docs/source/package_reference/oft.md"}}),{c(){r=p("meta"),J=a(),u=p("p"),m=a(),T(f.$$.fragment),l=a(),T(h.$$.fragment),N=a(),$=p("p"),$.innerHTML=fe,S=a(),O=p("p"),O.textContent=he,D=a(),F=p("p"),F.innerHTML=ge,P=a(),T(k.$$.fragment),X=a(),g=p("div"),T(I.$$.fragment),ae=a(),R=p("p"),R.innerHTML=ue,oe=a(),U=p("div"),T(q.$$.fragment),le=a(),B=p("p"),B.textContent=ye,Y=a(),T(Z.$$.fragment),K=a(),i=p("div"),T(E.$$.fragment),re=a(),L=p("p"),L.innerHTML=Te,ie=a(),T(x.$$.fragment),pe=a(),W=p("p"),W.innerHTML=Me,ce=a(),Q=p("ul"),Q.innerHTML=_e,ee=a(),T(A.$$.fragment),te=a(),V=p("p"),this.h()},l(e){const t=Ue("svelte-u9bgzb",document.head);r=c(t,"META",{name:!0,content:!0}),t.forEach(n),J=o(e),u=c(e,"P",{}),G(u).forEach(n),m=o(e),M(f.$$.fragment,e),l=o(e),M(h.$$.fragment,e),N=o(e),$=c(e,"P",{"data-svelte-h":!0}),C($)!=="svelte-1w1178m"&&($.innerHTML=fe),S=o(e),O=c(e,"P",{"data-svelte-h":!0}),C(O)!=="svelte-1cwsb16"&&(O.textContent=he),D=o(e),F=c(e,"P",{"data-svelte-h":!0}),C(F)!=="svelte-ggiy3s"&&(F.innerHTML=ge),P=o(e),M(k.$$.fragment,e),X=o(e),g=c(e,"DIV",{class:!0});var v=G(g);M(I.$$.fragment,v),ae=o(v),R=c(v,"P",{"data-svelte-h":!0}),C(R)!=="svelte-1mhuzlt"&&(R.innerHTML=ue),oe=o(v),U=c(v,"DIV",{class:!0});var se=G(U);M(q.$$.fragment,se),le=o(se),B=c(se,"P",{"data-svelte-h":!0}),C(B)!=="svelte-bdmp9b"&&(B.textContent=ye),se.forEach(n),v.forEach(n),Y=o(e),M(Z.$$.fragment,e),K=o(e),i=c(e,"DIV",{class:!0});var y=G(i);M(E.$$.fragment,y),re=o(y),L=c(y,"P",{"data-svelte-h":!0}),C(L)!=="svelte-nvizr1"&&(L.innerHTML=Te),ie=o(y),M(x.$$.fragment,y),pe=o(y),W=c(y,"P",{"data-svelte-h":!0}),C(W)!=="svelte-1xx6nm4"&&(W.innerHTML=Me),ce=o(y),Q=c(y,"UL",{"data-svelte-h":!0}),C(Q)!=="svelte-77b8vt"&&(Q.innerHTML=_e),y.forEach(n),ee=o(e),M(A.$$.fragment,e),te=o(e),V=c(e,"P",{}),G(V).forEach(n),this.h()},h(){z(r,"name","hf:doc:metadata"),z(r,"content",Ie),z(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),z(g,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),z(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){d(document.head,r),s(e,J,t),s(e,u,t),s(e,m,t),_(f,e,t),s(e,l,t),_(h,e,t),s(e,N,t),s(e,$,t),s(e,S,t),s(e,O,t),s(e,D,t),s(e,F,t),s(e,P,t),_(k,e,t),s(e,X,t),s(e,g,t),_(I,g,null),d(g,ae),d(g,R),d(g,oe),d(g,U),_(q,U,null),d(U,le),d(U,B),s(e,Y,t),_(Z,e,t),s(e,K,t),s(e,i,t),_(E,i,null),d(i,re),d(i,L),d(i,ie),_(x,i,null),d(i,pe),d(i,W),d(i,ce),d(i,Q),s(e,ee,t),_(A,e,t),s(e,te,t),s(e,V,t),ne=!0},p(e,[t]){const v={};t&2&&(v.$$scope={dirty:t,ctx:e}),x.$set(v)},i(e){ne||(b(f.$$.fragment,e),b(h.$$.fragment,e),b(k.$$.fragment,e),b(I.$$.fragment,e),b(q.$$.fragment,e),b(Z.$$.fragment,e),b(E.$$.fragment,e),b(x.$$.fragment,e),b(A.$$.fragment,e),ne=!0)},o(e){w(f.$$.fragment,e),w(h.$$.fragment,e),w(k.$$.fragment,e),w(I.$$.fragment,e),w(q.$$.fragment,e),w(Z.$$.fragment,e),w(E.$$.fragment,e),w(x.$$.fragment,e),w(A.$$.fragment,e),ne=!1},d(e){e&&(n(J),n(u),n(m),n(l),n(N),n($),n(S),n(O),n(D),n(F),n(P),n(X),n(g),n(Y),n(K),n(i),n(ee),n(te),n(V)),n(r),j(f,e),j(h,e),j(k,e),j(I),j(q),j(Z,e),j(E),j(x),j(A,e)}}}const Ie='{"title":"OFT","local":"oft","sections":[{"title":"OFTConfig","local":"peft.OFTConfig","sections":[],"depth":2},{"title":"OFTModel","local":"peft.OFTModel","sections":[],"depth":2}],"depth":1}';function qe(H){return we(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class We extends ve{constructor(r){super(),Ce(this,r,qe,ke,be,{})}}export{We as component};
