import{s as Qe,o as Xe,n as ke}from"../chunks/scheduler.25b97de1.js";import{S as Ye,i as Ke,g as d,s,r as u,A as eo,h as c,f as n,c as r,j as X,u as f,x as T,k as Y,y as l,a as i,v as g,d as _,t as b,w as y}from"../chunks/index.d9030fc9.js";import{T as Re}from"../chunks/Tip.baa67368.js";import{D as ie}from"../chunks/Docstring.ffac8efa.js";import{C as De}from"../chunks/CodeBlock.e6cd0d95.js";import{E as Ve}from"../chunks/ExampleCodeBlock.22dfe688.js";import{H as le,E as oo}from"../chunks/EditOnGithub.91d95064.js";function to(x){let t,p;return t=new De({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyME9sbW8yTW9kZWwlMkMlMjBPbG1vMkNvbmZpZyUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBPbG1vMiUyMDdCJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyME9sbW8yQ29uZmlnKCklMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwbW9kZWwlMjBmcm9tJTIwdGhlJTIwT2xtbzIlMjA3QiUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQW1vZGVsJTIwJTNEJTIwT2xtbzJNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> Olmo2Model, Olmo2Config

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Olmo2 7B style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = Olmo2Config()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model from the Olmo2 7B style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = Olmo2Model(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`,wrap:!1}}),{c(){u(t.$$.fragment)},l(a){f(t.$$.fragment,a)},m(a,h){g(t,a,h),p=!0},p:ke,i(a){p||(_(t.$$.fragment,a),p=!0)},o(a){b(t.$$.fragment,a),p=!1},d(a){y(t,a)}}}function no(x){let t,p=`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(){t=d("p"),t.innerHTML=p},l(a){t=c(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-fincs2"&&(t.innerHTML=p)},m(a,h){i(a,t,h)},p:ke,d(a){a&&n(t)}}}function ao(x){let t,p=`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(){t=d("p"),t.innerHTML=p},l(a){t=c(a,"P",{"data-svelte-h":!0}),T(t)!=="svelte-fincs2"&&(t.innerHTML=p)},m(a,h){i(a,t,h)},p:ke,d(a){a&&n(t)}}}function so(x){let t,p="Example:",a,h,M;return h=new De({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBPbG1vMkZvckNhdXNhbExNJTBBJTBBbW9kZWwlMjAlM0QlMjBPbG1vMkZvckNhdXNhbExNLmZyb21fcHJldHJhaW5lZCglMjJhbGxlbmFpJTJGT2xtbzItMUItaGYlMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYWxsZW5haSUyRk9sbW8yLTFCLWhmJTIyKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMkhleSUyQyUyMGFyZSUyMHlvdSUyMGNvbnNjaW91cyUzRiUyMENhbiUyMHlvdSUyMHRhbGslMjB0byUyMG1lJTNGJTIyJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKHByb21wdCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBJTIzJTIwR2VuZXJhdGUlMEFnZW5lcmF0ZV9pZHMlMjAlM0QlMjBtb2RlbC5nZW5lcmF0ZShpbnB1dHMuaW5wdXRfaWRzJTJDJTIwbWF4X2xlbmd0aCUzRDMwKSUwQXRva2VuaXplci5iYXRjaF9kZWNvZGUoZ2VuZXJhdGVfaWRzJTJDJTIwc2tpcF9zcGVjaWFsX3Rva2VucyUzRFRydWUlMkMlMjBjbGVhbl91cF90b2tlbml6YXRpb25fc3BhY2VzJTNERmFsc2UpJTVCMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, Olmo2ForCausalLM

<span class="hljs-meta">&gt;&gt;&gt; </span>model = Olmo2ForCausalLM.from_pretrained(<span class="hljs-string">&quot;allenai/Olmo2-1B-hf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;allenai/Olmo2-1B-hf&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;Hey, are you conscious? Can you talk to me?&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;Hey, are you conscious? Can you talk to me?\\nI’m not sure if you’re conscious of this, but I’m&#x27;</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=p,a=s(),u(h.$$.fragment)},l(m){t=c(m,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=p),a=r(m),f(h.$$.fragment,m)},m(m,O){i(m,t,O),i(m,a,O),g(h,m,O),M=!0},p:ke,i(m){M||(_(h.$$.fragment,m),M=!0)},o(m){b(h.$$.fragment,m),M=!1},d(m){m&&(n(t),n(a)),y(h,m)}}}function ro(x){let t,p,a,h,M,m,O,de,q,Ue=`The OLMo2 model is the successor of the OLMo model, which was proposed in
<a href="https://arxiv.org/abs/2402.00838" rel="nofollow">OLMo: Accelerating the Science of Language Models</a>.`,ce,J,qe="The architectural changes from the original OLMo model to this model are:",me,N,Je="<li>RMSNorm is used instead of standard layer norm.</li> <li>Norm is applied to attention queries and keys.</li> <li>Norm is applied after attention/feedforward layers rather than before.</li>",pe,B,Ne=`This model was contributed by <a href="https://huggingface.co/shanearora" rel="nofollow">shanearora</a>.
The original code can be found <a href="https://github.com/allenai/OLMo/tree/main/olmo" rel="nofollow">here</a>.`,he,H,ue,k,Z,we,K,Be=`This is the configuration class to store the configuration of a <a href="/docs/transformers/main/en/model_doc/olmo2#transformers.Olmo2Model">Olmo2Model</a>. It is used to instantiate an OLMo2
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/allenai/Olmo2-7B-1124-hf" rel="nofollow">allenai/Olmo2-7B-1124-hf</a>.`,Me,ee,He=`Configuration objects inherit from <a href="/docs/transformers/main/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/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,$e,I,fe,G,ge,v,E,Oe,oe,Ze=`The bare Olmo2 Model outputting raw hidden-states without any specific head on top.
This model inherits from <a href="/docs/transformers/main/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.)`,Ce,te,Ge=`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.`,xe,ne,Ee="Transformer decoder consisting of <em>config.num_hidden_layers</em> layers. Each layer is a <code>Olmo2DecoderLayer</code>",ze,z,A,Le,ae,Ae='The <a href="/docs/transformers/main/en/model_doc/olmo2#transformers.Olmo2Model">Olmo2Model</a> forward method, overrides the <code>__call__</code> special method.',Fe,j,_e,S,be,L,R,Ie,$,V,je,se,Se='The <a href="/docs/transformers/main/en/model_doc/olmo2#transformers.Olmo2ForCausalLM">Olmo2ForCausalLM</a> forward method, overrides the <code>__call__</code> special method.',We,W,Pe,P,ye,D,ve,re,Te;return M=new le({props:{title:"OLMo2",local:"olmo2",headingTag:"h1"}}),O=new le({props:{title:"Overview",local:"overview",headingTag:"h2"}}),H=new le({props:{title:"Olmo2Config",local:"transformers.Olmo2Config",headingTag:"h2"}}),Z=new ie({props:{name:"class transformers.Olmo2Config",anchor:"transformers.Olmo2Config",parameters:[{name:"vocab_size",val:" = 50304"},{name:"hidden_size",val:" = 4096"},{name:"intermediate_size",val:" = 11008"},{name:"num_hidden_layers",val:" = 32"},{name:"num_attention_heads",val:" = 32"},{name:"num_key_value_heads",val:" = None"},{name:"hidden_act",val:" = 'silu'"},{name:"max_position_embeddings",val:" = 2048"},{name:"initializer_range",val:" = 0.02"},{name:"use_cache",val:" = True"},{name:"pad_token_id",val:" = 1"},{name:"bos_token_id",val:" = None"},{name:"eos_token_id",val:" = 50279"},{name:"tie_word_embeddings",val:" = False"},{name:"rope_theta",val:" = 10000.0"},{name:"rope_scaling",val:" = None"},{name:"attention_bias",val:" = False"},{name:"attention_dropout",val:" = 0.0"},{name:"rms_norm_eps",val:" = 1e-05"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Olmo2Config.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 50304) &#x2014;
Vocabulary size of the Olmo2 model. Defines the number of different tokens that can be represented by the
<code>inputs_ids</code> passed when calling <a href="/docs/transformers/main/en/model_doc/olmo2#transformers.Olmo2Model">Olmo2Model</a>`,name:"vocab_size"},{anchor:"transformers.Olmo2Config.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.Olmo2Config.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 11008) &#x2014;
Dimension of the MLP representations.`,name:"intermediate_size"},{anchor:"transformers.Olmo2Config.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
Number of hidden layers in the Transformer decoder.`,name:"num_hidden_layers"},{anchor:"transformers.Olmo2Config.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
Number of attention heads for each attention layer in the Transformer decoder.`,name:"num_attention_heads"},{anchor:"transformers.Olmo2Config.num_key_value_heads",description:`<strong>num_key_value_heads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
This is the number of key_value heads that should be used to implement Grouped Query Attention. If
<code>num_key_value_heads=num_attention_heads</code>, the model will use Multi Head Attention (MHA), if
<code>num_key_value_heads=1</code> the model will use Multi Query Attention (MQA) otherwise GQA is used. When
converting a multi-head checkpoint to a GQA checkpoint, each group key and value head should be constructed
by meanpooling all the original heads within that group. For more details checkout <a href="https://arxiv.org/pdf/2305.13245.pdf" rel="nofollow">this
paper</a>. If it is not specified, will default to
<code>num_attention_heads</code>.`,name:"num_key_value_heads"},{anchor:"transformers.Olmo2Config.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;silu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the decoder.`,name:"hidden_act"},{anchor:"transformers.Olmo2Config.max_position_embeddings",description:`<strong>max_position_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 2048) &#x2014;
The maximum sequence length that this model might ever be used with.`,name:"max_position_embeddings"},{anchor:"transformers.Olmo2Config.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.Olmo2Config.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.Olmo2Config.pad_token_id",description:`<strong>pad_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Padding token id.`,name:"pad_token_id"},{anchor:"transformers.Olmo2Config.bos_token_id",description:`<strong>bos_token_id</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Beginning of stream token id.`,name:"bos_token_id"},{anchor:"transformers.Olmo2Config.eos_token_id",description:`<strong>eos_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 50279) &#x2014;
End of stream token id.`,name:"eos_token_id"},{anchor:"transformers.Olmo2Config.tie_word_embeddings",description:`<strong>tie_word_embeddings</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to tie weight embeddings`,name:"tie_word_embeddings"},{anchor:"transformers.Olmo2Config.rope_theta",description:`<strong>rope_theta</strong> (<code>float</code>, <em>optional</em>, defaults to 10000.0) &#x2014;
The base period of the RoPE embeddings.`,name:"rope_theta"},{anchor:"transformers.Olmo2Config.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 a 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/LocalLLaMA/comments/14mrgpr/dynamically_scaled_rope_further_increases/" rel="nofollow">https://www.reddit.com/r/LocalLLaMA/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.Olmo2Config.attention_bias",description:`<strong>attention_bias</strong> (<code>bool</code>, defaults to <code>False</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use a bias in the query, key, value and output projection layers during self-attention.`,name:"attention_bias"},{anchor:"transformers.Olmo2Config.attention_dropout",description:`<strong>attention_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_dropout"},{anchor:"transformers.Olmo2Config.rms_norm_eps",description:`<strong>rms_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-05) &#x2014;
The epsilon used by the rms normalization layers.`,name:"rms_norm_eps"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/olmo2/configuration_olmo2.py#L11"}}),I=new Ve({props:{anchor:"transformers.Olmo2Config.example",$$slots:{default:[to]},$$scope:{ctx:x}}}),G=new le({props:{title:"Olmo2Model",local:"transformers.Olmo2Model",headingTag:"h2"}}),E=new ie({props:{name:"class transformers.Olmo2Model",anchor:"transformers.Olmo2Model",parameters:[{name:"config",val:": Olmo2Config"}],parametersDescription:[{anchor:"transformers.Olmo2Model.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/olmo2#transformers.Olmo2Config">Olmo2Config</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/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.Olmo2Model.config",description:"<strong>config</strong> &#x2014; Olmo2Config",name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/olmo2/modeling_olmo2.py#L692"}}),A=new ie({props:{name:"forward",anchor:"transformers.Olmo2Model.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.Union[transformers.cache_utils.Cache, typing.List[torch.FloatTensor], NoneType] = 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"},{name:"cache_position",val:": typing.Optional[torch.LongTensor] = None"}],parametersDescription:[{anchor:"transformers.Olmo2Model.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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__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.Olmo2Model.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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p>If <code>past_key_values</code> is used, optionally only the last <code>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.Olmo2Model.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.Olmo2Model.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>Cache</code> or <code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>) &#x2014;
Pre-computed hidden-states (key and values in the self-attention blocks and in the cross-attention
blocks) that can be used to speed up sequential decoding. This typically consists in the <code>past_key_values</code>
returned by the model at a previous stage of decoding, when <code>use_cache=True</code> or <code>config.use_cache=True</code>.</p>
<p>Two formats are allowed:</p>
<ul>
<li>a <a href="/docs/transformers/main/en/internal/generation_utils#transformers.Cache">Cache</a> instance, see our
<a href="https://huggingface.co/docs/transformers/en/kv_cache" rel="nofollow">kv cache guide</a>;</li>
<li>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>). This is also known as the legacy
cache format.</li>
</ul>
<p>The model will output the same cache format that is fed as input. If no <code>past_key_values</code> are passed, the
legacy cache format will be returned.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>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>input_ids</code>
of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.Olmo2Model.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.Olmo2Model.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.Olmo2Model.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.Olmo2Model.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.Olmo2Model.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.Olmo2Model.forward.cache_position",description:`<strong>cache_position</strong> (<code>torch.LongTensor</code> of shape <code>(sequence_length)</code>, <em>optional</em>) &#x2014;
Indices depicting the position of the input sequence tokens in the sequence. Contrarily to <code>position_ids</code>,
this tensor is not affected by padding. It is used to update the cache in the correct position and to infer
the complete sequence length.`,name:"cache_position"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/olmo2/modeling_olmo2.py#L725"}}),j=new Re({props:{$$slots:{default:[no]},$$scope:{ctx:x}}}),S=new le({props:{title:"Olmo2ForCausalLM",local:"transformers.Olmo2ForCausalLM",headingTag:"h2"}}),R=new ie({props:{name:"class transformers.Olmo2ForCausalLM",anchor:"transformers.Olmo2ForCausalLM",parameters:[{name:"config",val:": Olmo2Config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/olmo2/modeling_olmo2.py#L970"}}),V=new ie({props:{name:"forward",anchor:"transformers.Olmo2ForCausalLM.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"},{name:"cache_position",val:": typing.Optional[torch.LongTensor] = None"},{name:"num_logits_to_keep",val:": int = 0"},{name:"**loss_kwargs",val:""}],parametersDescription:[{anchor:"transformers.Olmo2ForCausalLM.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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__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.Olmo2ForCausalLM.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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p>If <code>past_key_values</code> is used, optionally only the last <code>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.Olmo2ForCausalLM.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.Olmo2ForCausalLM.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>Cache</code> or <code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>) &#x2014;
Pre-computed hidden-states (key and values in the self-attention blocks and in the cross-attention
blocks) that can be used to speed up sequential decoding. This typically consists in the <code>past_key_values</code>
returned by the model at a previous stage of decoding, when <code>use_cache=True</code> or <code>config.use_cache=True</code>.</p>
<p>Two formats are allowed:</p>
<ul>
<li>a <a href="/docs/transformers/main/en/internal/generation_utils#transformers.Cache">Cache</a> instance, see our
<a href="https://huggingface.co/docs/transformers/en/kv_cache" rel="nofollow">kv cache guide</a>;</li>
<li>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>). This is also known as the legacy
cache format.</li>
</ul>
<p>The model will output the same cache format that is fed as input. If no <code>past_key_values</code> are passed, the
legacy cache format will be returned.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>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>input_ids</code>
of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.Olmo2ForCausalLM.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.Olmo2ForCausalLM.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.Olmo2ForCausalLM.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.Olmo2ForCausalLM.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.Olmo2ForCausalLM.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.Olmo2ForCausalLM.forward.cache_position",description:`<strong>cache_position</strong> (<code>torch.LongTensor</code> of shape <code>(sequence_length)</code>, <em>optional</em>) &#x2014;
Indices depicting the position of the input sequence tokens in the sequence. Contrarily to <code>position_ids</code>,
this tensor is not affected by padding. It is used to update the cache in the correct position and to infer
the complete sequence length.`,name:"cache_position"},{anchor:"transformers.Olmo2ForCausalLM.forward.Args",description:`<strong>Args</strong> &#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>.</p>
<p>num_logits_to_keep (<code>int</code>, <em>optional</em>):
Calculate logits for the last <code>num_logits_to_keep</code> tokens. If <code>0</code>, calculate logits for all
<code>input_ids</code> (special case). Only last token logits are needed for generation, and calculating them only for that
token can save memory, which becomes pretty significant for long sequences or large vocabulary size.`,name:"Args"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/olmo2/modeling_olmo2.py#L1000",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/main/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/main/en/model_doc/olmo2#transformers.Olmo2Config"
>Olmo2Config</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:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithPast"
>transformers.modeling_outputs.CausalLMOutputWithPast</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),W=new Re({props:{$$slots:{default:[ao]},$$scope:{ctx:x}}}),P=new Ve({props:{anchor:"transformers.Olmo2ForCausalLM.forward.example",$$slots:{default:[so]},$$scope:{ctx:x}}}),D=new oo({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/olmo2.md"}}),{c(){t=d("meta"),p=s(),a=d("p"),h=s(),u(M.$$.fragment),m=s(),u(O.$$.fragment),de=s(),q=d("p"),q.innerHTML=Ue,ce=s(),J=d("p"),J.textContent=qe,me=s(),N=d("ul"),N.innerHTML=Je,pe=s(),B=d("p"),B.innerHTML=Ne,he=s(),u(H.$$.fragment),ue=s(),k=d("div"),u(Z.$$.fragment),we=s(),K=d("p"),K.innerHTML=Be,Me=s(),ee=d("p"),ee.innerHTML=He,$e=s(),u(I.$$.fragment),fe=s(),u(G.$$.fragment),ge=s(),v=d("div"),u(E.$$.fragment),Oe=s(),oe=d("p"),oe.innerHTML=Ze,Ce=s(),te=d("p"),te.innerHTML=Ge,xe=s(),ne=d("p"),ne.innerHTML=Ee,ze=s(),z=d("div"),u(A.$$.fragment),Le=s(),ae=d("p"),ae.innerHTML=Ae,Fe=s(),u(j.$$.fragment),_e=s(),u(S.$$.fragment),be=s(),L=d("div"),u(R.$$.fragment),Ie=s(),$=d("div"),u(V.$$.fragment),je=s(),se=d("p"),se.innerHTML=Se,We=s(),u(W.$$.fragment),Pe=s(),u(P.$$.fragment),ye=s(),u(D.$$.fragment),ve=s(),re=d("p"),this.h()},l(e){const o=eo("svelte-u9bgzb",document.head);t=c(o,"META",{name:!0,content:!0}),o.forEach(n),p=r(e),a=c(e,"P",{}),X(a).forEach(n),h=r(e),f(M.$$.fragment,e),m=r(e),f(O.$$.fragment,e),de=r(e),q=c(e,"P",{"data-svelte-h":!0}),T(q)!=="svelte-13a0m2t"&&(q.innerHTML=Ue),ce=r(e),J=c(e,"P",{"data-svelte-h":!0}),T(J)!=="svelte-80pzkv"&&(J.textContent=qe),me=r(e),N=c(e,"UL",{"data-svelte-h":!0}),T(N)!=="svelte-1rgir77"&&(N.innerHTML=Je),pe=r(e),B=c(e,"P",{"data-svelte-h":!0}),T(B)!=="svelte-1kmdpvx"&&(B.innerHTML=Ne),he=r(e),f(H.$$.fragment,e),ue=r(e),k=c(e,"DIV",{class:!0});var C=X(k);f(Z.$$.fragment,C),we=r(C),K=c(C,"P",{"data-svelte-h":!0}),T(K)!=="svelte-s59hgu"&&(K.innerHTML=Be),Me=r(C),ee=c(C,"P",{"data-svelte-h":!0}),T(ee)!=="svelte-o55m63"&&(ee.innerHTML=He),$e=r(C),f(I.$$.fragment,C),C.forEach(n),fe=r(e),f(G.$$.fragment,e),ge=r(e),v=c(e,"DIV",{class:!0});var w=X(v);f(E.$$.fragment,w),Oe=r(w),oe=c(w,"P",{"data-svelte-h":!0}),T(oe)!=="svelte-124425h"&&(oe.innerHTML=Ze),Ce=r(w),te=c(w,"P",{"data-svelte-h":!0}),T(te)!=="svelte-hswkmf"&&(te.innerHTML=Ge),xe=r(w),ne=c(w,"P",{"data-svelte-h":!0}),T(ne)!=="svelte-170zqde"&&(ne.innerHTML=Ee),ze=r(w),z=c(w,"DIV",{class:!0});var F=X(z);f(A.$$.fragment,F),Le=r(F),ae=c(F,"P",{"data-svelte-h":!0}),T(ae)!=="svelte-1vnoeqw"&&(ae.innerHTML=Ae),Fe=r(F),f(j.$$.fragment,F),F.forEach(n),w.forEach(n),_e=r(e),f(S.$$.fragment,e),be=r(e),L=c(e,"DIV",{class:!0});var Q=X(L);f(R.$$.fragment,Q),Ie=r(Q),$=c(Q,"DIV",{class:!0});var U=X($);f(V.$$.fragment,U),je=r(U),se=c(U,"P",{"data-svelte-h":!0}),T(se)!=="svelte-1xja7fs"&&(se.innerHTML=Se),We=r(U),f(W.$$.fragment,U),Pe=r(U),f(P.$$.fragment,U),U.forEach(n),Q.forEach(n),ye=r(e),f(D.$$.fragment,e),ve=r(e),re=c(e,"P",{}),X(re).forEach(n),this.h()},h(){Y(t,"name","hf:doc:metadata"),Y(t,"content",io),Y(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Y(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Y(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Y($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Y(L,"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){l(document.head,t),i(e,p,o),i(e,a,o),i(e,h,o),g(M,e,o),i(e,m,o),g(O,e,o),i(e,de,o),i(e,q,o),i(e,ce,o),i(e,J,o),i(e,me,o),i(e,N,o),i(e,pe,o),i(e,B,o),i(e,he,o),g(H,e,o),i(e,ue,o),i(e,k,o),g(Z,k,null),l(k,we),l(k,K),l(k,Me),l(k,ee),l(k,$e),g(I,k,null),i(e,fe,o),g(G,e,o),i(e,ge,o),i(e,v,o),g(E,v,null),l(v,Oe),l(v,oe),l(v,Ce),l(v,te),l(v,xe),l(v,ne),l(v,ze),l(v,z),g(A,z,null),l(z,Le),l(z,ae),l(z,Fe),g(j,z,null),i(e,_e,o),g(S,e,o),i(e,be,o),i(e,L,o),g(R,L,null),l(L,Ie),l(L,$),g(V,$,null),l($,je),l($,se),l($,We),g(W,$,null),l($,Pe),g(P,$,null),i(e,ye,o),g(D,e,o),i(e,ve,o),i(e,re,o),Te=!0},p(e,[o]){const C={};o&2&&(C.$$scope={dirty:o,ctx:e}),I.$set(C);const w={};o&2&&(w.$$scope={dirty:o,ctx:e}),j.$set(w);const F={};o&2&&(F.$$scope={dirty:o,ctx:e}),W.$set(F);const Q={};o&2&&(Q.$$scope={dirty:o,ctx:e}),P.$set(Q)},i(e){Te||(_(M.$$.fragment,e),_(O.$$.fragment,e),_(H.$$.fragment,e),_(Z.$$.fragment,e),_(I.$$.fragment,e),_(G.$$.fragment,e),_(E.$$.fragment,e),_(A.$$.fragment,e),_(j.$$.fragment,e),_(S.$$.fragment,e),_(R.$$.fragment,e),_(V.$$.fragment,e),_(W.$$.fragment,e),_(P.$$.fragment,e),_(D.$$.fragment,e),Te=!0)},o(e){b(M.$$.fragment,e),b(O.$$.fragment,e),b(H.$$.fragment,e),b(Z.$$.fragment,e),b(I.$$.fragment,e),b(G.$$.fragment,e),b(E.$$.fragment,e),b(A.$$.fragment,e),b(j.$$.fragment,e),b(S.$$.fragment,e),b(R.$$.fragment,e),b(V.$$.fragment,e),b(W.$$.fragment,e),b(P.$$.fragment,e),b(D.$$.fragment,e),Te=!1},d(e){e&&(n(p),n(a),n(h),n(m),n(de),n(q),n(ce),n(J),n(me),n(N),n(pe),n(B),n(he),n(ue),n(k),n(fe),n(ge),n(v),n(_e),n(be),n(L),n(ye),n(ve),n(re)),n(t),y(M,e),y(O,e),y(H,e),y(Z),y(I),y(G,e),y(E),y(A),y(j),y(S,e),y(R),y(V),y(W),y(P),y(D,e)}}}const io='{"title":"OLMo2","local":"olmo2","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Olmo2Config","local":"transformers.Olmo2Config","sections":[],"depth":2},{"title":"Olmo2Model","local":"transformers.Olmo2Model","sections":[],"depth":2},{"title":"Olmo2ForCausalLM","local":"transformers.Olmo2ForCausalLM","sections":[],"depth":2}],"depth":1}';function lo(x){return Xe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _o extends Ye{constructor(t){super(),Ke(this,t,lo,ro,Qe,{})}}export{_o as component};
