import{s as Xe,o as Oe,n as Fe}from"../chunks/scheduler.78382b47.js";import{S as Ye,i as Ke,e as l,s as r,c as v,h as et,a as p,d as n,b as i,f as ee,g as b,j as f,k as te,l as d,m as a,n as w,t as M,o as $,p as L}from"../chunks/index.6dd35eb6.js";import{C as tt,H as Je,E as nt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.fed9dfe4.js";import{D as Ue}from"../chunks/Docstring.32e826ec.js";import{C as Ge}from"../chunks/CodeBlock.af1ec02e.js";import{E as Se}from"../chunks/ExampleCodeBlock.7f184f2e.js";function ot(E){let s,x="Example:",h,m,g;return m=new Ge({props:{code:"ZnJvbSUyMHBlZnQlMjBpbXBvcnQlMjBnZXRfcGVmdF9tb2RlbCUyQyUyMFRpbnlMb3JhQ29uZmlnJTBBJTBBY29uZmlnJTIwJTNEJTIwVGlueUxvcmFDb25maWcoJTBBJTIwJTIwJTIwJTIwciUzRDIlMkMlMjAlMjAlMjMlMjBTVkQlMjByYW5rJTIwKHBhcGVyJTIwcmVjb21tZW5kcyUyMDIpJTBBJTIwJTIwJTIwJTIwdSUzRDY0JTJDJTIwJTIwJTIzJTIwVHJhaW5hYmxlJTIwdmVjdG9yJTIwZGltZW5zaW9uJTBBJTIwJTIwJTIwJTIwd2VpZ2h0X3R5aW5nJTNEMC4wJTJDJTIwJTIwJTIzJTIwTm8lMjB3ZWlnaHQlMjB0eWluZyUyMCgwLjAlMjAlM0QlMjBub25lJTJDJTIwMS4wJTIwJTNEJTIwZnVsbCklMEElMjAlMjAlMjAlMjB0YXJnZXRfbW9kdWxlcyUzRCU1QiUyMnFfcHJvaiUyMiUyQyUyMCUyMnZfcHJvaiUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMHByb2plY3Rpb25fc2VlZCUzRDQyJTJDJTBBKSUwQW1vZGVsJTIwJTNEJTIwZ2V0X3BlZnRfbW9kZWwoYmFzZV9tb2RlbCUyQyUyMGNvbmZpZyk=",highlighted:`<span class="hljs-keyword">from</span> peft <span class="hljs-keyword">import</span> get_peft_model, TinyLoraConfig

config = TinyLoraConfig(
    r=<span class="hljs-number">2</span>,  <span class="hljs-comment"># SVD rank (paper recommends 2)</span>
    u=<span class="hljs-number">64</span>,  <span class="hljs-comment"># Trainable vector dimension</span>
    weight_tying=<span class="hljs-number">0.0</span>,  <span class="hljs-comment"># No weight tying (0.0 = none, 1.0 = full)</span>
    target_modules=[<span class="hljs-string">&quot;q_proj&quot;</span>, <span class="hljs-string">&quot;v_proj&quot;</span>],
    projection_seed=<span class="hljs-number">42</span>,
)
model = get_peft_model(base_model, config)`,wrap:!1}}),{c(){s=l("p"),s.textContent=x,h=r(),v(m.$$.fragment)},l(o){s=p(o,"P",{"data-svelte-h":!0}),f(s)!=="svelte-11lpom8"&&(s.textContent=x),h=i(o),b(m.$$.fragment,o)},m(o,y){a(o,s,y),a(o,h,y),w(m,o,y),g=!0},p:Fe,i(o){g||(M(m.$$.fragment,o),g=!0)},o(o){$(m.$$.fragment,o),g=!1},d(o){o&&(n(s),n(h)),L(m,o)}}}function at(E){let s,x="Example:",h,m,g;return m=new Ge({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvckNhdXNhbExNJTBBZnJvbSUyMHBlZnQlMjBpbXBvcnQlMjBUaW55TG9yYUNvbmZpZyUyQyUyMGdldF9wZWZ0X21vZGVsJTBBJTBBYmFzZV9tb2RlbCUyMCUzRCUyMEF1dG9Nb2RlbEZvckNhdXNhbExNLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRm9wdC0xMjVtJTIyKSUwQWNvbmZpZyUyMCUzRCUyMFRpbnlMb3JhQ29uZmlnKHIlM0QyJTJDJTIwdSUzRDY0JTJDJTIwdGFyZ2V0X21vZHVsZXMlM0QlNUIlMjJxX3Byb2olMjIlMkMlMjAlMjJ2X3Byb2olMjIlNUQpJTBBbW9kZWwlMjAlM0QlMjBnZXRfcGVmdF9tb2RlbChiYXNlX21vZGVsJTJDJTIwY29uZmlnKQ==",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> TinyLoraConfig, 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 = TinyLoraConfig(r=<span class="hljs-number">2</span>, u=<span class="hljs-number">64</span>, target_modules=[<span class="hljs-string">&quot;q_proj&quot;</span>, <span class="hljs-string">&quot;v_proj&quot;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>model = get_peft_model(base_model, config)`,wrap:!1}}),{c(){s=l("p"),s.textContent=x,h=r(),v(m.$$.fragment)},l(o){s=p(o,"P",{"data-svelte-h":!0}),f(s)!=="svelte-11lpom8"&&(s.textContent=x),h=i(o),b(m.$$.fragment,o)},m(o,y){a(o,s,y),a(o,h,y),w(m,o,y),g=!0},p:Fe,i(o){g||(M(m.$$.fragment,o),g=!0)},o(o){$(m.$$.fragment,o),g=!1},d(o){o&&(n(s),n(h)),L(m,o)}}}function rt(E){let s,x,h,m,g,o,y,ne,U,ke='<a href="https://huggingface.co/papers/2602.04118" rel="nofollow">TinyLoRA</a> is an extremely parameter-efficient fine-tuning technique that builds upon the <a href="https://huggingface.co/papers/2405.17604" rel="nofollow">LoRA-XS</a> approach by using SVD decomposition of frozen weights and projecting a tiny trainable vector through fixed random tensors. When combined with reinforcement learning (RL) training methods like GRPO, TinyLoRA can achieve competitive performance with as few as 1-13 trainable parameters.',oe,k,Re="The key innovation of TinyLoRA is replacing the trainable low-rank matrix R with a weighted sum of fixed random projection matrices: <code>R = Σᵢ vᵢ Pᵢ</code>, where <code>v ∈ R^u</code> is a tiny trainable vector of dimension <code>u</code> and <code>Pᵢ</code> are fixed random matrices. This dramatically reduces the number of trainable parameters while maintaining competitive performance.",ae,R,Ie="TinyLoRA supports weight tying through the <code>weight_tying</code> parameter, a ratio between 0.0 and 1.0 that controls how many modules share the same trainable vector <code>v</code>. Setting <code>weight_tying=0.0</code> (the default) means no sharing, while <code>weight_tying=1.0</code> means full sharing across all target modules — achieving extreme parameter efficiency with just a single vector of <code>u</code> trainable parameters for the entire model.",re,I,Be="When saving the adapter parameters, it’s possible to eschew storing the random projection matrices by setting <code>save_projection=False</code> on the <code>TinyLoraConfig</code>. In that case, these matrices will be restored based on the fixed random seed from the <code>projection_seed</code> argument. This cuts down on the size of the checkpoint, but we cannot guarantee reproducibility on all devices and for all future versions of PyTorch. If you want to ensure reproducibility, set <code>save_projection=True</code> (which is the default).",ie,B,Ze="TinyLoRA currently has the following constraints:",se,Z,Pe="<li>Only <code>nn.Linear</code>, <code>nn.Embedding</code>, and <code>transformers.pytorch_utils.Conv1D</code> layers are supported.</li>",le,P,Ae="The abstract from the paper is:",pe,A,He="<p>Recent research has shown that language models can learn to reason, often via reinforcement learning. Some work even trains low-rank parameterizations for reasoning, but conventional LoRA cannot scale below the model dimension. We question whether even rank=1 LoRA is necessary for learning to reason and propose TinyLoRA, a method for scaling low-rank adapters to sizes as small as one parameter. Within our new parameterization, we are able to train the 8B parameter size of Qwen2.5 to 91% accuracy on GSM8K with only 13 trained parameters in bf16 (26 total bytes). We find this trend holds in general: we are able to recover 90% of performance improvements while training 1000x fewer parameters across a suite of more difficult learning-to-reason benchmarks such as AIME, AMC, and MATH500. Notably, we are only able to achieve such strong performance with RL: models trained using SFT require 100-1000x larger updates to reach the same performance.</p>",de,H,me,_,z,_e,W,ze='This is the configuration class to store the configuration of a <a href="/docs/peft/main/en/package_reference/tinylora#peft.TinyLoraModel">TinyLoraModel</a>.',Te,Q,Ne=`TinyLoRA is an extremely parameter-efficient fine-tuning method based on the paper “Learning to Reason in 13
Parameters” (arXiv:2602.04118). It uses SVD decomposition of frozen weights and projects a tiny trainable vector
through fixed random tensors.`,ve,S,Ve='Paper: <a href="https://arxiv.org/abs/2602.04118" rel="nofollow">https://arxiv.org/abs/2602.04118</a>',be,C,ce,N,fe,c,V,we,F,qe="Creates TinyLoRA model from a pretrained transformers model.",Me,G,De=`TinyLoRA is an extremely parameter-efficient fine-tuning method that uses SVD decomposition of frozen weights and
projects a tiny trainable vector through fixed random tensors. Based on the paper “Learning to Reason in 13
Parameters” (arXiv:2602.04118).`,$e,j,Le,X,Ee="<strong>Attributes</strong>:",xe,O,We='<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/tinylora#peft.TinyLoraConfig">TinyLoraConfig</a>): The configuration of the TinyLoRA model.</li>',Ce,J,q,je,Y,Qe="Delete an adapter and clean up the model-level shared v parameters.",ge,D,ue,K,he;return g=new tt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),y=new Je({props:{title:"TinyLoRA: Learning to Reason in 13 Parameters",local:"tinylora-learning-to-reason-in-13-parameters",headingTag:"h1"}}),H=new Je({props:{title:"TinyLoraConfig",local:"peft.TinyLoraConfig",headingTag:"h2"}}),z=new Ue({props:{name:"class peft.TinyLoraConfig",anchor:"peft.TinyLoraConfig",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 = 2"},{name:"u",val:": int = 64"},{name:"weight_tying",val:": float = 0.0"},{name:"projection_seed",val:": int = 42"},{name:"save_projection",val:": bool = True"},{name:"init_v_bound",val:": float = 0.02"},{name:"target_modules",val:": Optional[Union[list[str], str]] = None"},{name:"tinylora_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_weights",val:": Union[bool, str] = True"},{name:"layers_to_transform",val:": Optional[Union[list[int], int]] = None"},{name:"layers_pattern",val:": Optional[Union[list[str], str]] = None"}],parametersDescription:[{anchor:"peft.TinyLoraConfig.r",description:`<strong>r</strong> (<code>int</code>, <em>optional</em>, defaults to <code>2</code>) &#x2014;
SVD rank for the frozen U, Sigma, V decomposition. The paper recommends r=2.`,name:"r"},{anchor:"peft.TinyLoraConfig.u",description:`<strong>u</strong> (<code>int</code>, <em>optional</em>, defaults to <code>64</code>) &#x2014;
Trainable vector dimension per group. This controls the expressivity of the adaptation. Can be as low as
1-13 for extreme parameter efficiency.`,name:"u"},{anchor:"peft.TinyLoraConfig.weight_tying",description:`<strong>weight_tying</strong> (<code>float</code>, <em>optional</em>, defaults to <code>0.0</code>) &#x2014;
Degree of weight tying across target modules, as a ratio between 0.0 and 1.0. Controls how many modules
share the same trainable vector v. 0.0 means no sharing (each module has its own v). 1.0 means full sharing
(all modules share one v). Values in between give partial sharing.`,name:"weight_tying"},{anchor:"peft.TinyLoraConfig.projection_seed",description:`<strong>projection_seed</strong> (<code>int</code>, <em>optional</em>, defaults to <code>42</code>) &#x2014;
Random seed for generating the fixed projection matrices P.`,name:"projection_seed"},{anchor:"peft.TinyLoraConfig.save_projection",description:`<strong>save_projection</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the projection tensors P in the state dict. If False, they will be regenerated from the
seed when loading.`,name:"save_projection"},{anchor:"peft.TinyLoraConfig.init_v_bound",description:`<strong>init_v_bound</strong> (<code>float</code>, <em>optional</em>, defaults to <code>0.02</code>) &#x2014;
Uniform initialization bound for the trainable vector v. Values are initialized in [-init_v_bound,
init_v_bound].`,name:"init_v_bound"},{anchor:"peft.TinyLoraConfig.target_modules",description:`<strong>target_modules</strong> (<code>Union[List[str], str]</code>, <em>optional</em>) &#x2014;
The names of the modules to apply TinyLoRA to. This can be a list of module names (e.g. <code>[&apos;q_proj&apos;, &apos;v_proj&apos;]</code>), a regex pattern (e.g. <code>&apos;.*decoder.*(q|v)_proj$&apos;</code>), or the special keyword <code>&quot;all-linear&quot;</code> to
target all linear modules. Only <code>nn.Linear</code>, <code>nn.Embedding</code>, and <code>transformers.pytorch_utils.Conv1D</code> layers
are supported.`,name:"target_modules"},{anchor:"peft.TinyLoraConfig.tinylora_dropout",description:`<strong>tinylora_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to <code>0.0</code>) &#x2014;
The dropout probability for TinyLoRA layers.`,name:"tinylora_dropout"},{anchor:"peft.TinyLoraConfig.fan_in_fan_out",description:`<strong>fan_in_fan_out</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</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).`,name:"fan_in_fan_out"},{anchor:"peft.TinyLoraConfig.bias",description:`<strong>bias</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;none&quot;</code>) &#x2014;
Bias type for TinyLoRA. Can be &#x2018;none&#x2019;, &#x2018;all&#x2019; or &#x2018;tinylora_only&#x2019;.`,name:"bias"},{anchor:"peft.TinyLoraConfig.modules_to_save",description:`<strong>modules_to_save</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of modules apart from TinyLoRA layers to be set as trainable and saved.`,name:"modules_to_save"},{anchor:"peft.TinyLoraConfig.init_weights",description:`<strong>init_weights</strong> (<code>bool</code> | <code>Literal[&quot;uniform&quot;]</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
How to initialize the trainable vector v. Passing <code>True</code> (default) initializes v to zeros, making the
adapter a no-op (identity operation). Passing <code>&quot;uniform&quot;</code> initializes v with uniform random values in
<code>[-init_v_bound, init_v_bound]</code>. Passing <code>False</code> leaves v uninitialized (for advanced use cases).`,name:"init_weights"},{anchor:"peft.TinyLoraConfig.layers_to_transform",description:`<strong>layers_to_transform</strong> (<code>Union[List[int], int]</code>, <em>optional</em>) &#x2014;
The layer indexes to transform. If specified, only these layers will be adapted.`,name:"layers_to_transform"},{anchor:"peft.TinyLoraConfig.layers_pattern",description:`<strong>layers_pattern</strong> (<code>Optional[Union[List[str], str]]</code>, <em>optional</em>) &#x2014;
The layer pattern name, used only if <code>layers_to_transform</code> is different from <code>None</code>.`,name:"layers_pattern"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/tuners/tinylora/config.py#L25"}}),C=new Se({props:{anchor:"peft.TinyLoraConfig.example",$$slots:{default:[ot]},$$scope:{ctx:E}}}),N=new Je({props:{title:"TinyLoraModel",local:"peft.TinyLoraModel",headingTag:"h2"}}),V=new Ue({props:{name:"class peft.TinyLoraModel",anchor:"peft.TinyLoraModel",parameters:[{name:"model",val:""},{name:"config",val:""},{name:"adapter_name",val:""},{name:"low_cpu_mem_usage",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"peft.TinyLoraModel.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.TinyLoraModel.config",description:'<strong>config</strong> (<a href="/docs/peft/main/en/package_reference/tinylora#peft.TinyLoraConfig">TinyLoraConfig</a>) &#x2014; The configuration of the TinyLoRA model.',name:"config"},{anchor:"peft.TinyLoraModel.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.TinyLoraModel.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>, 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/tinylora/model.py#L33",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>torch.nn.Module</code></p>
`}}),j=new Se({props:{anchor:"peft.TinyLoraModel.example",$$slots:{default:[at]},$$scope:{ctx:E}}}),q=new Ue({props:{name:"delete_adapter",anchor:"peft.TinyLoraModel.delete_adapter",parameters:[{name:"adapter_name",val:": str"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/tuners/tinylora/model.py#L276"}}),D=new nt({props:{source:"https://github.com/huggingface/peft/blob/main/docs/source/package_reference/tinylora.md"}}),{c(){s=l("meta"),x=r(),h=l("p"),m=r(),v(g.$$.fragment),o=r(),v(y.$$.fragment),ne=r(),U=l("p"),U.innerHTML=ke,oe=r(),k=l("p"),k.innerHTML=Re,ae=r(),R=l("p"),R.innerHTML=Ie,re=r(),I=l("p"),I.innerHTML=Be,ie=r(),B=l("p"),B.textContent=Ze,se=r(),Z=l("ul"),Z.innerHTML=Pe,le=r(),P=l("p"),P.textContent=Ae,pe=r(),A=l("blockquote"),A.innerHTML=He,de=r(),v(H.$$.fragment),me=r(),_=l("div"),v(z.$$.fragment),_e=r(),W=l("p"),W.innerHTML=ze,Te=r(),Q=l("p"),Q.textContent=Ne,ve=r(),S=l("p"),S.innerHTML=Ve,be=r(),v(C.$$.fragment),ce=r(),v(N.$$.fragment),fe=r(),c=l("div"),v(V.$$.fragment),we=r(),F=l("p"),F.textContent=qe,Me=r(),G=l("p"),G.textContent=De,$e=r(),v(j.$$.fragment),Le=r(),X=l("p"),X.innerHTML=Ee,xe=r(),O=l("ul"),O.innerHTML=We,Ce=r(),J=l("div"),v(q.$$.fragment),je=r(),Y=l("p"),Y.textContent=Qe,ge=r(),v(D.$$.fragment),ue=r(),K=l("p"),this.h()},l(e){const t=et("svelte-u9bgzb",document.head);s=p(t,"META",{name:!0,content:!0}),t.forEach(n),x=i(e),h=p(e,"P",{}),ee(h).forEach(n),m=i(e),b(g.$$.fragment,e),o=i(e),b(y.$$.fragment,e),ne=i(e),U=p(e,"P",{"data-svelte-h":!0}),f(U)!=="svelte-14q4clg"&&(U.innerHTML=ke),oe=i(e),k=p(e,"P",{"data-svelte-h":!0}),f(k)!=="svelte-1iymht2"&&(k.innerHTML=Re),ae=i(e),R=p(e,"P",{"data-svelte-h":!0}),f(R)!=="svelte-g1sfd8"&&(R.innerHTML=Ie),re=i(e),I=p(e,"P",{"data-svelte-h":!0}),f(I)!=="svelte-1mkk6na"&&(I.innerHTML=Be),ie=i(e),B=p(e,"P",{"data-svelte-h":!0}),f(B)!=="svelte-1dnukkm"&&(B.textContent=Ze),se=i(e),Z=p(e,"UL",{"data-svelte-h":!0}),f(Z)!=="svelte-6eenk3"&&(Z.innerHTML=Pe),le=i(e),P=p(e,"P",{"data-svelte-h":!0}),f(P)!=="svelte-1cwsb16"&&(P.textContent=Ae),pe=i(e),A=p(e,"BLOCKQUOTE",{"data-svelte-h":!0}),f(A)!=="svelte-18beca2"&&(A.innerHTML=He),de=i(e),b(H.$$.fragment,e),me=i(e),_=p(e,"DIV",{class:!0});var T=ee(_);b(z.$$.fragment,T),_e=i(T),W=p(T,"P",{"data-svelte-h":!0}),f(W)!=="svelte-ozrvpd"&&(W.innerHTML=ze),Te=i(T),Q=p(T,"P",{"data-svelte-h":!0}),f(Q)!=="svelte-17tk4bh"&&(Q.textContent=Ne),ve=i(T),S=p(T,"P",{"data-svelte-h":!0}),f(S)!=="svelte-c1lusd"&&(S.innerHTML=Ve),be=i(T),b(C.$$.fragment,T),T.forEach(n),ce=i(e),b(N.$$.fragment,e),fe=i(e),c=p(e,"DIV",{class:!0});var u=ee(c);b(V.$$.fragment,u),we=i(u),F=p(u,"P",{"data-svelte-h":!0}),f(F)!=="svelte-t6on9w"&&(F.textContent=qe),Me=i(u),G=p(u,"P",{"data-svelte-h":!0}),f(G)!=="svelte-heaauv"&&(G.textContent=De),$e=i(u),b(j.$$.fragment,u),Le=i(u),X=p(u,"P",{"data-svelte-h":!0}),f(X)!=="svelte-1xx6nm4"&&(X.innerHTML=Ee),xe=i(u),O=p(u,"UL",{"data-svelte-h":!0}),f(O)!=="svelte-1mvuy96"&&(O.innerHTML=We),Ce=i(u),J=p(u,"DIV",{class:!0});var ye=ee(J);b(q.$$.fragment,ye),je=i(ye),Y=p(ye,"P",{"data-svelte-h":!0}),f(Y)!=="svelte-5ebvkc"&&(Y.textContent=Qe),ye.forEach(n),u.forEach(n),ge=i(e),b(D.$$.fragment,e),ue=i(e),K=p(e,"P",{}),ee(K).forEach(n),this.h()},h(){te(s,"name","hf:doc:metadata"),te(s,"content",it),te(_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),te(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),te(c,"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,s),a(e,x,t),a(e,h,t),a(e,m,t),w(g,e,t),a(e,o,t),w(y,e,t),a(e,ne,t),a(e,U,t),a(e,oe,t),a(e,k,t),a(e,ae,t),a(e,R,t),a(e,re,t),a(e,I,t),a(e,ie,t),a(e,B,t),a(e,se,t),a(e,Z,t),a(e,le,t),a(e,P,t),a(e,pe,t),a(e,A,t),a(e,de,t),w(H,e,t),a(e,me,t),a(e,_,t),w(z,_,null),d(_,_e),d(_,W),d(_,Te),d(_,Q),d(_,ve),d(_,S),d(_,be),w(C,_,null),a(e,ce,t),w(N,e,t),a(e,fe,t),a(e,c,t),w(V,c,null),d(c,we),d(c,F),d(c,Me),d(c,G),d(c,$e),w(j,c,null),d(c,Le),d(c,X),d(c,xe),d(c,O),d(c,Ce),d(c,J),w(q,J,null),d(J,je),d(J,Y),a(e,ge,t),w(D,e,t),a(e,ue,t),a(e,K,t),he=!0},p(e,[t]){const T={};t&2&&(T.$$scope={dirty:t,ctx:e}),C.$set(T);const u={};t&2&&(u.$$scope={dirty:t,ctx:e}),j.$set(u)},i(e){he||(M(g.$$.fragment,e),M(y.$$.fragment,e),M(H.$$.fragment,e),M(z.$$.fragment,e),M(C.$$.fragment,e),M(N.$$.fragment,e),M(V.$$.fragment,e),M(j.$$.fragment,e),M(q.$$.fragment,e),M(D.$$.fragment,e),he=!0)},o(e){$(g.$$.fragment,e),$(y.$$.fragment,e),$(H.$$.fragment,e),$(z.$$.fragment,e),$(C.$$.fragment,e),$(N.$$.fragment,e),$(V.$$.fragment,e),$(j.$$.fragment,e),$(q.$$.fragment,e),$(D.$$.fragment,e),he=!1},d(e){e&&(n(x),n(h),n(m),n(o),n(ne),n(U),n(oe),n(k),n(ae),n(R),n(re),n(I),n(ie),n(B),n(se),n(Z),n(le),n(P),n(pe),n(A),n(de),n(me),n(_),n(ce),n(fe),n(c),n(ge),n(ue),n(K)),n(s),L(g,e),L(y,e),L(H,e),L(z),L(C),L(N,e),L(V),L(j),L(q),L(D,e)}}}const it='{"title":"TinyLoRA: Learning to Reason in 13 Parameters","local":"tinylora-learning-to-reason-in-13-parameters","sections":[{"title":"TinyLoraConfig","local":"peft.TinyLoraConfig","sections":[],"depth":2},{"title":"TinyLoraModel","local":"peft.TinyLoraModel","sections":[],"depth":2}],"depth":1}';function st(E){return Oe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class gt extends Ye{constructor(s){super(),Ke(this,s,st,rt,Xe,{})}}export{gt as component};
