import{s as Xe,o as Qe,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 Q,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 Ae}from"../chunks/Tip.baa67368.js";import{D as ie}from"../chunks/Docstring.ffac8efa.js";import{C as Ve}from"../chunks/CodeBlock.e6cd0d95.js";import{E as De}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 Ve({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyME9sbW8xMTI0TW9kZWwlMkMlMjBPbG1vMTEyNENvbmZpZyUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBPbG1vJTIwTm92ZW1iZXIlMjAyMDI0JTIwN0IlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwT2xtbzExMjRDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBtb2RlbCUyMGZyb20lMjB0aGUlMjBPbG1vJTIwTm92ZW1iZXIlMjAyMDI0JTIwN0IlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyME9sbW8xMTI0TW9kZWwoY29uZmlndXJhdGlvbiklMEElMEElMjMlMjBBY2Nlc3NpbmclMjB0aGUlMjBtb2RlbCUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwbW9kZWwuY29uZmln",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> Olmo1124Model, Olmo1124Config

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Olmo November 2024 7B style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = Olmo1124Config()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model from the Olmo November 2024 7B style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = Olmo1124Model(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,w;return h=new Ve({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBPbG1vMTEyNEZvckNhdXNhbExNJTBBJTBBbW9kZWwlMjAlM0QlMjBPbG1vMTEyNEZvckNhdXNhbExNLmZyb21fcHJldHJhaW5lZCglMjJhbGxlbmFpJTJGT2xtbzExMjQtMUItaGYlMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYWxsZW5haSUyRk9sbW8xMTI0LTFCLWhmJTIyKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMkhleSUyQyUyMGFyZSUyMHlvdSUyMGNvbnNjaW91cyUzRiUyMENhbiUyMHlvdSUyMHRhbGslMjB0byUyMG1lJTNGJTIyJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKHByb21wdCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBJTIzJTIwR2VuZXJhdGUlMEFnZW5lcmF0ZV9pZHMlMjAlM0QlMjBtb2RlbC5nZW5lcmF0ZShpbnB1dHMuaW5wdXRfaWRzJTJDJTIwbWF4X2xlbmd0aCUzRDMwKSUwQXRva2VuaXplci5iYXRjaF9kZWNvZGUoZ2VuZXJhdGVfaWRzJTJDJTIwc2tpcF9zcGVjaWFsX3Rva2VucyUzRFRydWUlMkMlMjBjbGVhbl91cF90b2tlbml6YXRpb25fc3BhY2VzJTNERmFsc2UpJTVCMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, Olmo1124ForCausalLM

<span class="hljs-meta">&gt;&gt;&gt; </span>model = Olmo1124ForCausalLM.from_pretrained(<span class="hljs-string">&quot;allenai/Olmo1124-1B-hf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;allenai/Olmo1124-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),w=!0},p:ke,i(m){w||(_(h.$$.fragment,m),w=!0)},o(m){b(h.$$.fragment,m),w=!1},d(m){m&&(n(t),n(a)),y(h,m)}}}function ro(x){let t,p,a,h,w,m,O,de,U,Pe=`The OLMo November 2024 model is a 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,q,Ue="The architectural changes from the original OLMo model to this model are:",me,B,qe="<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,E,Be=`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,J,ue,k,Z,Me,K,Ee=`This is the configuration class to store the configuration of a <a href="/docs/transformers/pr_30530/en/model_doc/olmo_1124#transformers.Olmo1124Model">Olmo1124Model</a>. It is used to instantiate an OLMo November 2024
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/Olmo1124-7B-hf" rel="nofollow">allenai/Olmo1124-7B-hf</a>.`,we,ee,Je=`Configuration objects inherit from <a href="/docs/transformers/pr_30530/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/pr_30530/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,$e,F,fe,H,ge,v,G,Oe,oe,Ze=`The bare Olmo1124 Model outputting raw hidden-states without any specific head on top.
This model inherits from <a href="/docs/transformers/pr_30530/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,He=`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,Ge="Transformer decoder consisting of <em>config.num_hidden_layers</em> layers. Each layer is a <code>Olmo1124DecoderLayer</code>",ze,z,R,Le,ae,Re='The <a href="/docs/transformers/pr_30530/en/model_doc/olmo_1124#transformers.Olmo1124Model">Olmo1124Model</a> forward method, overrides the <code>__call__</code> special method.',Ie,j,_e,S,be,L,A,Fe,$,D,je,se,Se='The <a href="/docs/transformers/pr_30530/en/model_doc/olmo_1124#transformers.Olmo1124ForCausalLM">Olmo1124ForCausalLM</a> forward method, overrides the <code>__call__</code> special method.',We,W,Ne,N,ye,V,ve,re,Te;return w=new le({props:{title:"OLMo November 2024",local:"olmo-november-2024",headingTag:"h1"}}),O=new le({props:{title:"Overview",local:"overview",headingTag:"h2"}}),J=new le({props:{title:"Olmo1124Config",local:"transformers.Olmo1124Config",headingTag:"h2"}}),Z=new ie({props:{name:"class transformers.Olmo1124Config",anchor:"transformers.Olmo1124Config",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.Olmo1124Config.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 50304) &#x2014;
Vocabulary size of the Olmo1124 model. Defines the number of different tokens that can be represented by the
<code>inputs_ids</code> passed when calling <a href="/docs/transformers/pr_30530/en/model_doc/olmo_1124#transformers.Olmo1124Model">Olmo1124Model</a>`,name:"vocab_size"},{anchor:"transformers.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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.Olmo1124Config.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/vr_30530/src/transformers/models/olmo_1124/configuration_olmo_1124.py#L11"}}),F=new De({props:{anchor:"transformers.Olmo1124Config.example",$$slots:{default:[to]},$$scope:{ctx:x}}}),H=new le({props:{title:"Olmo1124Model",local:"transformers.Olmo1124Model",headingTag:"h2"}}),G=new ie({props:{name:"class transformers.Olmo1124Model",anchor:"transformers.Olmo1124Model",parameters:[{name:"config",val:": Olmo1124Config"}],parametersDescription:[{anchor:"transformers.Olmo1124Model.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_30530/en/model_doc/olmo_1124#transformers.Olmo1124Config">Olmo1124Config</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/pr_30530/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.Olmo1124Model.config",description:"<strong>config</strong> &#x2014; Olmo1124Config",name:"config"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/models/olmo_1124/modeling_olmo_1124.py#L697"}}),R=new ie({props:{name:"forward",anchor:"transformers.Olmo1124Model.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.Olmo1124Model.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/pr_30530/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/pr_30530/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/pr_30530/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.Olmo1124Model.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/pr_30530/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/pr_30530/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/pr_30530/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.Olmo1124Model.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.Olmo1124Model.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/pr_30530/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.Olmo1124Model.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.Olmo1124Model.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.Olmo1124Model.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.Olmo1124Model.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.Olmo1124Model.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/pr_30530/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.Olmo1124Model.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/vr_30530/src/transformers/models/olmo_1124/modeling_olmo_1124.py#L730"}}),j=new Ae({props:{$$slots:{default:[no]},$$scope:{ctx:x}}}),S=new le({props:{title:"Olmo1124ForCausalLM",local:"transformers.Olmo1124ForCausalLM",headingTag:"h2"}}),A=new ie({props:{name:"class transformers.Olmo1124ForCausalLM",anchor:"transformers.Olmo1124ForCausalLM",parameters:[{name:"config",val:": Olmo1124Config"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/models/olmo_1124/modeling_olmo_1124.py#L975"}}),D=new ie({props:{name:"forward",anchor:"transformers.Olmo1124ForCausalLM.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.Olmo1124ForCausalLM.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/pr_30530/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/pr_30530/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/pr_30530/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.Olmo1124ForCausalLM.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/pr_30530/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/pr_30530/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/pr_30530/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.Olmo1124ForCausalLM.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.Olmo1124ForCausalLM.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/pr_30530/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.Olmo1124ForCausalLM.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.Olmo1124ForCausalLM.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.Olmo1124ForCausalLM.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.Olmo1124ForCausalLM.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.Olmo1124ForCausalLM.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/pr_30530/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.Olmo1124ForCausalLM.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.Olmo1124ForCausalLM.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/vr_30530/src/transformers/models/olmo_1124/modeling_olmo_1124.py#L1005",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/pr_30530/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/pr_30530/en/model_doc/olmo_1124#transformers.Olmo1124Config"
>Olmo1124Config</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/pr_30530/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithPast"
>transformers.modeling_outputs.CausalLMOutputWithPast</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),W=new Ae({props:{$$slots:{default:[ao]},$$scope:{ctx:x}}}),N=new De({props:{anchor:"transformers.Olmo1124ForCausalLM.forward.example",$$slots:{default:[so]},$$scope:{ctx:x}}}),V=new oo({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/olmo_1124.md"}}),{c(){t=d("meta"),p=s(),a=d("p"),h=s(),u(w.$$.fragment),m=s(),u(O.$$.fragment),de=s(),U=d("p"),U.innerHTML=Pe,ce=s(),q=d("p"),q.textContent=Ue,me=s(),B=d("ul"),B.innerHTML=qe,pe=s(),E=d("p"),E.innerHTML=Be,he=s(),u(J.$$.fragment),ue=s(),k=d("div"),u(Z.$$.fragment),Me=s(),K=d("p"),K.innerHTML=Ee,we=s(),ee=d("p"),ee.innerHTML=Je,$e=s(),u(F.$$.fragment),fe=s(),u(H.$$.fragment),ge=s(),v=d("div"),u(G.$$.fragment),Oe=s(),oe=d("p"),oe.innerHTML=Ze,Ce=s(),te=d("p"),te.innerHTML=He,xe=s(),ne=d("p"),ne.innerHTML=Ge,ze=s(),z=d("div"),u(R.$$.fragment),Le=s(),ae=d("p"),ae.innerHTML=Re,Ie=s(),u(j.$$.fragment),_e=s(),u(S.$$.fragment),be=s(),L=d("div"),u(A.$$.fragment),Fe=s(),$=d("div"),u(D.$$.fragment),je=s(),se=d("p"),se.innerHTML=Se,We=s(),u(W.$$.fragment),Ne=s(),u(N.$$.fragment),ye=s(),u(V.$$.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",{}),Q(a).forEach(n),h=r(e),f(w.$$.fragment,e),m=r(e),f(O.$$.fragment,e),de=r(e),U=c(e,"P",{"data-svelte-h":!0}),T(U)!=="svelte-1dq3i63"&&(U.innerHTML=Pe),ce=r(e),q=c(e,"P",{"data-svelte-h":!0}),T(q)!=="svelte-80pzkv"&&(q.textContent=Ue),me=r(e),B=c(e,"UL",{"data-svelte-h":!0}),T(B)!=="svelte-1rgir77"&&(B.innerHTML=qe),pe=r(e),E=c(e,"P",{"data-svelte-h":!0}),T(E)!=="svelte-1kmdpvx"&&(E.innerHTML=Be),he=r(e),f(J.$$.fragment,e),ue=r(e),k=c(e,"DIV",{class:!0});var C=Q(k);f(Z.$$.fragment,C),Me=r(C),K=c(C,"P",{"data-svelte-h":!0}),T(K)!=="svelte-l0by84"&&(K.innerHTML=Ee),we=r(C),ee=c(C,"P",{"data-svelte-h":!0}),T(ee)!=="svelte-l1blo3"&&(ee.innerHTML=Je),$e=r(C),f(F.$$.fragment,C),C.forEach(n),fe=r(e),f(H.$$.fragment,e),ge=r(e),v=c(e,"DIV",{class:!0});var M=Q(v);f(G.$$.fragment,M),Oe=r(M),oe=c(M,"P",{"data-svelte-h":!0}),T(oe)!=="svelte-1rlm6ki"&&(oe.innerHTML=Ze),Ce=r(M),te=c(M,"P",{"data-svelte-h":!0}),T(te)!=="svelte-hswkmf"&&(te.innerHTML=He),xe=r(M),ne=c(M,"P",{"data-svelte-h":!0}),T(ne)!=="svelte-1ru65g6"&&(ne.innerHTML=Ge),ze=r(M),z=c(M,"DIV",{class:!0});var I=Q(z);f(R.$$.fragment,I),Le=r(I),ae=c(I,"P",{"data-svelte-h":!0}),T(ae)!=="svelte-qndm80"&&(ae.innerHTML=Re),Ie=r(I),f(j.$$.fragment,I),I.forEach(n),M.forEach(n),_e=r(e),f(S.$$.fragment,e),be=r(e),L=c(e,"DIV",{class:!0});var X=Q(L);f(A.$$.fragment,X),Fe=r(X),$=c(X,"DIV",{class:!0});var P=Q($);f(D.$$.fragment,P),je=r(P),se=c(P,"P",{"data-svelte-h":!0}),T(se)!=="svelte-1c1s7s8"&&(se.innerHTML=Se),We=r(P),f(W.$$.fragment,P),Ne=r(P),f(N.$$.fragment,P),P.forEach(n),X.forEach(n),ye=r(e),f(V.$$.fragment,e),ve=r(e),re=c(e,"P",{}),Q(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(w,e,o),i(e,m,o),g(O,e,o),i(e,de,o),i(e,U,o),i(e,ce,o),i(e,q,o),i(e,me,o),i(e,B,o),i(e,pe,o),i(e,E,o),i(e,he,o),g(J,e,o),i(e,ue,o),i(e,k,o),g(Z,k,null),l(k,Me),l(k,K),l(k,we),l(k,ee),l(k,$e),g(F,k,null),i(e,fe,o),g(H,e,o),i(e,ge,o),i(e,v,o),g(G,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(R,z,null),l(z,Le),l(z,ae),l(z,Ie),g(j,z,null),i(e,_e,o),g(S,e,o),i(e,be,o),i(e,L,o),g(A,L,null),l(L,Fe),l(L,$),g(D,$,null),l($,je),l($,se),l($,We),g(W,$,null),l($,Ne),g(N,$,null),i(e,ye,o),g(V,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}),F.$set(C);const M={};o&2&&(M.$$scope={dirty:o,ctx:e}),j.$set(M);const I={};o&2&&(I.$$scope={dirty:o,ctx:e}),W.$set(I);const X={};o&2&&(X.$$scope={dirty:o,ctx:e}),N.$set(X)},i(e){Te||(_(w.$$.fragment,e),_(O.$$.fragment,e),_(J.$$.fragment,e),_(Z.$$.fragment,e),_(F.$$.fragment,e),_(H.$$.fragment,e),_(G.$$.fragment,e),_(R.$$.fragment,e),_(j.$$.fragment,e),_(S.$$.fragment,e),_(A.$$.fragment,e),_(D.$$.fragment,e),_(W.$$.fragment,e),_(N.$$.fragment,e),_(V.$$.fragment,e),Te=!0)},o(e){b(w.$$.fragment,e),b(O.$$.fragment,e),b(J.$$.fragment,e),b(Z.$$.fragment,e),b(F.$$.fragment,e),b(H.$$.fragment,e),b(G.$$.fragment,e),b(R.$$.fragment,e),b(j.$$.fragment,e),b(S.$$.fragment,e),b(A.$$.fragment,e),b(D.$$.fragment,e),b(W.$$.fragment,e),b(N.$$.fragment,e),b(V.$$.fragment,e),Te=!1},d(e){e&&(n(p),n(a),n(h),n(m),n(de),n(U),n(ce),n(q),n(me),n(B),n(pe),n(E),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(w,e),y(O,e),y(J,e),y(Z),y(F),y(H,e),y(G),y(R),y(j),y(S,e),y(A),y(D),y(W),y(N),y(V,e)}}}const io='{"title":"OLMo November 2024","local":"olmo-november-2024","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Olmo1124Config","local":"transformers.Olmo1124Config","sections":[],"depth":2},{"title":"Olmo1124Model","local":"transformers.Olmo1124Model","sections":[],"depth":2},{"title":"Olmo1124ForCausalLM","local":"transformers.Olmo1124ForCausalLM","sections":[],"depth":2}],"depth":1}';function lo(x){return Qe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _o extends Ye{constructor(t){super(),Ke(this,t,lo,ro,Xe,{})}}export{_o as component};
