import{s as Dd,o as Qd,n as _e}from"../chunks/scheduler.4cd3e004.js";import{S as Hd,i as Xd,e as o,s as a,c as m,h as zd,a as s,d as l,b as n,f as $,g as f,j as d,k as T,l as t,m as c,n as g,t as u,o as h,p as _}from"../chunks/index.b664cb2d.js";import{D as x}from"../chunks/Docstring.9ceb4334.js";import{C as be}from"../chunks/CodeBlock.8601e34e.js";import{E as he}from"../chunks/ExampleCodeBlock.4f57b575.js";import{H as ce,E as Yd}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.179b63f8.js";function Od(U){let p,P="Example:",M,b,y;return b=new be({props:{code:"d2l0aCUyMG1vZGVsLmRpc2FibGVfYWRhcHRlcigpJTNBJTBBJTIwJTIwJTIwJTIwbW9kZWwoaW5wdXRzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> model.disable_adapter():
<span class="hljs-meta">... </span>    model(inputs)`,wrap:!1}}),{c(){p=o("p"),p.textContent=P,M=a(),m(b.$$.fragment)},l(r){p=s(r,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=P),M=n(r),f(b.$$.fragment,r)},m(r,j){c(r,p,j),c(r,M,j),g(b,r,j),y=!0},p:_e,i(r){y||(u(b.$$.fragment,r),y=!0)},o(r){h(b.$$.fragment,r),y=!1},d(r){r&&(l(p),l(M)),_(b,r)}}}function Kd(U){let p,P;return p=new be({props:{code:"Zm9yJTIwbmFtZSUyQyUyMHBhcmFtJTIwaW4lMjBtb2RlbF9wZWZ0Lm5hbWVkX3BhcmFtZXRlcnMoKSUzQSUwQSUyMCUyMCUyMCUyMGlmJTIwLi4uJTNBJTIwJTIwJTIzJTIwc29tZSUyMGNoZWNrJTIwb24lMjBuYW1lJTIwKGV4LiUyMGlmJTIwJ2xvcmEnJTIwaW4lMjBuYW1lKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHBhcmFtLnJlcXVpcmVzX2dyYWQlMjAlM0QlMjBGYWxzZQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> name, param <span class="hljs-keyword">in</span> model_peft.named_parameters():
<span class="hljs-meta">... </span>    <span class="hljs-keyword">if</span> ...:  <span class="hljs-comment"># some check on name (ex. if &#x27;lora&#x27; in name)</span>
<span class="hljs-meta">... </span>        param.requires_grad = <span class="hljs-literal">False</span>`,wrap:!1}}),{c(){m(p.$$.fragment)},l(M){f(p.$$.fragment,M)},m(M,b){g(p,M,b),P=!0},p:_e,i(M){P||(u(p.$$.fragment,M),P=!0)},o(M){h(p.$$.fragment,M),P=!1},d(M){_(p,M)}}}function ei(U){let p,P="Example:",M,b,y;return b=new be({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMEFmcm9tJTIwcGVmdCUyMGltcG9ydCUyMFBlZnRNb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMkMlMjBnZXRfcGVmdF9jb25maWclMEElMEFjb25maWclMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjJwZWZ0X3R5cGUlMjIlM0ElMjAlMjJQUkVGSVhfVFVOSU5HJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIydGFza190eXBlJTIyJTNBJTIwJTIyU0VRX0NMUyUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMmluZmVyZW5jZV9tb2RlJTIyJTNBJTIwRmFsc2UlMkMlMEElMjAlMjAlMjAlMjAlMjJudW1fdmlydHVhbF90b2tlbnMlMjIlM0ElMjAyMCUyQyUwQSUyMCUyMCUyMCUyMCUyMnRva2VuX2RpbSUyMiUzQSUyMDc2OCUyQyUwQSUyMCUyMCUyMCUyMCUyMm51bV90cmFuc2Zvcm1lcl9zdWJtb2R1bGVzJTIyJTNBJTIwMSUyQyUwQSUyMCUyMCUyMCUyMCUyMm51bV9hdHRlbnRpb25faGVhZHMlMjIlM0ElMjAxMiUyQyUwQSUyMCUyMCUyMCUyMCUyMm51bV9sYXllcnMlMjIlM0ElMjAxMiUyQyUwQSUyMCUyMCUyMCUyMCUyMmVuY29kZXJfaGlkZGVuX3NpemUlMjIlM0ElMjA3NjglMkMlMEElMjAlMjAlMjAlMjAlMjJwcmVmaXhfcHJvamVjdGlvbiUyMiUzQSUyMEZhbHNlJTJDJTBBJTIwJTIwJTIwJTIwJTIycG9zdHByb2Nlc3NfcGFzdF9rZXlfdmFsdWVfZnVuY3Rpb24lMjIlM0ElMjBOb25lJTJDJTBBJTdEJTBBJTBBcGVmdF9jb25maWclMjAlM0QlMjBnZXRfcGVmdF9jb25maWcoY29uZmlnKSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yU2VxdWVuY2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQXBlZnRfbW9kZWwlMjAlM0QlMjBQZWZ0TW9kZWxGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uKG1vZGVsJTJDJTIwcGVmdF9jb25maWcpJTBBcGVmdF9tb2RlbC5wcmludF90cmFpbmFibGVfcGFyYW1ldGVycygp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSequenceClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> peft <span class="hljs-keyword">import</span> PeftModelForSequenceClassification, get_peft_config

<span class="hljs-meta">&gt;&gt;&gt; </span>config = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;peft_type&quot;</span>: <span class="hljs-string">&quot;PREFIX_TUNING&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;task_type&quot;</span>: <span class="hljs-string">&quot;SEQ_CLS&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;inference_mode&quot;</span>: <span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;num_virtual_tokens&quot;</span>: <span class="hljs-number">20</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;token_dim&quot;</span>: <span class="hljs-number">768</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;num_transformer_submodules&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;num_attention_heads&quot;</span>: <span class="hljs-number">12</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;num_layers&quot;</span>: <span class="hljs-number">12</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;encoder_hidden_size&quot;</span>: <span class="hljs-number">768</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;prefix_projection&quot;</span>: <span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;postprocess_past_key_value_function&quot;</span>: <span class="hljs-literal">None</span>,
<span class="hljs-meta">... </span>}

<span class="hljs-meta">&gt;&gt;&gt; </span>peft_config = get_peft_config(config)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model = PeftModelForSequenceClassification(model, peft_config)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model.print_trainable_parameters()
trainable params: <span class="hljs-number">370178</span> || <span class="hljs-built_in">all</span> params: <span class="hljs-number">108680450</span> || trainable%: <span class="hljs-number">0.3406113979101117</span>`,wrap:!1}}),{c(){p=o("p"),p.textContent=P,M=a(),m(b.$$.fragment)},l(r){p=s(r,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=P),M=n(r),f(b.$$.fragment,r)},m(r,j){c(r,p,j),c(r,M,j),g(b,r,j),y=!0},p:_e,i(r){y||(u(b.$$.fragment,r),y=!0)},o(r){h(b.$$.fragment,r),y=!1},d(r){r&&(l(p),l(M)),_(b,r)}}}function ti(U){let p,P="Example:",M,b,y;return b=new be({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMEFmcm9tJTIwcGVmdCUyMGltcG9ydCUyMFBlZnRNb2RlbEZvclRva2VuQ2xhc3NpZmljYXRpb24lMkMlMjBnZXRfcGVmdF9jb25maWclMEElMEFjb25maWclMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjJwZWZ0X3R5cGUlMjIlM0ElMjAlMjJQUkVGSVhfVFVOSU5HJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIydGFza190eXBlJTIyJTNBJTIwJTIyVE9LRU5fQ0xTJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyaW5mZXJlbmNlX21vZGUlMjIlM0ElMjBGYWxzZSUyQyUwQSUyMCUyMCUyMCUyMCUyMm51bV92aXJ0dWFsX3Rva2VucyUyMiUzQSUyMDIwJTJDJTBBJTIwJTIwJTIwJTIwJTIydG9rZW5fZGltJTIyJTNBJTIwNzY4JTJDJTBBJTIwJTIwJTIwJTIwJTIybnVtX3RyYW5zZm9ybWVyX3N1Ym1vZHVsZXMlMjIlM0ElMjAxJTJDJTBBJTIwJTIwJTIwJTIwJTIybnVtX2F0dGVudGlvbl9oZWFkcyUyMiUzQSUyMDEyJTJDJTBBJTIwJTIwJTIwJTIwJTIybnVtX2xheWVycyUyMiUzQSUyMDEyJTJDJTBBJTIwJTIwJTIwJTIwJTIyZW5jb2Rlcl9oaWRkZW5fc2l6ZSUyMiUzQSUyMDc2OCUyQyUwQSUyMCUyMCUyMCUyMCUyMnByZWZpeF9wcm9qZWN0aW9uJTIyJTNBJTIwRmFsc2UlMkMlMEElMjAlMjAlMjAlMjAlMjJwb3N0cHJvY2Vzc19wYXN0X2tleV92YWx1ZV9mdW5jdGlvbiUyMiUzQSUyME5vbmUlMkMlMEElN0QlMEElMEFwZWZ0X2NvbmZpZyUyMCUzRCUyMGdldF9wZWZ0X2NvbmZpZyhjb25maWcpJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JUb2tlbkNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBcGVmdF9tb2RlbCUyMCUzRCUyMFBlZnRNb2RlbEZvclRva2VuQ2xhc3NpZmljYXRpb24obW9kZWwlMkMlMjBwZWZ0X2NvbmZpZyklMEFwZWZ0X21vZGVsLnByaW50X3RyYWluYWJsZV9wYXJhbWV0ZXJzKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSequenceClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> peft <span class="hljs-keyword">import</span> PeftModelForTokenClassification, get_peft_config

<span class="hljs-meta">&gt;&gt;&gt; </span>config = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;peft_type&quot;</span>: <span class="hljs-string">&quot;PREFIX_TUNING&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;task_type&quot;</span>: <span class="hljs-string">&quot;TOKEN_CLS&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;inference_mode&quot;</span>: <span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;num_virtual_tokens&quot;</span>: <span class="hljs-number">20</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;token_dim&quot;</span>: <span class="hljs-number">768</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;num_transformer_submodules&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;num_attention_heads&quot;</span>: <span class="hljs-number">12</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;num_layers&quot;</span>: <span class="hljs-number">12</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;encoder_hidden_size&quot;</span>: <span class="hljs-number">768</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;prefix_projection&quot;</span>: <span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;postprocess_past_key_value_function&quot;</span>: <span class="hljs-literal">None</span>,
<span class="hljs-meta">... </span>}

<span class="hljs-meta">&gt;&gt;&gt; </span>peft_config = get_peft_config(config)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForTokenClassification.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model = PeftModelForTokenClassification(model, peft_config)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model.print_trainable_parameters()
trainable params: <span class="hljs-number">370178</span> || <span class="hljs-built_in">all</span> params: <span class="hljs-number">108680450</span> || trainable%: <span class="hljs-number">0.3406113979101117</span>`,wrap:!1}}),{c(){p=o("p"),p.textContent=P,M=a(),m(b.$$.fragment)},l(r){p=s(r,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=P),M=n(r),f(b.$$.fragment,r)},m(r,j){c(r,p,j),c(r,M,j),g(b,r,j),y=!0},p:_e,i(r){y||(u(b.$$.fragment,r),y=!0)},o(r){h(b.$$.fragment,r),y=!1},d(r){r&&(l(p),l(M)),_(b,r)}}}function ai(U){let p,P="Example:",M,b,y;return b=new be({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvckNhdXNhbExNJTBBZnJvbSUyMHBlZnQlMjBpbXBvcnQlMjBQZWZ0TW9kZWxGb3JDYXVzYWxMTSUyQyUyMGdldF9wZWZ0X2NvbmZpZyUwQSUwQWNvbmZpZyUyMCUzRCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMnBlZnRfdHlwZSUyMiUzQSUyMCUyMlBSRUZJWF9UVU5JTkclMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJ0YXNrX3R5cGUlMjIlM0ElMjAlMjJDQVVTQUxfTE0lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJpbmZlcmVuY2VfbW9kZSUyMiUzQSUyMEZhbHNlJTJDJTBBJTIwJTIwJTIwJTIwJTIybnVtX3ZpcnR1YWxfdG9rZW5zJTIyJTNBJTIwMjAlMkMlMEElMjAlMjAlMjAlMjAlMjJ0b2tlbl9kaW0lMjIlM0ElMjAxMjgwJTJDJTBBJTIwJTIwJTIwJTIwJTIybnVtX3RyYW5zZm9ybWVyX3N1Ym1vZHVsZXMlMjIlM0ElMjAxJTJDJTBBJTIwJTIwJTIwJTIwJTIybnVtX2F0dGVudGlvbl9oZWFkcyUyMiUzQSUyMDIwJTJDJTBBJTIwJTIwJTIwJTIwJTIybnVtX2xheWVycyUyMiUzQSUyMDM2JTJDJTBBJTIwJTIwJTIwJTIwJTIyZW5jb2Rlcl9oaWRkZW5fc2l6ZSUyMiUzQSUyMDEyODAlMkMlMEElMjAlMjAlMjAlMjAlMjJwcmVmaXhfcHJvamVjdGlvbiUyMiUzQSUyMEZhbHNlJTJDJTBBJTIwJTIwJTIwJTIwJTIycG9zdHByb2Nlc3NfcGFzdF9rZXlfdmFsdWVfZnVuY3Rpb24lMjIlM0ElMjBOb25lJTJDJTBBJTdEJTBBJTBBcGVmdF9jb25maWclMjAlM0QlMjBnZXRfcGVmdF9jb25maWcoY29uZmlnKSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yQ2F1c2FsTE0uZnJvbV9wcmV0cmFpbmVkKCUyMmdwdDItbGFyZ2UlMjIpJTBBcGVmdF9tb2RlbCUyMCUzRCUyMFBlZnRNb2RlbEZvckNhdXNhbExNKG1vZGVsJTJDJTIwcGVmdF9jb25maWcpJTBBcGVmdF9tb2RlbC5wcmludF90cmFpbmFibGVfcGFyYW1ldGVycygp",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> PeftModelForCausalLM, get_peft_config

<span class="hljs-meta">&gt;&gt;&gt; </span>config = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;peft_type&quot;</span>: <span class="hljs-string">&quot;PREFIX_TUNING&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;task_type&quot;</span>: <span class="hljs-string">&quot;CAUSAL_LM&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;inference_mode&quot;</span>: <span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;num_virtual_tokens&quot;</span>: <span class="hljs-number">20</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;token_dim&quot;</span>: <span class="hljs-number">1280</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;num_transformer_submodules&quot;</span>: <span class="hljs-number">1</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;num_attention_heads&quot;</span>: <span class="hljs-number">20</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;num_layers&quot;</span>: <span class="hljs-number">36</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;encoder_hidden_size&quot;</span>: <span class="hljs-number">1280</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;prefix_projection&quot;</span>: <span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;postprocess_past_key_value_function&quot;</span>: <span class="hljs-literal">None</span>,
<span class="hljs-meta">... </span>}

<span class="hljs-meta">&gt;&gt;&gt; </span>peft_config = get_peft_config(config)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForCausalLM.from_pretrained(<span class="hljs-string">&quot;gpt2-large&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model = PeftModelForCausalLM(model, peft_config)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model.print_trainable_parameters()
trainable params: <span class="hljs-number">1843200</span> || <span class="hljs-built_in">all</span> params: <span class="hljs-number">775873280</span> || trainable%: <span class="hljs-number">0.23756456724479544</span>`,wrap:!1}}),{c(){p=o("p"),p.textContent=P,M=a(),m(b.$$.fragment)},l(r){p=s(r,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=P),M=n(r),f(b.$$.fragment,r)},m(r,j){c(r,p,j),c(r,M,j),g(b,r,j),y=!0},p:_e,i(r){y||(u(b.$$.fragment,r),y=!0)},o(r){h(b.$$.fragment,r),y=!1},d(r){r&&(l(p),l(M)),_(b,r)}}}function ni(U){let p,P="Example:",M,b,y;return b=new be({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcTJTZXFMTSUwQWZyb20lMjBwZWZ0JTIwaW1wb3J0JTIwUGVmdE1vZGVsRm9yU2VxMlNlcUxNJTJDJTIwZ2V0X3BlZnRfY29uZmlnJTBBJTBBY29uZmlnJTIwJTNEJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIycGVmdF90eXBlJTIyJTNBJTIwJTIyTE9SQSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMnRhc2tfdHlwZSUyMiUzQSUyMCUyMlNFUV8yX1NFUV9MTSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMmluZmVyZW5jZV9tb2RlJTIyJTNBJTIwRmFsc2UlMkMlMEElMjAlMjAlMjAlMjAlMjJyJTIyJTNBJTIwOCUyQyUwQSUyMCUyMCUyMCUyMCUyMnRhcmdldF9tb2R1bGVzJTIyJTNBJTIwJTVCJTIycSUyMiUyQyUyMCUyMnYlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJsb3JhX2FscGhhJTIyJTNBJTIwMzIlMkMlMEElMjAlMjAlMjAlMjAlMjJsb3JhX2Ryb3BvdXQlMjIlM0ElMjAwLjElMkMlMEElMjAlMjAlMjAlMjAlMjJmYW5faW5fZmFuX291dCUyMiUzQSUyMEZhbHNlJTJDJTBBJTIwJTIwJTIwJTIwJTIyZW5hYmxlX2xvcmElMjIlM0ElMjBOb25lJTJDJTBBJTIwJTIwJTIwJTIwJTIyYmlhcyUyMiUzQSUyMCUyMm5vbmUlMjIlMkMlMEElN0QlMEElMEFwZWZ0X2NvbmZpZyUyMCUzRCUyMGdldF9wZWZ0X2NvbmZpZyhjb25maWcpJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JTZXEyU2VxTE0uZnJvbV9wcmV0cmFpbmVkKCUyMnQ1LWJhc2UlMjIpJTBBcGVmdF9tb2RlbCUyMCUzRCUyMFBlZnRNb2RlbEZvclNlcTJTZXFMTShtb2RlbCUyQyUyMHBlZnRfY29uZmlnKSUwQXBlZnRfbW9kZWwucHJpbnRfdHJhaW5hYmxlX3BhcmFtZXRlcnMoKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSeq2SeqLM
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> peft <span class="hljs-keyword">import</span> PeftModelForSeq2SeqLM, get_peft_config

<span class="hljs-meta">&gt;&gt;&gt; </span>config = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;peft_type&quot;</span>: <span class="hljs-string">&quot;LORA&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;task_type&quot;</span>: <span class="hljs-string">&quot;SEQ_2_SEQ_LM&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;inference_mode&quot;</span>: <span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;r&quot;</span>: <span class="hljs-number">8</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;target_modules&quot;</span>: [<span class="hljs-string">&quot;q&quot;</span>, <span class="hljs-string">&quot;v&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;lora_alpha&quot;</span>: <span class="hljs-number">32</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;lora_dropout&quot;</span>: <span class="hljs-number">0.1</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;fan_in_fan_out&quot;</span>: <span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;enable_lora&quot;</span>: <span class="hljs-literal">None</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;bias&quot;</span>: <span class="hljs-string">&quot;none&quot;</span>,
<span class="hljs-meta">... </span>}

<span class="hljs-meta">&gt;&gt;&gt; </span>peft_config = get_peft_config(config)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForSeq2SeqLM.from_pretrained(<span class="hljs-string">&quot;t5-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model = PeftModelForSeq2SeqLM(model, peft_config)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model.print_trainable_parameters()
trainable params: <span class="hljs-number">884736</span> || <span class="hljs-built_in">all</span> params: <span class="hljs-number">223843584</span> || trainable%: <span class="hljs-number">0.3952474242013566</span>`,wrap:!1}}),{c(){p=o("p"),p.textContent=P,M=a(),m(b.$$.fragment)},l(r){p=s(r,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=P),M=n(r),f(b.$$.fragment,r)},m(r,j){c(r,p,j),c(r,M,j),g(b,r,j),y=!0},p:_e,i(r){y||(u(b.$$.fragment,r),y=!0)},o(r){h(b.$$.fragment,r),y=!1},d(r){r&&(l(p),l(M)),_(b,r)}}}function oi(U){let p,P="Example:",M,b,y;return b=new be({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclF1ZXN0aW9uQW5zd2VyaW5nJTBBZnJvbSUyMHBlZnQlMjBpbXBvcnQlMjBQZWZ0TW9kZWxGb3JRdWVzdGlvbkFuc3dlcmluZyUyQyUyMGdldF9wZWZ0X2NvbmZpZyUwQSUwQWNvbmZpZyUyMCUzRCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMnBlZnRfdHlwZSUyMiUzQSUyMCUyMkxPUkElMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJ0YXNrX3R5cGUlMjIlM0ElMjAlMjJRVUVTVElPTl9BTlMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJpbmZlcmVuY2VfbW9kZSUyMiUzQSUyMEZhbHNlJTJDJTBBJTIwJTIwJTIwJTIwJTIyciUyMiUzQSUyMDE2JTJDJTBBJTIwJTIwJTIwJTIwJTIydGFyZ2V0X21vZHVsZXMlMjIlM0ElMjAlNUIlMjJxdWVyeSUyMiUyQyUyMCUyMnZhbHVlJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIybG9yYV9hbHBoYSUyMiUzQSUyMDMyJTJDJTBBJTIwJTIwJTIwJTIwJTIybG9yYV9kcm9wb3V0JTIyJTNBJTIwMC4wNSUyQyUwQSUyMCUyMCUyMCUyMCUyMmZhbl9pbl9mYW5fb3V0JTIyJTNBJTIwRmFsc2UlMkMlMEElMjAlMjAlMjAlMjAlMjJiaWFzJTIyJTNBJTIwJTIybm9uZSUyMiUyQyUwQSU3RCUwQSUwQXBlZnRfY29uZmlnJTIwJTNEJTIwZ2V0X3BlZnRfY29uZmlnKGNvbmZpZyklMEFtb2RlbCUyMCUzRCUyMEF1dG9Nb2RlbEZvclF1ZXN0aW9uQW5zd2VyaW5nLmZyb21fcHJldHJhaW5lZCglMjJiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBcGVmdF9tb2RlbCUyMCUzRCUyMFBlZnRNb2RlbEZvclF1ZXN0aW9uQW5zd2VyaW5nKG1vZGVsJTJDJTIwcGVmdF9jb25maWcpJTBBcGVmdF9tb2RlbC5wcmludF90cmFpbmFibGVfcGFyYW1ldGVycygp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForQuestionAnswering
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> peft <span class="hljs-keyword">import</span> PeftModelForQuestionAnswering, get_peft_config

<span class="hljs-meta">&gt;&gt;&gt; </span>config = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;peft_type&quot;</span>: <span class="hljs-string">&quot;LORA&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;task_type&quot;</span>: <span class="hljs-string">&quot;QUESTION_ANS&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;inference_mode&quot;</span>: <span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;r&quot;</span>: <span class="hljs-number">16</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;target_modules&quot;</span>: [<span class="hljs-string">&quot;query&quot;</span>, <span class="hljs-string">&quot;value&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;lora_alpha&quot;</span>: <span class="hljs-number">32</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;lora_dropout&quot;</span>: <span class="hljs-number">0.05</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;fan_in_fan_out&quot;</span>: <span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;bias&quot;</span>: <span class="hljs-string">&quot;none&quot;</span>,
<span class="hljs-meta">... </span>}

<span class="hljs-meta">&gt;&gt;&gt; </span>peft_config = get_peft_config(config)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForQuestionAnswering.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model = PeftModelForQuestionAnswering(model, peft_config)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model.print_trainable_parameters()
trainable params: <span class="hljs-number">592900</span> || <span class="hljs-built_in">all</span> params: <span class="hljs-number">108312580</span> || trainable%: <span class="hljs-number">0.5473971721475013</span>`,wrap:!1}}),{c(){p=o("p"),p.textContent=P,M=a(),m(b.$$.fragment)},l(r){p=s(r,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=P),M=n(r),f(b.$$.fragment,r)},m(r,j){c(r,p,j),c(r,M,j),g(b,r,j),y=!0},p:_e,i(r){y||(u(b.$$.fragment,r),y=!0)},o(r){h(b.$$.fragment,r),y=!1},d(r){r&&(l(p),l(M)),_(b,r)}}}function si(U){let p,P="Example:",M,b,y;return b=new be({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbCUwQWZyb20lMjBwZWZ0JTIwaW1wb3J0JTIwUGVmdE1vZGVsRm9yRmVhdHVyZUV4dHJhY3Rpb24lMkMlMjBnZXRfcGVmdF9jb25maWclMEElMEFjb25maWclMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjJwZWZ0X3R5cGUlMjIlM0ElMjAlMjJMT1JBJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIydGFza190eXBlJTIyJTNBJTIwJTIyRkVBVFVSRV9FWFRSQUNUSU9OJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyaW5mZXJlbmNlX21vZGUlMjIlM0ElMjBGYWxzZSUyQyUwQSUyMCUyMCUyMCUyMCUyMnIlMjIlM0ElMjAxNiUyQyUwQSUyMCUyMCUyMCUyMCUyMnRhcmdldF9tb2R1bGVzJTIyJTNBJTIwJTVCJTIycXVlcnklMjIlMkMlMjAlMjJ2YWx1ZSUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMmxvcmFfYWxwaGElMjIlM0ElMjAzMiUyQyUwQSUyMCUyMCUyMCUyMCUyMmxvcmFfZHJvcG91dCUyMiUzQSUyMDAuMDUlMkMlMEElMjAlMjAlMjAlMjAlMjJmYW5faW5fZmFuX291dCUyMiUzQSUyMEZhbHNlJTJDJTBBJTIwJTIwJTIwJTIwJTIyYmlhcyUyMiUzQSUyMCUyMm5vbmUlMjIlMkMlMEElN0QlMEFwZWZ0X2NvbmZpZyUyMCUzRCUyMGdldF9wZWZ0X2NvbmZpZyhjb25maWcpJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmJlcnQtYmFzZS1jYXNlZCUyMiklMEFwZWZ0X21vZGVsJTIwJTNEJTIwUGVmdE1vZGVsRm9yRmVhdHVyZUV4dHJhY3Rpb24obW9kZWwlMkMlMjBwZWZ0X2NvbmZpZyklMEFwZWZ0X21vZGVsLnByaW50X3RyYWluYWJsZV9wYXJhbWV0ZXJzKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> peft <span class="hljs-keyword">import</span> PeftModelForFeatureExtraction, get_peft_config

<span class="hljs-meta">&gt;&gt;&gt; </span>config = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;peft_type&quot;</span>: <span class="hljs-string">&quot;LORA&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;task_type&quot;</span>: <span class="hljs-string">&quot;FEATURE_EXTRACTION&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;inference_mode&quot;</span>: <span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;r&quot;</span>: <span class="hljs-number">16</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;target_modules&quot;</span>: [<span class="hljs-string">&quot;query&quot;</span>, <span class="hljs-string">&quot;value&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;lora_alpha&quot;</span>: <span class="hljs-number">32</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;lora_dropout&quot;</span>: <span class="hljs-number">0.05</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;fan_in_fan_out&quot;</span>: <span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;bias&quot;</span>: <span class="hljs-string">&quot;none&quot;</span>,
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_config = get_peft_config(config)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModel.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model = PeftModelForFeatureExtraction(model, peft_config)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model.print_trainable_parameters()`,wrap:!1}}),{c(){p=o("p"),p.textContent=P,M=a(),m(b.$$.fragment)},l(r){p=s(r,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=P),M=n(r),f(b.$$.fragment,r)},m(r,j){c(r,p,j),c(r,M,j),g(b,r,j),y=!0},p:_e,i(r){y||(u(b.$$.fragment,r),y=!0)},o(r){h(b.$$.fragment,r),y=!1},d(r){r&&(l(p),l(M)),_(b,r)}}}function ri(U){let p,P="Example:",M,b,y;return b=new be({props:{code:"YmFzZV9tb2RlbCUyMCUzRCUyMC4uLiUyMCUyMCUyMyUyMGxvYWQlMjB0aGUlMjBiYXNlJTIwbW9kZWwlMkMlMjBlLmcuJTIwZnJvbSUyMHRyYW5zZm9ybWVycyUwQXBlZnRfbW9kZWwlMjAlM0QlMjBQZWZ0TWl4ZWRNb2RlbC5mcm9tX3ByZXRyYWluZWQoYmFzZV9tb2RlbCUyQyUyMHBhdGhfdG9fYWRhcHRlcjElMkMlMjAlMjJhZGFwdGVyMSUyMikuZXZhbCgpJTBBcGVmdF9tb2RlbC5sb2FkX2FkYXB0ZXIocGF0aF90b19hZGFwdGVyMiUyQyUyMCUyMmFkYXB0ZXIyJTIyKSUwQXBlZnRfbW9kZWwuc2V0X2FkYXB0ZXIoJTVCJTIyYWRhcHRlcjElMjIlMkMlMjAlMjJhZGFwdGVyMiUyMiU1RCklMjAlMjAlMjMlMjBhY3RpdmF0ZSUyMGJvdGglMjBhZGFwdGVycyUwQXBlZnRfbW9kZWwoZGF0YSklMjAlMjAlMjMlMjBmb3J3YXJkJTIwcGFzcyUyMHVzaW5nJTIwYm90aCUyMGFkYXB0ZXJz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>base_model = ...  <span class="hljs-comment"># load the base model, e.g. from transformers</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model = PeftMixedModel.from_pretrained(base_model, path_to_adapter1, <span class="hljs-string">&quot;adapter1&quot;</span>).<span class="hljs-built_in">eval</span>()
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model.load_adapter(path_to_adapter2, <span class="hljs-string">&quot;adapter2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model.set_adapter([<span class="hljs-string">&quot;adapter1&quot;</span>, <span class="hljs-string">&quot;adapter2&quot;</span>])  <span class="hljs-comment"># activate both adapters</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>peft_model(data)  <span class="hljs-comment"># forward pass using both adapters</span>`,wrap:!1}}),{c(){p=o("p"),p.textContent=P,M=a(),m(b.$$.fragment)},l(r){p=s(r,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=P),M=n(r),f(b.$$.fragment,r)},m(r,j){c(r,p,j),c(r,M,j),g(b,r,j),y=!0},p:_e,i(r){y||(u(b.$$.fragment,r),y=!0)},o(r){h(b.$$.fragment,r),y=!1},d(r){r&&(l(p),l(M)),_(b,r)}}}function li(U){let p,P,M,b,y,r,j,ol='<a href="/docs/peft/main/en/package_reference/peft_model#peft.PeftModel">PeftModel</a> is the base model class for specifying the base Transformer model and configuration to apply a PEFT method to. The base <code>PeftModel</code> contains methods for loading and saving models from the Hub.',Hn,ze,Xn,v,Ye,Bo,ra,sl="Base model encompassing various Peft methods.",Ro,la,rl="<strong>Attributes</strong>:",No,da,ll=`<li><strong>base_model</strong> (<code>torch.nn.Module</code>) — The base transformer model used for Peft.</li> <li><strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>) — The configuration of the Peft model.</li> <li><strong>modules_to_save</strong> (<code>list</code> of <code>str</code>) — The list of sub-module names to save when
saving the model.</li> <li><strong>prompt_encoder</strong> (<a href="/docs/peft/main/en/package_reference/p_tuning#peft.PromptEncoder">PromptEncoder</a>) — The prompt encoder used for Peft if
using <a href="/docs/peft/main/en/package_reference/config#peft.PromptLearningConfig">PromptLearningConfig</a>.</li> <li><strong>prompt_tokens</strong> (<code>torch.Tensor</code>) — The virtual prompt tokens used for Peft if
using <a href="/docs/peft/main/en/package_reference/config#peft.PromptLearningConfig">PromptLearningConfig</a>.</li> <li><strong>transformer_backbone_name</strong> (<code>str</code>) — The name of the transformer
backbone in the base model if using <a href="/docs/peft/main/en/package_reference/config#peft.PromptLearningConfig">PromptLearningConfig</a>.</li> <li><strong>word_embeddings</strong> (<code>torch.nn.Embedding</code>) — The word embeddings of the transformer backbone
in the base model if using <a href="/docs/peft/main/en/package_reference/config#peft.PromptLearningConfig">PromptLearningConfig</a>.</li>`,So,Z,Oe,Go,ia,dl="Add an adapter to the model based on the passed configuration.",Do,pa,il='This adapter is not trained. To load a trained adapter, check out <a href="/docs/peft/main/en/package_reference/peft_model#peft.PeftModel.load_adapter">PeftModel.load_adapter()</a>.',Qo,ca,pl="The name for the new adapter should be unique.",Ho,ma,cl=`The new adapter is not automatically set as the active adapter. Use <a href="/docs/peft/main/en/package_reference/peft_model#peft.PeftModel.set_adapter">PeftModel.set_adapter()</a> to set the active
adapter.`,Xo,K,Ke,zo,fa,ml="Updates or create model card to include information about peft:",Yo,ga,fl="<li>Adds <code>peft</code> library tag</li> <li>Adds peft version</li> <li>Adds base model info</li> <li>Adds quantization information if it was used</li>",Oo,Me,et,Ko,ua,gl="Deletes an existing adapter.",es,ee,tt,ts,ha,ul="Context manager that disables the adapter module. Use this to run inference on the base model.",as,ye,ns,ve,at,os,_a,hl="Forward pass of the model.",ss,te,nt,rs,ba,_l="Instantiate a PEFT model from a pretrained model and loaded PEFT weights.",ls,Ma,bl="Note that the passed <code>model</code> may be modified inplace.",ds,Te,ot,is,ya,Ml="Returns the base model.",ps,N,st,cs,va,yl="Get the status of each adapter layer in the model.",ms,Ta,vl=`This method returns a list of <code>TunerLayerStatus</code> dataclass instances, each of which contains the following
attributes:`,fs,wa,Tl=`<li><code>name</code> (<code>str</code>):
The name of the adapter layer, e.g. <code>model.encoder.block.0.layer.0.SelfAttention.q</code>.</li> <li><code>module_type</code> (<code>str</code>):
The type of the adapter layer, e.g. <code>lora.Linear</code>.</li> <li><code>enabled</code> (<code>bool</code>):
Whether the adapter layer is enabled.</li> <li><code>active_adapters</code> (<code>list[str]</code>):
The names of the active adapters, if any, e.g. <code>[&quot;default&quot;]</code>.</li> <li><code>merged_adapters</code> (<code>list[str]</code>):
The names of the merged adapters, if any, e.g. <code>[&quot;default&quot;]</code>.</li> <li><code>available_adapters</code> (<code>list[str]</code>):
The names of the available adapters, e.g. <code>[&quot;default&quot;]</code>.</li>`,gs,S,rt,us,$a,wl="Get the status of tuners of the model.",hs,xa,$l="This method returns a <code>TunerModelStatus</code> dataclass instance, which contains the following attributes:",_s,ja,xl=`<li><code>base_model_type</code> (<code>str</code>):
The type of the base model, e.g. <code>T5Model</code>.</li> <li><code>adapter_model_type</code> (<code>str</code>):
The type of the adapter model, e.g. <code>LoraModel</code>.</li> <li><code>peft_types</code> (<code>dict[str, str]</code>):
The mapping of adapter name to adapter type, e.g. <code>{&quot;default&quot;: &quot;LORA&quot;}</code>.</li> <li><code>trainable_params</code> (<code>int</code>):
The number of trainable parameters in the model.</li> <li><code>total_params</code> (<code>int</code>):
The total number of parameters in the model.</li> <li><code>num_adapter_layers</code> (<code>int</code>):
The number of adapter layers in the model.</li> <li><code>enabled</code> (<code>bool</code>, <code>Literal[&quot;irregular&quot;]</code>):
Whether all adapter layers are enabled. If some are enabled and some are not, this will be <code>&quot;irregular&quot;</code>.
This means that your model is in an inconsistent state and might not work as expected.</li> <li><code>active_adapters</code> (<code>list[str]</code>, <code>Literal[&quot;irregular&quot;]</code>):
The names of the active adapters. If the active adapters are not consistent across all layers, this will be
<code>&quot;irregular&quot;</code>, which means that your model is in an inconsistent state and might not work as expected.</li> <li><code>merged_adapters</code> (<code>list[str]</code>, <code>Literal[&quot;irregular&quot;]</code>):
The names of the merged adapters. If the merged adapters are not consistent across all layers, this will be
<code>&quot;irregular&quot;</code>, which means that your model is in an inconsistent state and might not work as expected.</li> <li><code>available_adapters</code> (<code>list[str]</code>):
The names of the available adapters, e.g. <code>[&quot;default&quot;]</code>.</li>`,bs,we,lt,Ms,Ca,jl="Returns the number of trainable parameters and the number of all parameters in the model.",ys,$e,dt,vs,Pa,Cl="Returns the virtual prompts to use for Peft. Only applicable when using a prompt learning method.",Ts,xe,it,ws,Ja,Pl=`Returns the prompt embedding to save when saving the model. Only applicable when using a prompt learning
method.`,$s,G,pt,xs,Ua,Jl="Load a trained adapter into the model.",js,qa,Ul="The name for the new adapter should be unique.",Cs,ka,ql=`The new adapter is not automatically set as the active adapter. Use <a href="/docs/peft/main/en/package_reference/peft_model#peft.PeftModel.set_adapter">PeftModel.set_adapter()</a> to set the active
adapter.`,Ps,je,ct,Js,Fa,kl="Prepares the model for gradient checkpointing if necessary",Us,ae,mt,qs,Ia,Fl="Prints the number of trainable parameters in the model.",ks,Za,Il=`Note: print_trainable_parameters() uses get_nb_trainable_parameters() which is different from
num_parameters(only_trainable=True) from huggingface/transformers. get_nb_trainable_parameters() returns
(trainable parameters, all parameters) of the Peft Model which includes modified backbone transformer model.
For techniques like LoRA, the backbone transformer model is modified in place with LoRA modules. However, for
prompt tuning, the backbone transformer model is unmodified. num_parameters(only_trainable=True) returns number
of trainable parameters of the backbone transformer model which can be different.`,Fs,Ce,ft,Is,Ea,Zl=`This function saves the adapter model and the adapter configuration files to a directory, so that it can be
reloaded using the <a href="/docs/peft/main/en/package_reference/peft_model#peft.PeftModel.from_pretrained">PeftModel.from_pretrained()</a> class method, and also used by the <code>PeftModel.push_to_hub()</code>
method.`,Zs,E,gt,Es,La,El="Sets the active adapter.",Ls,Wa,Ll="Only one adapter can be active at a time.",Ws,Va,Wl=`Additionally, this function will set the specified adapter to trainable (i.e., requires_grad=True). If this is
not desired, use the following code.`,Vs,Pe,zn,ut,Yn,ht,Vl="A <code>PeftModel</code> for sequence classification tasks.",On,q,_t,As,Aa,Al="Peft model for sequence classification tasks.",Bs,Ba,Bl="<strong>Attributes</strong>:",Rs,Ra,Rl='<li><strong>config</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>) — The configuration object of the base model.</li> <li><strong>cls_layer_name</strong> (<code>str</code>) — The name of the classification layer.</li>',Ns,Je,Kn,bt,eo,Mt,Nl="A <code>PeftModel</code> for token classification tasks.",to,k,yt,Ss,Na,Sl="Peft model for token classification tasks.",Gs,Sa,Gl="<strong>Attributes</strong>:",Ds,Ga,Dl='<li><strong>config</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>) — The configuration object of the base model.</li> <li><strong>cls_layer_name</strong> (<code>str</code>) — The name of the classification layer.</li>',Qs,Ue,ao,vt,no,Tt,Ql="A <code>PeftModel</code> for causal language modeling.",oo,H,wt,Hs,Da,Hl="Peft model for causal language modeling.",Xs,qe,so,$t,ro,xt,Xl="A <code>PeftModel</code> for sequence-to-sequence language modeling.",lo,X,jt,zs,Qa,zl="Peft model for sequence-to-sequence language modeling.",Ys,ke,io,Ct,po,Pt,Yl="A <code>PeftModel</code> for question answering.",co,F,Jt,Os,Ha,Ol="Peft model for extractive question answering.",Ks,Xa,Kl="<strong>Attributes</strong>:",er,za,ed='<li><strong>config</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>) — The configuration object of the base model.</li> <li><strong>cls_layer_name</strong> (<code>str</code>) — The name of the classification layer.</li>',tr,Fe,mo,Ut,fo,qt,td="A <code>PeftModel</code> for getting extracting features/embeddings from transformer models.",go,I,kt,ar,Ya,ad="Peft model for extracting features/embeddings from transformer models",nr,Oa,nd="<strong>Attributes</strong>:",or,Ka,od='<li><strong>config</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>) — The configuration object of the base model.</li>',sr,Ie,uo,Ft,ho,It,sd="A <code>PeftModel</code> for mixing different adapter types (e.g. LoRA and LoHa).",_o,C,Zt,rr,en,rd="PeftMixedModel for loading mixing different types of adapters for inference.",lr,tn,ld=`This class does not support loading/saving, and it shouldn’t usually be initialized directly. Instead, use
<code>get_peft_model</code> with the argument <code>mixed=True</code>.`,dr,Et,dd=`<p>&gt; Read the <a href="https://huggingface.co/docs/peft/en/developer_guides/mixed_models" rel="nofollow">Mixed adapter types</a> guide
to learn &gt; more about using different adapter types.</p>`,ir,Ze,pr,L,Lt,cr,an,id="Add an adapter to the model based on the passed configuration.",mr,nn,pd='This adapter is not trained. To load a trained adapter, check out <a href="/docs/peft/main/en/package_reference/peft_model#peft.PeftModel.load_adapter">PeftModel.load_adapter()</a>.',fr,on,cd="The name for the new adapter should be unique.",gr,sn,md=`The new adapter is not automatically set as the active adapter. Use <a href="/docs/peft/main/en/package_reference/peft_model#peft.PeftModel.set_adapter">PeftModel.set_adapter()</a> to set the active
adapter.`,ur,Ee,Wt,hr,rn,fd="Disables the adapter module.",_r,Le,Vt,br,ln,gd="Forward pass of the model.",Mr,ne,At,yr,dn,ud="Instantiate a PEFT mixed model from a pretrained model and loaded PEFT weights.",vr,pn,hd="Note that the passed <code>model</code> may be modified inplace.",Tr,We,Bt,wr,cn,_d="Generate output.",$r,Ve,Rt,xr,mn,bd="Returns the number of trainable parameters and number of all parameters in the model.",jr,D,Nt,Cr,fn,Md="Load a trained adapter into the model.",Pr,gn,yd="The name for the new adapter should be unique.",Jr,un,vd=`The new adapter is not automatically set as the active adapter. Use <a href="/docs/peft/main/en/package_reference/peft_model#peft.PeftModel.set_adapter">PeftModel.set_adapter()</a> to set the active
adapter.`,Ur,Ae,St,qr,hn,Td=`This method merges the adapter layers into the base model. This is needed if someone wants to use the base
model as a standalone model.`,kr,oe,Gt,Fr,_n,wd="Prints the number of trainable parameters in the model.",Ir,bn,$d=`Note: print_trainable_parameters() uses get_nb_trainable_parameters() which is different from
num_parameters(only_trainable=True) from huggingface/transformers. get_nb_trainable_parameters() returns
(trainable parameters, all parameters) of the Peft Model which includes modified backbone transformer model.
For techniques like LoRA, the backbone transformer model is modified in place with LoRA modules. However, for
prompt tuning, the backbone transformer model is unmodified. num_parameters(only_trainable=True) returns number
of trainable parameters of the backbone transformer model which can be different.`,Zr,Q,Dt,Er,Mn,xd="Sets the active adapter(s) for the model.",Lr,yn,jd=`Note that the order in which the adapters are applied during the forward pass may not be the same as the order
in which they are passed to this function. Instead, the order during the forward pass is determined by the
order in which the adapters were loaded into the model. The active adapters only determine which adapters are
active during the forward pass, but not the order in which they are applied.`,Wr,vn,Cd=`Additionally, this function will set the specified adapter to trainable (i.e., requires_grad=True) unless
inference_mode is True.`,Vr,Be,Qt,Ar,Tn,Pd=`Gets back the base model by removing all the adapter modules without merging. This gives back the original base
model.`,bo,Ht,Mo,z,Xt,Br,wn,Jd=`Cast all non-trainable parameters of the model to the given <code>dtype</code>. The <code>dtype</code> can be <code>torch.float16</code> or
<code>torch.bfloat16</code> as per the mixed-precision training you are performing. The trainable parameters are cast to full
precision. This is meant to reduce the GPU memory usage when using PEFT methods by using half-precision dtype for
non-trainable parameters. Having the trainable parameters in full-precision preserves training stability when using
automatic mixed-precision training.`,Rr,$n,Ud="<code>torch.bfloat16</code> as per the mixed-precision training you are performing.",yo,me,zt,Nr,xn,qd="Returns a Peft model object from a model and a config, where the model will be modified in-place.",vo,W,Yt,Sr,jn,kd="Create PEFT layers and inject them into the model in-place.",Gr,Cn,Fd="Currently the API does not support prompt learning methods and adaption prompt.",Dr,Pn,Id=`This function is similar to <a href="/docs/peft/main/en/package_reference/peft_model#peft.get_peft_model">get_peft_model()</a> but it does not return a <a href="/docs/peft/main/en/package_reference/peft_model#peft.PeftModel">PeftModel</a> instance. Instead, it returns
the original, mutated instance of the passed model.`,To,V,Ot,Qr,Jn,Zd="Get the state dict of the given adapter of the PEFT model.",Hr,Un,Ed=`This only includes the PEFT parameters, not the parameters of the base model. Thus the returned <code>state_dict</code> is
generally small compared to the full model size. To retrieve the full <code>state_dict</code>, just call <code>model.state_dict()</code>.`,Xr,qn,Ld=`Note that the adapter name is removed from the <code>state_dict</code>, as this is just an arbitrary name that can be changed
when loading the adapter. So e.g. if the adapter name is <code>&#39;default&#39;</code> and the original key is
<code>&#39;model.q_proj.lora_A.default.weight&#39;</code>, the returned key will be <code>&#39;model.q_proj.lora_A.weight&#39;</code>. Use this function
in conjunction with <a href="/docs/peft/main/en/package_reference/functional#peft.set_peft_model_state_dict">set_peft_model_state_dict()</a> to take care of the adapter name when loading weights.`,wo,Y,Kt,zr,kn,Wd="Note this method only works for <code>transformers</code> models.",Yr,Fn,Vd=`This method wraps the entire protocol for preparing a model before running a training. This includes:
1- Cast the layernorm in fp32 2- making output embedding layer require grads 3- Add the upcasting of the lm
head to fp32 4- Freezing the base model layers to ensure they are not updated during training`,$o,A,ea,Or,In,Ad="Get the status of each adapter layer in the model.",Kr,Zn,Bd=`This function returns a list of <code>TunerLayerStatus</code> dataclass instances, each of which contains the following
attributes:`,el,En,Rd=`<li><code>name</code> (<code>str</code>):
The name of the adapter layer, e.g. <code>model.encoder.block.0.layer.0.SelfAttention.q</code>.</li> <li><code>module_type</code> (<code>str</code>):
The type of the adapter layer, e.g. <code>lora.Linear</code>.</li> <li><code>enabled</code> (<code>bool</code>):
Whether the adapter layer is enabled.</li> <li><code>active_adapters</code> (<code>list[str]</code>):
The names of the active adapters, if any, e.g. <code>[&quot;default&quot;]</code>.</li> <li><code>merged_adapters</code> (<code>list[str]</code>):
The names of the merged adapters, if any, e.g. <code>[&quot;default&quot;]</code>.</li> <li>requires_grad : dict[str, bool | Literal[“irregular”]]
The requires_grad status of the parameters for each adapter module. Ideally, it should be either <code>True</code> or
<code>False</code>. If the requires_grad status is not consistent across all parameters, the value will be set to
<code>&quot;irregular&quot;</code>.</li> <li><code>available_adapters</code> (<code>list[str]</code>):
The names of the available adapters, e.g. <code>[&quot;default&quot;]</code>.</li> <li><code>devices</code> (<code>dict[str, list[str]]</code>):
The devices where the parameters of the given adapter are stored, e.g. <code>[&quot;cuda&quot;]</code>.</li>`,xo,B,ta,tl,Ln,Nd="Get the status of tuners of the model.",al,Wn,Sd="This function returns a <code>TunerModelStatus</code> dataclass instance, which contains the following attributes:",nl,Vn,Gd=`<li><code>base_model_type</code> (<code>str</code>):
The type of the base model, e.g. <code>T5Model</code>.</li> <li><code>adapter_model_type</code> (<code>str</code>):
The type of the adapter model, e.g. <code>LoraModel</code>.</li> <li><code>peft_types</code> (<code>dict[str, str]</code>):
The mapping of adapter name to adapter type, e.g. <code>{&quot;default&quot;: &quot;LORA&quot;}</code>.</li> <li><code>trainable_params</code> (<code>int</code>):
The number of trainable parameters in the model.</li> <li><code>total_params</code> (<code>int</code>):
The total number of parameters in the model.</li> <li><code>num_adapter_layers</code> (<code>int</code>):
The number of adapter layers in the model.</li> <li><code>enabled</code> (<code>bool</code>, <code>Literal[&quot;irregular&quot;]</code>):
Whether all adapter layers are enabled. If some are enabled and some are not, this will be <code>&quot;irregular&quot;</code>. This
means that your model is in an inconsistent state and might not work as expected.</li> <li><code>active_adapters</code> (<code>list[str]</code>, <code>Literal[&quot;irregular&quot;]</code>):
The names of the active adapters. If the active adapters are not consistent across all layers, this will be
<code>&quot;irregular&quot;</code>, which means that your model is in an inconsistent state and might not work as expected.</li> <li><code>merged_adapters</code> (<code>list[str]</code>, <code>Literal[&quot;irregular&quot;]</code>):
The names of the merged adapters. If the merged adapters are not consistent across all layers, this will be
<code>&quot;irregular&quot;</code>, which means that your model is in an inconsistent state and might not work as expected.</li> <li><code>requires_grad</code> (<code>dict[str, bool | Literal[&quot;irregular&quot;]]</code>):
Whether for the given adapter, all adapter layers have <code>requires_grad</code> set to <code>True</code> or <code>False</code>. If there is a
mix, this will be set to <code>&quot;irregular&quot;</code>, which means that your model is in an inconsistent state and might not
work as expected.</li> <li><code>available_adapters</code> (<code>list[str]</code>):
The names of the available adapters, e.g. <code>[&quot;default&quot;]</code>.</li> <li><code>devices</code> (<code>dict[str, list[str]]</code>):
The devices where the parameters of the given adapter are stored, e.g. <code>[&quot;cuda&quot;]</code>.</li>`,jo,aa,Co,Qn,Po;return y=new ce({props:{title:"Models",local:"models",headingTag:"h1"}}),ze=new ce({props:{title:"PeftModel",local:"peft.PeftModel",headingTag:"h2"}}),Ye=new x({props:{name:"class peft.PeftModel",anchor:"peft.PeftModel",parameters:[{name:"model",val:": PreTrainedModel"},{name:"peft_config",val:": PeftConfig"},{name:"adapter_name",val:": str = 'default'"},{name:"autocast_adapter_dtype",val:": bool = True"},{name:"low_cpu_mem_usage",val:": bool = False"}],parametersDescription:[{anchor:"peft.PeftModel.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 base transformer model used for Peft.',name:"model"},{anchor:"peft.PeftModel.peft_config",description:'<strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>) &#x2014; The configuration of the Peft model.',name:"peft_config"},{anchor:"peft.PeftModel.adapter_name",description:"<strong>adapter_name</strong> (<code>str</code>,  <em>optional</em>) &#x2014; The name of the adapter, defaults to <code>&quot;default&quot;</code>.",name:"adapter_name"},{anchor:"peft.PeftModel.autocast_adapter_dtype",description:`<strong>autocast_adapter_dtype</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to autocast the adapter dtype. Defaults to <code>True</code>. Right now, this will only cast adapter weights
using float16 and bfloat16 to float32, as this is typically required for stable training, and only affect
select PEFT tuners.`,name:"autocast_adapter_dtype"},{anchor:"peft.PeftModel.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 loading process.</p>
<blockquote class="tip">
<p>&gt; Don&#x2019;t use <code>low_cpu_mem_usage=True</code> when creating a new PEFT adapter for training.</p>
</blockquote>`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L71"}}),Oe=new x({props:{name:"add_adapter",anchor:"peft.PeftModel.add_adapter",parameters:[{name:"adapter_name",val:": str"},{name:"peft_config",val:": PeftConfig"},{name:"low_cpu_mem_usage",val:": bool = False"}],parametersDescription:[{anchor:"peft.PeftModel.add_adapter.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>) &#x2014;
The name of the adapter to be added.`,name:"adapter_name"},{anchor:"peft.PeftModel.add_adapter.peft_config",description:`<strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>) &#x2014;
The configuration of the adapter to be added.`,name:"peft_config"},{anchor:"peft.PeftModel.add_adapter.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 process when loading saved
adapters. Don&#x2019;t use this option when creating a new PEFT adapter for training.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L975"}}),Ke=new x({props:{name:"create_or_update_model_card",anchor:"peft.PeftModel.create_or_update_model_card",parameters:[{name:"output_dir",val:": str"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L1490"}}),et=new x({props:{name:"delete_adapter",anchor:"peft.PeftModel.delete_adapter",parameters:[{name:"adapter_name",val:": str"}],parametersDescription:[{anchor:"peft.PeftModel.delete_adapter.adapter_name",description:"<strong>adapter_name</strong> (str) &#x2014; Name of the adapter to be deleted.",name:"adapter_name"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L1043"}}),tt=new x({props:{name:"disable_adapter",anchor:"peft.PeftModel.disable_adapter",parameters:[],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L921"}}),ye=new he({props:{anchor:"peft.PeftModel.disable_adapter.example",$$slots:{default:[Od]},$$scope:{ctx:U}}}),at=new x({props:{name:"forward",anchor:"peft.PeftModel.forward",parameters:[{name:"*args",val:": Any"},{name:"**kwargs",val:": Any"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L900"}}),nt=new x({props:{name:"from_pretrained",anchor:"peft.PeftModel.from_pretrained",parameters:[{name:"model",val:": torch.nn.Module"},{name:"model_id",val:": Union[str, os.PathLike]"},{name:"adapter_name",val:": str = 'default'"},{name:"is_trainable",val:": bool = False"},{name:"config",val:": Optional[PeftConfig] = None"},{name:"autocast_adapter_dtype",val:": bool = True"},{name:"ephemeral_gpu_offload",val:": bool = False"},{name:"low_cpu_mem_usage",val:": bool = False"},{name:"key_mapping",val:": Optional[dict[str, str]] = None"},{name:"**kwargs",val:": Any"}],parametersDescription:[{anchor:"peft.PeftModel.from_pretrained.model",description:`<strong>model</strong> (<code>torch.nn.Module</code>) &#x2014;
The model to be adapted. For &#x1F917; Transformers models, the model should be initialized with the
<a href="https://huggingface.co/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained" rel="nofollow">from_pretrained</a>.`,name:"model"},{anchor:"peft.PeftModel.from_pretrained.model_id",description:`<strong>model_id</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
The name of the PEFT configuration to use. Can be either:<ul>
<li>A string, the <code>model id</code> of a PEFT configuration hosted inside a model repo on the Hugging Face
Hub.</li>
<li>A path to a directory containing a PEFT configuration file saved using the <code>save_pretrained</code>
method (<code>./my_peft_config_directory/</code>).</li>
</ul>`,name:"model_id"},{anchor:"peft.PeftModel.from_pretrained.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The name of the adapter to be loaded. This is useful for loading multiple adapters.`,name:"adapter_name"},{anchor:"peft.PeftModel.from_pretrained.is_trainable",description:`<strong>is_trainable</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the adapter should be trainable or not. If <code>False</code>, the adapter will be frozen and can only be
used for inference.`,name:"is_trainable"},{anchor:"peft.PeftModel.from_pretrained.config",description:`<strong>config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>, <em>optional</em>) &#x2014;
The configuration object to use instead of an automatically loaded configuration. This configuration
object is mutually exclusive with <code>model_id</code> and <code>kwargs</code>. This is useful when configuration is already
loaded before calling <code>from_pretrained</code>.`,name:"config"},{anchor:"peft.PeftModel.from_pretrained.autocast_adapter_dtype",description:`<strong>autocast_adapter_dtype</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to autocast the adapter dtype. Defaults to <code>True</code>. Only relevant for specific adapter types.`,name:"autocast_adapter_dtype"},{anchor:"peft.PeftModel.from_pretrained.ephemeral_gpu_offload",description:`<strong>ephemeral_gpu_offload</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to use ephemeral GPU offloading for partially loaded modules. Defaults to <code>False</code>. This is
useful when parts of the model and/or components (such as adapters) are kept in CPU memory until they
are needed. Rather than perform expensive operations on small data, the data is transferred to the GPU
on-demand, the operation(s) performed, and the results moved back to CPU memory. This brings a slight
momentary VRAM overhead but gives orders of magnitude speedup in certain cases.`,name:"ephemeral_gpu_offload"},{anchor:"peft.PeftModel.from_pretrained.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 before loading the saved weights. Useful to speed up the
process.`,name:"low_cpu_mem_usage"},{anchor:"peft.PeftModel.from_pretrained.torch_device",description:`<strong>torch_device</strong> (<code>str</code>, <em>optional</em>, defaults to None) &#x2014;
The device to load the adapter on. If <code>None</code>, the device will be inferred.`,name:"torch_device"},{anchor:"peft.PeftModel.from_pretrained.key_mapping",description:`<strong>key_mapping</strong> (dict, <em>optional</em>, defaults to None) &#x2014;
Extra mapping of PEFT <code>state_dict</code> keys applied before loading the <code>state_dict</code>. When this mapping is
applied, the PEFT-specific <code>&quot;base_model.model&quot;</code> prefix is removed beforehand and the adapter name (e.g.
<code>&quot;default&quot;</code>) is not inserted yet. Only pass this argument if you know what you&#x2019;re doing.`,name:"key_mapping"},{anchor:"peft.PeftModel.from_pretrained.kwargs",description:`<strong>kwargs</strong> &#x2014; (<code>optional</code>):
Additional keyword arguments passed along to the specific PEFT configuration class.`,name:"kwargs"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L374"}}),ot=new x({props:{name:"get_base_model",anchor:"peft.PeftModel.get_base_model",parameters:[],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L969"}}),st=new x({props:{name:"get_layer_status",anchor:"peft.PeftModel.get_layer_status",parameters:[],parametersDescription:[{anchor:"peft.PeftModel.get_layer_status.model",description:`<strong>model</strong> (<a href="/docs/peft/main/en/package_reference/peft_model#peft.PeftModel">~PeftModel</a>) &#x2014;
The model to get the adapter layer status from.`,name:"model"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L1075",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dataclasses, each containing the status of the corresponding adapter layer.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>list<code>peft.peft_model.TunerLayerStatus</code></p>
`}}),rt=new x({props:{name:"get_model_status",anchor:"peft.PeftModel.get_model_status",parameters:[],parametersDescription:[{anchor:"peft.PeftModel.get_model_status.model",description:`<strong>model</strong> (<a href="/docs/peft/main/en/package_reference/peft_model#peft.PeftModel">~PeftModel</a>) &#x2014;
The model to get the adapter layer status from.`,name:"model"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L1105",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dataclass containing the status of the model.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>peft.peft_model.TunerModelStatus</code></p>
`}}),lt=new x({props:{name:"get_nb_trainable_parameters",anchor:"peft.PeftModel.get_nb_trainable_parameters",parameters:[],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L831"}}),dt=new x({props:{name:"get_prompt",anchor:"peft.PeftModel.get_prompt",parameters:[{name:"batch_size",val:": int"},{name:"task_ids",val:": Optional[torch.Tensor] = None"},{name:"max_cache_len",val:": Optional[int] = None"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L706"}}),it=new x({props:{name:"get_prompt_embedding_to_save",anchor:"peft.PeftModel.get_prompt_embedding_to_save",parameters:[{name:"adapter_name",val:": str"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L685"}}),pt=new x({props:{name:"load_adapter",anchor:"peft.PeftModel.load_adapter",parameters:[{name:"model_id",val:": Union[str, os.PathLike]"},{name:"adapter_name",val:": str"},{name:"is_trainable",val:": bool = False"},{name:"torch_device",val:": Optional[str] = None"},{name:"autocast_adapter_dtype",val:": bool = True"},{name:"ephemeral_gpu_offload",val:": bool = False"},{name:"low_cpu_mem_usage",val:": bool = False"},{name:"key_mapping",val:": Optional[dict[str, str]] = None"},{name:"**kwargs",val:": Any"}],parametersDescription:[{anchor:"peft.PeftModel.load_adapter.model_id",description:`<strong>model_id</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
The name of the PEFT configuration to use. Can be either:<ul>
<li>A string, the <code>model id</code> of a PEFT configuration hosted inside a model repo on the Hugging Face
Hub.</li>
<li>A path to a directory containing a PEFT configuration file saved using the <code>save_pretrained</code>
method (<code>./my_peft_config_directory/</code>).</li>
</ul>`,name:"model_id"},{anchor:"peft.PeftModel.load_adapter.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>) &#x2014;
The name of the adapter to be added.`,name:"adapter_name"},{anchor:"peft.PeftModel.load_adapter.is_trainable",description:`<strong>is_trainable</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the adapter should be trainable or not. If <code>False</code>, the adapter will be frozen and can only be
used for inference.`,name:"is_trainable"},{anchor:"peft.PeftModel.load_adapter.torch_device",description:`<strong>torch_device</strong> (<code>str</code>, <em>optional</em>, defaults to None) &#x2014;
The device to load the adapter on. If <code>None</code>, the device will be inferred.`,name:"torch_device"},{anchor:"peft.PeftModel.load_adapter.autocast_adapter_dtype",description:`<strong>autocast_adapter_dtype</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to autocast the adapter dtype. Defaults to <code>True</code>. Right now, this will only cast adapter
weights using float16 and bfloat16 to float32, as this is typically required for stable training, and
only affect select PEFT tuners.`,name:"autocast_adapter_dtype"},{anchor:"peft.PeftModel.load_adapter.ephemeral_gpu_offload",description:`<strong>ephemeral_gpu_offload</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use ephemeral GPU offloading for partially loaded modules. Defaults to <code>False</code>.`,name:"ephemeral_gpu_offload"},{anchor:"peft.PeftModel.load_adapter.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 before loading the saved weights. Useful to speed up the
process.`,name:"low_cpu_mem_usage"},{anchor:"peft.PeftModel.load_adapter.key_mapping",description:`<strong>key_mapping</strong> (dict, <em>optional</em>, defaults to None) &#x2014;
Extra mapping of PEFT <code>state_dict</code> keys applied before loading the <code>state_dict</code>. When this mapping is
applied, the PEFT-specific <code>&quot;base_model.model&quot;</code> prefix is removed beforehand and the adapter name (e.g.
<code>&quot;default&quot;</code>) is not inserted yet. Only pass this argument if you know what you&#x2019;re doing.`,name:"key_mapping"},{anchor:"peft.PeftModel.load_adapter.kwargs",description:`<strong>kwargs</strong> &#x2014; (<code>optional</code>):
Additional arguments to modify the way the adapter is loaded, e.g. the token for Hugging Face Hub.`,name:"kwargs"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L1269"}}),ct=new x({props:{name:"prepare_model_for_gradient_checkpointing",anchor:"peft.PeftModel.prepare_model_for_gradient_checkpointing",parameters:[{name:"model",val:": PreTrainedModel"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L663"}}),mt=new x({props:{name:"print_trainable_parameters",anchor:"peft.PeftModel.print_trainable_parameters",parameters:[],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L861"}}),ft=new x({props:{name:"save_pretrained",anchor:"peft.PeftModel.save_pretrained",parameters:[{name:"save_directory",val:": str"},{name:"safe_serialization",val:": bool = True"},{name:"selected_adapters",val:": Optional[list[str]] = None"},{name:"save_embedding_layers",val:": Union[str, bool] = 'auto'"},{name:"is_main_process",val:": bool = True"},{name:"path_initial_model_for_weight_conversion",val:": Optional[str] = None"},{name:"**kwargs",val:": Any"}],parametersDescription:[{anchor:"peft.PeftModel.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code>) &#x2014;
Directory where the adapter model and configuration files will be saved (will be created if it does not
exist).`,name:"save_directory"},{anchor:"peft.PeftModel.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to save the adapter files in safetensors format, defaults to <code>True</code>.`,name:"safe_serialization"},{anchor:"peft.PeftModel.save_pretrained.selected_adapters",description:`<strong>selected_adapters</strong> (<code>List[str]</code>,  <em>optional</em>) &#x2014;
A list of adapters to be saved. If <code>None</code>, will default to all adapters.`,name:"selected_adapters"},{anchor:"peft.PeftModel.save_pretrained.save_embedding_layers",description:`<strong>save_embedding_layers</strong> (<code>Union[bool, str]</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
If <code>True</code>, save the embedding layers in addition to adapter weights. If <code>auto</code>, checks the common
embedding layers <code>peft.utils.other.EMBEDDING_LAYER_NAMES</code> in config&#x2019;s <code>target_modules</code> when available.
and automatically sets the boolean flag. This only works for &#x1F917; transformers models.`,name:"save_embedding_layers"},{anchor:"peft.PeftModel.save_pretrained.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether the process calling this is the main process or not. Will default to <code>True</code>. Will not save the
checkpoint if not on the main process, which is important for multi device setups (e.g. DDP).`,name:"is_main_process"},{anchor:"peft.PeftModel.save_pretrained.path_initial_model_for_weight_conversion",description:`<strong>path_initial_model_for_weight_conversion</strong> (<code>str, *optional*</code>) &#x2014;
The path to the initialized adapter, which is obtained after initializing the model with
PiSSA/CorDA/OLoRA and before performing any training. When <code>path_initial_model_for_weight_conversion</code>
is not None, the difference in adapter before and after fine-tuning is calculated. This difference can
be represented as the parameters of a standard LoRA adapter. Using this converted adapter does not
require changes to the base model, thus conveniently allowing the use of multiple PiSSA/CorDA/OLoRA
adapters with LoRA adapters, and the activation or deactivation of any adapters. Note that this
conversion is not supported if <code>rslora</code> is used in combination with <code>rank_pattern</code> or <code>alpha_pattern</code>.`,name:"path_initial_model_for_weight_conversion"},{anchor:"peft.PeftModel.save_pretrained.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the <code>push_to_hub</code> method.`,name:"kwargs"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L176"}}),gt=new x({props:{name:"set_adapter",anchor:"peft.PeftModel.set_adapter",parameters:[{name:"adapter_name",val:": str"}],parametersDescription:[{anchor:"peft.PeftModel.set_adapter.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>) &#x2014;
The name of the adapter to be set as active. The adapter must be loaded first.`,name:"adapter_name"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L1431"}}),Pe=new he({props:{anchor:"peft.PeftModel.set_adapter.example",$$slots:{default:[Kd]},$$scope:{ctx:U}}}),ut=new ce({props:{title:"PeftModelForSequenceClassification",local:"peft.PeftModelForSequenceClassification",headingTag:"h2"}}),_t=new x({props:{name:"class peft.PeftModelForSequenceClassification",anchor:"peft.PeftModelForSequenceClassification",parameters:[{name:"model",val:": torch.nn.Module"},{name:"peft_config",val:": PeftConfig"},{name:"adapter_name",val:": str = 'default'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"peft.PeftModelForSequenceClassification.model",description:'<strong>model</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel" rel="nofollow">PreTrainedModel</a>) &#x2014; Base transformer model.',name:"model"},{anchor:"peft.PeftModelForSequenceClassification.peft_config",description:'<strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>) &#x2014; Peft config.',name:"peft_config"},{anchor:"peft.PeftModelForSequenceClassification.adapter_name",description:"<strong>adapter_name</strong> (<code>str</code>,  <em>optional</em>) &#x2014; The name of the adapter, defaults to <code>&quot;default&quot;</code>.",name:"adapter_name"},{anchor:"peft.PeftModelForSequenceClassification.autocast_adapter_dtype",description:`<strong>autocast_adapter_dtype</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to autocast the adapter dtype. Defaults to <code>True</code>. Right now, this will only cast adapter weights
using float16 and bfloat16 to float32, as this is typically required for stable training, and only affect
select PEFT tuners.`,name:"autocast_adapter_dtype"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L1556"}}),Je=new he({props:{anchor:"peft.PeftModelForSequenceClassification.example",$$slots:{default:[ei]},$$scope:{ctx:U}}}),bt=new ce({props:{title:"PeftModelForTokenClassification",local:"peft.PeftModelForTokenClassification",headingTag:"h2"}}),yt=new x({props:{name:"class peft.PeftModelForTokenClassification",anchor:"peft.PeftModelForTokenClassification",parameters:[{name:"model",val:": torch.nn.Module"},{name:"peft_config",val:": PeftConfig = None"},{name:"adapter_name",val:": str = 'default'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"peft.PeftModelForTokenClassification.model",description:'<strong>model</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel" rel="nofollow">PreTrainedModel</a>) &#x2014; Base transformer model.',name:"model"},{anchor:"peft.PeftModelForTokenClassification.peft_config",description:'<strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>) &#x2014; Peft config.',name:"peft_config"},{anchor:"peft.PeftModelForTokenClassification.adapter_name",description:"<strong>adapter_name</strong> (<code>str</code>,  <em>optional</em>) &#x2014; The name of the adapter, defaults to <code>&quot;default&quot;</code>.",name:"adapter_name"},{anchor:"peft.PeftModelForTokenClassification.autocast_adapter_dtype",description:`<strong>autocast_adapter_dtype</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to autocast the adapter dtype. Defaults to <code>True</code>. Right now, this will only cast adapter weights
using float16 and bfloat16 to float32, as this is typically required for stable training, and only affect
select PEFT tuners.`,name:"autocast_adapter_dtype"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L2417"}}),Ue=new he({props:{anchor:"peft.PeftModelForTokenClassification.example",$$slots:{default:[ti]},$$scope:{ctx:U}}}),vt=new ce({props:{title:"PeftModelForCausalLM",local:"peft.PeftModelForCausalLM",headingTag:"h2"}}),wt=new x({props:{name:"class peft.PeftModelForCausalLM",anchor:"peft.PeftModelForCausalLM",parameters:[{name:"model",val:": torch.nn.Module"},{name:"peft_config",val:": PeftConfig"},{name:"adapter_name",val:": str = 'default'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"peft.PeftModelForCausalLM.model",description:'<strong>model</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel" rel="nofollow">PreTrainedModel</a>) &#x2014; Base transformer model.',name:"model"},{anchor:"peft.PeftModelForCausalLM.peft_config",description:'<strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>) &#x2014; Peft config.',name:"peft_config"},{anchor:"peft.PeftModelForCausalLM.adapter_name",description:"<strong>adapter_name</strong> (<code>str</code>,  <em>optional</em>) &#x2014; The name of the adapter, defaults to <code>&quot;default&quot;</code>.",name:"adapter_name"},{anchor:"peft.PeftModelForCausalLM.autocast_adapter_dtype",description:`<strong>autocast_adapter_dtype</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to autocast the adapter dtype. Defaults to <code>True</code>. Right now, this will only cast adapter weights
using float16 and bfloat16 to float32, as this is typically required for stable training, and only affect
select PEFT tuners.`,name:"autocast_adapter_dtype"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L1800"}}),qe=new he({props:{anchor:"peft.PeftModelForCausalLM.example",$$slots:{default:[ai]},$$scope:{ctx:U}}}),$t=new ce({props:{title:"PeftModelForSeq2SeqLM",local:"peft.PeftModelForSeq2SeqLM",headingTag:"h2"}}),jt=new x({props:{name:"class peft.PeftModelForSeq2SeqLM",anchor:"peft.PeftModelForSeq2SeqLM",parameters:[{name:"model",val:": torch.nn.Module"},{name:"peft_config",val:": PeftConfig"},{name:"adapter_name",val:": str = 'default'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"peft.PeftModelForSeq2SeqLM.model",description:'<strong>model</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel" rel="nofollow">PreTrainedModel</a>) &#x2014; Base transformer model.',name:"model"},{anchor:"peft.PeftModelForSeq2SeqLM.peft_config",description:'<strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>) &#x2014; Peft config.',name:"peft_config"},{anchor:"peft.PeftModelForSeq2SeqLM.adapter_name",description:"<strong>adapter_name</strong> (<code>str</code>,  <em>optional</em>) &#x2014; The name of the adapter, defaults to <code>&quot;default&quot;</code>.",name:"adapter_name"},{anchor:"peft.PeftModelForSeq2SeqLM.autocast_adapter_dtype",description:`<strong>autocast_adapter_dtype</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to autocast the adapter dtype. Defaults to <code>True</code>. Right now, this will only cast adapter weights
using float16 and bfloat16 to float32, as this is typically required for stable training, and only affect
select PEFT tuners.`,name:"autocast_adapter_dtype"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L2147"}}),ke=new he({props:{anchor:"peft.PeftModelForSeq2SeqLM.example",$$slots:{default:[ni]},$$scope:{ctx:U}}}),Ct=new ce({props:{title:"PeftModelForQuestionAnswering",local:"peft.PeftModelForQuestionAnswering",headingTag:"h2"}}),Jt=new x({props:{name:"class peft.PeftModelForQuestionAnswering",anchor:"peft.PeftModelForQuestionAnswering",parameters:[{name:"model",val:": torch.nn.Module"},{name:"peft_config",val:": PeftConfig"},{name:"adapter_name",val:": str = 'default'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"peft.PeftModelForQuestionAnswering.model",description:'<strong>model</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel" rel="nofollow">PreTrainedModel</a>) &#x2014; Base transformer model.',name:"model"},{anchor:"peft.PeftModelForQuestionAnswering.peft_config",description:'<strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>) &#x2014; Peft config.',name:"peft_config"},{anchor:"peft.PeftModelForQuestionAnswering.adapter_name",description:"<strong>adapter_name</strong> (<code>str</code>,  <em>optional</em>) &#x2014; The name of the adapter, defaults to <code>&quot;default&quot;</code>.",name:"adapter_name"},{anchor:"peft.PeftModelForQuestionAnswering.autocast_adapter_dtype",description:`<strong>autocast_adapter_dtype</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to autocast the adapter dtype. Defaults to <code>True</code>. Right now, this will only cast adapter weights
using float16 and bfloat16 to float32, as this is typically required for stable training, and only affect
select PEFT tuners.`,name:"autocast_adapter_dtype"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L2640"}}),Fe=new he({props:{anchor:"peft.PeftModelForQuestionAnswering.example",$$slots:{default:[oi]},$$scope:{ctx:U}}}),Ut=new ce({props:{title:"PeftModelForFeatureExtraction",local:"peft.PeftModelForFeatureExtraction",headingTag:"h2"}}),kt=new x({props:{name:"class peft.PeftModelForFeatureExtraction",anchor:"peft.PeftModelForFeatureExtraction",parameters:[{name:"model",val:": torch.nn.Module"},{name:"peft_config",val:": PeftConfig"},{name:"adapter_name",val:": str = 'default'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"peft.PeftModelForFeatureExtraction.model",description:'<strong>model</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel" rel="nofollow">PreTrainedModel</a>) &#x2014; Base transformer model.',name:"model"},{anchor:"peft.PeftModelForFeatureExtraction.peft_config",description:'<strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>) &#x2014; Peft config.',name:"peft_config"},{anchor:"peft.PeftModelForFeatureExtraction.adapter_name",description:"<strong>adapter_name</strong> (<code>str</code>,  <em>optional</em>) &#x2014; The name of the adapter, defaults to <code>&quot;default&quot;</code>.",name:"adapter_name"},{anchor:"peft.PeftModelForFeatureExtraction.autocast_adapter_dtype",description:`<strong>autocast_adapter_dtype</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to autocast the adapter dtype. Defaults to <code>True</code>. Right now, this will only cast adapter weights
using float16 and bfloat16 to float32, as this is typically required for stable training, and only affect
select PEFT tuners.`,name:"autocast_adapter_dtype"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L2884"}}),Ie=new he({props:{anchor:"peft.PeftModelForFeatureExtraction.example",$$slots:{default:[si]},$$scope:{ctx:U}}}),Ft=new ce({props:{title:"PeftMixedModel",local:"peft.PeftMixedModel",headingTag:"h2"}}),Zt=new x({props:{name:"class peft.PeftMixedModel",anchor:"peft.PeftMixedModel",parameters:[{name:"model",val:": nn.Module"},{name:"peft_config",val:": PeftConfig"},{name:"adapter_name",val:": str = 'default'"}],parametersDescription:[{anchor:"peft.PeftMixedModel.model",description:`<strong>model</strong> (<code>torch.nn.Module</code>) &#x2014;
The model to be tuned.`,name:"model"},{anchor:"peft.PeftMixedModel.config",description:`<strong>config</strong> (<code>PeftConfig</code>) &#x2014;
The config of the model to be tuned. The adapter type must be compatible.`,name:"config"},{anchor:"peft.PeftMixedModel.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <code>optional</code>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The name of the first adapter.`,name:"adapter_name"},{anchor:"peft.PeftMixedModel.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/mixed_model.py#L67"}}),Ze=new he({props:{anchor:"peft.PeftMixedModel.example",$$slots:{default:[ri]},$$scope:{ctx:U}}}),Lt=new x({props:{name:"add_adapter",anchor:"peft.PeftMixedModel.add_adapter",parameters:[{name:"adapter_name",val:": str"},{name:"peft_config",val:": PeftConfig"},{name:"low_cpu_mem_usage",val:": bool = False"}],parametersDescription:[{anchor:"peft.PeftMixedModel.add_adapter.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>) &#x2014;
The name of the adapter to be added.`,name:"adapter_name"},{anchor:"peft.PeftMixedModel.add_adapter.peft_config",description:`<strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>) &#x2014;
The configuration of the adapter to be added.`,name:"peft_config"},{anchor:"peft.PeftMixedModel.add_adapter.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 process when loading saved
adapters.</p>
<blockquote class="tip">
<p>&gt; Don&#x2019;t use <code>low_cpu_mem_usage=True</code> when creating a new PEFT adapter for training (training
is untested &gt; and discouraged for PeftMixedModel in general).</p>
</blockquote>`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/mixed_model.py#L203"}}),Wt=new x({props:{name:"disable_adapter",anchor:"peft.PeftMixedModel.disable_adapter",parameters:[],source:"https://github.com/huggingface/peft/blob/main/src/peft/mixed_model.py#L192"}}),Vt=new x({props:{name:"forward",anchor:"peft.PeftMixedModel.forward",parameters:[{name:"*args",val:": Any"},{name:"**kwargs",val:": Any"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/mixed_model.py#L180"}}),At=new x({props:{name:"from_pretrained",anchor:"peft.PeftMixedModel.from_pretrained",parameters:[{name:"model",val:": nn.Module"},{name:"model_id",val:": str | os.PathLike"},{name:"adapter_name",val:": str = 'default'"},{name:"is_trainable",val:": bool = False"},{name:"config",val:": Optional[PeftConfig] = None"},{name:"**kwargs",val:": Any"}],parametersDescription:[{anchor:"peft.PeftMixedModel.from_pretrained.model",description:`<strong>model</strong> (<code>nn.Module</code>) &#x2014;
The model to be adapted.`,name:"model"},{anchor:"peft.PeftMixedModel.from_pretrained.model_id",description:`<strong>model_id</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
The name of the PEFT configuration to use. Can be either:<ul>
<li>A string, the <code>model id</code> of a PEFT configuration hosted inside a model repo on the Hugging Face
Hub.</li>
<li>A path to a directory containing a PEFT configuration file saved using the <code>save_pretrained</code>
method (<code>./my_peft_config_directory/</code>).</li>
</ul>`,name:"model_id"},{anchor:"peft.PeftMixedModel.from_pretrained.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The name of the adapter to be loaded. This is useful for loading multiple adapters.`,name:"adapter_name"},{anchor:"peft.PeftMixedModel.from_pretrained.is_trainable",description:`<strong>is_trainable</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the adapter should be trainable or not. If <code>False</code>, the adapter will be frozen and use for
inference`,name:"is_trainable"},{anchor:"peft.PeftMixedModel.from_pretrained.config",description:`<strong>config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>, <em>optional</em>) &#x2014;
The configuration object to use instead of an automatically loaded configuration. This configuration
object is mutually exclusive with <code>model_id</code> and <code>kwargs</code>. This is useful when configuration is already
loaded before calling <code>from_pretrained</code>.`,name:"config"},{anchor:"peft.PeftMixedModel.from_pretrained.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 before loading the saved weights. Useful to speed up the
process.`,name:"low_cpu_mem_usage"},{anchor:"peft.PeftMixedModel.from_pretrained.kwargs",description:`<strong>kwargs</strong> &#x2014; (<code>optional</code>):
Additional keyword arguments passed along to the specific PEFT configuration class.`,name:"kwargs"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/mixed_model.py#L381"}}),Bt=new x({props:{name:"generate",anchor:"peft.PeftMixedModel.generate",parameters:[{name:"*args",val:": Any"},{name:"**kwargs",val:": Any"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/mixed_model.py#L186"}}),Rt=new x({props:{name:"get_nb_trainable_parameters",anchor:"peft.PeftMixedModel.get_nb_trainable_parameters",parameters:[],source:"https://github.com/huggingface/peft/blob/main/src/peft/mixed_model.py#L126"}}),Nt=new x({props:{name:"load_adapter",anchor:"peft.PeftMixedModel.load_adapter",parameters:[{name:"model_id",val:": str"},{name:"adapter_name",val:": str"},{name:"*args",val:": Any"},{name:"**kwargs",val:": Any"}],parametersDescription:[{anchor:"peft.PeftMixedModel.load_adapter.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>) &#x2014;
The name of the adapter to be added.`,name:"adapter_name"},{anchor:"peft.PeftMixedModel.load_adapter.peft_config",description:`<strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>) &#x2014;
The configuration of the adapter to be added.`,name:"peft_config"},{anchor:"peft.PeftMixedModel.load_adapter.is_trainable",description:`<strong>is_trainable</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the adapter should be trainable or not. If <code>False</code>, the adapter will be frozen and can only be
used for inference.`,name:"is_trainable"},{anchor:"peft.PeftMixedModel.load_adapter.torch_device",description:`<strong>torch_device</strong> (<code>str</code>, <em>optional</em>, defaults to None) &#x2014;
The device to load the adapter on. If <code>None</code>, the device will be inferred.`,name:"torch_device"},{anchor:"peft.PeftMixedModel.load_adapter.autocast_adapter_dtype",description:`<strong>autocast_adapter_dtype</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to autocast the adapter dtype. Defaults to <code>True</code>. Right now, this will only cast adapter
weights using float16 and bfloat16 to float32, as this is typically required for stable training, and
only affect select PEFT tuners.`,name:"autocast_adapter_dtype"},{anchor:"peft.PeftMixedModel.load_adapter.ephemeral_gpu_offload",description:`<strong>ephemeral_gpu_offload</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use ephemeral GPU offloading for partially loaded modules. Defaults to <code>False</code>.`,name:"ephemeral_gpu_offload"},{anchor:"peft.PeftMixedModel.load_adapter.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 before loading the saved weights. Useful to speed up the
process.`,name:"low_cpu_mem_usage"},{anchor:"peft.PeftMixedModel.load_adapter.kwargs",description:`<strong>kwargs</strong> &#x2014; (<code>optional</code>):
Additional arguments to modify the way the adapter is loaded, e.g. the token for Hugging Face Hub.`,name:"kwargs"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/mixed_model.py#L332"}}),St=new x({props:{name:"merge_and_unload",anchor:"peft.PeftMixedModel.merge_and_unload",parameters:[{name:"*args",val:": Any"},{name:"**kwargs",val:": Any"}],parametersDescription:[{anchor:"peft.PeftMixedModel.merge_and_unload.progressbar",description:`<strong>progressbar</strong> (<code>bool</code>) &#x2014;
whether to show a progressbar indicating the unload and merge process`,name:"progressbar"},{anchor:"peft.PeftMixedModel.merge_and_unload.safe_merge",description:`<strong>safe_merge</strong> (<code>bool</code>) &#x2014;
whether to activate the safe merging check to check if there is any potential Nan in the adapter
weights`,name:"safe_merge"},{anchor:"peft.PeftMixedModel.merge_and_unload.adapter_names",description:`<strong>adapter_names</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
The list of adapter names that should be merged. If None, all active adapters will be merged. Defaults
to <code>None</code>.`,name:"adapter_names"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/mixed_model.py#L295"}}),Gt=new x({props:{name:"print_trainable_parameters",anchor:"peft.PeftMixedModel.print_trainable_parameters",parameters:[],source:"https://github.com/huggingface/peft/blob/main/src/peft/mixed_model.py#L151"}}),Dt=new x({props:{name:"set_adapter",anchor:"peft.PeftMixedModel.set_adapter",parameters:[{name:"adapter_name",val:": Union[str, list[str]]"},{name:"inference_mode",val:": bool = False"}],parametersDescription:[{anchor:"peft.PeftMixedModel.set_adapter.adapter_name",description:`<strong>adapter_name</strong> (str, list[str]) &#x2014;
The name(s) of the adapter(s) to set as active`,name:"adapter_name"},{anchor:"peft.PeftMixedModel.set_adapter.inference_mode",description:`<strong>inference_mode</strong> (bool, optional) &#x2014;
Whether the activated adapter should be frozen (i.e. <code>requires_grad=False</code>). Default is False.`,name:"inference_mode"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/mixed_model.py#L253"}}),Qt=new x({props:{name:"unload",anchor:"peft.PeftMixedModel.unload",parameters:[{name:"*args",val:": Any"},{name:"**kwargs",val:": Any"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/mixed_model.py#L312"}}),Ht=new ce({props:{title:"Utilities",local:"peft.cast_mixed_precision_params",headingTag:"h2"}}),Xt=new x({props:{name:"peft.cast_mixed_precision_params",anchor:"peft.cast_mixed_precision_params",parameters:[{name:"model",val:""},{name:"dtype",val:""}],parametersDescription:[{anchor:"peft.cast_mixed_precision_params.model",description:`<strong>model</strong> (<code>torch.nn.Module</code>) &#x2014;
The model to cast the non-trainable parameters of.`,name:"model"},{anchor:"peft.cast_mixed_precision_params.dtype",description:`<strong>dtype</strong> (<code>torch.dtype</code>) &#x2014;
The dtype to cast the non-trainable parameters to. The <code>dtype</code> can be <code>torch.float16</code> or`,name:"dtype"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/utils/other.py#L1302"}}),zt=new x({props:{name:"peft.get_peft_model",anchor:"peft.get_peft_model",parameters:[{name:"model",val:": PreTrainedModel"},{name:"peft_config",val:": PeftConfig"},{name:"adapter_name",val:": str = 'default'"},{name:"mixed",val:": bool = False"},{name:"autocast_adapter_dtype",val:": bool = True"},{name:"revision",val:": Optional[str] = None"},{name:"low_cpu_mem_usage",val:": bool = False"}],parametersDescription:[{anchor:"peft.get_peft_model.model",description:`<strong>model</strong> (<a href="https://huggingface.co/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel" rel="nofollow">transformers.PreTrainedModel</a>) &#x2014;
Model to be wrapped.`,name:"model"},{anchor:"peft.get_peft_model.peft_config",description:`<strong>peft_config</strong> (<a href="/docs/peft/main/en/package_reference/config#peft.PeftConfig">PeftConfig</a>) &#x2014;
Configuration object containing the parameters of the Peft model.`,name:"peft_config"},{anchor:"peft.get_peft_model.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <code>optional</code>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The name of the adapter to be injected, if not provided, the default adapter name is used (&#x201C;default&#x201D;).`,name:"adapter_name"},{anchor:"peft.get_peft_model.mixed",description:`<strong>mixed</strong> (<code>bool</code>, <code>optional</code>, defaults to <code>False</code>) &#x2014;
Whether to allow mixing different (compatible) adapter types.`,name:"mixed"},{anchor:"peft.get_peft_model.autocast_adapter_dtype",description:`<strong>autocast_adapter_dtype</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to autocast the adapter dtype. Defaults to <code>True</code>. Right now, this will only cast adapter weights
using float16 or bfloat16 to float32, as this is typically required for stable training, and only affect
select PEFT tuners.`,name:"autocast_adapter_dtype"},{anchor:"peft.get_peft_model.revision",description:`<strong>revision</strong> (<code>str</code>, <code>optional</code>, defaults to <code>main</code>) &#x2014;
The revision of the base model. If this isn&#x2019;t set, the saved peft model will load the <code>main</code> revision for
the base model`,name:"revision"},{anchor:"peft.get_peft_model.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. Leave this setting as
False if you intend on training the model, unless the adapter weights will be replaced by different weights
before training starts.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/mapping_func.py#L31"}}),Yt=new x({props:{name:"peft.inject_adapter_in_model",anchor:"peft.inject_adapter_in_model",parameters:[{name:"peft_config",val:": PeftConfig"},{name:"model",val:": torch.nn.Module"},{name:"adapter_name",val:": str = 'default'"},{name:"low_cpu_mem_usage",val:": bool = False"},{name:"state_dict",val:": Optional[dict[str, torch.Tensor]] = None"}],parametersDescription:[{anchor:"peft.inject_adapter_in_model.peft_config",description:`<strong>peft_config</strong> (<code>PeftConfig</code>) &#x2014;
Configuration object containing the parameters of the PEFT model.`,name:"peft_config"},{anchor:"peft.inject_adapter_in_model.model",description:`<strong>model</strong> (<code>torch.nn.Module</code>) &#x2014;
The input model where the adapter will be injected.`,name:"model"},{anchor:"peft.inject_adapter_in_model.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <code>optional</code>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The name of the adapter to be injected, if not provided, the default adapter name is used (&#x201C;default&#x201D;).`,name:"adapter_name"},{anchor:"peft.inject_adapter_in_model.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"},{anchor:"peft.inject_adapter_in_model.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If a <code>state_dict</code> is passed here, the adapters will be injected based on the entries of the state_dict.
This can be useful when the exact <code>target_modules</code> of the PEFT method is unknown, for instance because the
checkpoint was created without meta data. Note that the values from the <code>state_dict</code> are not used, only the
keys are used to determine the correct layers that should be adapted.`,name:"state_dict"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/mapping.py#L47"}}),Ot=new x({props:{name:"peft.get_peft_model_state_dict",anchor:"peft.get_peft_model_state_dict",parameters:[{name:"model",val:""},{name:"state_dict",val:" = None"},{name:"adapter_name",val:" = 'default'"},{name:"unwrap_compiled",val:" = False"},{name:"save_embedding_layers",val:" = 'auto'"}],parametersDescription:[{anchor:"peft.get_peft_model_state_dict.model",description:`<strong>model</strong> (<a href="/docs/peft/main/en/package_reference/peft_model#peft.PeftModel">PeftModel</a>) &#x2014; The Peft model. When using torch.nn.DistributedDataParallel, DeepSpeed or FSDP,
the model should be the underlying model/unwrapped model (i.e. model.module).`,name:"model"},{anchor:"peft.get_peft_model_state_dict.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The state dict of the model. If not provided, the state dict of the passed model will be used.`,name:"state_dict"},{anchor:"peft.get_peft_model_state_dict.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The name of the adapter whose state dict should be returned.`,name:"adapter_name"},{anchor:"peft.get_peft_model_state_dict.unwrap_compiled",description:`<strong>unwrap_compiled</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to unwrap the model if torch.compile was used.`,name:"unwrap_compiled"},{anchor:"peft.get_peft_model_state_dict.save_embedding_layers",description:`<strong>save_embedding_layers</strong> (<code>Union[bool, str]</code>, , <em>optional</em>, defaults to <code>auto</code>) &#x2014;
If <code>True</code>, save the embedding layers in addition to adapter weights. If <code>auto</code>, checks the common embedding
layers <code>peft.utils.other.EMBEDDING_LAYER_NAMES</code> in config&#x2019;s <code>target_modules</code> when available. Based on it
sets the boolean flag. This only works for &#x1F917; transformers models.`,name:"save_embedding_layers"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/utils/save_and_load.py#L57"}}),Kt=new x({props:{name:"peft.prepare_model_for_kbit_training",anchor:"peft.prepare_model_for_kbit_training",parameters:[{name:"model",val:""},{name:"use_gradient_checkpointing",val:" = True"},{name:"gradient_checkpointing_kwargs",val:" = None"}],parametersDescription:[{anchor:"peft.prepare_model_for_kbit_training.model",description:`<strong>model</strong> (<code>transformers.PreTrainedModel</code>) &#x2014;
The loaded model from <code>transformers</code>`,name:"model"},{anchor:"peft.prepare_model_for_kbit_training.use_gradient_checkpointing",description:`<strong>use_gradient_checkpointing</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
If True, use gradient checkpointing to save memory at the expense of slower backward pass.`,name:"use_gradient_checkpointing"},{anchor:"peft.prepare_model_for_kbit_training.gradient_checkpointing_kwargs",description:`<strong>gradient_checkpointing_kwargs</strong> (<code>dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Keyword arguments to pass to the gradient checkpointing function, please refer to the documentation of
<code>torch.utils.checkpoint.checkpoint</code> for more details about the arguments that you can pass to that method.
Note this is only available in the latest transformers versions (&gt; 4.34.1).`,name:"gradient_checkpointing_kwargs"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/utils/other.py#L125"}}),ea=new x({props:{name:"peft.get_layer_status",anchor:"peft.get_layer_status",parameters:[{name:"model",val:": torch.nn.Module"}],parametersDescription:[{anchor:"peft.get_layer_status.model",description:`<strong>model</strong> ([Union[<code>~PeftModel</code>, <code>~transformers.PreTrainedModel</code>, <code>nn.Module</code>]]) &#x2014;
The model to get the adapter layer status from.`,name:"model"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L3001",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dataclasses, each containing the status of the corresponding adapter layer.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>list<code>peft.peft_model.TunerLayerStatus</code></p>
`}}),ta=new x({props:{name:"peft.get_model_status",anchor:"peft.get_model_status",parameters:[{name:"model",val:": torch.nn.Module"}],parametersDescription:[{anchor:"peft.get_model_status.model",description:`<strong>model</strong> ([Union[<code>~PeftModel</code>, <code>~transformers.PreTrainedModel</code>, <code>nn.Module</code>]]) &#x2014;
The model to get the adapter layer status from.`,name:"model"}],source:"https://github.com/huggingface/peft/blob/main/src/peft/peft_model.py#L3128",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dataclass containing the status of the model.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>peft.peft_model.TunerModelStatus</code></p>
`}}),aa=new Yd({props:{source:"https://github.com/huggingface/peft/blob/main/docs/source/package_reference/peft_model.md"}}),{c(){p=o("meta"),P=a(),M=o("p"),b=a(),m(y.$$.fragment),r=a(),j=o("p"),j.innerHTML=ol,Hn=a(),m(ze.$$.fragment),Xn=a(),v=o("div"),m(Ye.$$.fragment),Bo=a(),ra=o("p"),ra.textContent=sl,Ro=a(),la=o("p"),la.innerHTML=rl,No=a(),da=o("ul"),da.innerHTML=ll,So=a(),Z=o("div"),m(Oe.$$.fragment),Go=a(),ia=o("p"),ia.textContent=dl,Do=a(),pa=o("p"),pa.innerHTML=il,Qo=a(),ca=o("p"),ca.textContent=pl,Ho=a(),ma=o("p"),ma.innerHTML=cl,Xo=a(),K=o("div"),m(Ke.$$.fragment),zo=a(),fa=o("p"),fa.textContent=ml,Yo=a(),ga=o("ol"),ga.innerHTML=fl,Oo=a(),Me=o("div"),m(et.$$.fragment),Ko=a(),ua=o("p"),ua.textContent=gl,es=a(),ee=o("div"),m(tt.$$.fragment),ts=a(),ha=o("p"),ha.textContent=ul,as=a(),m(ye.$$.fragment),ns=a(),ve=o("div"),m(at.$$.fragment),os=a(),_a=o("p"),_a.textContent=hl,ss=a(),te=o("div"),m(nt.$$.fragment),rs=a(),ba=o("p"),ba.textContent=_l,ls=a(),Ma=o("p"),Ma.innerHTML=bl,ds=a(),Te=o("div"),m(ot.$$.fragment),is=a(),ya=o("p"),ya.textContent=Ml,ps=a(),N=o("div"),m(st.$$.fragment),cs=a(),va=o("p"),va.textContent=yl,ms=a(),Ta=o("p"),Ta.innerHTML=vl,fs=a(),wa=o("ul"),wa.innerHTML=Tl,gs=a(),S=o("div"),m(rt.$$.fragment),us=a(),$a=o("p"),$a.textContent=wl,hs=a(),xa=o("p"),xa.innerHTML=$l,_s=a(),ja=o("ul"),ja.innerHTML=xl,bs=a(),we=o("div"),m(lt.$$.fragment),Ms=a(),Ca=o("p"),Ca.textContent=jl,ys=a(),$e=o("div"),m(dt.$$.fragment),vs=a(),Pa=o("p"),Pa.textContent=Cl,Ts=a(),xe=o("div"),m(it.$$.fragment),ws=a(),Ja=o("p"),Ja.textContent=Pl,$s=a(),G=o("div"),m(pt.$$.fragment),xs=a(),Ua=o("p"),Ua.textContent=Jl,js=a(),qa=o("p"),qa.textContent=Ul,Cs=a(),ka=o("p"),ka.innerHTML=ql,Ps=a(),je=o("div"),m(ct.$$.fragment),Js=a(),Fa=o("p"),Fa.textContent=kl,Us=a(),ae=o("div"),m(mt.$$.fragment),qs=a(),Ia=o("p"),Ia.textContent=Fl,ks=a(),Za=o("p"),Za.textContent=Il,Fs=a(),Ce=o("div"),m(ft.$$.fragment),Is=a(),Ea=o("p"),Ea.innerHTML=Zl,Zs=a(),E=o("div"),m(gt.$$.fragment),Es=a(),La=o("p"),La.textContent=El,Ls=a(),Wa=o("p"),Wa.textContent=Ll,Ws=a(),Va=o("p"),Va.textContent=Wl,Vs=a(),m(Pe.$$.fragment),zn=a(),m(ut.$$.fragment),Yn=a(),ht=o("p"),ht.innerHTML=Vl,On=a(),q=o("div"),m(_t.$$.fragment),As=a(),Aa=o("p"),Aa.textContent=Al,Bs=a(),Ba=o("p"),Ba.innerHTML=Bl,Rs=a(),Ra=o("ul"),Ra.innerHTML=Rl,Ns=a(),m(Je.$$.fragment),Kn=a(),m(bt.$$.fragment),eo=a(),Mt=o("p"),Mt.innerHTML=Nl,to=a(),k=o("div"),m(yt.$$.fragment),Ss=a(),Na=o("p"),Na.textContent=Sl,Gs=a(),Sa=o("p"),Sa.innerHTML=Gl,Ds=a(),Ga=o("ul"),Ga.innerHTML=Dl,Qs=a(),m(Ue.$$.fragment),ao=a(),m(vt.$$.fragment),no=a(),Tt=o("p"),Tt.innerHTML=Ql,oo=a(),H=o("div"),m(wt.$$.fragment),Hs=a(),Da=o("p"),Da.textContent=Hl,Xs=a(),m(qe.$$.fragment),so=a(),m($t.$$.fragment),ro=a(),xt=o("p"),xt.innerHTML=Xl,lo=a(),X=o("div"),m(jt.$$.fragment),zs=a(),Qa=o("p"),Qa.textContent=zl,Ys=a(),m(ke.$$.fragment),io=a(),m(Ct.$$.fragment),po=a(),Pt=o("p"),Pt.innerHTML=Yl,co=a(),F=o("div"),m(Jt.$$.fragment),Os=a(),Ha=o("p"),Ha.textContent=Ol,Ks=a(),Xa=o("p"),Xa.innerHTML=Kl,er=a(),za=o("ul"),za.innerHTML=ed,tr=a(),m(Fe.$$.fragment),mo=a(),m(Ut.$$.fragment),fo=a(),qt=o("p"),qt.innerHTML=td,go=a(),I=o("div"),m(kt.$$.fragment),ar=a(),Ya=o("p"),Ya.textContent=ad,nr=a(),Oa=o("p"),Oa.innerHTML=nd,or=a(),Ka=o("ul"),Ka.innerHTML=od,sr=a(),m(Ie.$$.fragment),uo=a(),m(Ft.$$.fragment),ho=a(),It=o("p"),It.innerHTML=sd,_o=a(),C=o("div"),m(Zt.$$.fragment),rr=a(),en=o("p"),en.textContent=rd,lr=a(),tn=o("p"),tn.innerHTML=ld,dr=a(),Et=o("blockquote"),Et.innerHTML=dd,ir=a(),m(Ze.$$.fragment),pr=a(),L=o("div"),m(Lt.$$.fragment),cr=a(),an=o("p"),an.textContent=id,mr=a(),nn=o("p"),nn.innerHTML=pd,fr=a(),on=o("p"),on.textContent=cd,gr=a(),sn=o("p"),sn.innerHTML=md,ur=a(),Ee=o("div"),m(Wt.$$.fragment),hr=a(),rn=o("p"),rn.textContent=fd,_r=a(),Le=o("div"),m(Vt.$$.fragment),br=a(),ln=o("p"),ln.textContent=gd,Mr=a(),ne=o("div"),m(At.$$.fragment),yr=a(),dn=o("p"),dn.textContent=ud,vr=a(),pn=o("p"),pn.innerHTML=hd,Tr=a(),We=o("div"),m(Bt.$$.fragment),wr=a(),cn=o("p"),cn.textContent=_d,$r=a(),Ve=o("div"),m(Rt.$$.fragment),xr=a(),mn=o("p"),mn.textContent=bd,jr=a(),D=o("div"),m(Nt.$$.fragment),Cr=a(),fn=o("p"),fn.textContent=Md,Pr=a(),gn=o("p"),gn.textContent=yd,Jr=a(),un=o("p"),un.innerHTML=vd,Ur=a(),Ae=o("div"),m(St.$$.fragment),qr=a(),hn=o("p"),hn.textContent=Td,kr=a(),oe=o("div"),m(Gt.$$.fragment),Fr=a(),_n=o("p"),_n.textContent=wd,Ir=a(),bn=o("p"),bn.textContent=$d,Zr=a(),Q=o("div"),m(Dt.$$.fragment),Er=a(),Mn=o("p"),Mn.textContent=xd,Lr=a(),yn=o("p"),yn.textContent=jd,Wr=a(),vn=o("p"),vn.textContent=Cd,Vr=a(),Be=o("div"),m(Qt.$$.fragment),Ar=a(),Tn=o("p"),Tn.textContent=Pd,bo=a(),m(Ht.$$.fragment),Mo=a(),z=o("div"),m(Xt.$$.fragment),Br=a(),wn=o("p"),wn.innerHTML=Jd,Rr=a(),$n=o("p"),$n.innerHTML=Ud,yo=a(),me=o("div"),m(zt.$$.fragment),Nr=a(),xn=o("p"),xn.textContent=qd,vo=a(),W=o("div"),m(Yt.$$.fragment),Sr=a(),jn=o("p"),jn.textContent=kd,Gr=a(),Cn=o("p"),Cn.textContent=Fd,Dr=a(),Pn=o("p"),Pn.innerHTML=Id,To=a(),V=o("div"),m(Ot.$$.fragment),Qr=a(),Jn=o("p"),Jn.textContent=Zd,Hr=a(),Un=o("p"),Un.innerHTML=Ed,Xr=a(),qn=o("p"),qn.innerHTML=Ld,wo=a(),Y=o("div"),m(Kt.$$.fragment),zr=a(),kn=o("p"),kn.innerHTML=Wd,Yr=a(),Fn=o("p"),Fn.textContent=Vd,$o=a(),A=o("div"),m(ea.$$.fragment),Or=a(),In=o("p"),In.textContent=Ad,Kr=a(),Zn=o("p"),Zn.innerHTML=Bd,el=a(),En=o("ul"),En.innerHTML=Rd,xo=a(),B=o("div"),m(ta.$$.fragment),tl=a(),Ln=o("p"),Ln.textContent=Nd,al=a(),Wn=o("p"),Wn.innerHTML=Sd,nl=a(),Vn=o("ul"),Vn.innerHTML=Gd,jo=a(),m(aa.$$.fragment),Co=a(),Qn=o("p"),this.h()},l(e){const i=zd("svelte-u9bgzb",document.head);p=s(i,"META",{name:!0,content:!0}),i.forEach(l),P=n(e),M=s(e,"P",{}),$(M).forEach(l),b=n(e),f(y.$$.fragment,e),r=n(e),j=s(e,"P",{"data-svelte-h":!0}),d(j)!=="svelte-1gjku9r"&&(j.innerHTML=ol),Hn=n(e),f(ze.$$.fragment,e),Xn=n(e),v=s(e,"DIV",{class:!0});var w=$(v);f(Ye.$$.fragment,w),Bo=n(w),ra=s(w,"P",{"data-svelte-h":!0}),d(ra)!=="svelte-1e4ptyx"&&(ra.textContent=sl),Ro=n(w),la=s(w,"P",{"data-svelte-h":!0}),d(la)!=="svelte-1xx6nm4"&&(la.innerHTML=rl),No=n(w),da=s(w,"UL",{"data-svelte-h":!0}),d(da)!=="svelte-uypxoz"&&(da.innerHTML=ll),So=n(w),Z=s(w,"DIV",{class:!0});var R=$(Z);f(Oe.$$.fragment,R),Go=n(R),ia=s(R,"P",{"data-svelte-h":!0}),d(ia)!=="svelte-eev0p"&&(ia.textContent=dl),Do=n(R),pa=s(R,"P",{"data-svelte-h":!0}),d(pa)!=="svelte-1x0rbv8"&&(pa.innerHTML=il),Qo=n(R),ca=s(R,"P",{"data-svelte-h":!0}),d(ca)!=="svelte-1vybd74"&&(ca.textContent=pl),Ho=n(R),ma=s(R,"P",{"data-svelte-h":!0}),d(ma)!=="svelte-36arxn"&&(ma.innerHTML=cl),R.forEach(l),Xo=n(w),K=s(w,"DIV",{class:!0});var fe=$(K);f(Ke.$$.fragment,fe),zo=n(fe),fa=s(fe,"P",{"data-svelte-h":!0}),d(fa)!=="svelte-ebboe5"&&(fa.textContent=ml),Yo=n(fe),ga=s(fe,"OL",{"data-svelte-h":!0}),d(ga)!=="svelte-1apgpm7"&&(ga.innerHTML=fl),fe.forEach(l),Oo=n(w),Me=s(w,"DIV",{class:!0});var na=$(Me);f(et.$$.fragment,na),Ko=n(na),ua=s(na,"P",{"data-svelte-h":!0}),d(ua)!=="svelte-1cw64z1"&&(ua.textContent=gl),na.forEach(l),es=n(w),ee=s(w,"DIV",{class:!0});var ge=$(ee);f(tt.$$.fragment,ge),ts=n(ge),ha=s(ge,"P",{"data-svelte-h":!0}),d(ha)!=="svelte-1lt46qk"&&(ha.textContent=ul),as=n(ge),f(ye.$$.fragment,ge),ge.forEach(l),ns=n(w),ve=s(w,"DIV",{class:!0});var oa=$(ve);f(at.$$.fragment,oa),os=n(oa),_a=s(oa,"P",{"data-svelte-h":!0}),d(_a)!=="svelte-1dahdh7"&&(_a.textContent=hl),oa.forEach(l),ss=n(w),te=s(w,"DIV",{class:!0});var ue=$(te);f(nt.$$.fragment,ue),rs=n(ue),ba=s(ue,"P",{"data-svelte-h":!0}),d(ba)!=="svelte-1wsj5dv"&&(ba.textContent=_l),ls=n(ue),Ma=s(ue,"P",{"data-svelte-h":!0}),d(Ma)!=="svelte-1dimxoj"&&(Ma.innerHTML=bl),ue.forEach(l),ds=n(w),Te=s(w,"DIV",{class:!0});var sa=$(Te);f(ot.$$.fragment,sa),is=n(sa),ya=s(sa,"P",{"data-svelte-h":!0}),d(ya)!=="svelte-utls5q"&&(ya.textContent=Ml),sa.forEach(l),ps=n(w),N=s(w,"DIV",{class:!0});var O=$(N);f(st.$$.fragment,O),cs=n(O),va=s(O,"P",{"data-svelte-h":!0}),d(va)!=="svelte-qbv9wu"&&(va.textContent=yl),ms=n(O),Ta=s(O,"P",{"data-svelte-h":!0}),d(Ta)!=="svelte-106rfnj"&&(Ta.innerHTML=vl),fs=n(O),wa=s(O,"UL",{"data-svelte-h":!0}),d(wa)!=="svelte-300tyf"&&(wa.innerHTML=Tl),O.forEach(l),gs=n(w),S=s(w,"DIV",{class:!0});var Re=$(S);f(rt.$$.fragment,Re),us=n(Re),$a=s(Re,"P",{"data-svelte-h":!0}),d($a)!=="svelte-19lq8ai"&&($a.textContent=wl),hs=n(Re),xa=s(Re,"P",{"data-svelte-h":!0}),d(xa)!=="svelte-oh1795"&&(xa.innerHTML=$l),_s=n(Re),ja=s(Re,"UL",{"data-svelte-h":!0}),d(ja)!=="svelte-29q9g0"&&(ja.innerHTML=xl),Re.forEach(l),bs=n(w),we=s(w,"DIV",{class:!0});var Jo=$(we);f(lt.$$.fragment,Jo),Ms=n(Jo),Ca=s(Jo,"P",{"data-svelte-h":!0}),d(Ca)!=="svelte-1obczxw"&&(Ca.textContent=jl),Jo.forEach(l),ys=n(w),$e=s(w,"DIV",{class:!0});var Uo=$($e);f(dt.$$.fragment,Uo),vs=n(Uo),Pa=s(Uo,"P",{"data-svelte-h":!0}),d(Pa)!=="svelte-1w4gp53"&&(Pa.textContent=Cl),Uo.forEach(l),Ts=n(w),xe=s(w,"DIV",{class:!0});var qo=$(xe);f(it.$$.fragment,qo),ws=n(qo),Ja=s(qo,"P",{"data-svelte-h":!0}),d(Ja)!=="svelte-1o38l72"&&(Ja.textContent=Pl),qo.forEach(l),$s=n(w),G=s(w,"DIV",{class:!0});var Ne=$(G);f(pt.$$.fragment,Ne),xs=n(Ne),Ua=s(Ne,"P",{"data-svelte-h":!0}),d(Ua)!=="svelte-1ijv65v"&&(Ua.textContent=Jl),js=n(Ne),qa=s(Ne,"P",{"data-svelte-h":!0}),d(qa)!=="svelte-1vybd74"&&(qa.textContent=Ul),Cs=n(Ne),ka=s(Ne,"P",{"data-svelte-h":!0}),d(ka)!=="svelte-36arxn"&&(ka.innerHTML=ql),Ne.forEach(l),Ps=n(w),je=s(w,"DIV",{class:!0});var ko=$(je);f(ct.$$.fragment,ko),Js=n(ko),Fa=s(ko,"P",{"data-svelte-h":!0}),d(Fa)!=="svelte-lxfha5"&&(Fa.textContent=kl),ko.forEach(l),Us=n(w),ae=s(w,"DIV",{class:!0});var An=$(ae);f(mt.$$.fragment,An),qs=n(An),Ia=s(An,"P",{"data-svelte-h":!0}),d(Ia)!=="svelte-nsmqzk"&&(Ia.textContent=Fl),ks=n(An),Za=s(An,"P",{"data-svelte-h":!0}),d(Za)!=="svelte-1m6zd72"&&(Za.textContent=Il),An.forEach(l),Fs=n(w),Ce=s(w,"DIV",{class:!0});var Fo=$(Ce);f(ft.$$.fragment,Fo),Is=n(Fo),Ea=s(Fo,"P",{"data-svelte-h":!0}),d(Ea)!=="svelte-36fqg2"&&(Ea.innerHTML=Zl),Fo.forEach(l),Zs=n(w),E=s(w,"DIV",{class:!0});var se=$(E);f(gt.$$.fragment,se),Es=n(se),La=s(se,"P",{"data-svelte-h":!0}),d(La)!=="svelte-sr40it"&&(La.textContent=El),Ls=n(se),Wa=s(se,"P",{"data-svelte-h":!0}),d(Wa)!=="svelte-1buhq29"&&(Wa.textContent=Ll),Ws=n(se),Va=s(se,"P",{"data-svelte-h":!0}),d(Va)!=="svelte-1h3u8lo"&&(Va.textContent=Wl),Vs=n(se),f(Pe.$$.fragment,se),se.forEach(l),w.forEach(l),zn=n(e),f(ut.$$.fragment,e),Yn=n(e),ht=s(e,"P",{"data-svelte-h":!0}),d(ht)!=="svelte-ndtvg4"&&(ht.innerHTML=Vl),On=n(e),q=s(e,"DIV",{class:!0});var re=$(q);f(_t.$$.fragment,re),As=n(re),Aa=s(re,"P",{"data-svelte-h":!0}),d(Aa)!=="svelte-1v2olwg"&&(Aa.textContent=Al),Bs=n(re),Ba=s(re,"P",{"data-svelte-h":!0}),d(Ba)!=="svelte-1xx6nm4"&&(Ba.innerHTML=Bl),Rs=n(re),Ra=s(re,"UL",{"data-svelte-h":!0}),d(Ra)!=="svelte-jqwhd"&&(Ra.innerHTML=Rl),Ns=n(re),f(Je.$$.fragment,re),re.forEach(l),Kn=n(e),f(bt.$$.fragment,e),eo=n(e),Mt=s(e,"P",{"data-svelte-h":!0}),d(Mt)!=="svelte-29bbti"&&(Mt.innerHTML=Nl),to=n(e),k=s(e,"DIV",{class:!0});var le=$(k);f(yt.$$.fragment,le),Ss=n(le),Na=s(le,"P",{"data-svelte-h":!0}),d(Na)!=="svelte-1nor8hq"&&(Na.textContent=Sl),Gs=n(le),Sa=s(le,"P",{"data-svelte-h":!0}),d(Sa)!=="svelte-1xx6nm4"&&(Sa.innerHTML=Gl),Ds=n(le),Ga=s(le,"UL",{"data-svelte-h":!0}),d(Ga)!=="svelte-jqwhd"&&(Ga.innerHTML=Dl),Qs=n(le),f(Ue.$$.fragment,le),le.forEach(l),ao=n(e),f(vt.$$.fragment,e),no=n(e),Tt=s(e,"P",{"data-svelte-h":!0}),d(Tt)!=="svelte-1tlttqn"&&(Tt.innerHTML=Ql),oo=n(e),H=s(e,"DIV",{class:!0});var Bn=$(H);f(wt.$$.fragment,Bn),Hs=n(Bn),Da=s(Bn,"P",{"data-svelte-h":!0}),d(Da)!=="svelte-1xidneb"&&(Da.textContent=Hl),Xs=n(Bn),f(qe.$$.fragment,Bn),Bn.forEach(l),so=n(e),f($t.$$.fragment,e),ro=n(e),xt=s(e,"P",{"data-svelte-h":!0}),d(xt)!=="svelte-1jmb61f"&&(xt.innerHTML=Xl),lo=n(e),X=s(e,"DIV",{class:!0});var Rn=$(X);f(jt.$$.fragment,Rn),zs=n(Rn),Qa=s(Rn,"P",{"data-svelte-h":!0}),d(Qa)!=="svelte-i4jzn3"&&(Qa.textContent=zl),Ys=n(Rn),f(ke.$$.fragment,Rn),Rn.forEach(l),io=n(e),f(Ct.$$.fragment,e),po=n(e),Pt=s(e,"P",{"data-svelte-h":!0}),d(Pt)!=="svelte-5ypilt"&&(Pt.innerHTML=Yl),co=n(e),F=s(e,"DIV",{class:!0});var de=$(F);f(Jt.$$.fragment,de),Os=n(de),Ha=s(de,"P",{"data-svelte-h":!0}),d(Ha)!=="svelte-aqv7qc"&&(Ha.textContent=Ol),Ks=n(de),Xa=s(de,"P",{"data-svelte-h":!0}),d(Xa)!=="svelte-1xx6nm4"&&(Xa.innerHTML=Kl),er=n(de),za=s(de,"UL",{"data-svelte-h":!0}),d(za)!=="svelte-jqwhd"&&(za.innerHTML=ed),tr=n(de),f(Fe.$$.fragment,de),de.forEach(l),mo=n(e),f(Ut.$$.fragment,e),fo=n(e),qt=s(e,"P",{"data-svelte-h":!0}),d(qt)!=="svelte-zn19al"&&(qt.innerHTML=td),go=n(e),I=s(e,"DIV",{class:!0});var ie=$(I);f(kt.$$.fragment,ie),ar=n(ie),Ya=s(ie,"P",{"data-svelte-h":!0}),d(Ya)!=="svelte-lta6tj"&&(Ya.textContent=ad),nr=n(ie),Oa=s(ie,"P",{"data-svelte-h":!0}),d(Oa)!=="svelte-1xx6nm4"&&(Oa.innerHTML=nd),or=n(ie),Ka=s(ie,"UL",{"data-svelte-h":!0}),d(Ka)!=="svelte-186j4uj"&&(Ka.innerHTML=od),sr=n(ie),f(Ie.$$.fragment,ie),ie.forEach(l),uo=n(e),f(Ft.$$.fragment,e),ho=n(e),It=s(e,"P",{"data-svelte-h":!0}),d(It)!=="svelte-1mnmrm0"&&(It.innerHTML=sd),_o=n(e),C=s(e,"DIV",{class:!0});var J=$(C);f(Zt.$$.fragment,J),rr=n(J),en=s(J,"P",{"data-svelte-h":!0}),d(en)!=="svelte-1fqn09x"&&(en.textContent=rd),lr=n(J),tn=s(J,"P",{"data-svelte-h":!0}),d(tn)!=="svelte-vb6bb3"&&(tn.innerHTML=ld),dr=n(J),Et=s(J,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),d(Et)!=="svelte-tug1np"&&(Et.innerHTML=dd),ir=n(J),f(Ze.$$.fragment,J),pr=n(J),L=s(J,"DIV",{class:!0});var pe=$(L);f(Lt.$$.fragment,pe),cr=n(pe),an=s(pe,"P",{"data-svelte-h":!0}),d(an)!=="svelte-eev0p"&&(an.textContent=id),mr=n(pe),nn=s(pe,"P",{"data-svelte-h":!0}),d(nn)!=="svelte-1x0rbv8"&&(nn.innerHTML=pd),fr=n(pe),on=s(pe,"P",{"data-svelte-h":!0}),d(on)!=="svelte-1vybd74"&&(on.textContent=cd),gr=n(pe),sn=s(pe,"P",{"data-svelte-h":!0}),d(sn)!=="svelte-36arxn"&&(sn.innerHTML=md),pe.forEach(l),ur=n(J),Ee=s(J,"DIV",{class:!0});var Io=$(Ee);f(Wt.$$.fragment,Io),hr=n(Io),rn=s(Io,"P",{"data-svelte-h":!0}),d(rn)!=="svelte-10kge19"&&(rn.textContent=fd),Io.forEach(l),_r=n(J),Le=s(J,"DIV",{class:!0});var Zo=$(Le);f(Vt.$$.fragment,Zo),br=n(Zo),ln=s(Zo,"P",{"data-svelte-h":!0}),d(ln)!=="svelte-1dahdh7"&&(ln.textContent=gd),Zo.forEach(l),Mr=n(J),ne=s(J,"DIV",{class:!0});var Nn=$(ne);f(At.$$.fragment,Nn),yr=n(Nn),dn=s(Nn,"P",{"data-svelte-h":!0}),d(dn)!=="svelte-7485e6"&&(dn.textContent=ud),vr=n(Nn),pn=s(Nn,"P",{"data-svelte-h":!0}),d(pn)!=="svelte-1dimxoj"&&(pn.innerHTML=hd),Nn.forEach(l),Tr=n(J),We=s(J,"DIV",{class:!0});var Eo=$(We);f(Bt.$$.fragment,Eo),wr=n(Eo),cn=s(Eo,"P",{"data-svelte-h":!0}),d(cn)!=="svelte-12wcp4m"&&(cn.textContent=_d),Eo.forEach(l),$r=n(J),Ve=s(J,"DIV",{class:!0});var Lo=$(Ve);f(Rt.$$.fragment,Lo),xr=n(Lo),mn=s(Lo,"P",{"data-svelte-h":!0}),d(mn)!=="svelte-1hlrv9t"&&(mn.textContent=bd),Lo.forEach(l),jr=n(J),D=s(J,"DIV",{class:!0});var Se=$(D);f(Nt.$$.fragment,Se),Cr=n(Se),fn=s(Se,"P",{"data-svelte-h":!0}),d(fn)!=="svelte-1ijv65v"&&(fn.textContent=Md),Pr=n(Se),gn=s(Se,"P",{"data-svelte-h":!0}),d(gn)!=="svelte-1vybd74"&&(gn.textContent=yd),Jr=n(Se),un=s(Se,"P",{"data-svelte-h":!0}),d(un)!=="svelte-36arxn"&&(un.innerHTML=vd),Se.forEach(l),Ur=n(J),Ae=s(J,"DIV",{class:!0});var Wo=$(Ae);f(St.$$.fragment,Wo),qr=n(Wo),hn=s(Wo,"P",{"data-svelte-h":!0}),d(hn)!=="svelte-1pmlbbw"&&(hn.textContent=Td),Wo.forEach(l),kr=n(J),oe=s(J,"DIV",{class:!0});var Sn=$(oe);f(Gt.$$.fragment,Sn),Fr=n(Sn),_n=s(Sn,"P",{"data-svelte-h":!0}),d(_n)!=="svelte-nsmqzk"&&(_n.textContent=wd),Ir=n(Sn),bn=s(Sn,"P",{"data-svelte-h":!0}),d(bn)!=="svelte-1m6zd72"&&(bn.textContent=$d),Sn.forEach(l),Zr=n(J),Q=s(J,"DIV",{class:!0});var Ge=$(Q);f(Dt.$$.fragment,Ge),Er=n(Ge),Mn=s(Ge,"P",{"data-svelte-h":!0}),d(Mn)!=="svelte-1lcepem"&&(Mn.textContent=xd),Lr=n(Ge),yn=s(Ge,"P",{"data-svelte-h":!0}),d(yn)!=="svelte-13u0frm"&&(yn.textContent=jd),Wr=n(Ge),vn=s(Ge,"P",{"data-svelte-h":!0}),d(vn)!=="svelte-1020tdh"&&(vn.textContent=Cd),Ge.forEach(l),Vr=n(J),Be=s(J,"DIV",{class:!0});var Vo=$(Be);f(Qt.$$.fragment,Vo),Ar=n(Vo),Tn=s(Vo,"P",{"data-svelte-h":!0}),d(Tn)!=="svelte-1thkzpl"&&(Tn.textContent=Pd),Vo.forEach(l),J.forEach(l),bo=n(e),f(Ht.$$.fragment,e),Mo=n(e),z=s(e,"DIV",{class:!0});var Gn=$(z);f(Xt.$$.fragment,Gn),Br=n(Gn),wn=s(Gn,"P",{"data-svelte-h":!0}),d(wn)!=="svelte-4feb4l"&&(wn.innerHTML=Jd),Rr=n(Gn),$n=s(Gn,"P",{"data-svelte-h":!0}),d($n)!=="svelte-1a5uwl6"&&($n.innerHTML=Ud),Gn.forEach(l),yo=n(e),me=s(e,"DIV",{class:!0});var Ao=$(me);f(zt.$$.fragment,Ao),Nr=n(Ao),xn=s(Ao,"P",{"data-svelte-h":!0}),d(xn)!=="svelte-1ihkopr"&&(xn.textContent=qd),Ao.forEach(l),vo=n(e),W=s(e,"DIV",{class:!0});var De=$(W);f(Yt.$$.fragment,De),Sr=n(De),jn=s(De,"P",{"data-svelte-h":!0}),d(jn)!=="svelte-pzx6vm"&&(jn.textContent=kd),Gr=n(De),Cn=s(De,"P",{"data-svelte-h":!0}),d(Cn)!=="svelte-1kmvq6f"&&(Cn.textContent=Fd),Dr=n(De),Pn=s(De,"P",{"data-svelte-h":!0}),d(Pn)!=="svelte-bdqa4j"&&(Pn.innerHTML=Id),De.forEach(l),To=n(e),V=s(e,"DIV",{class:!0});var Qe=$(V);f(Ot.$$.fragment,Qe),Qr=n(Qe),Jn=s(Qe,"P",{"data-svelte-h":!0}),d(Jn)!=="svelte-gnbqlm"&&(Jn.textContent=Zd),Hr=n(Qe),Un=s(Qe,"P",{"data-svelte-h":!0}),d(Un)!=="svelte-qojlyp"&&(Un.innerHTML=Ed),Xr=n(Qe),qn=s(Qe,"P",{"data-svelte-h":!0}),d(qn)!=="svelte-1o6kmyi"&&(qn.innerHTML=Ld),Qe.forEach(l),wo=n(e),Y=s(e,"DIV",{class:!0});var Dn=$(Y);f(Kt.$$.fragment,Dn),zr=n(Dn),kn=s(Dn,"P",{"data-svelte-h":!0}),d(kn)!=="svelte-1a0dqf5"&&(kn.innerHTML=Wd),Yr=n(Dn),Fn=s(Dn,"P",{"data-svelte-h":!0}),d(Fn)!=="svelte-8wbipw"&&(Fn.textContent=Vd),Dn.forEach(l),$o=n(e),A=s(e,"DIV",{class:!0});var He=$(A);f(ea.$$.fragment,He),Or=n(He),In=s(He,"P",{"data-svelte-h":!0}),d(In)!=="svelte-qbv9wu"&&(In.textContent=Ad),Kr=n(He),Zn=s(He,"P",{"data-svelte-h":!0}),d(Zn)!=="svelte-la6m46"&&(Zn.innerHTML=Bd),el=n(He),En=s(He,"UL",{"data-svelte-h":!0}),d(En)!=="svelte-160lblm"&&(En.innerHTML=Rd),He.forEach(l),xo=n(e),B=s(e,"DIV",{class:!0});var Xe=$(B);f(ta.$$.fragment,Xe),tl=n(Xe),Ln=s(Xe,"P",{"data-svelte-h":!0}),d(Ln)!=="svelte-19lq8ai"&&(Ln.textContent=Nd),al=n(Xe),Wn=s(Xe,"P",{"data-svelte-h":!0}),d(Wn)!=="svelte-1ebt70o"&&(Wn.innerHTML=Sd),nl=n(Xe),Vn=s(Xe,"UL",{"data-svelte-h":!0}),d(Vn)!=="svelte-r7myae"&&(Vn.innerHTML=Gd),Xe.forEach(l),jo=n(e),f(aa.$$.fragment,e),Co=n(e),Qn=s(e,"P",{}),$(Qn).forEach(l),this.h()},h(){T(p,"name","hf:doc:metadata"),T(p,"content",di),T(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Et,"class","tip"),T(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(B,"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,i){t(document.head,p),c(e,P,i),c(e,M,i),c(e,b,i),g(y,e,i),c(e,r,i),c(e,j,i),c(e,Hn,i),g(ze,e,i),c(e,Xn,i),c(e,v,i),g(Ye,v,null),t(v,Bo),t(v,ra),t(v,Ro),t(v,la),t(v,No),t(v,da),t(v,So),t(v,Z),g(Oe,Z,null),t(Z,Go),t(Z,ia),t(Z,Do),t(Z,pa),t(Z,Qo),t(Z,ca),t(Z,Ho),t(Z,ma),t(v,Xo),t(v,K),g(Ke,K,null),t(K,zo),t(K,fa),t(K,Yo),t(K,ga),t(v,Oo),t(v,Me),g(et,Me,null),t(Me,Ko),t(Me,ua),t(v,es),t(v,ee),g(tt,ee,null),t(ee,ts),t(ee,ha),t(ee,as),g(ye,ee,null),t(v,ns),t(v,ve),g(at,ve,null),t(ve,os),t(ve,_a),t(v,ss),t(v,te),g(nt,te,null),t(te,rs),t(te,ba),t(te,ls),t(te,Ma),t(v,ds),t(v,Te),g(ot,Te,null),t(Te,is),t(Te,ya),t(v,ps),t(v,N),g(st,N,null),t(N,cs),t(N,va),t(N,ms),t(N,Ta),t(N,fs),t(N,wa),t(v,gs),t(v,S),g(rt,S,null),t(S,us),t(S,$a),t(S,hs),t(S,xa),t(S,_s),t(S,ja),t(v,bs),t(v,we),g(lt,we,null),t(we,Ms),t(we,Ca),t(v,ys),t(v,$e),g(dt,$e,null),t($e,vs),t($e,Pa),t(v,Ts),t(v,xe),g(it,xe,null),t(xe,ws),t(xe,Ja),t(v,$s),t(v,G),g(pt,G,null),t(G,xs),t(G,Ua),t(G,js),t(G,qa),t(G,Cs),t(G,ka),t(v,Ps),t(v,je),g(ct,je,null),t(je,Js),t(je,Fa),t(v,Us),t(v,ae),g(mt,ae,null),t(ae,qs),t(ae,Ia),t(ae,ks),t(ae,Za),t(v,Fs),t(v,Ce),g(ft,Ce,null),t(Ce,Is),t(Ce,Ea),t(v,Zs),t(v,E),g(gt,E,null),t(E,Es),t(E,La),t(E,Ls),t(E,Wa),t(E,Ws),t(E,Va),t(E,Vs),g(Pe,E,null),c(e,zn,i),g(ut,e,i),c(e,Yn,i),c(e,ht,i),c(e,On,i),c(e,q,i),g(_t,q,null),t(q,As),t(q,Aa),t(q,Bs),t(q,Ba),t(q,Rs),t(q,Ra),t(q,Ns),g(Je,q,null),c(e,Kn,i),g(bt,e,i),c(e,eo,i),c(e,Mt,i),c(e,to,i),c(e,k,i),g(yt,k,null),t(k,Ss),t(k,Na),t(k,Gs),t(k,Sa),t(k,Ds),t(k,Ga),t(k,Qs),g(Ue,k,null),c(e,ao,i),g(vt,e,i),c(e,no,i),c(e,Tt,i),c(e,oo,i),c(e,H,i),g(wt,H,null),t(H,Hs),t(H,Da),t(H,Xs),g(qe,H,null),c(e,so,i),g($t,e,i),c(e,ro,i),c(e,xt,i),c(e,lo,i),c(e,X,i),g(jt,X,null),t(X,zs),t(X,Qa),t(X,Ys),g(ke,X,null),c(e,io,i),g(Ct,e,i),c(e,po,i),c(e,Pt,i),c(e,co,i),c(e,F,i),g(Jt,F,null),t(F,Os),t(F,Ha),t(F,Ks),t(F,Xa),t(F,er),t(F,za),t(F,tr),g(Fe,F,null),c(e,mo,i),g(Ut,e,i),c(e,fo,i),c(e,qt,i),c(e,go,i),c(e,I,i),g(kt,I,null),t(I,ar),t(I,Ya),t(I,nr),t(I,Oa),t(I,or),t(I,Ka),t(I,sr),g(Ie,I,null),c(e,uo,i),g(Ft,e,i),c(e,ho,i),c(e,It,i),c(e,_o,i),c(e,C,i),g(Zt,C,null),t(C,rr),t(C,en),t(C,lr),t(C,tn),t(C,dr),t(C,Et),t(C,ir),g(Ze,C,null),t(C,pr),t(C,L),g(Lt,L,null),t(L,cr),t(L,an),t(L,mr),t(L,nn),t(L,fr),t(L,on),t(L,gr),t(L,sn),t(C,ur),t(C,Ee),g(Wt,Ee,null),t(Ee,hr),t(Ee,rn),t(C,_r),t(C,Le),g(Vt,Le,null),t(Le,br),t(Le,ln),t(C,Mr),t(C,ne),g(At,ne,null),t(ne,yr),t(ne,dn),t(ne,vr),t(ne,pn),t(C,Tr),t(C,We),g(Bt,We,null),t(We,wr),t(We,cn),t(C,$r),t(C,Ve),g(Rt,Ve,null),t(Ve,xr),t(Ve,mn),t(C,jr),t(C,D),g(Nt,D,null),t(D,Cr),t(D,fn),t(D,Pr),t(D,gn),t(D,Jr),t(D,un),t(C,Ur),t(C,Ae),g(St,Ae,null),t(Ae,qr),t(Ae,hn),t(C,kr),t(C,oe),g(Gt,oe,null),t(oe,Fr),t(oe,_n),t(oe,Ir),t(oe,bn),t(C,Zr),t(C,Q),g(Dt,Q,null),t(Q,Er),t(Q,Mn),t(Q,Lr),t(Q,yn),t(Q,Wr),t(Q,vn),t(C,Vr),t(C,Be),g(Qt,Be,null),t(Be,Ar),t(Be,Tn),c(e,bo,i),g(Ht,e,i),c(e,Mo,i),c(e,z,i),g(Xt,z,null),t(z,Br),t(z,wn),t(z,Rr),t(z,$n),c(e,yo,i),c(e,me,i),g(zt,me,null),t(me,Nr),t(me,xn),c(e,vo,i),c(e,W,i),g(Yt,W,null),t(W,Sr),t(W,jn),t(W,Gr),t(W,Cn),t(W,Dr),t(W,Pn),c(e,To,i),c(e,V,i),g(Ot,V,null),t(V,Qr),t(V,Jn),t(V,Hr),t(V,Un),t(V,Xr),t(V,qn),c(e,wo,i),c(e,Y,i),g(Kt,Y,null),t(Y,zr),t(Y,kn),t(Y,Yr),t(Y,Fn),c(e,$o,i),c(e,A,i),g(ea,A,null),t(A,Or),t(A,In),t(A,Kr),t(A,Zn),t(A,el),t(A,En),c(e,xo,i),c(e,B,i),g(ta,B,null),t(B,tl),t(B,Ln),t(B,al),t(B,Wn),t(B,nl),t(B,Vn),c(e,jo,i),g(aa,e,i),c(e,Co,i),c(e,Qn,i),Po=!0},p(e,[i]){const w={};i&2&&(w.$$scope={dirty:i,ctx:e}),ye.$set(w);const R={};i&2&&(R.$$scope={dirty:i,ctx:e}),Pe.$set(R);const fe={};i&2&&(fe.$$scope={dirty:i,ctx:e}),Je.$set(fe);const na={};i&2&&(na.$$scope={dirty:i,ctx:e}),Ue.$set(na);const ge={};i&2&&(ge.$$scope={dirty:i,ctx:e}),qe.$set(ge);const oa={};i&2&&(oa.$$scope={dirty:i,ctx:e}),ke.$set(oa);const ue={};i&2&&(ue.$$scope={dirty:i,ctx:e}),Fe.$set(ue);const sa={};i&2&&(sa.$$scope={dirty:i,ctx:e}),Ie.$set(sa);const O={};i&2&&(O.$$scope={dirty:i,ctx:e}),Ze.$set(O)},i(e){Po||(u(y.$$.fragment,e),u(ze.$$.fragment,e),u(Ye.$$.fragment,e),u(Oe.$$.fragment,e),u(Ke.$$.fragment,e),u(et.$$.fragment,e),u(tt.$$.fragment,e),u(ye.$$.fragment,e),u(at.$$.fragment,e),u(nt.$$.fragment,e),u(ot.$$.fragment,e),u(st.$$.fragment,e),u(rt.$$.fragment,e),u(lt.$$.fragment,e),u(dt.$$.fragment,e),u(it.$$.fragment,e),u(pt.$$.fragment,e),u(ct.$$.fragment,e),u(mt.$$.fragment,e),u(ft.$$.fragment,e),u(gt.$$.fragment,e),u(Pe.$$.fragment,e),u(ut.$$.fragment,e),u(_t.$$.fragment,e),u(Je.$$.fragment,e),u(bt.$$.fragment,e),u(yt.$$.fragment,e),u(Ue.$$.fragment,e),u(vt.$$.fragment,e),u(wt.$$.fragment,e),u(qe.$$.fragment,e),u($t.$$.fragment,e),u(jt.$$.fragment,e),u(ke.$$.fragment,e),u(Ct.$$.fragment,e),u(Jt.$$.fragment,e),u(Fe.$$.fragment,e),u(Ut.$$.fragment,e),u(kt.$$.fragment,e),u(Ie.$$.fragment,e),u(Ft.$$.fragment,e),u(Zt.$$.fragment,e),u(Ze.$$.fragment,e),u(Lt.$$.fragment,e),u(Wt.$$.fragment,e),u(Vt.$$.fragment,e),u(At.$$.fragment,e),u(Bt.$$.fragment,e),u(Rt.$$.fragment,e),u(Nt.$$.fragment,e),u(St.$$.fragment,e),u(Gt.$$.fragment,e),u(Dt.$$.fragment,e),u(Qt.$$.fragment,e),u(Ht.$$.fragment,e),u(Xt.$$.fragment,e),u(zt.$$.fragment,e),u(Yt.$$.fragment,e),u(Ot.$$.fragment,e),u(Kt.$$.fragment,e),u(ea.$$.fragment,e),u(ta.$$.fragment,e),u(aa.$$.fragment,e),Po=!0)},o(e){h(y.$$.fragment,e),h(ze.$$.fragment,e),h(Ye.$$.fragment,e),h(Oe.$$.fragment,e),h(Ke.$$.fragment,e),h(et.$$.fragment,e),h(tt.$$.fragment,e),h(ye.$$.fragment,e),h(at.$$.fragment,e),h(nt.$$.fragment,e),h(ot.$$.fragment,e),h(st.$$.fragment,e),h(rt.$$.fragment,e),h(lt.$$.fragment,e),h(dt.$$.fragment,e),h(it.$$.fragment,e),h(pt.$$.fragment,e),h(ct.$$.fragment,e),h(mt.$$.fragment,e),h(ft.$$.fragment,e),h(gt.$$.fragment,e),h(Pe.$$.fragment,e),h(ut.$$.fragment,e),h(_t.$$.fragment,e),h(Je.$$.fragment,e),h(bt.$$.fragment,e),h(yt.$$.fragment,e),h(Ue.$$.fragment,e),h(vt.$$.fragment,e),h(wt.$$.fragment,e),h(qe.$$.fragment,e),h($t.$$.fragment,e),h(jt.$$.fragment,e),h(ke.$$.fragment,e),h(Ct.$$.fragment,e),h(Jt.$$.fragment,e),h(Fe.$$.fragment,e),h(Ut.$$.fragment,e),h(kt.$$.fragment,e),h(Ie.$$.fragment,e),h(Ft.$$.fragment,e),h(Zt.$$.fragment,e),h(Ze.$$.fragment,e),h(Lt.$$.fragment,e),h(Wt.$$.fragment,e),h(Vt.$$.fragment,e),h(At.$$.fragment,e),h(Bt.$$.fragment,e),h(Rt.$$.fragment,e),h(Nt.$$.fragment,e),h(St.$$.fragment,e),h(Gt.$$.fragment,e),h(Dt.$$.fragment,e),h(Qt.$$.fragment,e),h(Ht.$$.fragment,e),h(Xt.$$.fragment,e),h(zt.$$.fragment,e),h(Yt.$$.fragment,e),h(Ot.$$.fragment,e),h(Kt.$$.fragment,e),h(ea.$$.fragment,e),h(ta.$$.fragment,e),h(aa.$$.fragment,e),Po=!1},d(e){e&&(l(P),l(M),l(b),l(r),l(j),l(Hn),l(Xn),l(v),l(zn),l(Yn),l(ht),l(On),l(q),l(Kn),l(eo),l(Mt),l(to),l(k),l(ao),l(no),l(Tt),l(oo),l(H),l(so),l(ro),l(xt),l(lo),l(X),l(io),l(po),l(Pt),l(co),l(F),l(mo),l(fo),l(qt),l(go),l(I),l(uo),l(ho),l(It),l(_o),l(C),l(bo),l(Mo),l(z),l(yo),l(me),l(vo),l(W),l(To),l(V),l(wo),l(Y),l($o),l(A),l(xo),l(B),l(jo),l(Co),l(Qn)),l(p),_(y,e),_(ze,e),_(Ye),_(Oe),_(Ke),_(et),_(tt),_(ye),_(at),_(nt),_(ot),_(st),_(rt),_(lt),_(dt),_(it),_(pt),_(ct),_(mt),_(ft),_(gt),_(Pe),_(ut,e),_(_t),_(Je),_(bt,e),_(yt),_(Ue),_(vt,e),_(wt),_(qe),_($t,e),_(jt),_(ke),_(Ct,e),_(Jt),_(Fe),_(Ut,e),_(kt),_(Ie),_(Ft,e),_(Zt),_(Ze),_(Lt),_(Wt),_(Vt),_(At),_(Bt),_(Rt),_(Nt),_(St),_(Gt),_(Dt),_(Qt),_(Ht,e),_(Xt),_(zt),_(Yt),_(Ot),_(Kt),_(ea),_(ta),_(aa,e)}}}const di='{"title":"Models","local":"models","sections":[{"title":"PeftModel","local":"peft.PeftModel","sections":[],"depth":2},{"title":"PeftModelForSequenceClassification","local":"peft.PeftModelForSequenceClassification","sections":[],"depth":2},{"title":"PeftModelForTokenClassification","local":"peft.PeftModelForTokenClassification","sections":[],"depth":2},{"title":"PeftModelForCausalLM","local":"peft.PeftModelForCausalLM","sections":[],"depth":2},{"title":"PeftModelForSeq2SeqLM","local":"peft.PeftModelForSeq2SeqLM","sections":[],"depth":2},{"title":"PeftModelForQuestionAnswering","local":"peft.PeftModelForQuestionAnswering","sections":[],"depth":2},{"title":"PeftModelForFeatureExtraction","local":"peft.PeftModelForFeatureExtraction","sections":[],"depth":2},{"title":"PeftMixedModel","local":"peft.PeftMixedModel","sections":[],"depth":2},{"title":"Utilities","local":"peft.cast_mixed_precision_params","sections":[],"depth":2}],"depth":1}';function ii(U){return Qd(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class hi extends Hd{constructor(p){super(),Xd(this,p,ii,li,Dd,{})}}export{hi as component};
