import{s as Ut,o as xt,n as Se}from"../chunks/scheduler.bdbef820.js";import{S as Jt,i as jt,g as l,s as a,r as h,A as zt,h as d,f as o,c as s,j as ie,u as f,x as M,k as le,y as m,a as n,v as u,d as g,t as b,w as _}from"../chunks/index.33f81d56.js";import{T as $t}from"../chunks/Tip.34194030.js";import{D as ye}from"../chunks/Docstring.662771b3.js";import{C as Xe}from"../chunks/CodeBlock.3bad7fc9.js";import{E as kt}from"../chunks/ExampleCodeBlock.32707fc1.js";import{H as R,E as Ft}from"../chunks/index.e01163b6.js";function Lt(j){let r,T="Example:",c,p,y;return p=new Xe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyME1hbWJhQ29uZmlnJTJDJTIwTWFtYmFNb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBNYW1iYSUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwTWFtYmFDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBtb2RlbCUyMCh3aXRoJTIwcmFuZG9tJTIwd2VpZ2h0cyklMjBmcm9tJTIwdGhlJTIwY29uZmlndXJhdGlvbiUwQW1vZGVsJTIwJTNEJTIwTWFtYmFNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> MambaConfig, MambaModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Mamba configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = MambaConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MambaModel(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(){r=l("p"),r.textContent=T,c=a(),h(p.$$.fragment)},l(i){r=d(i,"P",{"data-svelte-h":!0}),M(r)!=="svelte-11lpom8"&&(r.textContent=T),c=s(i),f(p.$$.fragment,i)},m(i,C){n(i,r,C),n(i,c,C),u(p,i,C),y=!0},p:Se,i(i){y||(g(p.$$.fragment,i),y=!0)},o(i){b(p.$$.fragment,i),y=!1},d(i){i&&(o(r),o(c)),_(p,i)}}}function It(j){let r,T=`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(){r=l("p"),r.innerHTML=T},l(c){r=d(c,"P",{"data-svelte-h":!0}),M(r)!=="svelte-fincs2"&&(r.innerHTML=T)},m(c,p){n(c,r,p)},p:Se,d(c){c&&o(r)}}}function Wt(j){let r,T=`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(){r=l("p"),r.innerHTML=T},l(c){r=d(c,"P",{"data-svelte-h":!0}),M(r)!=="svelte-fincs2"&&(r.innerHTML=T)},m(c,p){n(c,r,p)},p:Se,d(c){c&&o(r)}}}function Zt(j){let r,T="Example:",c,p,y;return p=new Xe({props:{code:"",highlighted:"",wrap:!1}}),{c(){r=l("p"),r.textContent=T,c=a(),h(p.$$.fragment)},l(i){r=d(i,"P",{"data-svelte-h":!0}),M(r)!=="svelte-11lpom8"&&(r.textContent=T),c=s(i),f(p.$$.fragment,i)},m(i,C){n(i,r,C),n(i,c,C),u(p,i,C),y=!0},p:Se,i(i){y||(g(p.$$.fragment,i),y=!0)},o(i){b(p.$$.fragment,i),y=!1},d(i){i&&(o(r),o(c)),_(p,i)}}}function qt(j){let r,T,c,p,y,i,C,Te,H,it='맘바(Mamba) 모델은 Albert Gu, Tri Dao가 제안한 <a href="https://arxiv.org/abs/2312.00752" rel="nofollow">맘바: 선택적 상태 공간을 이용한 선형 시간 시퀀스 모델링</a>라는 논문에서 소개 되었습니다.',Ce,E,lt='이 모델은 <code>state-space-models</code>을 기반으로 한 새로운 패러다임 아키텍처입니다. 직관적인 이해를 얻고 싶다면 <a href="https://srush.github.io/annotated-s4/" rel="nofollow">이곳</a>을 참고 하세요.',we,N,dt="해당 논문의 초록입니다:",ve,G,mt="<em>현재 딥러닝에서 흥미로운 응용 프로그램을 구동하는 대부분의 기초 모델들은 거의 보편적으로 트랜스포머 아키텍처와 그 핵심 어텐션 모듈을 기반으로 합니다. 선형 어텐션, 게이트된 컨볼루션과 순환 모델, 구조화된 상태 공간 모델(SSM) 등 많은 준이차시간(subquadratic-time) 아키텍처가 긴 시퀀스에 대한 트랜스포머의 계산 비효율성을 해결하기 위해 개발되었지만, 언어와 같은 중요한 양식에서는 어텐션만큼 성능을 내지 못했습니다. 우리는 이러한 모델의 주요 약점이 내용 기반 추론을 수행하지 못한다는 점임을 알고 몇 가지를 개선했습니다. 첫째, SSM 매개변수를 입력의 함수로 만드는 것만으로도 이산 모달리티(discrete modalities)의 약점을 해결할 수 있어, 현재 토큰에 따라 시퀀스 길이 차원을 따라 정보를 선택적으로 전파하거나 잊을 수 있게 합니다. 둘째, 이러한 변경으로 효율적인 컨볼루션을 사용할 수 없게 되었지만, 우리는 순환 모드에서 하드웨어를 인식하는 병렬 알고리즘을 설계했습니다. 우리는 이러한 선택적 SSM을 어텐션이나 MLP 블록도 없는 단순화된 종단간 신경망 아키텍처인 맘바에 통합시켰습니다. 맘바는 빠른 추론(트랜스포머보다 5배 높은 처리량)과 시퀀스 길이에 대한 선형 확장성을 누리며, 백만 길이 시퀀스까지 실제 데이터에서 성능이 향상됩니다. 일반적인 시퀀스 모델 백본으로서 맘바는 언어, 오디오, 유전체학과 같은 여러 양식에서 최첨단 성능을 달성합니다. 언어 모델링에서 우리의 맘바-3B 모델은 같은 크기의 트랜스포머를 능가하고 두 배 크기의 트랜스포머와 맞먹는 성능을 보이며, 사전 훈련과 다운스트림 평가 모두에서 성능을 나타납니다.</em>",$e,X,ct="팁:",ke,S,pt='<li>맘바는 고전적인 트랜스포머와 견줄 만한 새로운 <code>상태 공간 모델</code> 아키텍처입니다. 이는 구조화된 상태 공간 모델의 발전 선상에 있으며, <a href="https://github.com/Dao-AILab/flash-attention" rel="nofollow">플래시어텐션</a>의 정신을 따르는 효율적인 하드웨어 인식 설계와 구현을 특징으로 합니다.</li> <li>맘바는 <code>어텐션</code> 레이어와 동등한 <code>믹서(mixer)</code> 레이어를 쌓습니다. <code>맘바</code>의 핵심 로직은 <code>MambaMixer</code> 클래스에 있습니다.</li> <li>두 가지 구현이 공존합니다: 하나는 최적화되어 빠른 cuda커널을 사용하고, 다른 하나는 단순하지만 모든 장치에서 실행할 수 있습니다!</li> <li>현재 구현은 원본 cuda커널을 활용합니다: 맘바를 위한 플래시 어텐션의 역할을 하는 것은 <a href="https://github.com/state-spaces/mamba" rel="nofollow"><code>mamba-ssm</code></a>와 <a href="https://github.com/Dao-AILab/causal-conv1d" rel="nofollow"><code>causal_conv1d</code></a> 저장소에 호스팅되어 있습니다. 하드웨어가 지원한다면 반드시 설치하세요!</li> <li>cuda 커널을 최적화하는 방향 보다는, 단순하지만 모든 장치에서 실행가능하도록하는 방향인 ‘단순구현’의 성능을 빠르게 향상시키는 기여를 더 환영하고 있습니다. 🤗</li>',Ue,A,ht=`이 모델은 <a href="https://huggingface.co/ArthurZ" rel="nofollow">ArthurZ</a>에 의해 기여되었습니다.
원본 코드는 <a href="https://github.com/state-spaces/mamba" rel="nofollow">이곳</a>에서 확인할 수 있습니다.`,xe,P,Je,Q,je,B,ze,V,Fe,Y,ft="느린 버전은 학습에서 아주 안정적이진 않습니다. 빠른 버전은 <code>float32</code>가 필요합니다!",Le,D,Ie,O,We,$,K,Ae,de,ut=`This is the configuration class to store the configuration of a <a href="/docs/transformers/main/ko/model_doc/mamba#transformers.MambaModel">MambaModel</a>. It is used to instantiate a MAMBA
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 MAMBA
<a href="https://huggingface.co/state-spaces/mamba-2.8b" rel="nofollow">state-spaces/mamba-2.8b</a> architecture.`,Pe,me,gt=`Configuration objects inherit from <a href="/docs/transformers/main/ko/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/ko/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Qe,L,Ze,ee,qe,w,te,Be,ce,bt="The bare Mamba Model outputting raw hidden-states without any specific head on top.",Ve,pe,_t=`This model inherits from <a href="/docs/transformers/main/ko/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.)`,Ye,he,Mt=`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.`,De,z,oe,Oe,fe,yt='The <a href="/docs/transformers/main/ko/model_doc/mamba#transformers.MambaModel">MambaModel</a> forward method, overrides the <code>__call__</code> special method.',Ke,I,Re,ne,He,v,ae,et,ue,Tt=`The MAMBA Model transformer with a language modeling head on top (linear layer with weights tied to the input
embeddings).`,tt,ge,Ct=`This model inherits from <a href="/docs/transformers/main/ko/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.)`,ot,be,wt=`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.`,nt,x,se,at,_e,vt='The <a href="/docs/transformers/main/ko/model_doc/mamba#transformers.MambaForCausalLM">MambaForCausalLM</a> forward method, overrides the <code>__call__</code> special method.',st,W,rt,Z,Ee,re,Ne,Me,Ge;return y=new R({props:{title:"맘바",local:"mamba",headingTag:"h1"}}),C=new R({props:{title:"개요",local:"overview",headingTag:"h2"}}),P=new R({props:{title:"사용",local:"사용",headingTag:"h1"}}),Q=new R({props:{title:"간단한 생성 예제",local:"간단한-생성-예제",headingTag:"h3"}}),B=new Xe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyME1hbWJhQ29uZmlnJTJDJTIwTWFtYmFGb3JDYXVzYWxMTSUyQyUyMEF1dG9Ub2tlbml6ZXIlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMnN0YXRlLXNwYWNlcyUyRm1hbWJhLTEzMG0taGYlMjIpJTBBbW9kZWwlMjAlM0QlMjBNYW1iYUZvckNhdXNhbExNLmZyb21fcHJldHJhaW5lZCglMjJzdGF0ZS1zcGFjZXMlMkZtYW1iYS0xMzBtLWhmJTIyKSUwQWlucHV0X2lkcyUyMCUzRCUyMHRva2VuaXplciglMjJIZXklMjBob3clMjBhcmUlMjB5b3UlMjBkb2luZyUzRiUyMiUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIwJTIycHQlMjIpJTVCJTIyaW5wdXRfaWRzJTIyJTVEJTBBJTBBb3V0JTIwJTNEJTIwbW9kZWwuZ2VuZXJhdGUoaW5wdXRfaWRzJTJDJTIwbWF4X25ld190b2tlbnMlM0QxMCklMEFwcmludCh0b2tlbml6ZXIuYmF0Y2hfZGVjb2RlKG91dCkp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> MambaConfig, MambaForCausalLM, AutoTokenizer
<span class="hljs-keyword">import</span> torch

tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;state-spaces/mamba-130m-hf&quot;</span>)
model = MambaForCausalLM.from_pretrained(<span class="hljs-string">&quot;state-spaces/mamba-130m-hf&quot;</span>)
input_ids = tokenizer(<span class="hljs-string">&quot;Hey how are you doing?&quot;</span>, return_tensors= <span class="hljs-string">&quot;pt&quot;</span>)[<span class="hljs-string">&quot;input_ids&quot;</span>]

out = model.generate(input_ids, max_new_tokens=<span class="hljs-number">10</span>)
<span class="hljs-built_in">print</span>(tokenizer.batch_decode(out))`,wrap:!1}}),V=new R({props:{title:"Peft 파인튜닝",local:"peft-파인튜닝",headingTag:"h3"}}),D=new Xe({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRybCUyMGltcG9ydCUyMFNGVFRyYWluZXIlMEFmcm9tJTIwcGVmdCUyMGltcG9ydCUyMExvcmFDb25maWclMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Rva2VuaXplciUyQyUyMEF1dG9Nb2RlbEZvckNhdXNhbExNJTJDJTIwVHJhaW5pbmdBcmd1bWVudHMlMEFtb2RlbF9pZCUyMCUzRCUyMCUyMnN0YXRlLXNwYWNlcyUyRm1hbWJhLTEzMG0taGYlMjIlMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZCklMEFtb2RlbCUyMCUzRCUyMEF1dG9Nb2RlbEZvckNhdXNhbExNLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZCklMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMkFiaXJhdGUlMkZlbmdsaXNoX3F1b3RlcyUyMiUyQyUyMHNwbGl0JTNEJTIydHJhaW4lMjIpJTBBdHJhaW5pbmdfYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUwQSUyMCUyMCUyMCUyMG91dHB1dF9kaXIlM0QlMjIuJTJGcmVzdWx0cyUyMiUyQyUwQSUyMCUyMCUyMCUyMG51bV90cmFpbl9lcG9jaHMlM0QzJTJDJTBBJTIwJTIwJTIwJTIwcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTNENCUyQyUwQSUyMCUyMCUyMCUyMGxvZ2dpbmdfZGlyJTNEJy4lMkZsb2dzJyUyQyUwQSUyMCUyMCUyMCUyMGxvZ2dpbmdfc3RlcHMlM0QxMCUyQyUwQSUyMCUyMCUyMCUyMGxlYXJuaW5nX3JhdGUlM0QyZS0zJTBBKSUwQWxvcmFfY29uZmlnJTIwJTNEJTIwJTIwTG9yYUNvbmZpZyglMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjByJTNEOCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHRhcmdldF9tb2R1bGVzJTNEJTVCJTIyeF9wcm9qJTIyJTJDJTIwJTIyZW1iZWRkaW5ncyUyMiUyQyUyMCUyMmluX3Byb2olMjIlMkMlMjAlMjJvdXRfcHJvaiUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHRhc2tfdHlwZSUzRCUyMkNBVVNBTF9MTSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGJpYXMlM0QlMjJub25lJTIyJTBBKSUwQXRyYWluZXIlMjAlM0QlMjBTRlRUcmFpbmVyKCUwQSUyMCUyMCUyMCUyMG1vZGVsJTNEbW9kZWwlMkMlMEElMjAlMjAlMjAlMjB0b2tlbml6ZXIlM0R0b2tlbml6ZXIlMkMlMEElMjAlMjAlMjAlMjBhcmdzJTNEdHJhaW5pbmdfYXJncyUyQyUwQSUyMCUyMCUyMCUyMHBlZnRfY29uZmlnJTNEbG9yYV9jb25maWclMkMlMEElMjAlMjAlMjAlMjB0cmFpbl9kYXRhc2V0JTNEZGF0YXNldCUyQyUwQSUyMCUyMCUyMCUyMGRhdGFzZXRfdGV4dF9maWVsZCUzRCUyMnF1b3RlJTIyJTJDJTBBKSUwQXRyYWluZXIudHJhaW4oKQ==",highlighted:`<span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-keyword">from</span> trl <span class="hljs-keyword">import</span> SFTTrainer
<span class="hljs-keyword">from</span> peft <span class="hljs-keyword">import</span> LoraConfig
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, AutoModelForCausalLM, TrainingArguments
model_id = <span class="hljs-string">&quot;state-spaces/mamba-130m-hf&quot;</span>
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
dataset = load_dataset(<span class="hljs-string">&quot;Abirate/english_quotes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
training_args = TrainingArguments(
    output_dir=<span class="hljs-string">&quot;./results&quot;</span>,
    num_train_epochs=<span class="hljs-number">3</span>,
    per_device_train_batch_size=<span class="hljs-number">4</span>,
    logging_dir=<span class="hljs-string">&#x27;./logs&#x27;</span>,
    logging_steps=<span class="hljs-number">10</span>,
    learning_rate=<span class="hljs-number">2e-3</span>
)
lora_config =  LoraConfig(
        r=<span class="hljs-number">8</span>,
        target_modules=[<span class="hljs-string">&quot;x_proj&quot;</span>, <span class="hljs-string">&quot;embeddings&quot;</span>, <span class="hljs-string">&quot;in_proj&quot;</span>, <span class="hljs-string">&quot;out_proj&quot;</span>],
        task_type=<span class="hljs-string">&quot;CAUSAL_LM&quot;</span>,
        bias=<span class="hljs-string">&quot;none&quot;</span>
)
trainer = SFTTrainer(
    model=model,
    tokenizer=tokenizer,
    args=training_args,
    peft_config=lora_config,
    train_dataset=dataset,
    dataset_text_field=<span class="hljs-string">&quot;quote&quot;</span>,
)
trainer.train()`,wrap:!1}}),O=new R({props:{title:"MambaConfig",local:"transformers.MambaConfig",headingTag:"h2"}}),K=new ye({props:{name:"class transformers.MambaConfig",anchor:"transformers.MambaConfig",parameters:[{name:"vocab_size",val:" = 50280"},{name:"hidden_size",val:" = 768"},{name:"state_size",val:" = 16"},{name:"num_hidden_layers",val:" = 32"},{name:"layer_norm_epsilon",val:" = 1e-05"},{name:"pad_token_id",val:" = 0"},{name:"bos_token_id",val:" = 0"},{name:"eos_token_id",val:" = 0"},{name:"expand",val:" = 2"},{name:"conv_kernel",val:" = 4"},{name:"use_bias",val:" = False"},{name:"use_conv_bias",val:" = True"},{name:"hidden_act",val:" = 'silu'"},{name:"initializer_range",val:" = 0.1"},{name:"residual_in_fp32",val:" = True"},{name:"time_step_rank",val:" = 'auto'"},{name:"time_step_scale",val:" = 1.0"},{name:"time_step_min",val:" = 0.001"},{name:"time_step_max",val:" = 0.1"},{name:"time_step_init_scheme",val:" = 'random'"},{name:"time_step_floor",val:" = 0.0001"},{name:"rescale_prenorm_residual",val:" = False"},{name:"use_cache",val:" = True"},{name:"use_mambapy",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MambaConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 50280) &#x2014;
Vocabulary size of the MAMBA 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/ko/model_doc/mamba#transformers.MambaModel">MambaModel</a>.`,name:"vocab_size"},{anchor:"transformers.MambaConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the embeddings and hidden states.`,name:"hidden_size"},{anchor:"transformers.MambaConfig.state_size",description:"<strong>state_size</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014; shape of the state space latents.",name:"state_size"},{anchor:"transformers.MambaConfig.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 model.`,name:"num_hidden_layers"},{anchor:"transformers.MambaConfig.layer_norm_epsilon",description:`<strong>layer_norm_epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-05) &#x2014;
The epsilon to use in the layer normalization layers.`,name:"layer_norm_epsilon"},{anchor:"transformers.MambaConfig.pad_token_id",description:`<strong>pad_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Padding token id.`,name:"pad_token_id"},{anchor:"transformers.MambaConfig.bos_token_id",description:`<strong>bos_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
The id of the beginning of sentence token in the vocabulary.`,name:"bos_token_id"},{anchor:"transformers.MambaConfig.eos_token_id",description:`<strong>eos_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
The id of the end of sentence token in the vocabulary.`,name:"eos_token_id"},{anchor:"transformers.MambaConfig.expand",description:"<strong>expand</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014; Expanding factor used to determine the intermediate size.",name:"expand"},{anchor:"transformers.MambaConfig.conv_kernel",description:"<strong>conv_kernel</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014; Size of the convolution kernel.",name:"conv_kernel"},{anchor:"transformers.MambaConfig.use_bias",description:`<strong>use_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use bias in [&#x201C;in_proj&#x201D;, &#x201C;out_proj&#x201D;] of the mixer block`,name:"use_bias"},{anchor:"transformers.MambaConfig.use_conv_bias",description:`<strong>use_conv_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to use bias in the convolution layer of the mixer block.`,name:"use_conv_bias"},{anchor:"transformers.MambaConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</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.MambaConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.MambaConfig.residual_in_fp32",description:`<strong>residual_in_fp32</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not residuals should be in <code>float32</code>. If set to <code>False</code> residuals will keep the same <code>dtype</code> as the rest of the model`,name:"residual_in_fp32"},{anchor:"transformers.MambaConfig.time_step_rank",description:`<strong>time_step_rank</strong> (<code>Union[int,str]</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
Rank of the discretization projection matrix. <code>&quot;auto&quot;</code> means that it will default to <code>math.ceil(self.hidden_size / 16)</code>`,name:"time_step_rank"},{anchor:"transformers.MambaConfig.time_step_scale",description:`<strong>time_step_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Scale used used to scale <code>dt_proj.bias</code>.`,name:"time_step_scale"},{anchor:"transformers.MambaConfig.time_step_min",description:`<strong>time_step_min</strong> (<code>float</code>, <em>optional</em>, defaults to 0.001) &#x2014;
Minimum <code>time_step</code> used to bound <code>dt_proj.bias</code>.`,name:"time_step_min"},{anchor:"transformers.MambaConfig.time_step_max",description:`<strong>time_step_max</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
Maximum <code>time_step</code> used to bound <code>dt_proj.bias</code>.`,name:"time_step_max"},{anchor:"transformers.MambaConfig.time_step_init_scheme",description:`<strong>time_step_init_scheme</strong> (<code>float</code>, <em>optional</em>, defaults to <code>&quot;random&quot;</code>) &#x2014;
Init scheme used for <code>dt_proj.weight</code>. Should be one of <code>[&quot;random&quot;,&quot;uniform&quot;]</code>`,name:"time_step_init_scheme"},{anchor:"transformers.MambaConfig.time_step_floor",description:`<strong>time_step_floor</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0001) &#x2014;
Minimum clamping value of the <code>dt_proj.bias</code> layer initialization.`,name:"time_step_floor"},{anchor:"transformers.MambaConfig.rescale_prenorm_residual",description:`<strong>rescale_prenorm_residual</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to rescale <code>out_proj</code> weights when initializing.`,name:"rescale_prenorm_residual"},{anchor:"transformers.MambaConfig.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not the cache should be used.`,name:"use_cache"},{anchor:"transformers.MambaConfig.use_mambapy",description:`<strong>use_mambapy</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Determines the fallback strategy during training if the CUDA-based official implementation of Mamba is not available. If <code>True</code>, the mamba.py implementation is used. If <code>False</code>, the naive and slower implementation is used. Consider switching to the naive version if memory is limited.`,name:"use_mambapy"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mamba/configuration_mamba.py#L26"}}),L=new kt({props:{anchor:"transformers.MambaConfig.example",$$slots:{default:[Lt]},$$scope:{ctx:j}}}),ee=new R({props:{title:"MambaModel",local:"transformers.MambaModel",headingTag:"h2"}}),te=new ye({props:{name:"class transformers.MambaModel",anchor:"transformers.MambaModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.MambaModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/ko/model_doc/mamba#transformers.MambaModel">MambaModel</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/ko/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/main/src/transformers/models/mamba/modeling_mamba.py#L483"}}),oe=new ye({props:{name:"forward",anchor:"transformers.MambaModel.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.LongTensor] = None"},{name:"cache_params",val:": typing.Optional[transformers.cache_utils.MambaCache] = None"},{name:"use_cache",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:"attention_mask",val:": typing.Optional[torch.LongTensor] = None"}],parametersDescription:[{anchor:"transformers.MambaModel.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/ko/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/ko/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.MambaModel.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.LongTensor</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.MambaModel.forward.cache_params",description:`<strong>cache_params</strong> (<code>~cache_utils.MambaCache</code>, <em>optional</em>) &#x2014;
If passed along, the model uses the previous state in all the blocks (which will give the output for the
<code>input_ids</code> provided as if the model add <code>state_input_ids + input_ids</code> as context).`,name:"cache_params"},{anchor:"transformers.MambaModel.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, the <code>cache_params</code> is returned and can be used to quickly generate the next logits.`,name:"use_cache"},{anchor:"transformers.MambaModel.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.MambaModel.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/ko/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.MambaModel.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.MambaModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</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>`,name:"attention_mask"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mamba/modeling_mamba.py#L509",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.mamba.modeling_mamba.MambaOutput</code> 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/ko/model_doc/mamba#transformers.MambaConfig"
>MambaConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>cache_params</strong> (<code>MambaCache</code>) — The state of the model at the last time step. Can be used in a forward method with the next <code>input_ids</code> to
avoid providing the old <code>input_ids</code>.</p>
<p>Includes both the State space model state matrices after the selective scan, and the Convolutional states</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>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.mamba.modeling_mamba.MambaOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),I=new $t({props:{$$slots:{default:[It]},$$scope:{ctx:j}}}),ne=new R({props:{title:"MambaLMHeadModel",local:"transformers.MambaForCausalLM",headingTag:"h2"}}),ae=new ye({props:{name:"class transformers.MambaForCausalLM",anchor:"transformers.MambaForCausalLM",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.MambaForCausalLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/ko/model_doc/mamba#transformers.MambaForCausalLM">MambaForCausalLM</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/ko/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/main/src/transformers/models/mamba/modeling_mamba.py#L594"}}),se=new ye({props:{name:"forward",anchor:"transformers.MambaForCausalLM.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.LongTensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"cache_params",val:": typing.Optional[transformers.cache_utils.MambaCache] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"cache_position",val:": typing.Optional[torch.Tensor] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MambaForCausalLM.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/ko/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/ko/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.MambaForCausalLM.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</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>`,name:"attention_mask"},{anchor:"transformers.MambaForCausalLM.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.MambaForCausalLM.forward.cache_params",description:`<strong>cache_params</strong> (<code>~cache_utils.MambaCache</code>, <em>optional</em>) &#x2014;
If passed along, the model uses the previous state in all the blocks (which will give the output for the
<code>input_ids</code> provided as if the model add <code>state_input_ids + input_ids</code> as context).`,name:"cache_params"},{anchor:"transformers.MambaForCausalLM.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for language modeling. Note that the labels <strong>are shifted</strong> inside the model, i.e. you can set
<code>labels = input_ids</code> Indices are selected in <code>[-100, 0, ..., config.vocab_size]</code> All labels set to <code>-100</code>
are ignored (masked), the loss is only computed for labels in <code>[0, ..., config.vocab_size]</code>`,name:"labels"},{anchor:"transformers.MambaForCausalLM.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.MambaForCausalLM.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/ko/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.MambaForCausalLM.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, the <code>cache_params</code> is returned and can be used to quickly generate the next logits.`,name:"use_cache"},{anchor:"transformers.MambaForCausalLM.forward.cache_position",description:`<strong>cache_position</strong> (<code>torch.Tensor</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/mamba/modeling_mamba.py#L689",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.mamba.modeling_mamba.MambaCausalLMOutput</code> 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/ko/model_doc/mamba#transformers.MambaConfig"
>MambaConfig</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>cache_params</strong> (<code>MambaCache</code>) — The state of the model at the last time step. Can be used in a forward method with the next <code>input_ids</code> to
avoid providing the old <code>input_ids</code>.</p>
<p>Includes both the State space model state matrices after the selective scan, and the Convolutional states</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>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.mamba.modeling_mamba.MambaCausalLMOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),W=new $t({props:{$$slots:{default:[Wt]},$$scope:{ctx:j}}}),Z=new kt({props:{anchor:"transformers.MambaForCausalLM.forward.example",$$slots:{default:[Zt]},$$scope:{ctx:j}}}),re=new Ft({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ko/model_doc/mamba.md"}}),{c(){r=l("meta"),T=a(),c=l("p"),p=a(),h(y.$$.fragment),i=a(),h(C.$$.fragment),Te=a(),H=l("p"),H.innerHTML=it,Ce=a(),E=l("p"),E.innerHTML=lt,we=a(),N=l("p"),N.textContent=dt,ve=a(),G=l("p"),G.innerHTML=mt,$e=a(),X=l("p"),X.textContent=ct,ke=a(),S=l("ul"),S.innerHTML=pt,Ue=a(),A=l("p"),A.innerHTML=ht,xe=a(),h(P.$$.fragment),Je=a(),h(Q.$$.fragment),je=a(),h(B.$$.fragment),ze=a(),h(V.$$.fragment),Fe=a(),Y=l("p"),Y.innerHTML=ft,Le=a(),h(D.$$.fragment),Ie=a(),h(O.$$.fragment),We=a(),$=l("div"),h(K.$$.fragment),Ae=a(),de=l("p"),de.innerHTML=ut,Pe=a(),me=l("p"),me.innerHTML=gt,Qe=a(),h(L.$$.fragment),Ze=a(),h(ee.$$.fragment),qe=a(),w=l("div"),h(te.$$.fragment),Be=a(),ce=l("p"),ce.textContent=bt,Ve=a(),pe=l("p"),pe.innerHTML=_t,Ye=a(),he=l("p"),he.innerHTML=Mt,De=a(),z=l("div"),h(oe.$$.fragment),Oe=a(),fe=l("p"),fe.innerHTML=yt,Ke=a(),h(I.$$.fragment),Re=a(),h(ne.$$.fragment),He=a(),v=l("div"),h(ae.$$.fragment),et=a(),ue=l("p"),ue.textContent=Tt,tt=a(),ge=l("p"),ge.innerHTML=Ct,ot=a(),be=l("p"),be.innerHTML=wt,nt=a(),x=l("div"),h(se.$$.fragment),at=a(),_e=l("p"),_e.innerHTML=vt,st=a(),h(W.$$.fragment),rt=a(),h(Z.$$.fragment),Ee=a(),h(re.$$.fragment),Ne=a(),Me=l("p"),this.h()},l(e){const t=zt("svelte-u9bgzb",document.head);r=d(t,"META",{name:!0,content:!0}),t.forEach(o),T=s(e),c=d(e,"P",{}),ie(c).forEach(o),p=s(e),f(y.$$.fragment,e),i=s(e),f(C.$$.fragment,e),Te=s(e),H=d(e,"P",{"data-svelte-h":!0}),M(H)!=="svelte-1hjlvl4"&&(H.innerHTML=it),Ce=s(e),E=d(e,"P",{"data-svelte-h":!0}),M(E)!=="svelte-bcm0v2"&&(E.innerHTML=lt),we=s(e),N=d(e,"P",{"data-svelte-h":!0}),M(N)!=="svelte-un5jih"&&(N.textContent=dt),ve=s(e),G=d(e,"P",{"data-svelte-h":!0}),M(G)!=="svelte-ipsd0s"&&(G.innerHTML=mt),$e=s(e),X=d(e,"P",{"data-svelte-h":!0}),M(X)!=="svelte-k6v9m1"&&(X.textContent=ct),ke=s(e),S=d(e,"UL",{"data-svelte-h":!0}),M(S)!=="svelte-1ivxe2t"&&(S.innerHTML=pt),Ue=s(e),A=d(e,"P",{"data-svelte-h":!0}),M(A)!=="svelte-uef1ew"&&(A.innerHTML=ht),xe=s(e),f(P.$$.fragment,e),Je=s(e),f(Q.$$.fragment,e),je=s(e),f(B.$$.fragment,e),ze=s(e),f(V.$$.fragment,e),Fe=s(e),Y=d(e,"P",{"data-svelte-h":!0}),M(Y)!=="svelte-13xxszj"&&(Y.innerHTML=ft),Le=s(e),f(D.$$.fragment,e),Ie=s(e),f(O.$$.fragment,e),We=s(e),$=d(e,"DIV",{class:!0});var J=ie($);f(K.$$.fragment,J),Ae=s(J),de=d(J,"P",{"data-svelte-h":!0}),M(de)!=="svelte-2xruby"&&(de.innerHTML=ut),Pe=s(J),me=d(J,"P",{"data-svelte-h":!0}),M(me)!=="svelte-qr3t5r"&&(me.innerHTML=gt),Qe=s(J),f(L.$$.fragment,J),J.forEach(o),Ze=s(e),f(ee.$$.fragment,e),qe=s(e),w=d(e,"DIV",{class:!0});var k=ie(w);f(te.$$.fragment,k),Be=s(k),ce=d(k,"P",{"data-svelte-h":!0}),M(ce)!=="svelte-gm7jra"&&(ce.textContent=bt),Ve=s(k),pe=d(k,"P",{"data-svelte-h":!0}),M(pe)!=="svelte-u3dlub"&&(pe.innerHTML=_t),Ye=s(k),he=d(k,"P",{"data-svelte-h":!0}),M(he)!=="svelte-hswkmf"&&(he.innerHTML=Mt),De=s(k),z=d(k,"DIV",{class:!0});var F=ie(z);f(oe.$$.fragment,F),Oe=s(F),fe=d(F,"P",{"data-svelte-h":!0}),M(fe)!=="svelte-c53n6o"&&(fe.innerHTML=yt),Ke=s(F),f(I.$$.fragment,F),F.forEach(o),k.forEach(o),Re=s(e),f(ne.$$.fragment,e),He=s(e),v=d(e,"DIV",{class:!0});var U=ie(v);f(ae.$$.fragment,U),et=s(U),ue=d(U,"P",{"data-svelte-h":!0}),M(ue)!=="svelte-xhqj3f"&&(ue.textContent=Tt),tt=s(U),ge=d(U,"P",{"data-svelte-h":!0}),M(ge)!=="svelte-u3dlub"&&(ge.innerHTML=Ct),ot=s(U),be=d(U,"P",{"data-svelte-h":!0}),M(be)!=="svelte-hswkmf"&&(be.innerHTML=wt),nt=s(U),x=d(U,"DIV",{class:!0});var q=ie(x);f(se.$$.fragment,q),at=s(q),_e=d(q,"P",{"data-svelte-h":!0}),M(_e)!=="svelte-1elqzss"&&(_e.innerHTML=vt),st=s(q),f(W.$$.fragment,q),rt=s(q),f(Z.$$.fragment,q),q.forEach(o),U.forEach(o),Ee=s(e),f(re.$$.fragment,e),Ne=s(e),Me=d(e,"P",{}),ie(Me).forEach(o),this.h()},h(){le(r,"name","hf:doc:metadata"),le(r,"content",Rt),le($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),le(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),le(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),le(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),le(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){m(document.head,r),n(e,T,t),n(e,c,t),n(e,p,t),u(y,e,t),n(e,i,t),u(C,e,t),n(e,Te,t),n(e,H,t),n(e,Ce,t),n(e,E,t),n(e,we,t),n(e,N,t),n(e,ve,t),n(e,G,t),n(e,$e,t),n(e,X,t),n(e,ke,t),n(e,S,t),n(e,Ue,t),n(e,A,t),n(e,xe,t),u(P,e,t),n(e,Je,t),u(Q,e,t),n(e,je,t),u(B,e,t),n(e,ze,t),u(V,e,t),n(e,Fe,t),n(e,Y,t),n(e,Le,t),u(D,e,t),n(e,Ie,t),u(O,e,t),n(e,We,t),n(e,$,t),u(K,$,null),m($,Ae),m($,de),m($,Pe),m($,me),m($,Qe),u(L,$,null),n(e,Ze,t),u(ee,e,t),n(e,qe,t),n(e,w,t),u(te,w,null),m(w,Be),m(w,ce),m(w,Ve),m(w,pe),m(w,Ye),m(w,he),m(w,De),m(w,z),u(oe,z,null),m(z,Oe),m(z,fe),m(z,Ke),u(I,z,null),n(e,Re,t),u(ne,e,t),n(e,He,t),n(e,v,t),u(ae,v,null),m(v,et),m(v,ue),m(v,tt),m(v,ge),m(v,ot),m(v,be),m(v,nt),m(v,x),u(se,x,null),m(x,at),m(x,_e),m(x,st),u(W,x,null),m(x,rt),u(Z,x,null),n(e,Ee,t),u(re,e,t),n(e,Ne,t),n(e,Me,t),Ge=!0},p(e,[t]){const J={};t&2&&(J.$$scope={dirty:t,ctx:e}),L.$set(J);const k={};t&2&&(k.$$scope={dirty:t,ctx:e}),I.$set(k);const F={};t&2&&(F.$$scope={dirty:t,ctx:e}),W.$set(F);const U={};t&2&&(U.$$scope={dirty:t,ctx:e}),Z.$set(U)},i(e){Ge||(g(y.$$.fragment,e),g(C.$$.fragment,e),g(P.$$.fragment,e),g(Q.$$.fragment,e),g(B.$$.fragment,e),g(V.$$.fragment,e),g(D.$$.fragment,e),g(O.$$.fragment,e),g(K.$$.fragment,e),g(L.$$.fragment,e),g(ee.$$.fragment,e),g(te.$$.fragment,e),g(oe.$$.fragment,e),g(I.$$.fragment,e),g(ne.$$.fragment,e),g(ae.$$.fragment,e),g(se.$$.fragment,e),g(W.$$.fragment,e),g(Z.$$.fragment,e),g(re.$$.fragment,e),Ge=!0)},o(e){b(y.$$.fragment,e),b(C.$$.fragment,e),b(P.$$.fragment,e),b(Q.$$.fragment,e),b(B.$$.fragment,e),b(V.$$.fragment,e),b(D.$$.fragment,e),b(O.$$.fragment,e),b(K.$$.fragment,e),b(L.$$.fragment,e),b(ee.$$.fragment,e),b(te.$$.fragment,e),b(oe.$$.fragment,e),b(I.$$.fragment,e),b(ne.$$.fragment,e),b(ae.$$.fragment,e),b(se.$$.fragment,e),b(W.$$.fragment,e),b(Z.$$.fragment,e),b(re.$$.fragment,e),Ge=!1},d(e){e&&(o(T),o(c),o(p),o(i),o(Te),o(H),o(Ce),o(E),o(we),o(N),o(ve),o(G),o($e),o(X),o(ke),o(S),o(Ue),o(A),o(xe),o(Je),o(je),o(ze),o(Fe),o(Y),o(Le),o(Ie),o(We),o($),o(Ze),o(qe),o(w),o(Re),o(He),o(v),o(Ee),o(Ne),o(Me)),o(r),_(y,e),_(C,e),_(P,e),_(Q,e),_(B,e),_(V,e),_(D,e),_(O,e),_(K),_(L),_(ee,e),_(te),_(oe),_(I),_(ne,e),_(ae),_(se),_(W),_(Z),_(re,e)}}}const Rt='{"title":"맘바","local":"mamba","sections":[{"title":"개요","local":"overview","sections":[],"depth":2}],"depth":1}';function Ht(j){return xt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Qt extends Jt{constructor(r){super(),jt(this,r,Ht,qt,Ut,{})}}export{Qt as component};
