import{s as Do,o as Qo,n as De}from"../chunks/scheduler.9bc65507.js";import{S as Ko,i as en,g as n,s as d,u as _,A as tn,h as s,f as t,c as l,j as f,v,y as m,k as p,o as r,a,w as b,d as y,t as w,x as T}from"../chunks/index.78c82d43.js";import{T as Ht}from"../chunks/Tip.87d55b76.js";import{D as ze}from"../chunks/Docstring.4e7352e2.js";import{C as dt}from"../chunks/CodeBlock.73e038be.js";import{I as Oe}from"../chunks/IconCopyLink.bedaa44d.js";import{E as Oo}from"../chunks/ExampleCodeBlock.872b014d.js";function on(x){let i,g=`The <code>Persimmon</code> models were trained using <code>bfloat16</code>, but the original inference uses <code>float16</code> The checkpoints uploaded on the hub use <code>torch_dtype = &#39;float16&#39;</code> which will be
used by the <code>AutoModel</code> API to cast the checkpoints from <code>torch.float32</code> to <code>torch.float16</code>.`,c,h,$="The <code>dtype</code> of the online weights is mostly irrelevant, unless you are using <code>torch_dtype=&quot;auto&quot;</code> when initializing a model using <code>model = AutoModelForCausalLM.from_pretrained(&quot;path&quot;, torch_dtype = &quot;auto&quot;)</code>. The reason is that the model will first be downloaded ( using the <code>dtype</code> of the checkpoints online) then it will be cast to the default <code>dtype</code> of <code>torch</code> (becomes <code>torch.float32</code>). Users should specify the <code>torch_dtype</code> they want, and if they don’t it will be <code>torch.float32</code>.",u,P,q="Finetuning the model in <code>float16</code> is not recommended and known to produce <code>nan</code>, as such the model should be fine-tuned in <code>bfloat16</code>.";return{c(){i=n("p"),i.innerHTML=g,c=d(),h=n("p"),h.innerHTML=$,u=d(),P=n("p"),P.innerHTML=q},l(M){i=s(M,"P",{"data-svelte-h":!0}),m(i)!=="svelte-17q3pz"&&(i.innerHTML=g),c=l(M),h=s(M,"P",{"data-svelte-h":!0}),m(h)!=="svelte-1mgue3n"&&(h.innerHTML=$),u=l(M),P=s(M,"P",{"data-svelte-h":!0}),m(P)!=="svelte-1p3drsu"&&(P.innerHTML=q)},m(M,F){a(M,i,F),a(M,c,F),a(M,h,F),a(M,u,F),a(M,P,F)},p:De,d(M){M&&(t(i),t(c),t(h),t(u),t(P))}}}function nn(x){let i,g;return i=new dt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFBlcnNpbW1vbk1vZGVsJTJDJTIwUGVyc2ltbW9uQ29uZmlnJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMFBlcnNpbW1vbiUyMHBlcnNpbW1vbi03YiUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBQZXJzaW1tb25Db25maWcoKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PersimmonModel, PersimmonConfig

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Persimmon persimmon-7b style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = PersimmonConfig()`,wrap:!1}}),{c(){_(i.$$.fragment)},l(c){v(i.$$.fragment,c)},m(c,h){b(i,c,h),g=!0},p:De,i(c){g||(y(i.$$.fragment,c),g=!0)},o(c){w(i.$$.fragment,c),g=!1},d(c){T(i,c)}}}function sn(x){let i,g=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){i=n("p"),i.innerHTML=g},l(c){i=s(c,"P",{"data-svelte-h":!0}),m(i)!=="svelte-fincs2"&&(i.innerHTML=g)},m(c,h){a(c,i,h)},p:De,d(c){c&&t(i)}}}function rn(x){let i,g=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){i=n("p"),i.innerHTML=g},l(c){i=s(c,"P",{"data-svelte-h":!0}),m(i)!=="svelte-fincs2"&&(i.innerHTML=g)},m(c,h){a(c,i,h)},p:De,d(c){c&&t(i)}}}function an(x){let i,g="Example:",c,h,$;return h=new dt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBQZXJzaW1tb25Gb3JDYXVzYWxMTSUwQSUwQW1vZGVsJTIwJTNEJTIwUGVyc2ltbW9uRm9yQ2F1c2FsTE0uZnJvbV9wcmV0cmFpbmVkKCUyMmFkZXB0JTJGcGVyc2ltbW9uLThiLWJhc2UlMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYWRlcHQlMkZwZXJzaW1tb24tOGItYmFzZSUyMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJodW1hbiUzQSUyMEhleSUyQyUyMHdoYXQlMjBzaG91bGQlMjBJJTIwZWF0JTIwZm9yJTIwZGlubmVyJTNGJTIyJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKHByb21wdCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBJTIzJTIwR2VuZXJhdGUlMEFnZW5lcmF0ZV9pZHMlMjAlM0QlMjBtb2RlbC5nZW5lcmF0ZShpbnB1dHMuaW5wdXRfaWRzJTJDJTIwbWF4X2xlbmd0aCUzRDMwKSUwQXRva2VuaXplci5iYXRjaF9kZWNvZGUoZ2VuZXJhdGVfaWRzJTJDJTIwc2tpcF9zcGVjaWFsX3Rva2VucyUzRFRydWUlMkMlMjBjbGVhbl91cF90b2tlbml6YXRpb25fc3BhY2VzJTNERmFsc2UpJTVCMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, PersimmonForCausalLM

<span class="hljs-meta">&gt;&gt;&gt; </span>model = PersimmonForCausalLM.from_pretrained(<span class="hljs-string">&quot;adept/persimmon-8b-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;adept/persimmon-8b-base&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;human: Hey, what should I eat for dinner?&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(prompt, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Generate</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>generate_ids = model.generate(inputs.input_ids, max_length=<span class="hljs-number">30</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer.batch_decode(generate_ids, skip_special_tokens=<span class="hljs-literal">True</span>, clean_up_tokenization_spaces=<span class="hljs-literal">False</span>)[<span class="hljs-number">0</span>]
<span class="hljs-string">&#x27;human: Hey, what should I eat for dinner?\\n\\ncat: 🐱\\n\\nhuman: 😐\\n\\n&#x27;</span>`,wrap:!1}}),{c(){i=n("p"),i.textContent=g,c=d(),_(h.$$.fragment)},l(u){i=s(u,"P",{"data-svelte-h":!0}),m(i)!=="svelte-11lpom8"&&(i.textContent=g),c=l(u),v(h.$$.fragment,u)},m(u,P){a(u,i,P),a(u,c,P),b(h,u,P),$=!0},p:De,i(u){$||(y(h.$$.fragment,u),$=!0)},o(u){w(h.$$.fragment,u),$=!1},d(u){u&&(t(i),t(c)),T(h,u)}}}function dn(x){let i,g=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){i=n("p"),i.innerHTML=g},l(c){i=s(c,"P",{"data-svelte-h":!0}),m(i)!=="svelte-fincs2"&&(i.innerHTML=g)},m(c,h){a(c,i,h)},p:De,d(c){c&&t(i)}}}function ln(x){let i,g,c,h,$,u,P,q,M,F,ho="Persimmon",lt,Z,V,Qe,oe,Ut,Je,uo="Overview",ct,ne,fo='The Persimmon model was created by <a href="https://www.adept.ai/blog/persimmon-8b" rel="nofollow">ADEPT</a>, and authored by Erich Elsen, Augustus Odena, Maxwell Nye, Sağnak Taşırlar, Tri Dao, Curtis Hawthorne, Deepak Moparthi, Arushi Somani.',mt,se,go="The authors introduced Persimmon-8B, a decoder model based on the classic transformers architecture, with query and key normalization. Persimmon-8B is a fully permissively-licensed model with approximately 8 billion parameters, released under the Apache license.  Some of the key attributes of Persimmon-8B are long context size (16K), performance, and capabilities for multimodal extensions.",pt,re,_o="The authors showcase their approach to model evaluation, focusing on practical text generation, mirroring how users interact with language models. The work also includes a comparative analysis, pitting Persimmon-8B against other prominent models (MPT 7B Instruct and Llama 2 Base 7B 1-Shot), across various evaluation tasks. The results demonstrate Persimmon-8B’s competitive performance, even with limited training data.",ht,ae,vo="In terms of model details, the work outlines the architecture and training methodology of Persimmon-8B, providing insights into its design choices, sequence length, and dataset composition. The authors present a fast inference code that outperforms traditional implementations through operator fusion and CUDA graph utilization while maintaining code coherence. They express their anticipation of how the community will leverage this contribution to drive innovation, hinting at further upcoming releases as part of an ongoing series of developments.",ut,R,ft,ie,bo="Tips:",gt,de,yo="<li>To convert the model, you need to clone the original repository using <code>git clone https://github.com/persimmon-ai-labs/adept-inference</code>, then get the checkpoints:</li>",_t,le,vt,ce,wo="For the chat model:",bt,me,yt,pe,To="Thereafter, models can be loaded via:",wt,he,Tt,ue,ko=`This model was contributed by <a href="https://huggingface.co/ArthurZ" rel="nofollow">ArthurZ</a>.
The original code can be found <a href="https://github.com/persimmon-ai-labs/adept-inference" rel="nofollow">here</a>.`,kt,fe,$o=`<li><p>Perismmon uses a <code>sentencepiece</code> based tokenizer, with a <code>Unigram</code> model. It supports bytefallback, which is only available in <code>tokenizers==0.14.0</code> for the fast tokenizer.
The <code>LlamaTokenizer</code> is used as it is a standard wrapper around sentencepiece. The <code>chat</code> template will be updated with the templating functions in a follow up PR!</p></li> <li><p>The authors suggest to use the following prompt format for the chat mode: <code>f&quot;human: {prompt}\\n\\nadept:&quot;</code></p></li>`,$t,G,X,Ke,ge,Nt,Fe,Po="PersimmonConfig",Pt,J,_e,jt,Le,Mo=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.34.0/en/model_doc/persimmon#transformers.PersimmonModel">PersimmonModel</a>. It is used to instantiate an
Persimmon model according to the specified arguments, defining the model architecture. Instantiating a
configuration with the defaults will yield a similar configuration to that of the
<a href="https://huggingface.co/adept/persimmon-8b-base" rel="nofollow">adept/persimmon-8b-base</a>.`,Vt,qe,Co=`Configuration objects inherit from <a href="/docs/transformers/v4.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/v4.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Rt,A,Mt,H,B,et,ve,Xt,We,xo="PersimmonModel",Ct,C,be,At,Ie,zo=`The bare Persimmon Model outputting raw hidden-states without any specific head on top.
This model inherits from <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,Bt,Se,Jo=`This model is also a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`,Et,Ze,Fo="Transformer decoder consisting of <em>config.num_hidden_layers</em> layers. Each layer is a <code>PersimmonDecoderLayer</code>",Yt,W,ye,Ot,Ge,Lo='The <a href="/docs/transformers/v4.34.0/en/model_doc/persimmon#transformers.PersimmonModel">PersimmonModel</a> forward method, overrides the <code>__call__</code> special method.',Dt,E,xt,U,Y,tt,we,Qt,He,qo="PersimmonForCausalLM",zt,N,Te,Kt,L,ke,eo,Ue,Wo='The <a href="/docs/transformers/v4.34.0/en/model_doc/persimmon#transformers.PersimmonForCausalLM">PersimmonForCausalLM</a> forward method, overrides the <code>__call__</code> special method.',to,O,oo,D,Jt,j,Q,ot,$e,no,Ne,Io="PersimmonForSequenceClassification",Ft,k,Pe,so,je,So="The Persimmon transformer with a sequence classification head on top (linear layer).",ro,Ve,Zo=`<a href="/docs/transformers/v4.34.0/en/model_doc/persimmon#transformers.PersimmonForSequenceClassification">PersimmonForSequenceClassification</a> uses the last token in order to do the classification, as other causal
models (e.g. GPT-2) do.`,ao,Re,Go=`Since it does classification on the last token, it requires to know the position of the last token. If a
<code>pad_token_id</code> is defined in the configuration, it finds the last token that is not a padding token in each row. If
no <code>pad_token_id</code> is defined, it simply takes the last value in each row of the batch. Since it cannot guess the
padding tokens when <code>inputs_embeds</code> are passed instead of <code>input_ids</code>, it does the same (take the last value in
each row of the batch).`,io,Xe,Ho=`This model inherits from <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,lo,Ae,Uo=`This model is also a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`,co,I,Me,mo,Be,No='The <a href="/docs/transformers/v4.34.0/en/model_doc/persimmon#transformers.PersimmonForSequenceClassification">PersimmonForSequenceClassification</a> forward method, overrides the <code>__call__</code> special method.',po,K,Lt,nt,qt;return q=new Oe({}),oe=new Oe({}),R=new Ht({props:{warning:!0,$$slots:{default:[on]},$$scope:{ctx:x}}}),le=new dt({props:{code:"Z2l0JTIwY2xvbmUlMjBodHRwcyUzQSUyRiUyRmdpdGh1Yi5jb20lMkZwZXJzaW1tb24tYWktbGFicyUyRmFkZXB0LWluZmVyZW5jZSUwQXdnZXQlMjBodHRwcyUzQSUyRiUyRmF4dGtuNHhsNWNpcC5vYmplY3RzdG9yYWdlLnVzLXBob2VuaXgtMS5vY2kuY3VzdG9tZXItb2NpLmNvbSUyRm4lMkZheHRrbjR4bDVjaXAlMkZiJTJGYWRlcHQtcHVibGljLWRhdGElMkZvJTJGOGJfYmFzZV9tb2RlbF9yZWxlYXNlLnRhciUwQXRhciUyMC14dmYlMjA4Yl9iYXNlX21vZGVsX3JlbGVhc2UudGFyJTBBcHl0aG9uJTIwc3JjJTJGdHJhbnNmb3JtZXJzJTJGbW9kZWxzJTJGcGVyc2ltbW9uJTJGY29udmVydF9wZXJzaW1tb25fd2VpZ2h0c190b19oZi5weSUyMCUyMC0taW5wdXRfZGlyJTIwJTJGcGF0aCUyRnRvJTJGZG93bmxvYWRlZCUyRnBlcnNpbW1vbiUyRndlaWdodHMlMkYlMjAtLW91dHB1dF9kaXIlMjAlMkZvdXRwdXQlMkZwYXRoJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wdF9tb2RlbF9wYXRoJTIwJTJGcGF0aCUyRnRvJTJGOGJfY2hhdF9tb2RlbF9yZWxlYXNlJTJGaXRlcl8wMDAxMjUxJTJGbXBfcmFua18wMCUyRm1vZGVsX29wdGltX3JuZy5wdCUwQSUyMCUyMCUyMCUyMC0tYWRhX2xpYl9wYXRoJTIwJTJGcGF0aCUyRnRvJTJGYWRlcHQtaW5mZXJlbmNl",highlighted:`git <span class="hljs-built_in">clone</span> https://github.com/persimmon-ai-labs/adept-inference
wget https://axtkn4xl5cip.objectstorage.us-phoenix-1.oci.customer-oci.com/n/axtkn4xl5cip/b/adept-public-data/o/8b_base_model_release.tar
tar -xvf 8b_base_model_release.tar
python src/transformers/models/persimmon/convert_persimmon_weights_to_hf.py  --input_dir /path/to/downloaded/persimmon/weights/ --output_dir /output/path \\
    --pt_model_path /path/to/8b_chat_model_release/iter_0001251/mp_rank_00/model_optim_rng.pt
    --ada_lib_path /path/to/adept-inference`,wrap:!1}}),me=new dt({props:{code:"d2dldCUyMGh0dHBzJTNBJTJGJTJGYXh0a240eGw1Y2lwLm9iamVjdHN0b3JhZ2UudXMtcGhvZW5peC0xLm9jaS5jdXN0b21lci1vY2kuY29tJTJGbiUyRmF4dGtuNHhsNWNpcCUyRmIlMkZhZGVwdC1wdWJsaWMtZGF0YSUyRm8lMkY4Yl9jaGF0X21vZGVsX3JlbGVhc2UudGFyJTBBdGFyJTIwLXh2ZiUyMDhiX2Jhc2VfbW9kZWxfcmVsZWFzZS50YXI=",highlighted:`wget https://axtkn4xl5cip.objectstorage.us-phoenix-1.oci.customer-oci.com/n/axtkn4xl5cip/b/adept-public-data/o/8b_chat_model_release.tar
tar -xvf 8b_base_model_release.tar`,wrap:!1}}),he=new dt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFBlcnNpbW1vbkZvckNhdXNhbExNJTJDJTIwUGVyc2ltbW9uVG9rZW5pemVyJTBBJTBBbW9kZWwlMjAlM0QlMjBQZXJzaW1tb25Gb3JDYXVzYWxMTS5mcm9tX3ByZXRyYWluZWQoJTIyJTJGb3V0cHV0JTJGcGF0aCUyMiklMEF0b2tlbml6ZXIlMjAlM0QlMjBQZXJzaW1tb25Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMiUyRm91dHB1dCUyRnBhdGglMjIp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PersimmonForCausalLM, PersimmonTokenizer

model = PersimmonForCausalLM.from_pretrained(<span class="hljs-string">&quot;/output/path&quot;</span>)
tokenizer = PersimmonTokenizer.from_pretrained(<span class="hljs-string">&quot;/output/path&quot;</span>)`,wrap:!1}}),ge=new Oe({}),_e=new ze({props:{name:"class transformers.PersimmonConfig",anchor:"transformers.PersimmonConfig",parameters:[{name:"vocab_size",val:" = 262144"},{name:"hidden_size",val:" = 4096"},{name:"intermediate_size",val:" = 16384"},{name:"num_hidden_layers",val:" = 36"},{name:"num_attention_heads",val:" = 64"},{name:"hidden_act",val:" = 'relu2'"},{name:"max_position_embeddings",val:" = 16384"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 1e-05"},{name:"use_cache",val:" = True"},{name:"tie_word_embeddings",val:" = False"},{name:"rope_theta",val:" = 25000.0"},{name:"rope_scaling",val:" = None"},{name:"qk_layernorm",val:" = True"},{name:"hidden_dropout",val:" = 0.0"},{name:"attention_dropout",val:" = 0.0"},{name:"partial_rotary_factor",val:" = 0.5"},{name:"pad_token_id",val:" = None"},{name:"bos_token_id",val:" = 1"},{name:"eos_token_id",val:" = 2"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PersimmonConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 262144) &#x2014;
Vocabulary size of the Persimmon model. Defines the number of different tokens that can be represented by
the <code>inputs_ids</code> passed when calling <a href="/docs/transformers/v4.34.0/en/model_doc/persimmon#transformers.PersimmonModel">PersimmonModel</a>`,name:"vocab_size"},{anchor:"transformers.PersimmonConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 4096) &#x2014;
Dimension of the hidden representations.`,name:"hidden_size"},{anchor:"transformers.PersimmonConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 16384) &#x2014;
Dimension of the MLP representations.`,name:"intermediate_size"},{anchor:"transformers.PersimmonConfig.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 36) &#x2014;
Number of hidden layers in the Transformer encoder.`,name:"num_hidden_layers"},{anchor:"transformers.PersimmonConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.PersimmonConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;relu2&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the decoder.`,name:"hidden_act"},{anchor:"transformers.PersimmonConfig.max_position_embeddings",description:`<strong>max_position_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 16384) &#x2014;
The maximum sequence length that this model might ever be used with.`,name:"max_position_embeddings"},{anchor:"transformers.PersimmonConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.PersimmonConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-5) &#x2014;
The epsilon used by the rms normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.PersimmonConfig.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not the model should return the last key/values attentions (not used by all models). Only
relevant if <code>config.is_decoder=True</code>.`,name:"use_cache"},{anchor:"transformers.PersimmonConfig.tie_word_embeddings(bool,",description:`<strong>tie_word_embeddings(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to tie weight embeddings`,name:"tie_word_embeddings(bool,"},{anchor:"transformers.PersimmonConfig.rope_theta",description:`<strong>rope_theta</strong> (<code>float</code>, <em>optional</em>, defaults to 25000.0) &#x2014;
The base period of the RoPE embeddings.`,name:"rope_theta"},{anchor:"transformers.PersimmonConfig.rope_scaling",description:`<strong>rope_scaling</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Dictionary containing the scaling configuration for the RoPE embeddings. Currently supports two scaling
strategies: linear and dynamic. Their scaling factor must be an float greater than 1. The expected format
is <code>{&quot;type&quot;: strategy name, &quot;factor&quot;: scaling factor}</code>. When using this flag, don&#x2019;t update
<code>max_position_embeddings</code> to the expected new maximum. See the following thread for more information on how
these scaling strategies behave:
<a href="https://www.reddit.com/r/LocalPersimmon/comments/14mrgpr/dynamically_scaled_rope_further_increases/" rel="nofollow">https://www.reddit.com/r/LocalPersimmon/comments/14mrgpr/dynamically_scaled_rope_further_increases/</a>. This
is an experimental feature, subject to breaking API changes in future versions.`,name:"rope_scaling"},{anchor:"transformers.PersimmonConfig.qk_layernorm",description:`<strong>qk_layernorm</strong> (<code>bool</code>, <em>optional</em>, default to <code>True</code>) &#x2014;
Whether or not to normalize the Queries and Keys after projecting the hidden states`,name:"qk_layernorm"},{anchor:"transformers.PersimmonConfig.hidden_dropout",description:`<strong>hidden_dropout</strong> (<code>float</code>, <em>optional</em>, default to 0.0) &#x2014;
The dropout ratio after applying the MLP to the hidden states.`,name:"hidden_dropout"},{anchor:"transformers.PersimmonConfig.attention_dropout",description:`<strong>attention_dropout</strong> (<code>float</code>, <em>optional</em>, default to 0.0) &#x2014;
The dropout ratio after computing the attention scores.`,name:"attention_dropout"},{anchor:"transformers.PersimmonConfig.partial_rotary_factor",description:`<strong>partial_rotary_factor</strong> (<code>float</code>, <em>optional</em>, default to 0.5) &#x2014;
Percentage of the query and keys which will have rotary embedding.</p>
<p>Example &#x2014;`,name:"partial_rotary_factor"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/persimmon/configuration_persimmon.py#L28"}}),A=new Oo({props:{anchor:"transformers.PersimmonConfig.example",$$slots:{default:[nn]},$$scope:{ctx:x}}}),ve=new Oe({}),be=new ze({props:{name:"class transformers.PersimmonModel",anchor:"transformers.PersimmonModel",parameters:[{name:"config",val:": PersimmonConfig"}],parametersDescription:[{anchor:"transformers.PersimmonModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/persimmon#transformers.PersimmonConfig">PersimmonConfig</a>) &#x2014;
Model configuration class with all the parameters of the model. Initializing with a config file does not
load the weights associated with the model, only the configuration. Check out the
<a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.
config &#x2014; PersimmonConfig`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/persimmon/modeling_persimmon.py#L546"}}),ye=new ze({props:{name:"forward",anchor:"transformers.PersimmonModel.forward",parameters:[{name:"input_ids",val:": LongTensor = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"past_key_values",val:": typing.Optional[typing.List[torch.FloatTensor]] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PersimmonModel.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.34.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.34.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.34.0/en/model_doc/vits#transformers.VitsTokenizer.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.PersimmonModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a></p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.34.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.34.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.34.0/en/model_doc/vits#transformers.VitsTokenizer.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p>If <code>past_key_values</code> is used, optionally only the last <code>decoder_input_ids</code> have to be input (see
<code>past_key_values</code>).</p>
<p>If you want to change padding behavior, you should read <code>modeling_opt._prepare_decoder_attention_mask</code>
and modify to your needs. See diagram 1 in <a href="https://arxiv.org/abs/1910.13461" rel="nofollow">the paper</a> for more
information on the default strategy.</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"attention_mask"},{anchor:"transformers.PersimmonModel.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.n_positions - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.PersimmonModel.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>, returned when <code>use_cache=True</code> is passed or when <code>config.use_cache=True</code>) &#x2014;
Tuple of <code>tuple(torch.FloatTensor)</code> of length <code>config.n_layers</code>, with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, sequence_length, embed_size_per_head)</code>) and 2 additional tensors of shape
<code>(batch_size, num_heads, encoder_sequence_length, embed_size_per_head)</code>.</p>
<p>Contains pre-computed hidden-states (key and values in the self-attention blocks and in the cross-attention
blocks) that can be used (see <code>past_key_values</code> input) to speed up sequential decoding.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don&#x2019;t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>decoder_input_ids</code> of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.PersimmonModel.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.PersimmonModel.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>).`,name:"use_cache"},{anchor:"transformers.PersimmonModel.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.PersimmonModel.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.PersimmonModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/persimmon/modeling_persimmon.py#L598"}}),E=new Ht({props:{$$slots:{default:[sn]},$$scope:{ctx:x}}}),we=new Oe({}),Te=new ze({props:{name:"class transformers.PersimmonForCausalLM",anchor:"transformers.PersimmonForCausalLM",parameters:[{name:"config",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/persimmon/modeling_persimmon.py#L726"}}),ke=new ze({props:{name:"forward",anchor:"transformers.PersimmonForCausalLM.forward",parameters:[{name:"input_ids",val:": LongTensor = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"past_key_values",val:": typing.Optional[typing.List[torch.FloatTensor]] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PersimmonForCausalLM.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.34.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.34.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.34.0/en/model_doc/vits#transformers.VitsTokenizer.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.PersimmonForCausalLM.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a></p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.34.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.34.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.34.0/en/model_doc/vits#transformers.VitsTokenizer.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p>If <code>past_key_values</code> is used, optionally only the last <code>decoder_input_ids</code> have to be input (see
<code>past_key_values</code>).</p>
<p>If you want to change padding behavior, you should read <code>modeling_opt._prepare_decoder_attention_mask</code>
and modify to your needs. See diagram 1 in <a href="https://arxiv.org/abs/1910.13461" rel="nofollow">the paper</a> for more
information on the default strategy.</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"attention_mask"},{anchor:"transformers.PersimmonForCausalLM.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.n_positions - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.PersimmonForCausalLM.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>, returned when <code>use_cache=True</code> is passed or when <code>config.use_cache=True</code>) &#x2014;
Tuple of <code>tuple(torch.FloatTensor)</code> of length <code>config.n_layers</code>, with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, sequence_length, embed_size_per_head)</code>) and 2 additional tensors of shape
<code>(batch_size, num_heads, encoder_sequence_length, embed_size_per_head)</code>.</p>
<p>Contains pre-computed hidden-states (key and values in the self-attention blocks and in the cross-attention
blocks) that can be used (see <code>past_key_values</code> input) to speed up sequential decoding.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don&#x2019;t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>decoder_input_ids</code> of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.PersimmonForCausalLM.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.PersimmonForCausalLM.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>).`,name:"use_cache"},{anchor:"transformers.PersimmonForCausalLM.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.PersimmonForCausalLM.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.PersimmonForCausalLM.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.</p>
<p>Args &#x2014;
labels (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>):
Labels for computing the masked language modeling loss. Indices should either be in <code>[0, ..., config.vocab_size]</code> or -100 (see <code>input_ids</code> docstring). Tokens with indices set to <code>-100</code> are ignored
(masked), the loss is only computed for the tokens with labels in <code>[0, ..., config.vocab_size]</code>.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/persimmon/modeling_persimmon.py#L763",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithPast"
>transformers.modeling_outputs.CausalLMOutputWithPast</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.34.0/en/model_doc/persimmon#transformers.PersimmonConfig"
>PersimmonConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) — Language modeling loss (for next-token prediction).</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) — Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).</p>
</li>
<li>
<p><strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>, returned when <code>use_cache=True</code> is passed or when <code>config.use_cache=True</code>) — Tuple of <code>tuple(torch.FloatTensor)</code> of length <code>config.n_layers</code>, with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, sequence_length, embed_size_per_head)</code>)</p>
<p>Contains pre-computed hidden-states (key and values in the self-attention blocks) that can be used (see
<code>past_key_values</code> input) to speed up sequential decoding.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithPast"
>transformers.modeling_outputs.CausalLMOutputWithPast</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),O=new Ht({props:{$$slots:{default:[rn]},$$scope:{ctx:x}}}),D=new Oo({props:{anchor:"transformers.PersimmonForCausalLM.forward.example",$$slots:{default:[an]},$$scope:{ctx:x}}}),$e=new Oe({}),Pe=new ze({props:{name:"class transformers.PersimmonForSequenceClassification",anchor:"transformers.PersimmonForSequenceClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.PersimmonForSequenceClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.34.0/en/model_doc/persimmon#transformers.PersimmonConfig">PersimmonConfig</a>) &#x2014;
Model configuration class with all the parameters of the model. Initializing with a config file does not
load the weights associated with the model, only the configuration. Check out the
<a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/persimmon/modeling_persimmon.py#L908"}}),Me=new ze({props:{name:"forward",anchor:"transformers.PersimmonForSequenceClassification.forward",parameters:[{name:"input_ids",val:": LongTensor = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"past_key_values",val:": typing.Optional[typing.List[torch.FloatTensor]] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PersimmonForSequenceClassification.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.34.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.34.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.34.0/en/model_doc/vits#transformers.VitsTokenizer.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.PersimmonForSequenceClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a></p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.34.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.34.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.34.0/en/model_doc/vits#transformers.VitsTokenizer.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p>If <code>past_key_values</code> is used, optionally only the last <code>decoder_input_ids</code> have to be input (see
<code>past_key_values</code>).</p>
<p>If you want to change padding behavior, you should read <code>modeling_opt._prepare_decoder_attention_mask</code>
and modify to your needs. See diagram 1 in <a href="https://arxiv.org/abs/1910.13461" rel="nofollow">the paper</a> for more
information on the default strategy.</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"attention_mask"},{anchor:"transformers.PersimmonForSequenceClassification.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.n_positions - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.PersimmonForSequenceClassification.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>, returned when <code>use_cache=True</code> is passed or when <code>config.use_cache=True</code>) &#x2014;
Tuple of <code>tuple(torch.FloatTensor)</code> of length <code>config.n_layers</code>, with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, sequence_length, embed_size_per_head)</code>) and 2 additional tensors of shape
<code>(batch_size, num_heads, encoder_sequence_length, embed_size_per_head)</code>.</p>
<p>Contains pre-computed hidden-states (key and values in the self-attention blocks and in the cross-attention
blocks) that can be used (see <code>past_key_values</code> input) to speed up sequential decoding.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don&#x2019;t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>decoder_input_ids</code> of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.PersimmonForSequenceClassification.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.PersimmonForSequenceClassification.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>).`,name:"use_cache"},{anchor:"transformers.PersimmonForSequenceClassification.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.PersimmonForSequenceClassification.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.PersimmonForSequenceClassification.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PersimmonForSequenceClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the sequence classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/persimmon/modeling_persimmon.py#L924"}}),K=new Ht({props:{$$slots:{default:[dn]},$$scope:{ctx:x}}}),{c(){i=n("meta"),g=d(),c=n("p"),h=d(),$=n("h1"),u=n("a"),P=n("span"),_(q.$$.fragment),M=d(),F=n("span"),F.textContent=ho,lt=d(),Z=n("h2"),V=n("a"),Qe=n("span"),_(oe.$$.fragment),Ut=d(),Je=n("span"),Je.textContent=uo,ct=d(),ne=n("p"),ne.innerHTML=fo,mt=d(),se=n("p"),se.textContent=go,pt=d(),re=n("p"),re.textContent=_o,ht=d(),ae=n("p"),ae.textContent=vo,ut=d(),_(R.$$.fragment),ft=d(),ie=n("p"),ie.textContent=bo,gt=d(),de=n("ul"),de.innerHTML=yo,_t=d(),_(le.$$.fragment),vt=d(),ce=n("p"),ce.textContent=wo,bt=d(),_(me.$$.fragment),yt=d(),pe=n("p"),pe.textContent=To,wt=d(),_(he.$$.fragment),Tt=d(),ue=n("p"),ue.innerHTML=ko,kt=d(),fe=n("ul"),fe.innerHTML=$o,$t=d(),G=n("h2"),X=n("a"),Ke=n("span"),_(ge.$$.fragment),Nt=d(),Fe=n("span"),Fe.textContent=Po,Pt=d(),J=n("div"),_(_e.$$.fragment),jt=d(),Le=n("p"),Le.innerHTML=Mo,Vt=d(),qe=n("p"),qe.innerHTML=Co,Rt=d(),_(A.$$.fragment),Mt=d(),H=n("h2"),B=n("a"),et=n("span"),_(ve.$$.fragment),Xt=d(),We=n("span"),We.textContent=xo,Ct=d(),C=n("div"),_(be.$$.fragment),At=d(),Ie=n("p"),Ie.innerHTML=zo,Bt=d(),Se=n("p"),Se.innerHTML=Jo,Et=d(),Ze=n("p"),Ze.innerHTML=Fo,Yt=d(),W=n("div"),_(ye.$$.fragment),Ot=d(),Ge=n("p"),Ge.innerHTML=Lo,Dt=d(),_(E.$$.fragment),xt=d(),U=n("h2"),Y=n("a"),tt=n("span"),_(we.$$.fragment),Qt=d(),He=n("span"),He.textContent=qo,zt=d(),N=n("div"),_(Te.$$.fragment),Kt=d(),L=n("div"),_(ke.$$.fragment),eo=d(),Ue=n("p"),Ue.innerHTML=Wo,to=d(),_(O.$$.fragment),oo=d(),_(D.$$.fragment),Jt=d(),j=n("h2"),Q=n("a"),ot=n("span"),_($e.$$.fragment),no=d(),Ne=n("span"),Ne.textContent=Io,Ft=d(),k=n("div"),_(Pe.$$.fragment),so=d(),je=n("p"),je.textContent=So,ro=d(),Ve=n("p"),Ve.innerHTML=Zo,ao=d(),Re=n("p"),Re.innerHTML=Go,io=d(),Xe=n("p"),Xe.innerHTML=Ho,lo=d(),Ae=n("p"),Ae.innerHTML=Uo,co=d(),I=n("div"),_(Me.$$.fragment),mo=d(),Be=n("p"),Be.innerHTML=No,po=d(),_(K.$$.fragment),Lt=d(),nt=n("p"),this.h()},l(e){const o=tn("svelte-1phssyn",document.head);i=s(o,"META",{name:!0,content:!0}),o.forEach(t),g=l(e),c=s(e,"P",{}),f(c).forEach(t),h=l(e),$=s(e,"H1",{class:!0});var Ce=f($);u=s(Ce,"A",{id:!0,class:!0,href:!0});var st=f(u);P=s(st,"SPAN",{});var rt=f(P);v(q.$$.fragment,rt),rt.forEach(t),st.forEach(t),M=l(Ce),F=s(Ce,"SPAN",{"data-svelte-h":!0}),m(F)!=="svelte-1mp97bz"&&(F.textContent=ho),Ce.forEach(t),lt=l(e),Z=s(e,"H2",{class:!0});var xe=f(Z);V=s(xe,"A",{id:!0,class:!0,href:!0});var at=f(V);Qe=s(at,"SPAN",{});var it=f(Qe);v(oe.$$.fragment,it),it.forEach(t),at.forEach(t),Ut=l(xe),Je=s(xe,"SPAN",{"data-svelte-h":!0}),m(Je)!=="svelte-1jsw1pg"&&(Je.textContent=uo),xe.forEach(t),ct=l(e),ne=s(e,"P",{"data-svelte-h":!0}),m(ne)!=="svelte-1dqqllh"&&(ne.innerHTML=fo),mt=l(e),se=s(e,"P",{"data-svelte-h":!0}),m(se)!=="svelte-tohaaf"&&(se.textContent=go),pt=l(e),re=s(e,"P",{"data-svelte-h":!0}),m(re)!=="svelte-gxqz2j"&&(re.textContent=_o),ht=l(e),ae=s(e,"P",{"data-svelte-h":!0}),m(ae)!=="svelte-l2kkzt"&&(ae.textContent=vo),ut=l(e),v(R.$$.fragment,e),ft=l(e),ie=s(e,"P",{"data-svelte-h":!0}),m(ie)!=="svelte-axv494"&&(ie.textContent=bo),gt=l(e),de=s(e,"UL",{"data-svelte-h":!0}),m(de)!=="svelte-g9ue9k"&&(de.innerHTML=yo),_t=l(e),v(le.$$.fragment,e),vt=l(e),ce=s(e,"P",{"data-svelte-h":!0}),m(ce)!=="svelte-1cs7acv"&&(ce.textContent=wo),bt=l(e),v(me.$$.fragment,e),yt=l(e),pe=s(e,"P",{"data-svelte-h":!0}),m(pe)!=="svelte-nia5es"&&(pe.textContent=To),wt=l(e),v(he.$$.fragment,e),Tt=l(e),ue=s(e,"P",{"data-svelte-h":!0}),m(ue)!=="svelte-1kv44aj"&&(ue.innerHTML=ko),kt=l(e),fe=s(e,"UL",{"data-svelte-h":!0}),m(fe)!=="svelte-yk84b4"&&(fe.innerHTML=$o),$t=l(e),G=s(e,"H2",{class:!0});var Wt=f(G);X=s(Wt,"A",{id:!0,class:!0,href:!0});var jo=f(X);Ke=s(jo,"SPAN",{});var Vo=f(Ke);v(ge.$$.fragment,Vo),Vo.forEach(t),jo.forEach(t),Nt=l(Wt),Fe=s(Wt,"SPAN",{"data-svelte-h":!0}),m(Fe)!=="svelte-19zpzmx"&&(Fe.textContent=Po),Wt.forEach(t),Pt=l(e),J=s(e,"DIV",{class:!0});var ee=f(J);v(_e.$$.fragment,ee),jt=l(ee),Le=s(ee,"P",{"data-svelte-h":!0}),m(Le)!=="svelte-lmf9va"&&(Le.innerHTML=Mo),Vt=l(ee),qe=s(ee,"P",{"data-svelte-h":!0}),m(qe)!=="svelte-10kqkkl"&&(qe.innerHTML=Co),Rt=l(ee),v(A.$$.fragment,ee),ee.forEach(t),Mt=l(e),H=s(e,"H2",{class:!0});var It=f(H);B=s(It,"A",{id:!0,class:!0,href:!0});var Ro=f(B);et=s(Ro,"SPAN",{});var Xo=f(et);v(ve.$$.fragment,Xo),Xo.forEach(t),Ro.forEach(t),Xt=l(It),We=s(It,"SPAN",{"data-svelte-h":!0}),m(We)!=="svelte-9f7vm2"&&(We.textContent=xo),It.forEach(t),Ct=l(e),C=s(e,"DIV",{class:!0});var S=f(C);v(be.$$.fragment,S),At=l(S),Ie=s(S,"P",{"data-svelte-h":!0}),m(Ie)!=="svelte-17fo9ow"&&(Ie.innerHTML=zo),Bt=l(S),Se=s(S,"P",{"data-svelte-h":!0}),m(Se)!=="svelte-hswkmf"&&(Se.innerHTML=Jo),Et=l(S),Ze=s(S,"P",{"data-svelte-h":!0}),m(Ze)!=="svelte-3gfl0d"&&(Ze.innerHTML=Fo),Yt=l(S),W=s(S,"DIV",{class:!0});var Ee=f(W);v(ye.$$.fragment,Ee),Ot=l(Ee),Ge=s(Ee,"P",{"data-svelte-h":!0}),m(Ge)!=="svelte-5mhqkf"&&(Ge.innerHTML=Lo),Dt=l(Ee),v(E.$$.fragment,Ee),Ee.forEach(t),S.forEach(t),xt=l(e),U=s(e,"H2",{class:!0});var St=f(U);Y=s(St,"A",{id:!0,class:!0,href:!0});var Ao=f(Y);tt=s(Ao,"SPAN",{});var Bo=f(tt);v(we.$$.fragment,Bo),Bo.forEach(t),Ao.forEach(t),Qt=l(St),He=s(St,"SPAN",{"data-svelte-h":!0}),m(He)!=="svelte-1fdqwwq"&&(He.textContent=qo),St.forEach(t),zt=l(e),N=s(e,"DIV",{class:!0});var Zt=f(N);v(Te.$$.fragment,Zt),Kt=l(Zt),L=s(Zt,"DIV",{class:!0});var te=f(L);v(ke.$$.fragment,te),eo=l(te),Ue=s(te,"P",{"data-svelte-h":!0}),m(Ue)!=="svelte-2xzhwz"&&(Ue.innerHTML=Wo),to=l(te),v(O.$$.fragment,te),oo=l(te),v(D.$$.fragment,te),te.forEach(t),Zt.forEach(t),Jt=l(e),j=s(e,"H2",{class:!0});var Gt=f(j);Q=s(Gt,"A",{id:!0,class:!0,href:!0});var Eo=f(Q);ot=s(Eo,"SPAN",{});var Yo=f(ot);v($e.$$.fragment,Yo),Yo.forEach(t),Eo.forEach(t),no=l(Gt),Ne=s(Gt,"SPAN",{"data-svelte-h":!0}),m(Ne)!=="svelte-165dk9z"&&(Ne.textContent=Io),Gt.forEach(t),Ft=l(e),k=s(e,"DIV",{class:!0});var z=f(k);v(Pe.$$.fragment,z),so=l(z),je=s(z,"P",{"data-svelte-h":!0}),m(je)!=="svelte-1oalnz1"&&(je.textContent=So),ro=l(z),Ve=s(z,"P",{"data-svelte-h":!0}),m(Ve)!=="svelte-i5rrj8"&&(Ve.innerHTML=Zo),ao=l(z),Re=s(z,"P",{"data-svelte-h":!0}),m(Re)!=="svelte-10ugs3m"&&(Re.innerHTML=Go),io=l(z),Xe=s(z,"P",{"data-svelte-h":!0}),m(Xe)!=="svelte-hmtw9k"&&(Xe.innerHTML=Ho),lo=l(z),Ae=s(z,"P",{"data-svelte-h":!0}),m(Ae)!=="svelte-hswkmf"&&(Ae.innerHTML=Uo),co=l(z),I=s(z,"DIV",{class:!0});var Ye=f(I);v(Me.$$.fragment,Ye),mo=l(Ye),Be=s(Ye,"P",{"data-svelte-h":!0}),m(Be)!=="svelte-1w4c6pp"&&(Be.innerHTML=No),po=l(Ye),v(K.$$.fragment,Ye),Ye.forEach(t),z.forEach(t),Lt=l(e),nt=s(e,"P",{}),f(nt).forEach(t),this.h()},h(){p(i,"name","hf:doc:metadata"),p(i,"content",JSON.stringify(cn)),p(u,"id","persimmon"),p(u,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(u,"href","#persimmon"),p($,"class","relative group"),p(V,"id","overview"),p(V,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(V,"href","#overview"),p(Z,"class","relative group"),p(X,"id","transformers.PersimmonConfig"),p(X,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(X,"href","#transformers.PersimmonConfig"),p(G,"class","relative group"),p(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(B,"id","transformers.PersimmonModel"),p(B,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(B,"href","#transformers.PersimmonModel"),p(H,"class","relative group"),p(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Y,"id","transformers.PersimmonForCausalLM"),p(Y,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(Y,"href","#transformers.PersimmonForCausalLM"),p(U,"class","relative group"),p(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(Q,"id","transformers.PersimmonForSequenceClassification"),p(Q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(Q,"href","#transformers.PersimmonForSequenceClassification"),p(j,"class","relative group"),p(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(k,"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,o){r(document.head,i),a(e,g,o),a(e,c,o),a(e,h,o),a(e,$,o),r($,u),r(u,P),b(q,P,null),r($,M),r($,F),a(e,lt,o),a(e,Z,o),r(Z,V),r(V,Qe),b(oe,Qe,null),r(Z,Ut),r(Z,Je),a(e,ct,o),a(e,ne,o),a(e,mt,o),a(e,se,o),a(e,pt,o),a(e,re,o),a(e,ht,o),a(e,ae,o),a(e,ut,o),b(R,e,o),a(e,ft,o),a(e,ie,o),a(e,gt,o),a(e,de,o),a(e,_t,o),b(le,e,o),a(e,vt,o),a(e,ce,o),a(e,bt,o),b(me,e,o),a(e,yt,o),a(e,pe,o),a(e,wt,o),b(he,e,o),a(e,Tt,o),a(e,ue,o),a(e,kt,o),a(e,fe,o),a(e,$t,o),a(e,G,o),r(G,X),r(X,Ke),b(ge,Ke,null),r(G,Nt),r(G,Fe),a(e,Pt,o),a(e,J,o),b(_e,J,null),r(J,jt),r(J,Le),r(J,Vt),r(J,qe),r(J,Rt),b(A,J,null),a(e,Mt,o),a(e,H,o),r(H,B),r(B,et),b(ve,et,null),r(H,Xt),r(H,We),a(e,Ct,o),a(e,C,o),b(be,C,null),r(C,At),r(C,Ie),r(C,Bt),r(C,Se),r(C,Et),r(C,Ze),r(C,Yt),r(C,W),b(ye,W,null),r(W,Ot),r(W,Ge),r(W,Dt),b(E,W,null),a(e,xt,o),a(e,U,o),r(U,Y),r(Y,tt),b(we,tt,null),r(U,Qt),r(U,He),a(e,zt,o),a(e,N,o),b(Te,N,null),r(N,Kt),r(N,L),b(ke,L,null),r(L,eo),r(L,Ue),r(L,to),b(O,L,null),r(L,oo),b(D,L,null),a(e,Jt,o),a(e,j,o),r(j,Q),r(Q,ot),b($e,ot,null),r(j,no),r(j,Ne),a(e,Ft,o),a(e,k,o),b(Pe,k,null),r(k,so),r(k,je),r(k,ro),r(k,Ve),r(k,ao),r(k,Re),r(k,io),r(k,Xe),r(k,lo),r(k,Ae),r(k,co),r(k,I),b(Me,I,null),r(I,mo),r(I,Be),r(I,po),b(K,I,null),a(e,Lt,o),a(e,nt,o),qt=!0},p(e,[o]){const Ce={};o&2&&(Ce.$$scope={dirty:o,ctx:e}),R.$set(Ce);const st={};o&2&&(st.$$scope={dirty:o,ctx:e}),A.$set(st);const rt={};o&2&&(rt.$$scope={dirty:o,ctx:e}),E.$set(rt);const xe={};o&2&&(xe.$$scope={dirty:o,ctx:e}),O.$set(xe);const at={};o&2&&(at.$$scope={dirty:o,ctx:e}),D.$set(at);const it={};o&2&&(it.$$scope={dirty:o,ctx:e}),K.$set(it)},i(e){qt||(y(q.$$.fragment,e),y(oe.$$.fragment,e),y(R.$$.fragment,e),y(le.$$.fragment,e),y(me.$$.fragment,e),y(he.$$.fragment,e),y(ge.$$.fragment,e),y(_e.$$.fragment,e),y(A.$$.fragment,e),y(ve.$$.fragment,e),y(be.$$.fragment,e),y(ye.$$.fragment,e),y(E.$$.fragment,e),y(we.$$.fragment,e),y(Te.$$.fragment,e),y(ke.$$.fragment,e),y(O.$$.fragment,e),y(D.$$.fragment,e),y($e.$$.fragment,e),y(Pe.$$.fragment,e),y(Me.$$.fragment,e),y(K.$$.fragment,e),qt=!0)},o(e){w(q.$$.fragment,e),w(oe.$$.fragment,e),w(R.$$.fragment,e),w(le.$$.fragment,e),w(me.$$.fragment,e),w(he.$$.fragment,e),w(ge.$$.fragment,e),w(_e.$$.fragment,e),w(A.$$.fragment,e),w(ve.$$.fragment,e),w(be.$$.fragment,e),w(ye.$$.fragment,e),w(E.$$.fragment,e),w(we.$$.fragment,e),w(Te.$$.fragment,e),w(ke.$$.fragment,e),w(O.$$.fragment,e),w(D.$$.fragment,e),w($e.$$.fragment,e),w(Pe.$$.fragment,e),w(Me.$$.fragment,e),w(K.$$.fragment,e),qt=!1},d(e){e&&(t(g),t(c),t(h),t($),t(lt),t(Z),t(ct),t(ne),t(mt),t(se),t(pt),t(re),t(ht),t(ae),t(ut),t(ft),t(ie),t(gt),t(de),t(_t),t(vt),t(ce),t(bt),t(yt),t(pe),t(wt),t(Tt),t(ue),t(kt),t(fe),t($t),t(G),t(Pt),t(J),t(Mt),t(H),t(Ct),t(C),t(xt),t(U),t(zt),t(N),t(Jt),t(j),t(Ft),t(k),t(Lt),t(nt)),t(i),T(q),T(oe),T(R,e),T(le,e),T(me,e),T(he,e),T(ge),T(_e),T(A),T(ve),T(be),T(ye),T(E),T(we),T(Te),T(ke),T(O),T(D),T($e),T(Pe),T(Me),T(K)}}}const cn={local:"persimmon",sections:[{local:"overview",title:"Overview"},{local:"transformers.PersimmonConfig",title:"PersimmonConfig"},{local:"transformers.PersimmonModel",title:"PersimmonModel"},{local:"transformers.PersimmonForCausalLM",title:"PersimmonForCausalLM"},{local:"transformers.PersimmonForSequenceClassification",title:"PersimmonForSequenceClassification"}],title:"Persimmon"};function mn(x){return Qo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class bn extends Ko{constructor(i){super(),en(this,i,mn,ln,Do,{})}}export{bn as component};
