Buckets:
| import{s as Nn,n as kn,o as En}from"../chunks/scheduler.6efaaf90.js";import{S as Sn,i as On,e as s,s as l,c as d,h as Zn,a as r,d as i,b as o,f as _,g as m,j as f,k as a,l as Kn,m as n,n as p,t as c,o as g,p as u}from"../chunks/index.eb3e1f0f.js";import{C as In,H as h,E as Bn}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.7d47e4cc.js";import{C as Rn}from"../chunks/CodeBlock.22fdcd30.js";function qn(Xi){let C,Be,Ke,qe,$,ze,M,Ve,y,Qe,T,Di=`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>.`,We,b,en="<strong>Example:</strong> Load an <code>AutoConfig</code>.",Ge,P,Ye,w,tn='<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> ⇒ <a href="#PretrainedConfig"><code>Promise.<PretrainedConfig></code></a></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>Object.from_pretrained</code></li></ul></li> <li><a href="#module_configs.getCacheNames"><code>.getCacheNames(config, [options])</code></a> ⇒ <code>Set.<string></code> <ul><li><a href="#module_configs.getCacheNames..names"><code>~names</code></a> : <code>Set.<string></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..getKeyValueNames"><code>~getKeyValueNames(config, [options])</code></a> ⇒ <code>Set.<string></code> <ul><li><a href="#module_configs..getKeyValueNames..names"><code>~names</code></a> : <code>Set.<string></code></li></ul></li> <li><a href="#module_configs..PretrainedOptions"><code>~PretrainedOptions</code></a> : <a href="#PretrainedOptions"><code>PretrainedOptions</code></a></li> <li><a href="#module_configs..ProgressCallback"><code>~ProgressCallback</code></a> : <code>ProgressCallback</code></li> <li><a href="#module_configs..ProgressInfo"><code>~ProgressInfo</code></a> : <code>ProgressInfo</code></li></ul></li></ul></li>',Fe,Xe,De,v,et,H,tt,U,nn=`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>.`,it,L,ln='<strong>Kind</strong>: static class of <a href="#module_configs"><code>configs</code></a>',nt,j,on='<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> ⇒ <a href="#PretrainedConfig"><code>Promise.<PretrainedConfig></code></a></li></ul></li></ul></li>',lt,ot,st,x,rt,J,at,A,sn="Create a new PreTrainedTokenizer instance.",ft,R,rn="<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>",dt,mt,pt,N,ct,k,gt,E,an='<strong>Kind</strong>: instance property of <a href="#module_configs.PretrainedConfig"><code>PretrainedConfig</code></a>',ut,_t,ht,S,Ct,O,$t,Z,fn='<strong>Kind</strong>: instance property of <a href="#module_configs.PretrainedConfig"><code>PretrainedConfig</code></a>',Mt,yt,Tt,K,bt,I,Pt,B,dn='<strong>Kind</strong>: instance property of <a href="#module_configs.PretrainedConfig"><code>PretrainedConfig</code></a>',wt,vt,Ht,q,Ut,z,Lt,V,mn="Loads a pre-trained config from the given <code>pretrained_model_name_or_path</code>.",jt,Q,pn='<strong>Kind</strong>: static method of <a href="#module_configs.PretrainedConfig"><code>PretrainedConfig</code></a><br/> <strong>Returns</strong>: <a href="#PretrainedConfig"><code>Promise.<PretrainedConfig></code></a> - A new instance of the <code>PretrainedConfig</code> class.<br/> <strong>Throws</strong>:',xt,W,cn="<li><code>Error</code> Throws an error if the config.json is not found in the `pretrained_model_name_or_path`.</li>",Jt,G,gn='<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><a href="#PretrainedOptions">PretrainedOptions</a></code></td><td><p>Additional options for loading the config.</p></td></tr></tbody>',At,Rt,Nt,Y,kt,F,Et,X,un="Helper class which is used to instantiate pretrained configs with the <code>from_pretrained</code> function.",St,D,_n='<strong>Kind</strong>: static class of <a href="#module_configs"><code>configs</code></a>',Ot,ee,hn='<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>Object.from_pretrained</code></li></ul></li>',Zt,Kt,It,te,Bt,ie,qt,ne,Cn="<strong>Example</strong>",zt,le,Vt,Qt,Wt,oe,Gt,se,Yt,re,$n='<strong>Kind</strong>: static method of <a href="#module_configs.AutoConfig"><code>AutoConfig</code></a>',Ft,Xt,Dt,ae,ei,fe,ti,de,Mn='<strong>Kind</strong>: static method of <a href="#module_configs"><code>configs</code></a>',ii,me,yn='<thead><tr><th>Param</th><th>Type</th></tr></thead> <tbody><tr><td>config</td><td><code><a href="#PretrainedConfig">PretrainedConfig</a></code></td> </tr><tr><td>[options]</td><td><code>Object</code></td></tr></tbody>',ni,li,oi,pe,si,ce,ri,ge,Tn='<strong>Kind</strong>: inner constant of <a href="#module_configs.getCacheNames"><code>getCacheNames</code></a>',ai,fi,di,ue,mi,_e,pi,he,bn="Loads a config from the specified path.",ci,Ce,Pn='<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.',gi,$e,wn='<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><a href="#PretrainedOptions">PretrainedOptions</a></code></td><td><p>Additional options for loading the config.</p></td></tr></tbody>',ui,_i,hi,Me,Ci,ye,$i,Te,vn='<strong>Kind</strong>: inner method of <a href="#module_configs"><code>configs</code></a><br/> <strong>Returns</strong>: <code>Object</code> - The normalized configuration.',Mi,be,Hn='<thead><tr><th>Param</th><th>Type</th></tr></thead> <tbody><tr><td>config</td><td><code><a href="#PretrainedConfig">PretrainedConfig</a></code></td></tr></tbody>',yi,Ti,bi,Pe,Pi,we,wi,ve,Un='<strong>Kind</strong>: inner method of <a href="#module_configs"><code>configs</code></a>',vi,He,Ln='<thead><tr><th>Param</th><th>Type</th></tr></thead> <tbody><tr><td>config</td><td><code><a href="#PretrainedConfig">PretrainedConfig</a></code></td> </tr><tr><td>[options]</td><td><code>Object</code></td></tr></tbody>',Hi,Ui,Li,Ue,ji,Le,xi,je,jn='<strong>Kind</strong>: inner constant of <a href="#module_configs..getKeyValueNames"><code>getKeyValueNames</code></a>',Ji,Ai,Ri,xe,Ni,Je,ki,Ae,xn='<strong>Kind</strong>: inner typedef of <a href="#module_configs"><code>configs</code></a>',Ei,Si,Oi,Re,Zi,Ne,Ki,ke,Jn='<strong>Kind</strong>: inner typedef of <a href="#module_configs"><code>configs</code></a>',Ii,Bi,qi,Ee,zi,Se,Vi,Oe,An='<strong>Kind</strong>: inner typedef of <a href="#module_configs"><code>configs</code></a>',Qi,Wi,Gi,Ze,Yi,Ie,Fi;return M=new In({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),y=new h({props:{title:"configs",local:"configs",headingTag:"h1"}}),P=new Rn({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}}),H=new h({props:{title:"configs.PretrainedConfig",local:"configspretrainedconfig",headingTag:"h2"}}),J=new h({props:{title:"new PretrainedConfig(configJSON)",local:"new-pretrainedconfigconfigjson",headingTag:"h3"}}),k=new h({props:{title:"pretrainedConfig.model_type : string | null",local:"pretrainedconfigmodeltype--string--null",headingTag:"h3"}}),O=new h({props:{title:"pretrainedConfig.is_encoder_decoder : boolean",local:"pretrainedconfigisencoderdecoder--boolean",headingTag:"h3"}}),I=new h({props:{title:"pretrainedConfig.max_position_embeddings : number",local:"pretrainedconfigmaxpositionembeddings--number",headingTag:"h3"}}),z=new h({props:{title:"PretrainedConfig.from_pretrained(pretrained_model_name_or_path, options) ⇒ Promise. < PretrainedConfig >",local:"pretrainedconfigfrompretrainedpretrainedmodelnameorpath-options--promise--pretrainedconfig-",headingTag:"h3"}}),F=new h({props:{title:"configs.AutoConfig",local:"configsautoconfig",headingTag:"h2"}}),ie=new h({props:{title:"new AutoConfig()",local:"new-autoconfig",headingTag:"h3"}}),le=new Rn({props:{code:"Y29uc3QlMjBjb25maWclMjAlM0QlMjBhd2FpdCUyMEF1dG9Db25maWcuZnJvbV9wcmV0cmFpbmVkKCdYZW5vdmElMkZiZXJ0LWJhc2UtdW5jYXNlZCcpJTNC",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}}),se=new h({props:{title:"AutoConfig.from_pretrained() : Object.from_pretrained",local:"autoconfigfrompretrained--objectfrompretrained",headingTag:"h3"}}),fe=new h({props:{title:"configs.getCacheNames(config, [options]) ⇒ Set. < string >",local:"configsgetcachenamesconfig-options--set--string-",headingTag:"h2"}}),ce=new h({props:{title:"getCacheNames~names : Set. < string >",local:"getcachenamesnames--set--string-",headingTag:"h3"}}),_e=new h({props:{title:"configs~loadConfig(pretrained_model_name_or_path, options) ⇒ Promise. < Object >",local:"configsloadconfigpretrainedmodelnameorpath-options--promise--object-",headingTag:"h2"}}),ye=new h({props:{title:"configs~getNormalizedConfig(config) ⇒ Object",local:"configsgetnormalizedconfigconfig--object",headingTag:"h2"}}),we=new h({props:{title:"configs~getKeyValueNames(config, [options]) ⇒ Set. < string >",local:"configsgetkeyvaluenamesconfig-options--set--string-",headingTag:"h2"}}),Le=new h({props:{title:"getKeyValueNames~names : Set. < string >",local:"getkeyvaluenamesnames--set--string-",headingTag:"h3"}}),Je=new h({props:{title:"configs~PretrainedOptions : PretrainedOptions",local:"configspretrainedoptions--pretrainedoptions",headingTag:"h2"}}),Ne=new h({props:{title:"configs~ProgressCallback : ProgressCallback",local:"configsprogresscallback--progresscallback",headingTag:"h2"}}),Se=new h({props:{title:"configs~ProgressInfo : ProgressInfo",local:"configsprogressinfo--progressinfo",headingTag:"h2"}}),Ze=new Bn({props:{source:"https://github.com/huggingface/transformers.js/blob/main/packages/transformers/docs/source/api/configs.md"}}),{c(){C=s("meta"),Be=l(),Ke=s("p"),qe=l(),$=s("a"),ze=l(),d(M.$$.fragment),Ve=l(),d(y.$$.fragment),Qe=l(),T=s("p"),T.innerHTML=Di,We=l(),b=s("p"),b.innerHTML=en,Ge=l(),d(P.$$.fragment),Ye=l(),w=s("ul"),w.innerHTML=tn,Fe=l(),Xe=s("hr"),De=l(),v=s("a"),et=l(),d(H.$$.fragment),tt=l(),U=s("p"),U.innerHTML=nn,it=l(),L=s("p"),L.innerHTML=ln,nt=l(),j=s("ul"),j.innerHTML=on,lt=l(),ot=s("hr"),st=l(),x=s("a"),rt=l(),d(J.$$.fragment),at=l(),A=s("p"),A.textContent=sn,ft=l(),R=s("table"),R.innerHTML=rn,dt=l(),mt=s("hr"),pt=l(),N=s("a"),ct=l(),d(k.$$.fragment),gt=l(),E=s("p"),E.innerHTML=an,ut=l(),_t=s("hr"),ht=l(),S=s("a"),Ct=l(),d(O.$$.fragment),$t=l(),Z=s("p"),Z.innerHTML=fn,Mt=l(),yt=s("hr"),Tt=l(),K=s("a"),bt=l(),d(I.$$.fragment),Pt=l(),B=s("p"),B.innerHTML=dn,wt=l(),vt=s("hr"),Ht=l(),q=s("a"),Ut=l(),d(z.$$.fragment),Lt=l(),V=s("p"),V.innerHTML=mn,jt=l(),Q=s("p"),Q.innerHTML=pn,xt=l(),W=s("ul"),W.innerHTML=cn,Jt=l(),G=s("table"),G.innerHTML=gn,At=l(),Rt=s("hr"),Nt=l(),Y=s("a"),kt=l(),d(F.$$.fragment),Et=l(),X=s("p"),X.innerHTML=un,St=l(),D=s("p"),D.innerHTML=_n,Ot=l(),ee=s("ul"),ee.innerHTML=hn,Zt=l(),Kt=s("hr"),It=l(),te=s("a"),Bt=l(),d(ie.$$.fragment),qt=l(),ne=s("p"),ne.innerHTML=Cn,zt=l(),d(le.$$.fragment),Vt=l(),Qt=s("hr"),Wt=l(),oe=s("a"),Gt=l(),d(se.$$.fragment),Yt=l(),re=s("p"),re.innerHTML=$n,Ft=l(),Xt=s("hr"),Dt=l(),ae=s("a"),ei=l(),d(fe.$$.fragment),ti=l(),de=s("p"),de.innerHTML=Mn,ii=l(),me=s("table"),me.innerHTML=yn,ni=l(),li=s("hr"),oi=l(),pe=s("a"),si=l(),d(ce.$$.fragment),ri=l(),ge=s("p"),ge.innerHTML=Tn,ai=l(),fi=s("hr"),di=l(),ue=s("a"),mi=l(),d(_e.$$.fragment),pi=l(),he=s("p"),he.textContent=bn,ci=l(),Ce=s("p"),Ce.innerHTML=Pn,gi=l(),$e=s("table"),$e.innerHTML=wn,ui=l(),_i=s("hr"),hi=l(),Me=s("a"),Ci=l(),d(ye.$$.fragment),$i=l(),Te=s("p"),Te.innerHTML=vn,Mi=l(),be=s("table"),be.innerHTML=Hn,yi=l(),Ti=s("hr"),bi=l(),Pe=s("a"),Pi=l(),d(we.$$.fragment),wi=l(),ve=s("p"),ve.innerHTML=Un,vi=l(),He=s("table"),He.innerHTML=Ln,Hi=l(),Ui=s("hr"),Li=l(),Ue=s("a"),ji=l(),d(Le.$$.fragment),xi=l(),je=s("p"),je.innerHTML=jn,Ji=l(),Ai=s("hr"),Ri=l(),xe=s("a"),Ni=l(),d(Je.$$.fragment),ki=l(),Ae=s("p"),Ae.innerHTML=xn,Ei=l(),Si=s("hr"),Oi=l(),Re=s("a"),Zi=l(),d(Ne.$$.fragment),Ki=l(),ke=s("p"),ke.innerHTML=Jn,Ii=l(),Bi=s("hr"),qi=l(),Ee=s("a"),zi=l(),d(Se.$$.fragment),Vi=l(),Oe=s("p"),Oe.innerHTML=An,Qi=l(),Wi=s("hr"),Gi=l(),d(Ze.$$.fragment),Yi=l(),Ie=s("p"),this.h()},l(e){const t=Zn("svelte-u9bgzb",document.head);C=r(t,"META",{name:!0,content:!0}),t.forEach(i),Be=o(e),Ke=r(e,"P",{}),_(Ke).forEach(i),qe=o(e),$=r(e,"A",{id:!0,class:!0}),_($).forEach(i),ze=o(e),m(M.$$.fragment,e),Ve=o(e),m(y.$$.fragment,e),Qe=o(e),T=r(e,"P",{"data-svelte-h":!0}),f(T)!=="svelte-1opttiq"&&(T.innerHTML=Di),We=o(e),b=r(e,"P",{"data-svelte-h":!0}),f(b)!=="svelte-rr1p86"&&(b.innerHTML=en),Ge=o(e),m(P.$$.fragment,e),Ye=o(e),w=r(e,"UL",{"data-svelte-h":!0}),f(w)!=="svelte-k3z8p1"&&(w.innerHTML=tn),Fe=o(e),Xe=r(e,"HR",{}),De=o(e),v=r(e,"A",{id:!0,class:!0}),_(v).forEach(i),et=o(e),m(H.$$.fragment,e),tt=o(e),U=r(e,"P",{"data-svelte-h":!0}),f(U)!=="svelte-11hfe16"&&(U.innerHTML=nn),it=o(e),L=r(e,"P",{"data-svelte-h":!0}),f(L)!=="svelte-f2ynak"&&(L.innerHTML=ln),nt=o(e),j=r(e,"UL",{"data-svelte-h":!0}),f(j)!=="svelte-1p4vo8j"&&(j.innerHTML=on),lt=o(e),ot=r(e,"HR",{}),st=o(e),x=r(e,"A",{id:!0,class:!0}),_(x).forEach(i),rt=o(e),m(J.$$.fragment,e),at=o(e),A=r(e,"P",{"data-svelte-h":!0}),f(A)!=="svelte-1vkx5qp"&&(A.textContent=sn),ft=o(e),R=r(e,"TABLE",{"data-svelte-h":!0}),f(R)!=="svelte-1w4istn"&&(R.innerHTML=rn),dt=o(e),mt=r(e,"HR",{}),pt=o(e),N=r(e,"A",{id:!0,class:!0}),_(N).forEach(i),ct=o(e),m(k.$$.fragment,e),gt=o(e),E=r(e,"P",{"data-svelte-h":!0}),f(E)!=="svelte-w7pt4r"&&(E.innerHTML=an),ut=o(e),_t=r(e,"HR",{}),ht=o(e),S=r(e,"A",{id:!0,class:!0}),_(S).forEach(i),Ct=o(e),m(O.$$.fragment,e),$t=o(e),Z=r(e,"P",{"data-svelte-h":!0}),f(Z)!=="svelte-w7pt4r"&&(Z.innerHTML=fn),Mt=o(e),yt=r(e,"HR",{}),Tt=o(e),K=r(e,"A",{id:!0,class:!0}),_(K).forEach(i),bt=o(e),m(I.$$.fragment,e),Pt=o(e),B=r(e,"P",{"data-svelte-h":!0}),f(B)!=="svelte-w7pt4r"&&(B.innerHTML=dn),wt=o(e),vt=r(e,"HR",{}),Ht=o(e),q=r(e,"A",{id:!0,class:!0}),_(q).forEach(i),Ut=o(e),m(z.$$.fragment,e),Lt=o(e),V=r(e,"P",{"data-svelte-h":!0}),f(V)!=="svelte-vvzc20"&&(V.innerHTML=mn),jt=o(e),Q=r(e,"P",{"data-svelte-h":!0}),f(Q)!=="svelte-1w9teie"&&(Q.innerHTML=pn),xt=o(e),W=r(e,"UL",{"data-svelte-h":!0}),f(W)!=="svelte-1ul485z"&&(W.innerHTML=cn),Jt=o(e),G=r(e,"TABLE",{"data-svelte-h":!0}),f(G)!=="svelte-1muc4a"&&(G.innerHTML=gn),At=o(e),Rt=r(e,"HR",{}),Nt=o(e),Y=r(e,"A",{id:!0,class:!0}),_(Y).forEach(i),kt=o(e),m(F.$$.fragment,e),Et=o(e),X=r(e,"P",{"data-svelte-h":!0}),f(X)!=="svelte-1a80qit"&&(X.innerHTML=un),St=o(e),D=r(e,"P",{"data-svelte-h":!0}),f(D)!=="svelte-f2ynak"&&(D.innerHTML=_n),Ot=o(e),ee=r(e,"UL",{"data-svelte-h":!0}),f(ee)!=="svelte-fuwq6s"&&(ee.innerHTML=hn),Zt=o(e),Kt=r(e,"HR",{}),It=o(e),te=r(e,"A",{id:!0,class:!0}),_(te).forEach(i),Bt=o(e),m(ie.$$.fragment,e),qt=o(e),ne=r(e,"P",{"data-svelte-h":!0}),f(ne)!=="svelte-1aswmub"&&(ne.innerHTML=Cn),zt=o(e),m(le.$$.fragment,e),Vt=o(e),Qt=r(e,"HR",{}),Wt=o(e),oe=r(e,"A",{id:!0,class:!0}),_(oe).forEach(i),Gt=o(e),m(se.$$.fragment,e),Yt=o(e),re=r(e,"P",{"data-svelte-h":!0}),f(re)!=="svelte-16eawau"&&(re.innerHTML=$n),Ft=o(e),Xt=r(e,"HR",{}),Dt=o(e),ae=r(e,"A",{id:!0,class:!0}),_(ae).forEach(i),ei=o(e),m(fe.$$.fragment,e),ti=o(e),de=r(e,"P",{"data-svelte-h":!0}),f(de)!=="svelte-17wh7oh"&&(de.innerHTML=Mn),ii=o(e),me=r(e,"TABLE",{"data-svelte-h":!0}),f(me)!=="svelte-1rt4hpp"&&(me.innerHTML=yn),ni=o(e),li=r(e,"HR",{}),oi=o(e),pe=r(e,"A",{id:!0,class:!0}),_(pe).forEach(i),si=o(e),m(ce.$$.fragment,e),ri=o(e),ge=r(e,"P",{"data-svelte-h":!0}),f(ge)!=="svelte-1awxe0l"&&(ge.innerHTML=Tn),ai=o(e),fi=r(e,"HR",{}),di=o(e),ue=r(e,"A",{id:!0,class:!0}),_(ue).forEach(i),mi=o(e),m(_e.$$.fragment,e),pi=o(e),he=r(e,"P",{"data-svelte-h":!0}),f(he)!=="svelte-k149e6"&&(he.textContent=bn),ci=o(e),Ce=r(e,"P",{"data-svelte-h":!0}),f(Ce)!=="svelte-d4hf14"&&(Ce.innerHTML=Pn),gi=o(e),$e=r(e,"TABLE",{"data-svelte-h":!0}),f($e)!=="svelte-1umlcyo"&&($e.innerHTML=wn),ui=o(e),_i=r(e,"HR",{}),hi=o(e),Me=r(e,"A",{id:!0,class:!0}),_(Me).forEach(i),Ci=o(e),m(ye.$$.fragment,e),$i=o(e),Te=r(e,"P",{"data-svelte-h":!0}),f(Te)!=="svelte-12bxbck"&&(Te.innerHTML=vn),Mi=o(e),be=r(e,"TABLE",{"data-svelte-h":!0}),f(be)!=="svelte-58s0ve"&&(be.innerHTML=Hn),yi=o(e),Ti=r(e,"HR",{}),bi=o(e),Pe=r(e,"A",{id:!0,class:!0}),_(Pe).forEach(i),Pi=o(e),m(we.$$.fragment,e),wi=o(e),ve=r(e,"P",{"data-svelte-h":!0}),f(ve)!=="svelte-19xv7vv"&&(ve.innerHTML=Un),vi=o(e),He=r(e,"TABLE",{"data-svelte-h":!0}),f(He)!=="svelte-1rt4hpp"&&(He.innerHTML=Ln),Hi=o(e),Ui=r(e,"HR",{}),Li=o(e),Ue=r(e,"A",{id:!0,class:!0}),_(Ue).forEach(i),ji=o(e),m(Le.$$.fragment,e),xi=o(e),je=r(e,"P",{"data-svelte-h":!0}),f(je)!=="svelte-7147tz"&&(je.innerHTML=jn),Ji=o(e),Ai=r(e,"HR",{}),Ri=o(e),xe=r(e,"A",{id:!0,class:!0}),_(xe).forEach(i),Ni=o(e),m(Je.$$.fragment,e),ki=o(e),Ae=r(e,"P",{"data-svelte-h":!0}),f(Ae)!=="svelte-ry9p49"&&(Ae.innerHTML=xn),Ei=o(e),Si=r(e,"HR",{}),Oi=o(e),Re=r(e,"A",{id:!0,class:!0}),_(Re).forEach(i),Zi=o(e),m(Ne.$$.fragment,e),Ki=o(e),ke=r(e,"P",{"data-svelte-h":!0}),f(ke)!=="svelte-ry9p49"&&(ke.innerHTML=Jn),Ii=o(e),Bi=r(e,"HR",{}),qi=o(e),Ee=r(e,"A",{id:!0,class:!0}),_(Ee).forEach(i),zi=o(e),m(Se.$$.fragment,e),Vi=o(e),Oe=r(e,"P",{"data-svelte-h":!0}),f(Oe)!=="svelte-ry9p49"&&(Oe.innerHTML=An),Qi=o(e),Wi=r(e,"HR",{}),Gi=o(e),m(Ze.$$.fragment,e),Yi=o(e),Ie=r(e,"P",{}),_(Ie).forEach(i),this.h()},h(){a(C,"name","hf:doc:metadata"),a(C,"content",zn),a($,"id","module_configs"),a($,"class","group"),a(v,"id","module_configs.PretrainedConfig"),a(v,"class","group"),a(x,"id","new_module_configs.PretrainedConfig_new"),a(x,"class","group"),a(N,"id","module_configs.PretrainedConfig+model_type"),a(N,"class","group"),a(S,"id","module_configs.PretrainedConfig+is_encoder_decoder"),a(S,"class","group"),a(K,"id","module_configs.PretrainedConfig+max_position_embeddings"),a(K,"class","group"),a(q,"id","module_configs.PretrainedConfig.from_pretrained"),a(q,"class","group"),a(Y,"id","module_configs.AutoConfig"),a(Y,"class","group"),a(te,"id","new_module_configs.AutoConfig_new"),a(te,"class","group"),a(oe,"id","module_configs.AutoConfig.from_pretrained"),a(oe,"class","group"),a(ae,"id","module_configs.getCacheNames"),a(ae,"class","group"),a(pe,"id","module_configs.getCacheNames..names"),a(pe,"class","group"),a(ue,"id","module_configs..loadConfig"),a(ue,"class","group"),a(Me,"id","module_configs..getNormalizedConfig"),a(Me,"class","group"),a(Pe,"id","module_configs..getKeyValueNames"),a(Pe,"class","group"),a(Ue,"id","module_configs..getKeyValueNames..names"),a(Ue,"class","group"),a(xe,"id","module_configs..PretrainedOptions"),a(xe,"class","group"),a(Re,"id","module_configs..ProgressCallback"),a(Re,"class","group"),a(Ee,"id","module_configs..ProgressInfo"),a(Ee,"class","group")},m(e,t){Kn(document.head,C),n(e,Be,t),n(e,Ke,t),n(e,qe,t),n(e,$,t),n(e,ze,t),p(M,e,t),n(e,Ve,t),p(y,e,t),n(e,Qe,t),n(e,T,t),n(e,We,t),n(e,b,t),n(e,Ge,t),p(P,e,t),n(e,Ye,t),n(e,w,t),n(e,Fe,t),n(e,Xe,t),n(e,De,t),n(e,v,t),n(e,et,t),p(H,e,t),n(e,tt,t),n(e,U,t),n(e,it,t),n(e,L,t),n(e,nt,t),n(e,j,t),n(e,lt,t),n(e,ot,t),n(e,st,t),n(e,x,t),n(e,rt,t),p(J,e,t),n(e,at,t),n(e,A,t),n(e,ft,t),n(e,R,t),n(e,dt,t),n(e,mt,t),n(e,pt,t),n(e,N,t),n(e,ct,t),p(k,e,t),n(e,gt,t),n(e,E,t),n(e,ut,t),n(e,_t,t),n(e,ht,t),n(e,S,t),n(e,Ct,t),p(O,e,t),n(e,$t,t),n(e,Z,t),n(e,Mt,t),n(e,yt,t),n(e,Tt,t),n(e,K,t),n(e,bt,t),p(I,e,t),n(e,Pt,t),n(e,B,t),n(e,wt,t),n(e,vt,t),n(e,Ht,t),n(e,q,t),n(e,Ut,t),p(z,e,t),n(e,Lt,t),n(e,V,t),n(e,jt,t),n(e,Q,t),n(e,xt,t),n(e,W,t),n(e,Jt,t),n(e,G,t),n(e,At,t),n(e,Rt,t),n(e,Nt,t),n(e,Y,t),n(e,kt,t),p(F,e,t),n(e,Et,t),n(e,X,t),n(e,St,t),n(e,D,t),n(e,Ot,t),n(e,ee,t),n(e,Zt,t),n(e,Kt,t),n(e,It,t),n(e,te,t),n(e,Bt,t),p(ie,e,t),n(e,qt,t),n(e,ne,t),n(e,zt,t),p(le,e,t),n(e,Vt,t),n(e,Qt,t),n(e,Wt,t),n(e,oe,t),n(e,Gt,t),p(se,e,t),n(e,Yt,t),n(e,re,t),n(e,Ft,t),n(e,Xt,t),n(e,Dt,t),n(e,ae,t),n(e,ei,t),p(fe,e,t),n(e,ti,t),n(e,de,t),n(e,ii,t),n(e,me,t),n(e,ni,t),n(e,li,t),n(e,oi,t),n(e,pe,t),n(e,si,t),p(ce,e,t),n(e,ri,t),n(e,ge,t),n(e,ai,t),n(e,fi,t),n(e,di,t),n(e,ue,t),n(e,mi,t),p(_e,e,t),n(e,pi,t),n(e,he,t),n(e,ci,t),n(e,Ce,t),n(e,gi,t),n(e,$e,t),n(e,ui,t),n(e,_i,t),n(e,hi,t),n(e,Me,t),n(e,Ci,t),p(ye,e,t),n(e,$i,t),n(e,Te,t),n(e,Mi,t),n(e,be,t),n(e,yi,t),n(e,Ti,t),n(e,bi,t),n(e,Pe,t),n(e,Pi,t),p(we,e,t),n(e,wi,t),n(e,ve,t),n(e,vi,t),n(e,He,t),n(e,Hi,t),n(e,Ui,t),n(e,Li,t),n(e,Ue,t),n(e,ji,t),p(Le,e,t),n(e,xi,t),n(e,je,t),n(e,Ji,t),n(e,Ai,t),n(e,Ri,t),n(e,xe,t),n(e,Ni,t),p(Je,e,t),n(e,ki,t),n(e,Ae,t),n(e,Ei,t),n(e,Si,t),n(e,Oi,t),n(e,Re,t),n(e,Zi,t),p(Ne,e,t),n(e,Ki,t),n(e,ke,t),n(e,Ii,t),n(e,Bi,t),n(e,qi,t),n(e,Ee,t),n(e,zi,t),p(Se,e,t),n(e,Vi,t),n(e,Oe,t),n(e,Qi,t),n(e,Wi,t),n(e,Gi,t),p(Ze,e,t),n(e,Yi,t),n(e,Ie,t),Fi=!0},p:kn,i(e){Fi||(c(M.$$.fragment,e),c(y.$$.fragment,e),c(P.$$.fragment,e),c(H.$$.fragment,e),c(J.$$.fragment,e),c(k.$$.fragment,e),c(O.$$.fragment,e),c(I.$$.fragment,e),c(z.$$.fragment,e),c(F.$$.fragment,e),c(ie.$$.fragment,e),c(le.$$.fragment,e),c(se.$$.fragment,e),c(fe.$$.fragment,e),c(ce.$$.fragment,e),c(_e.$$.fragment,e),c(ye.$$.fragment,e),c(we.$$.fragment,e),c(Le.$$.fragment,e),c(Je.$$.fragment,e),c(Ne.$$.fragment,e),c(Se.$$.fragment,e),c(Ze.$$.fragment,e),Fi=!0)},o(e){g(M.$$.fragment,e),g(y.$$.fragment,e),g(P.$$.fragment,e),g(H.$$.fragment,e),g(J.$$.fragment,e),g(k.$$.fragment,e),g(O.$$.fragment,e),g(I.$$.fragment,e),g(z.$$.fragment,e),g(F.$$.fragment,e),g(ie.$$.fragment,e),g(le.$$.fragment,e),g(se.$$.fragment,e),g(fe.$$.fragment,e),g(ce.$$.fragment,e),g(_e.$$.fragment,e),g(ye.$$.fragment,e),g(we.$$.fragment,e),g(Le.$$.fragment,e),g(Je.$$.fragment,e),g(Ne.$$.fragment,e),g(Se.$$.fragment,e),g(Ze.$$.fragment,e),Fi=!1},d(e){e&&(i(Be),i(Ke),i(qe),i($),i(ze),i(Ve),i(Qe),i(T),i(We),i(b),i(Ge),i(Ye),i(w),i(Fe),i(Xe),i(De),i(v),i(et),i(tt),i(U),i(it),i(L),i(nt),i(j),i(lt),i(ot),i(st),i(x),i(rt),i(at),i(A),i(ft),i(R),i(dt),i(mt),i(pt),i(N),i(ct),i(gt),i(E),i(ut),i(_t),i(ht),i(S),i(Ct),i($t),i(Z),i(Mt),i(yt),i(Tt),i(K),i(bt),i(Pt),i(B),i(wt),i(vt),i(Ht),i(q),i(Ut),i(Lt),i(V),i(jt),i(Q),i(xt),i(W),i(Jt),i(G),i(At),i(Rt),i(Nt),i(Y),i(kt),i(Et),i(X),i(St),i(D),i(Ot),i(ee),i(Zt),i(Kt),i(It),i(te),i(Bt),i(qt),i(ne),i(zt),i(Vt),i(Qt),i(Wt),i(oe),i(Gt),i(Yt),i(re),i(Ft),i(Xt),i(Dt),i(ae),i(ei),i(ti),i(de),i(ii),i(me),i(ni),i(li),i(oi),i(pe),i(si),i(ri),i(ge),i(ai),i(fi),i(di),i(ue),i(mi),i(pi),i(he),i(ci),i(Ce),i(gi),i($e),i(ui),i(_i),i(hi),i(Me),i(Ci),i($i),i(Te),i(Mi),i(be),i(yi),i(Ti),i(bi),i(Pe),i(Pi),i(wi),i(ve),i(vi),i(He),i(Hi),i(Ui),i(Li),i(Ue),i(ji),i(xi),i(je),i(Ji),i(Ai),i(Ri),i(xe),i(Ni),i(ki),i(Ae),i(Ei),i(Si),i(Oi),i(Re),i(Zi),i(Ki),i(ke),i(Ii),i(Bi),i(qi),i(Ee),i(zi),i(Vi),i(Oe),i(Qi),i(Wi),i(Gi),i(Yi),i(Ie)),i(C),u(M,e),u(y,e),u(P,e),u(H,e),u(J,e),u(k,e),u(O,e),u(I,e),u(z,e),u(F,e),u(ie,e),u(le,e),u(se,e),u(fe,e),u(ce,e),u(_e,e),u(ye,e),u(we,e),u(Le,e),u(Je,e),u(Ne,e),u(Se,e),u(Ze,e)}}}const zn='{"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 : string | null","local":"pretrainedconfigmodeltype--string--null","sections":[],"depth":3},{"title":"pretrainedConfig.is_encoder_decoder : boolean","local":"pretrainedconfigisencoderdecoder--boolean","sections":[],"depth":3},{"title":"pretrainedConfig.max_position_embeddings : number","local":"pretrainedconfigmaxpositionembeddings--number","sections":[],"depth":3},{"title":"PretrainedConfig.from_pretrained(pretrained_model_name_or_path, options) ⇒ Promise. < PretrainedConfig >","local":"pretrainedconfigfrompretrainedpretrainedmodelnameorpath-options--promise--pretrainedconfig-","sections":[],"depth":3}],"depth":2},{"title":"configs.AutoConfig","local":"configsautoconfig","sections":[{"title":"new AutoConfig()","local":"new-autoconfig","sections":[],"depth":3},{"title":"AutoConfig.from_pretrained() : Object.from_pretrained","local":"autoconfigfrompretrained--objectfrompretrained","sections":[],"depth":3}],"depth":2},{"title":"configs.getCacheNames(config, [options]) ⇒ Set. < string >","local":"configsgetcachenamesconfig-options--set--string-","sections":[{"title":"getCacheNames~names : Set. < string >","local":"getcachenamesnames--set--string-","sections":[],"depth":3}],"depth":2},{"title":"configs~loadConfig(pretrained_model_name_or_path, options) ⇒ Promise. < Object >","local":"configsloadconfigpretrainedmodelnameorpath-options--promise--object-","sections":[],"depth":2},{"title":"configs~getNormalizedConfig(config) ⇒ Object","local":"configsgetnormalizedconfigconfig--object","sections":[],"depth":2},{"title":"configs~getKeyValueNames(config, [options]) ⇒ Set. < string >","local":"configsgetkeyvaluenamesconfig-options--set--string-","sections":[{"title":"getKeyValueNames~names : Set. < string >","local":"getkeyvaluenamesnames--set--string-","sections":[],"depth":3}],"depth":2},{"title":"configs~PretrainedOptions : PretrainedOptions","local":"configspretrainedoptions--pretrainedoptions","sections":[],"depth":2},{"title":"configs~ProgressCallback : ProgressCallback","local":"configsprogresscallback--progresscallback","sections":[],"depth":2},{"title":"configs~ProgressInfo : ProgressInfo","local":"configsprogressinfo--progressinfo","sections":[],"depth":2}],"depth":1}';function Vn(Xi){return En(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Fn extends Sn{constructor(C){super(),On(this,C,Vn,qn,Nn,{})}}export{Fn as component}; | |
Xet Storage Details
- Size:
- 30.8 kB
- Xet hash:
- 763ed2605f360e4f6490389b3e495517e69d0cbf098855b25bc77916f6eb10f9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.