Buckets:
| import{s as po,n as mo,o as go}from"../chunks/scheduler.0219f8bd.js";import{S as uo,i as _o,g as d,s as n,r as f,A as ho,h as r,f as i,c as l,j as _,u as c,x as a,k as s,y as Co,a as o,v as p,d as m,t as g,w as u}from"../chunks/index.f61edf3b.js";import{C as co}from"../chunks/CodeBlock.38e566ae.js";import{H as h,E as $o}from"../chunks/EditOnGithub.48fa589f.js";function yo(Ji){let C,Ee,xe,ke,$,Se,y,Ze,M,xi=`Helper module for using model configs. For more information, see the corresponding | |
| <a href="https://huggingface.co/docs/transformers/main/en/model_doc/auto#transformers.AutoConfig" rel="nofollow">Python documentation</a>.`,Ke,T,Ri="<strong>Example:</strong> Load an <code>AutoConfig</code>.",Ne,b,Be,P,Ei='<li><a href="#module_configs">configs</a><ul><li><em>static</em><ul><li><a href="#module_configs.PretrainedConfig">.PretrainedConfig</a><ul><li><a href="#new_module_configs.PretrainedConfig_new"><code>new PretrainedConfig(configJSON)</code></a></li> <li><em>instance</em><ul><li><a href="#module_configs.PretrainedConfig+model_type"><code>.model_type</code></a> : <code>string</code> | <code>null</code></li> <li><a href="#module_configs.PretrainedConfig+is_encoder_decoder"><code>.is_encoder_decoder</code></a> : <code>boolean</code></li> <li><a href="#module_configs.PretrainedConfig+max_position_embeddings"><code>.max_position_embeddings</code></a> : <code>number</code></li></ul></li> <li><em>static</em><ul><li><a href="#module_configs.PretrainedConfig.from_pretrained"><code>.from_pretrained(pretrained_model_name_or_path, options)</code></a> ⇒ <code>Promise.<PretrainedConfig></code></li></ul></li></ul></li> <li><a href="#module_configs.AutoConfig">.AutoConfig</a><ul><li><a href="#new_module_configs.AutoConfig_new"><code>new AutoConfig()</code></a></li> <li><a href="#module_configs.AutoConfig.from_pretrained"><code>.from_pretrained()</code></a> : <code>*</code></li></ul></li> <li><a href="#module_configs.getKeyValueShapes"><code>.getKeyValueShapes(config)</code></a> ⇒ <code>Record.<string, Array<number>></code><ul><li><a href="#module_configs.getKeyValueShapes..decoderFeeds"><code>~decoderFeeds</code></a> : <code>Record.<string, Array<number>></code></li></ul></li></ul></li> <li><em>inner</em><ul><li><a href="#module_configs..loadConfig"><code>~loadConfig(pretrained_model_name_or_path, options)</code></a> ⇒ <code>Promise.<Object></code></li> <li><a href="#module_configs..getNormalizedConfig"><code>~getNormalizedConfig(config)</code></a> ⇒ <code>Object</code></li> <li><a href="#module_configs..PretrainedOptions"><code>~PretrainedOptions</code></a> : <code>*</code></li> <li><a href="#module_configs..ProgressCallback"><code>~ProgressCallback</code></a> : <code>*</code></li> <li><a href="#module_configs..ProgressInfo"><code>~ProgressInfo</code></a> : <code>*</code></li></ul></li></ul></li>',Ie,qe,Ve,w,Oe,U,ze,v,ki=`Base class for all configuration classes. For more information, see the corresponding | |
| <a href="https://huggingface.co/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">Python documentation</a>.`,Qe,H,Si='<strong>Kind</strong>: static class of <a href="#module_configs"><code>configs</code></a>',Fe,L,Zi='<li><a href="#module_configs.PretrainedConfig">.PretrainedConfig</a><ul><li><a href="#new_module_configs.PretrainedConfig_new"><code>new PretrainedConfig(configJSON)</code></a></li> <li><em>instance</em><ul><li><a href="#module_configs.PretrainedConfig+model_type"><code>.model_type</code></a> : <code>string</code> | <code>null</code></li> <li><a href="#module_configs.PretrainedConfig+is_encoder_decoder"><code>.is_encoder_decoder</code></a> : <code>boolean</code></li> <li><a href="#module_configs.PretrainedConfig+max_position_embeddings"><code>.max_position_embeddings</code></a> : <code>number</code></li></ul></li> <li><em>static</em><ul><li><a href="#module_configs.PretrainedConfig.from_pretrained"><code>.from_pretrained(pretrained_model_name_or_path, options)</code></a> ⇒ <code>Promise.<PretrainedConfig></code></li></ul></li></ul></li>',We,Ge,Ye,j,Xe,A,De,J,Ki="Create a new PreTrainedTokenizer instance.",et,x,Ni="<thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>configJSON</td><td><code>Object</code></td><td><p>The JSON of the config.</p></td></tr></tbody>",tt,it,ot,R,nt,E,lt,k,Bi='<strong>Kind</strong>: instance property of <a href="#module_configs.PretrainedConfig"><code>PretrainedConfig</code></a>',dt,rt,st,S,at,Z,ft,K,Ii='<strong>Kind</strong>: instance property of <a href="#module_configs.PretrainedConfig"><code>PretrainedConfig</code></a>',ct,pt,mt,N,gt,B,ut,I,qi='<strong>Kind</strong>: instance property of <a href="#module_configs.PretrainedConfig"><code>PretrainedConfig</code></a>',_t,ht,Ct,q,$t,V,yt,O,Vi="Loads a pre-trained config from the given <code>pretrained_model_name_or_path</code>.",Mt,z,Oi='<strong>Kind</strong>: static method of <a href="#module_configs.PretrainedConfig"><code>PretrainedConfig</code></a><br/> <strong>Returns</strong>: <code>Promise.<PretrainedConfig></code> - A new instance of the <code>PretrainedConfig</code> class.<br/> <strong>Throws</strong>:',Tt,Q,zi="<li><code>Error</code> Throws an error if the config.json is not found in the `pretrained_model_name_or_path`.</li>",bt,F,Qi="<thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>pretrained_model_name_or_path</td><td><code>string</code></td><td><p>The path to the pre-trained config.</p></td> </tr><tr><td>options</td><td><code>PretrainedOptions</code></td><td><p>Additional options for loading the config.</p></td></tr></tbody>",Pt,wt,Ut,W,vt,G,Ht,Y,Fi="Helper class which is used to instantiate pretrained configs with the <code>from_pretrained</code> function.",Lt,X,Wi='<strong>Kind</strong>: static class of <a href="#module_configs"><code>configs</code></a>',jt,D,Gi='<li><a href="#module_configs.AutoConfig">.AutoConfig</a><ul><li><a href="#new_module_configs.AutoConfig_new"><code>new AutoConfig()</code></a></li> <li><a href="#module_configs.AutoConfig.from_pretrained"><code>.from_pretrained()</code></a> : <code>*</code></li></ul></li>',At,Jt,xt,ee,Rt,te,Et,ie,Yi="<strong>Example</strong>",kt,oe,St,Zt,Kt,ne,Nt,le,Bt,de,Xi='<strong>Kind</strong>: static method of <a href="#module_configs.AutoConfig"><code>AutoConfig</code></a>',It,qt,Vt,re,Ot,se,zt,ae,Di='<strong>Kind</strong>: static method of <a href="#module_configs"><code>configs</code></a>',Qt,fe,eo="<thead><tr><th>Param</th><th>Type</th></tr></thead> <tbody><tr><td>config</td><td><code>PretrainedConfig</code></td></tr></tbody>",Ft,Wt,Gt,ce,Yt,pe,Xt,me,to='<strong>Kind</strong>: inner constant of <a href="#module_configs.getKeyValueShapes"><code>getKeyValueShapes</code></a>',Dt,ei,ti,ge,ii,ue,oi,_e,io="Loads a config from the specified path.",ni,he,oo='<strong>Kind</strong>: inner method of <a href="#module_configs"><code>configs</code></a><br/> <strong>Returns</strong>: <code>Promise.<Object></code> - A promise that resolves with information about the loaded config.',li,Ce,no="<thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>pretrained_model_name_or_path</td><td><code>string</code></td><td><p>The path to the config directory.</p></td> </tr><tr><td>options</td><td><code>PretrainedOptions</code></td><td><p>Additional options for loading the config.</p></td></tr></tbody>",di,ri,si,$e,ai,ye,fi,Me,lo='<strong>Kind</strong>: inner method of <a href="#module_configs"><code>configs</code></a><br/> <strong>Returns</strong>: <code>Object</code> - The normalized configuration.',ci,Te,ro="<thead><tr><th>Param</th><th>Type</th></tr></thead> <tbody><tr><td>config</td><td><code>PretrainedConfig</code></td></tr></tbody>",pi,mi,gi,be,ui,Pe,_i,we,so='<strong>Kind</strong>: inner typedef of <a href="#module_configs"><code>configs</code></a>',hi,Ci,$i,Ue,yi,ve,Mi,He,ao='<strong>Kind</strong>: inner typedef of <a href="#module_configs"><code>configs</code></a>',Ti,bi,Pi,Le,wi,je,Ui,Ae,fo='<strong>Kind</strong>: inner typedef of <a href="#module_configs"><code>configs</code></a>',vi,Hi,Li,Je,ji,Re,Ai;return y=new h({props:{title:"configs",local:"configs",headingTag:"h1"}}),b=new co({props:{code:"aW1wb3J0JTIwJTdCJTIwQXV0b0NvbmZpZyUyMCU3RCUyMGZyb20lMjAnJTQwaHVnZ2luZ2ZhY2UlMkZ0cmFuc2Zvcm1lcnMnJTNCJTBBY29uc3QlMjBjb25maWclMjAlM0QlMjBhd2FpdCUyMEF1dG9Db25maWcuZnJvbV9wcmV0cmFpbmVkKCdiZXJ0LWJhc2UtdW5jYXNlZCcpJTNCJTBBY29uc29sZS5sb2coY29uZmlnKSUzQiUwQSUyRiUyRiUyMFByZXRyYWluZWRDb25maWclMjAlN0IlMEElMkYlMkYlMjAlMjAlMjAlMjJtb2RlbF90eXBlJTIyJTNBJTIwJTIyYmVydCUyMiUyQyUwQSUyRiUyRiUyMCUyMCUyMCUyMmlzX2VuY29kZXJfZGVjb2RlciUyMiUzQSUyMGZhbHNlJTJDJTBBJTJGJTJGJTIwJTIwJTIwJTIyYXJjaGl0ZWN0dXJlcyUyMiUzQSUyMCU1QiUwQSUyRiUyRiUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMkJlcnRGb3JNYXNrZWRMTSUyMiUwQSUyRiUyRiUyMCUyMCUyMCU1RCUyQyUwQSUyRiUyRiUyMCUyMCUyMCUyMnZvY2FiX3NpemUlMjIlM0ElMjAzMDUyMiUwQSUyRiUyRiUyMCUyMCUyMCUyMm51bV9hdHRlbnRpb25faGVhZHMlMjIlM0ElMjAxMiUyQyUwQSUyRiUyRiUyMCUyMCUyMCUyMm51bV9oaWRkZW5fbGF5ZXJzJTIyJTNBJTIwMTIlMkMlMEElMkYlMkYlMjAlMjAlMjAlMjJoaWRkZW5fc2l6ZSUyMiUzQSUyMDc2OCUyQyUwQSUyRiUyRiUyMCUyMCUyMCUyMm1heF9wb3NpdGlvbl9lbWJlZGRpbmdzJTIyJTNBJTIwNTEyJTJDJTBBJTJGJTJGJTIwJTIwJTIwLi4uJTBBJTJGJTJGJTIwJTdE",highlighted:`<span class="hljs-keyword">import</span> { <span class="hljs-title class_">AutoConfig</span> } <span class="hljs-keyword">from</span> <span class="hljs-string">'@huggingface/transformers'</span>; | |
| <span class="hljs-keyword">const</span> config = <span class="hljs-keyword">await</span> <span class="hljs-title class_">AutoConfig</span>.<span class="hljs-title function_">from_pretrained</span>(<span class="hljs-string">'bert-base-uncased'</span>); | |
| <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(config); | |
| <span class="hljs-comment">// PretrainedConfig {</span> | |
| <span class="hljs-comment">// "model_type": "bert",</span> | |
| <span class="hljs-comment">// "is_encoder_decoder": false,</span> | |
| <span class="hljs-comment">// "architectures": [</span> | |
| <span class="hljs-comment">// "BertForMaskedLM"</span> | |
| <span class="hljs-comment">// ],</span> | |
| <span class="hljs-comment">// "vocab_size": 30522</span> | |
| <span class="hljs-comment">// "num_attention_heads": 12,</span> | |
| <span class="hljs-comment">// "num_hidden_layers": 12,</span> | |
| <span class="hljs-comment">// "hidden_size": 768,</span> | |
| <span class="hljs-comment">// "max_position_embeddings": 512,</span> | |
| <span class="hljs-comment">// ...</span> | |
| <span class="hljs-comment">// }</span>`,wrap:!1}}),U=new h({props:{title:"configs.PretrainedConfig",local:"configspretrainedconfig",headingTag:"h2"}}),A=new h({props:{title:"new PretrainedConfig(configJSON)",local:"new-pretrainedconfigconfigjson",headingTag:"h3"}}),E=new h({props:{title:"pretrainedConfig.model_type : <code> string </code> | <code> null </code>",local:"pretrainedconfigmodeltype--code-string-code--code-null-code",headingTag:"h3"}}),Z=new h({props:{title:"pretrainedConfig.is_encoder_decoder : <code> boolean </code>",local:"pretrainedconfigisencoderdecoder--code-boolean-code",headingTag:"h3"}}),B=new h({props:{title:"pretrainedConfig.max_position_embeddings : <code> number </code>",local:"pretrainedconfigmaxpositionembeddings--code-number-code",headingTag:"h3"}}),V=new h({props:{title:"PretrainedConfig.from_pretrained(pretrained_model_name_or_path, options) ⇒ <code> Promise. < PretrainedConfig > </code>",local:"pretrainedconfigfrompretrainedpretrainedmodelnameorpath-options--code-promise--pretrainedconfig--code",headingTag:"h3"}}),G=new h({props:{title:"configs.AutoConfig",local:"configsautoconfig",headingTag:"h2"}}),te=new h({props:{title:"new AutoConfig()",local:"new-autoconfig",headingTag:"h3"}}),oe=new co({props:{code:"Y29uc3QlMjBjb25maWclMjAlM0QlMjBhd2FpdCUyMEF1dG9Db25maWcuZnJvbV9wcmV0cmFpbmVkKCdYZW5vdmElMkZiZXJ0LWJhc2UtdW5jYXNlZCcpJTNCJTIw",highlighted:'<span class="hljs-keyword">const</span> config = <span class="hljs-keyword">await</span> <span class="hljs-title class_">AutoConfig</span>.<span class="hljs-title function_">from_pretrained</span>(<span class="hljs-string">'Xenova/bert-base-uncased'</span>); ',wrap:!1}}),le=new h({props:{title:"AutoConfig.from_pretrained() : <code> * </code>",local:"autoconfigfrompretrained--code--code",headingTag:"h3"}}),se=new h({props:{title:"configs.getKeyValueShapes(config) ⇒ <code> Record. < string, Array < number > > </code>",local:"configsgetkeyvalueshapesconfig--code-record--string-array--number---code",headingTag:"h2"}}),pe=new h({props:{title:"getKeyValueShapes~decoderFeeds : <code> Record. < string, Array < number > > </code>",local:"getkeyvalueshapesdecoderfeeds--code-record--string-array--number---code",headingTag:"h3"}}),ue=new h({props:{title:"configs~loadConfig(pretrained_model_name_or_path, options) ⇒ <code> Promise. < Object > </code>",local:"configsloadconfigpretrainedmodelnameorpath-options--code-promise--object--code",headingTag:"h2"}}),ye=new h({props:{title:"configs~getNormalizedConfig(config) ⇒ <code> Object </code>",local:"configsgetnormalizedconfigconfig--code-object-code",headingTag:"h2"}}),Pe=new h({props:{title:"configs~PretrainedOptions : <code> * </code>",local:"configspretrainedoptions--code--code",headingTag:"h2"}}),ve=new h({props:{title:"configs~ProgressCallback : <code> * </code>",local:"configsprogresscallback--code--code",headingTag:"h2"}}),je=new h({props:{title:"configs~ProgressInfo : <code> * </code>",local:"configsprogressinfo--code--code",headingTag:"h2"}}),Je=new $o({props:{source:"https://github.com/huggingface/transformers.js/blob/main/docs/source/api/configs.md"}}),{c(){C=d("meta"),Ee=n(),xe=d("p"),ke=n(),$=d("a"),Se=n(),f(y.$$.fragment),Ze=n(),M=d("p"),M.innerHTML=xi,Ke=n(),T=d("p"),T.innerHTML=Ri,Ne=n(),f(b.$$.fragment),Be=n(),P=d("ul"),P.innerHTML=Ei,Ie=n(),qe=d("hr"),Ve=n(),w=d("a"),Oe=n(),f(U.$$.fragment),ze=n(),v=d("p"),v.innerHTML=ki,Qe=n(),H=d("p"),H.innerHTML=Si,Fe=n(),L=d("ul"),L.innerHTML=Zi,We=n(),Ge=d("hr"),Ye=n(),j=d("a"),Xe=n(),f(A.$$.fragment),De=n(),J=d("p"),J.textContent=Ki,et=n(),x=d("table"),x.innerHTML=Ni,tt=n(),it=d("hr"),ot=n(),R=d("a"),nt=n(),f(E.$$.fragment),lt=n(),k=d("p"),k.innerHTML=Bi,dt=n(),rt=d("hr"),st=n(),S=d("a"),at=n(),f(Z.$$.fragment),ft=n(),K=d("p"),K.innerHTML=Ii,ct=n(),pt=d("hr"),mt=n(),N=d("a"),gt=n(),f(B.$$.fragment),ut=n(),I=d("p"),I.innerHTML=qi,_t=n(),ht=d("hr"),Ct=n(),q=d("a"),$t=n(),f(V.$$.fragment),yt=n(),O=d("p"),O.innerHTML=Vi,Mt=n(),z=d("p"),z.innerHTML=Oi,Tt=n(),Q=d("ul"),Q.innerHTML=zi,bt=n(),F=d("table"),F.innerHTML=Qi,Pt=n(),wt=d("hr"),Ut=n(),W=d("a"),vt=n(),f(G.$$.fragment),Ht=n(),Y=d("p"),Y.innerHTML=Fi,Lt=n(),X=d("p"),X.innerHTML=Wi,jt=n(),D=d("ul"),D.innerHTML=Gi,At=n(),Jt=d("hr"),xt=n(),ee=d("a"),Rt=n(),f(te.$$.fragment),Et=n(),ie=d("p"),ie.innerHTML=Yi,kt=n(),f(oe.$$.fragment),St=n(),Zt=d("hr"),Kt=n(),ne=d("a"),Nt=n(),f(le.$$.fragment),Bt=n(),de=d("p"),de.innerHTML=Xi,It=n(),qt=d("hr"),Vt=n(),re=d("a"),Ot=n(),f(se.$$.fragment),zt=n(),ae=d("p"),ae.innerHTML=Di,Qt=n(),fe=d("table"),fe.innerHTML=eo,Ft=n(),Wt=d("hr"),Gt=n(),ce=d("a"),Yt=n(),f(pe.$$.fragment),Xt=n(),me=d("p"),me.innerHTML=to,Dt=n(),ei=d("hr"),ti=n(),ge=d("a"),ii=n(),f(ue.$$.fragment),oi=n(),_e=d("p"),_e.textContent=io,ni=n(),he=d("p"),he.innerHTML=oo,li=n(),Ce=d("table"),Ce.innerHTML=no,di=n(),ri=d("hr"),si=n(),$e=d("a"),ai=n(),f(ye.$$.fragment),fi=n(),Me=d("p"),Me.innerHTML=lo,ci=n(),Te=d("table"),Te.innerHTML=ro,pi=n(),mi=d("hr"),gi=n(),be=d("a"),ui=n(),f(Pe.$$.fragment),_i=n(),we=d("p"),we.innerHTML=so,hi=n(),Ci=d("hr"),$i=n(),Ue=d("a"),yi=n(),f(ve.$$.fragment),Mi=n(),He=d("p"),He.innerHTML=ao,Ti=n(),bi=d("hr"),Pi=n(),Le=d("a"),wi=n(),f(je.$$.fragment),Ui=n(),Ae=d("p"),Ae.innerHTML=fo,vi=n(),Hi=d("hr"),Li=n(),f(Je.$$.fragment),ji=n(),Re=d("p"),this.h()},l(e){const t=ho("svelte-u9bgzb",document.head);C=r(t,"META",{name:!0,content:!0}),t.forEach(i),Ee=l(e),xe=r(e,"P",{}),_(xe).forEach(i),ke=l(e),$=r(e,"A",{id:!0,class:!0}),_($).forEach(i),Se=l(e),c(y.$$.fragment,e),Ze=l(e),M=r(e,"P",{"data-svelte-h":!0}),a(M)!=="svelte-1opttiq"&&(M.innerHTML=xi),Ke=l(e),T=r(e,"P",{"data-svelte-h":!0}),a(T)!=="svelte-rr1p86"&&(T.innerHTML=Ri),Ne=l(e),c(b.$$.fragment,e),Be=l(e),P=r(e,"UL",{"data-svelte-h":!0}),a(P)!=="svelte-1frdiz6"&&(P.innerHTML=Ei),Ie=l(e),qe=r(e,"HR",{}),Ve=l(e),w=r(e,"A",{id:!0,class:!0}),_(w).forEach(i),Oe=l(e),c(U.$$.fragment,e),ze=l(e),v=r(e,"P",{"data-svelte-h":!0}),a(v)!=="svelte-11hfe16"&&(v.innerHTML=ki),Qe=l(e),H=r(e,"P",{"data-svelte-h":!0}),a(H)!=="svelte-f2ynak"&&(H.innerHTML=Si),Fe=l(e),L=r(e,"UL",{"data-svelte-h":!0}),a(L)!=="svelte-o0d7mx"&&(L.innerHTML=Zi),We=l(e),Ge=r(e,"HR",{}),Ye=l(e),j=r(e,"A",{id:!0,class:!0}),_(j).forEach(i),Xe=l(e),c(A.$$.fragment,e),De=l(e),J=r(e,"P",{"data-svelte-h":!0}),a(J)!=="svelte-1vkx5qp"&&(J.textContent=Ki),et=l(e),x=r(e,"TABLE",{"data-svelte-h":!0}),a(x)!=="svelte-1w4istn"&&(x.innerHTML=Ni),tt=l(e),it=r(e,"HR",{}),ot=l(e),R=r(e,"A",{id:!0,class:!0}),_(R).forEach(i),nt=l(e),c(E.$$.fragment,e),lt=l(e),k=r(e,"P",{"data-svelte-h":!0}),a(k)!=="svelte-w7pt4r"&&(k.innerHTML=Bi),dt=l(e),rt=r(e,"HR",{}),st=l(e),S=r(e,"A",{id:!0,class:!0}),_(S).forEach(i),at=l(e),c(Z.$$.fragment,e),ft=l(e),K=r(e,"P",{"data-svelte-h":!0}),a(K)!=="svelte-w7pt4r"&&(K.innerHTML=Ii),ct=l(e),pt=r(e,"HR",{}),mt=l(e),N=r(e,"A",{id:!0,class:!0}),_(N).forEach(i),gt=l(e),c(B.$$.fragment,e),ut=l(e),I=r(e,"P",{"data-svelte-h":!0}),a(I)!=="svelte-w7pt4r"&&(I.innerHTML=qi),_t=l(e),ht=r(e,"HR",{}),Ct=l(e),q=r(e,"A",{id:!0,class:!0}),_(q).forEach(i),$t=l(e),c(V.$$.fragment,e),yt=l(e),O=r(e,"P",{"data-svelte-h":!0}),a(O)!=="svelte-vvzc20"&&(O.innerHTML=Vi),Mt=l(e),z=r(e,"P",{"data-svelte-h":!0}),a(z)!=="svelte-1hd19ua"&&(z.innerHTML=Oi),Tt=l(e),Q=r(e,"UL",{"data-svelte-h":!0}),a(Q)!=="svelte-1t4vr9z"&&(Q.innerHTML=zi),bt=l(e),F=r(e,"TABLE",{"data-svelte-h":!0}),a(F)!=="svelte-1d3un66"&&(F.innerHTML=Qi),Pt=l(e),wt=r(e,"HR",{}),Ut=l(e),W=r(e,"A",{id:!0,class:!0}),_(W).forEach(i),vt=l(e),c(G.$$.fragment,e),Ht=l(e),Y=r(e,"P",{"data-svelte-h":!0}),a(Y)!=="svelte-1a80qit"&&(Y.innerHTML=Fi),Lt=l(e),X=r(e,"P",{"data-svelte-h":!0}),a(X)!=="svelte-f2ynak"&&(X.innerHTML=Wi),jt=l(e),D=r(e,"UL",{"data-svelte-h":!0}),a(D)!=="svelte-8pmp8u"&&(D.innerHTML=Gi),At=l(e),Jt=r(e,"HR",{}),xt=l(e),ee=r(e,"A",{id:!0,class:!0}),_(ee).forEach(i),Rt=l(e),c(te.$$.fragment,e),Et=l(e),ie=r(e,"P",{"data-svelte-h":!0}),a(ie)!=="svelte-1aswmub"&&(ie.innerHTML=Yi),kt=l(e),c(oe.$$.fragment,e),St=l(e),Zt=r(e,"HR",{}),Kt=l(e),ne=r(e,"A",{id:!0,class:!0}),_(ne).forEach(i),Nt=l(e),c(le.$$.fragment,e),Bt=l(e),de=r(e,"P",{"data-svelte-h":!0}),a(de)!=="svelte-16eawau"&&(de.innerHTML=Xi),It=l(e),qt=r(e,"HR",{}),Vt=l(e),re=r(e,"A",{id:!0,class:!0}),_(re).forEach(i),Ot=l(e),c(se.$$.fragment,e),zt=l(e),ae=r(e,"P",{"data-svelte-h":!0}),a(ae)!=="svelte-17wh7oh"&&(ae.innerHTML=Di),Qt=l(e),fe=r(e,"TABLE",{"data-svelte-h":!0}),a(fe)!=="svelte-wt8hie"&&(fe.innerHTML=eo),Ft=l(e),Wt=r(e,"HR",{}),Gt=l(e),ce=r(e,"A",{id:!0,class:!0}),_(ce).forEach(i),Yt=l(e),c(pe.$$.fragment,e),Xt=l(e),me=r(e,"P",{"data-svelte-h":!0}),a(me)!=="svelte-1d33q1x"&&(me.innerHTML=to),Dt=l(e),ei=r(e,"HR",{}),ti=l(e),ge=r(e,"A",{id:!0,class:!0}),_(ge).forEach(i),ii=l(e),c(ue.$$.fragment,e),oi=l(e),_e=r(e,"P",{"data-svelte-h":!0}),a(_e)!=="svelte-k149e6"&&(_e.textContent=io),ni=l(e),he=r(e,"P",{"data-svelte-h":!0}),a(he)!=="svelte-d4hf14"&&(he.innerHTML=oo),li=l(e),Ce=r(e,"TABLE",{"data-svelte-h":!0}),a(Ce)!=="svelte-15tjhd0"&&(Ce.innerHTML=no),di=l(e),ri=r(e,"HR",{}),si=l(e),$e=r(e,"A",{id:!0,class:!0}),_($e).forEach(i),ai=l(e),c(ye.$$.fragment,e),fi=l(e),Me=r(e,"P",{"data-svelte-h":!0}),a(Me)!=="svelte-12bxbck"&&(Me.innerHTML=lo),ci=l(e),Te=r(e,"TABLE",{"data-svelte-h":!0}),a(Te)!=="svelte-wt8hie"&&(Te.innerHTML=ro),pi=l(e),mi=r(e,"HR",{}),gi=l(e),be=r(e,"A",{id:!0,class:!0}),_(be).forEach(i),ui=l(e),c(Pe.$$.fragment,e),_i=l(e),we=r(e,"P",{"data-svelte-h":!0}),a(we)!=="svelte-ry9p49"&&(we.innerHTML=so),hi=l(e),Ci=r(e,"HR",{}),$i=l(e),Ue=r(e,"A",{id:!0,class:!0}),_(Ue).forEach(i),yi=l(e),c(ve.$$.fragment,e),Mi=l(e),He=r(e,"P",{"data-svelte-h":!0}),a(He)!=="svelte-ry9p49"&&(He.innerHTML=ao),Ti=l(e),bi=r(e,"HR",{}),Pi=l(e),Le=r(e,"A",{id:!0,class:!0}),_(Le).forEach(i),wi=l(e),c(je.$$.fragment,e),Ui=l(e),Ae=r(e,"P",{"data-svelte-h":!0}),a(Ae)!=="svelte-ry9p49"&&(Ae.innerHTML=fo),vi=l(e),Hi=r(e,"HR",{}),Li=l(e),c(Je.$$.fragment,e),ji=l(e),Re=r(e,"P",{}),_(Re).forEach(i),this.h()},h(){s(C,"name","hf:doc:metadata"),s(C,"content",Mo),s($,"id","module_configs"),s($,"class","group"),s(w,"id","module_configs.PretrainedConfig"),s(w,"class","group"),s(j,"id","new_module_configs.PretrainedConfig_new"),s(j,"class","group"),s(R,"id","module_configs.PretrainedConfig+model_type"),s(R,"class","group"),s(S,"id","module_configs.PretrainedConfig+is_encoder_decoder"),s(S,"class","group"),s(N,"id","module_configs.PretrainedConfig+max_position_embeddings"),s(N,"class","group"),s(q,"id","module_configs.PretrainedConfig.from_pretrained"),s(q,"class","group"),s(W,"id","module_configs.AutoConfig"),s(W,"class","group"),s(ee,"id","new_module_configs.AutoConfig_new"),s(ee,"class","group"),s(ne,"id","module_configs.AutoConfig.from_pretrained"),s(ne,"class","group"),s(re,"id","module_configs.getKeyValueShapes"),s(re,"class","group"),s(ce,"id","module_configs.getKeyValueShapes..decoderFeeds"),s(ce,"class","group"),s(ge,"id","module_configs..loadConfig"),s(ge,"class","group"),s($e,"id","module_configs..getNormalizedConfig"),s($e,"class","group"),s(be,"id","module_configs..PretrainedOptions"),s(be,"class","group"),s(Ue,"id","module_configs..ProgressCallback"),s(Ue,"class","group"),s(Le,"id","module_configs..ProgressInfo"),s(Le,"class","group")},m(e,t){Co(document.head,C),o(e,Ee,t),o(e,xe,t),o(e,ke,t),o(e,$,t),o(e,Se,t),p(y,e,t),o(e,Ze,t),o(e,M,t),o(e,Ke,t),o(e,T,t),o(e,Ne,t),p(b,e,t),o(e,Be,t),o(e,P,t),o(e,Ie,t),o(e,qe,t),o(e,Ve,t),o(e,w,t),o(e,Oe,t),p(U,e,t),o(e,ze,t),o(e,v,t),o(e,Qe,t),o(e,H,t),o(e,Fe,t),o(e,L,t),o(e,We,t),o(e,Ge,t),o(e,Ye,t),o(e,j,t),o(e,Xe,t),p(A,e,t),o(e,De,t),o(e,J,t),o(e,et,t),o(e,x,t),o(e,tt,t),o(e,it,t),o(e,ot,t),o(e,R,t),o(e,nt,t),p(E,e,t),o(e,lt,t),o(e,k,t),o(e,dt,t),o(e,rt,t),o(e,st,t),o(e,S,t),o(e,at,t),p(Z,e,t),o(e,ft,t),o(e,K,t),o(e,ct,t),o(e,pt,t),o(e,mt,t),o(e,N,t),o(e,gt,t),p(B,e,t),o(e,ut,t),o(e,I,t),o(e,_t,t),o(e,ht,t),o(e,Ct,t),o(e,q,t),o(e,$t,t),p(V,e,t),o(e,yt,t),o(e,O,t),o(e,Mt,t),o(e,z,t),o(e,Tt,t),o(e,Q,t),o(e,bt,t),o(e,F,t),o(e,Pt,t),o(e,wt,t),o(e,Ut,t),o(e,W,t),o(e,vt,t),p(G,e,t),o(e,Ht,t),o(e,Y,t),o(e,Lt,t),o(e,X,t),o(e,jt,t),o(e,D,t),o(e,At,t),o(e,Jt,t),o(e,xt,t),o(e,ee,t),o(e,Rt,t),p(te,e,t),o(e,Et,t),o(e,ie,t),o(e,kt,t),p(oe,e,t),o(e,St,t),o(e,Zt,t),o(e,Kt,t),o(e,ne,t),o(e,Nt,t),p(le,e,t),o(e,Bt,t),o(e,de,t),o(e,It,t),o(e,qt,t),o(e,Vt,t),o(e,re,t),o(e,Ot,t),p(se,e,t),o(e,zt,t),o(e,ae,t),o(e,Qt,t),o(e,fe,t),o(e,Ft,t),o(e,Wt,t),o(e,Gt,t),o(e,ce,t),o(e,Yt,t),p(pe,e,t),o(e,Xt,t),o(e,me,t),o(e,Dt,t),o(e,ei,t),o(e,ti,t),o(e,ge,t),o(e,ii,t),p(ue,e,t),o(e,oi,t),o(e,_e,t),o(e,ni,t),o(e,he,t),o(e,li,t),o(e,Ce,t),o(e,di,t),o(e,ri,t),o(e,si,t),o(e,$e,t),o(e,ai,t),p(ye,e,t),o(e,fi,t),o(e,Me,t),o(e,ci,t),o(e,Te,t),o(e,pi,t),o(e,mi,t),o(e,gi,t),o(e,be,t),o(e,ui,t),p(Pe,e,t),o(e,_i,t),o(e,we,t),o(e,hi,t),o(e,Ci,t),o(e,$i,t),o(e,Ue,t),o(e,yi,t),p(ve,e,t),o(e,Mi,t),o(e,He,t),o(e,Ti,t),o(e,bi,t),o(e,Pi,t),o(e,Le,t),o(e,wi,t),p(je,e,t),o(e,Ui,t),o(e,Ae,t),o(e,vi,t),o(e,Hi,t),o(e,Li,t),p(Je,e,t),o(e,ji,t),o(e,Re,t),Ai=!0},p:mo,i(e){Ai||(m(y.$$.fragment,e),m(b.$$.fragment,e),m(U.$$.fragment,e),m(A.$$.fragment,e),m(E.$$.fragment,e),m(Z.$$.fragment,e),m(B.$$.fragment,e),m(V.$$.fragment,e),m(G.$$.fragment,e),m(te.$$.fragment,e),m(oe.$$.fragment,e),m(le.$$.fragment,e),m(se.$$.fragment,e),m(pe.$$.fragment,e),m(ue.$$.fragment,e),m(ye.$$.fragment,e),m(Pe.$$.fragment,e),m(ve.$$.fragment,e),m(je.$$.fragment,e),m(Je.$$.fragment,e),Ai=!0)},o(e){g(y.$$.fragment,e),g(b.$$.fragment,e),g(U.$$.fragment,e),g(A.$$.fragment,e),g(E.$$.fragment,e),g(Z.$$.fragment,e),g(B.$$.fragment,e),g(V.$$.fragment,e),g(G.$$.fragment,e),g(te.$$.fragment,e),g(oe.$$.fragment,e),g(le.$$.fragment,e),g(se.$$.fragment,e),g(pe.$$.fragment,e),g(ue.$$.fragment,e),g(ye.$$.fragment,e),g(Pe.$$.fragment,e),g(ve.$$.fragment,e),g(je.$$.fragment,e),g(Je.$$.fragment,e),Ai=!1},d(e){e&&(i(Ee),i(xe),i(ke),i($),i(Se),i(Ze),i(M),i(Ke),i(T),i(Ne),i(Be),i(P),i(Ie),i(qe),i(Ve),i(w),i(Oe),i(ze),i(v),i(Qe),i(H),i(Fe),i(L),i(We),i(Ge),i(Ye),i(j),i(Xe),i(De),i(J),i(et),i(x),i(tt),i(it),i(ot),i(R),i(nt),i(lt),i(k),i(dt),i(rt),i(st),i(S),i(at),i(ft),i(K),i(ct),i(pt),i(mt),i(N),i(gt),i(ut),i(I),i(_t),i(ht),i(Ct),i(q),i($t),i(yt),i(O),i(Mt),i(z),i(Tt),i(Q),i(bt),i(F),i(Pt),i(wt),i(Ut),i(W),i(vt),i(Ht),i(Y),i(Lt),i(X),i(jt),i(D),i(At),i(Jt),i(xt),i(ee),i(Rt),i(Et),i(ie),i(kt),i(St),i(Zt),i(Kt),i(ne),i(Nt),i(Bt),i(de),i(It),i(qt),i(Vt),i(re),i(Ot),i(zt),i(ae),i(Qt),i(fe),i(Ft),i(Wt),i(Gt),i(ce),i(Yt),i(Xt),i(me),i(Dt),i(ei),i(ti),i(ge),i(ii),i(oi),i(_e),i(ni),i(he),i(li),i(Ce),i(di),i(ri),i(si),i($e),i(ai),i(fi),i(Me),i(ci),i(Te),i(pi),i(mi),i(gi),i(be),i(ui),i(_i),i(we),i(hi),i(Ci),i($i),i(Ue),i(yi),i(Mi),i(He),i(Ti),i(bi),i(Pi),i(Le),i(wi),i(Ui),i(Ae),i(vi),i(Hi),i(Li),i(ji),i(Re)),i(C),u(y,e),u(b,e),u(U,e),u(A,e),u(E,e),u(Z,e),u(B,e),u(V,e),u(G,e),u(te,e),u(oe,e),u(le,e),u(se,e),u(pe,e),u(ue,e),u(ye,e),u(Pe,e),u(ve,e),u(je,e),u(Je,e)}}}const Mo='{"title":"configs","local":"configs","sections":[{"title":"configs.PretrainedConfig","local":"configspretrainedconfig","sections":[{"title":"new PretrainedConfig(configJSON)","local":"new-pretrainedconfigconfigjson","sections":[],"depth":3},{"title":"pretrainedConfig.model_type : <code> string </code> | <code> null </code>","local":"pretrainedconfigmodeltype--code-string-code--code-null-code","sections":[],"depth":3},{"title":"pretrainedConfig.is_encoder_decoder : <code> boolean </code>","local":"pretrainedconfigisencoderdecoder--code-boolean-code","sections":[],"depth":3},{"title":"pretrainedConfig.max_position_embeddings : <code> number </code>","local":"pretrainedconfigmaxpositionembeddings--code-number-code","sections":[],"depth":3},{"title":"PretrainedConfig.from_pretrained(pretrained_model_name_or_path, options) ⇒ <code> Promise. < PretrainedConfig > </code>","local":"pretrainedconfigfrompretrainedpretrainedmodelnameorpath-options--code-promise--pretrainedconfig--code","sections":[],"depth":3}],"depth":2},{"title":"configs.AutoConfig","local":"configsautoconfig","sections":[{"title":"new AutoConfig()","local":"new-autoconfig","sections":[],"depth":3},{"title":"AutoConfig.from_pretrained() : <code> * </code>","local":"autoconfigfrompretrained--code--code","sections":[],"depth":3}],"depth":2},{"title":"configs.getKeyValueShapes(config) ⇒ <code> Record. < string, Array < number > > </code>","local":"configsgetkeyvalueshapesconfig--code-record--string-array--number---code","sections":[{"title":"getKeyValueShapes~decoderFeeds : <code> Record. < string, Array < number > > </code>","local":"getkeyvalueshapesdecoderfeeds--code-record--string-array--number---code","sections":[],"depth":3}],"depth":2},{"title":"configs~loadConfig(pretrained_model_name_or_path, options) ⇒ <code> Promise. < Object > </code>","local":"configsloadconfigpretrainedmodelnameorpath-options--code-promise--object--code","sections":[],"depth":2},{"title":"configs~getNormalizedConfig(config) ⇒ <code> Object </code>","local":"configsgetnormalizedconfigconfig--code-object-code","sections":[],"depth":2},{"title":"configs~PretrainedOptions : <code> * </code>","local":"configspretrainedoptions--code--code","sections":[],"depth":2},{"title":"configs~ProgressCallback : <code> * </code>","local":"configsprogresscallback--code--code","sections":[],"depth":2},{"title":"configs~ProgressInfo : <code> * </code>","local":"configsprogressinfo--code--code","sections":[],"depth":2}],"depth":1}';function To(Ji){return go(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class vo extends uo{constructor(C){super(),_o(this,C,To,yo,po,{})}}export{vo as component}; | |
Xet Storage Details
- Size:
- 28.2 kB
- Xet hash:
- a8ed1f63cbfcb9ff9ab3d0487a7d5e2ae2acab4009f011bd387b1fa945a318c3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.