Buckets:

rtrm's picture
download
raw
42.8 kB
<meta charset="utf-8" /><meta name="hf:doc:metadata" content="{&quot;title&quot;:&quot;configs&quot;,&quot;local&quot;:&quot;configs&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;configs.PretrainedConfig&quot;,&quot;local&quot;:&quot;configspretrainedconfig&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;new PretrainedConfig(configJSON)&quot;,&quot;local&quot;:&quot;new-pretrainedconfigconfigjson&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;pretrainedConfig.model_type : <code> string </code> | <code> null </code>&quot;,&quot;local&quot;:&quot;pretrainedconfigmodeltype--code-string-code--code-null-code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;pretrainedConfig.is_encoder_decoder : <code> boolean </code>&quot;,&quot;local&quot;:&quot;pretrainedconfigisencoderdecoder--code-boolean-code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;pretrainedConfig.max_position_embeddings : <code> number </code>&quot;,&quot;local&quot;:&quot;pretrainedconfigmaxpositionembeddings--code-number-code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;PretrainedConfig.from_pretrained(pretrained_model_name_or_path, options) ⇒ <code> Promise. < PretrainedConfig > </code>&quot;,&quot;local&quot;:&quot;pretrainedconfigfrompretrainedpretrainedmodelnameorpath-options--code-promise--pretrainedconfig--code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3}],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs.AutoConfig&quot;,&quot;local&quot;:&quot;configsautoconfig&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;new AutoConfig()&quot;,&quot;local&quot;:&quot;new-autoconfig&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;AutoConfig.from_pretrained() : <code> * </code>&quot;,&quot;local&quot;:&quot;autoconfigfrompretrained--code--code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3}],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs.getKeyValueShapes(config) ⇒ <code> Record. < string, Array < number > > </code>&quot;,&quot;local&quot;:&quot;configsgetkeyvalueshapesconfig--code-record--string-array--number---code&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;getKeyValueShapes~decoderFeeds : <code> Record. < string, Array < number > > </code>&quot;,&quot;local&quot;:&quot;getkeyvalueshapesdecoderfeeds--code-record--string-array--number---code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3}],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs~loadConfig(pretrained_model_name_or_path, options) ⇒ <code> Promise. < Object > </code>&quot;,&quot;local&quot;:&quot;configsloadconfigpretrainedmodelnameorpath-options--code-promise--object--code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs~getNormalizedConfig(config) ⇒ <code> Object </code>&quot;,&quot;local&quot;:&quot;configsgetnormalizedconfigconfig--code-object-code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs~PretrainedOptions : <code> * </code>&quot;,&quot;local&quot;:&quot;configspretrainedoptions--code--code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs~ProgressCallback : <code> * </code>&quot;,&quot;local&quot;:&quot;configsprogresscallback--code--code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs~ProgressInfo : <code> * </code>&quot;,&quot;local&quot;:&quot;configsprogressinfo--code--code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2}],&quot;depth&quot;:1}">
<link href="/docs/transformers.js/pr_1113/en/_app/immutable/assets/0.e3b0c442.css" rel="modulepreload">
<link rel="modulepreload" href="/docs/transformers.js/pr_1113/en/_app/immutable/entry/start.88a6e140.js">
<link rel="modulepreload" href="/docs/transformers.js/pr_1113/en/_app/immutable/chunks/scheduler.0219f8bd.js">
<link rel="modulepreload" href="/docs/transformers.js/pr_1113/en/_app/immutable/chunks/singletons.c59c6d8d.js">
<link rel="modulepreload" href="/docs/transformers.js/pr_1113/en/_app/immutable/chunks/paths.8e090985.js">
<link rel="modulepreload" href="/docs/transformers.js/pr_1113/en/_app/immutable/entry/app.0003020d.js">
<link rel="modulepreload" href="/docs/transformers.js/pr_1113/en/_app/immutable/chunks/index.f61edf3b.js">
<link rel="modulepreload" href="/docs/transformers.js/pr_1113/en/_app/immutable/nodes/0.25c65ab2.js">
<link rel="modulepreload" href="/docs/transformers.js/pr_1113/en/_app/immutable/nodes/3.cbbaca2b.js">
<link rel="modulepreload" href="/docs/transformers.js/pr_1113/en/_app/immutable/chunks/CodeBlock.38e566ae.js">
<link rel="modulepreload" href="/docs/transformers.js/pr_1113/en/_app/immutable/chunks/EditOnGithub.48fa589f.js"><!-- HEAD_svelte-u9bgzb_START --><meta name="hf:doc:metadata" content="{&quot;title&quot;:&quot;configs&quot;,&quot;local&quot;:&quot;configs&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;configs.PretrainedConfig&quot;,&quot;local&quot;:&quot;configspretrainedconfig&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;new PretrainedConfig(configJSON)&quot;,&quot;local&quot;:&quot;new-pretrainedconfigconfigjson&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;pretrainedConfig.model_type : <code> string </code> | <code> null </code>&quot;,&quot;local&quot;:&quot;pretrainedconfigmodeltype--code-string-code--code-null-code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;pretrainedConfig.is_encoder_decoder : <code> boolean </code>&quot;,&quot;local&quot;:&quot;pretrainedconfigisencoderdecoder--code-boolean-code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;pretrainedConfig.max_position_embeddings : <code> number </code>&quot;,&quot;local&quot;:&quot;pretrainedconfigmaxpositionembeddings--code-number-code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;PretrainedConfig.from_pretrained(pretrained_model_name_or_path, options) ⇒ <code> Promise. < PretrainedConfig > </code>&quot;,&quot;local&quot;:&quot;pretrainedconfigfrompretrainedpretrainedmodelnameorpath-options--code-promise--pretrainedconfig--code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3}],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs.AutoConfig&quot;,&quot;local&quot;:&quot;configsautoconfig&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;new AutoConfig()&quot;,&quot;local&quot;:&quot;new-autoconfig&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;AutoConfig.from_pretrained() : <code> * </code>&quot;,&quot;local&quot;:&quot;autoconfigfrompretrained--code--code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3}],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs.getKeyValueShapes(config) ⇒ <code> Record. < string, Array < number > > </code>&quot;,&quot;local&quot;:&quot;configsgetkeyvalueshapesconfig--code-record--string-array--number---code&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;getKeyValueShapes~decoderFeeds : <code> Record. < string, Array < number > > </code>&quot;,&quot;local&quot;:&quot;getkeyvalueshapesdecoderfeeds--code-record--string-array--number---code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3}],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs~loadConfig(pretrained_model_name_or_path, options) ⇒ <code> Promise. < Object > </code>&quot;,&quot;local&quot;:&quot;configsloadconfigpretrainedmodelnameorpath-options--code-promise--object--code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs~getNormalizedConfig(config) ⇒ <code> Object </code>&quot;,&quot;local&quot;:&quot;configsgetnormalizedconfigconfig--code-object-code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs~PretrainedOptions : <code> * </code>&quot;,&quot;local&quot;:&quot;configspretrainedoptions--code--code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs~ProgressCallback : <code> * </code>&quot;,&quot;local&quot;:&quot;configsprogresscallback--code--code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;configs~ProgressInfo : <code> * </code>&quot;,&quot;local&quot;:&quot;configsprogressinfo--code--code&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2}],&quot;depth&quot;:1}"><!-- HEAD_svelte-u9bgzb_END --> <p></p> <a id="module_configs" class="group"></a> <h1 class="relative group"><a id="configs" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#configs"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>configs</span></h1> <p data-svelte-h="svelte-1opttiq">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>.</p> <p data-svelte-h="svelte-rr1p86"><strong>Example:</strong> Load an <code>AutoConfig</code>.</p> <div class="code-block relative"><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg class="" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg> <div class="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0"><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent; "></div> Copied</div></button></div> <pre class=""><!-- HTML_TAG_START --><span class="hljs-keyword">import</span> { <span class="hljs-title class_">AutoConfig</span> } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@huggingface/transformers&#x27;</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">&#x27;bert-base-uncased&#x27;</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">// &quot;model_type&quot;: &quot;bert&quot;,</span>
<span class="hljs-comment">// &quot;is_encoder_decoder&quot;: false,</span>
<span class="hljs-comment">// &quot;architectures&quot;: [</span>
<span class="hljs-comment">// &quot;BertForMaskedLM&quot;</span>
<span class="hljs-comment">// ],</span>
<span class="hljs-comment">// &quot;vocab_size&quot;: 30522</span>
<span class="hljs-comment">// &quot;num_attention_heads&quot;: 12,</span>
<span class="hljs-comment">// &quot;num_hidden_layers&quot;: 12,</span>
<span class="hljs-comment">// &quot;hidden_size&quot;: 768,</span>
<span class="hljs-comment">// &quot;max_position_embeddings&quot;: 512,</span>
<span class="hljs-comment">// ...</span>
<span class="hljs-comment">// }</span><!-- HTML_TAG_END --></pre></div> <ul data-svelte-h="svelte-1frdiz6"><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.&lt;PretrainedConfig&gt;</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.&lt;string, Array&lt;number&gt;&gt;</code><ul><li><a href="#module_configs.getKeyValueShapes..decoderFeeds"><code>~decoderFeeds</code></a> : <code>Record.&lt;string, Array&lt;number&gt;&gt;</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.&lt;Object&gt;</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></ul> <hr> <a id="module_configs.PretrainedConfig" class="group"></a> <h2 class="relative group"><a id="configspretrainedconfig" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#configspretrainedconfig"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>configs.PretrainedConfig</span></h2> <p data-svelte-h="svelte-11hfe16">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>.</p> <p data-svelte-h="svelte-f2ynak"><strong>Kind</strong>: static class of <a href="#module_configs"><code>configs</code></a></p> <ul data-svelte-h="svelte-o0d7mx"><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.&lt;PretrainedConfig&gt;</code></li></ul></li></ul></li></ul> <hr> <a id="new_module_configs.PretrainedConfig_new" class="group"></a> <h3 class="relative group"><a id="new-pretrainedconfigconfigjson" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#new-pretrainedconfigconfigjson"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>new PretrainedConfig(configJSON)</span></h3> <p data-svelte-h="svelte-1vkx5qp">Create a new PreTrainedTokenizer instance.</p> <table data-svelte-h="svelte-1w4istn"><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></table> <hr> <a id="module_configs.PretrainedConfig+model_type" class="group"></a> <h3 class="relative group"><a id="pretrainedconfigmodeltype--code-string-code--code-null-code" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#pretrainedconfigmodeltype--code-string-code--code-null-code"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>pretrainedConfig.model_type : &lt;code> string &lt;/code> | &lt;code> null &lt;/code></span></h3> <p data-svelte-h="svelte-w7pt4r"><strong>Kind</strong>: instance property of <a href="#module_configs.PretrainedConfig"><code>PretrainedConfig</code></a></p> <hr> <a id="module_configs.PretrainedConfig+is_encoder_decoder" class="group"></a> <h3 class="relative group"><a id="pretrainedconfigisencoderdecoder--code-boolean-code" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#pretrainedconfigisencoderdecoder--code-boolean-code"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>pretrainedConfig.is_encoder_decoder : &lt;code> boolean &lt;/code></span></h3> <p data-svelte-h="svelte-w7pt4r"><strong>Kind</strong>: instance property of <a href="#module_configs.PretrainedConfig"><code>PretrainedConfig</code></a></p> <hr> <a id="module_configs.PretrainedConfig+max_position_embeddings" class="group"></a> <h3 class="relative group"><a id="pretrainedconfigmaxpositionembeddings--code-number-code" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#pretrainedconfigmaxpositionembeddings--code-number-code"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>pretrainedConfig.max_position_embeddings : &lt;code> number &lt;/code></span></h3> <p data-svelte-h="svelte-w7pt4r"><strong>Kind</strong>: instance property of <a href="#module_configs.PretrainedConfig"><code>PretrainedConfig</code></a></p> <hr> <a id="module_configs.PretrainedConfig.from_pretrained" class="group"></a> <h3 class="relative group"><a id="pretrainedconfigfrompretrainedpretrainedmodelnameorpath-options--code-promise--pretrainedconfig--code" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#pretrainedconfigfrompretrainedpretrainedmodelnameorpath-options--code-promise--pretrainedconfig--code"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>PretrainedConfig.from_pretrained(pretrained_model_name_or_path, options) ⇒ &lt;code> Promise. &lt; PretrainedConfig > &lt;/code></span></h3> <p data-svelte-h="svelte-vvzc20">Loads a pre-trained config from the given <code>pretrained_model_name_or_path</code>.</p> <p data-svelte-h="svelte-1hd19ua"><strong>Kind</strong>: static method of <a href="#module_configs.PretrainedConfig"><code>PretrainedConfig</code></a><br> <strong>Returns</strong>: <code>Promise.&lt;PretrainedConfig&gt;</code> - A new instance of the <code>PretrainedConfig</code> class.<br> <strong>Throws</strong>:</p> <ul data-svelte-h="svelte-1t4vr9z"><li><code>Error</code> Throws an error if the config.json is not found in the `pretrained_model_name_or_path`.</li></ul> <table data-svelte-h="svelte-1d3un66"><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></table> <hr> <a id="module_configs.AutoConfig" class="group"></a> <h2 class="relative group"><a id="configsautoconfig" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#configsautoconfig"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>configs.AutoConfig</span></h2> <p data-svelte-h="svelte-1a80qit">Helper class which is used to instantiate pretrained configs with the <code>from_pretrained</code> function.</p> <p data-svelte-h="svelte-f2ynak"><strong>Kind</strong>: static class of <a href="#module_configs"><code>configs</code></a></p> <ul data-svelte-h="svelte-8pmp8u"><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></ul> <hr> <a id="new_module_configs.AutoConfig_new" class="group"></a> <h3 class="relative group"><a id="new-autoconfig" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#new-autoconfig"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>new AutoConfig()</span></h3> <p data-svelte-h="svelte-1aswmub"><strong>Example</strong></p> <div class="code-block relative"><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg class="" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg> <div class="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0"><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent; "></div> Copied</div></button></div> <pre class=""><!-- HTML_TAG_START --><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">&#x27;Xenova/bert-base-uncased&#x27;</span>); <!-- HTML_TAG_END --></pre></div> <hr> <a id="module_configs.AutoConfig.from_pretrained" class="group"></a> <h3 class="relative group"><a id="autoconfigfrompretrained--code--code" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#autoconfigfrompretrained--code--code"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>AutoConfig.from_pretrained() : &lt;code> * &lt;/code></span></h3> <p data-svelte-h="svelte-16eawau"><strong>Kind</strong>: static method of <a href="#module_configs.AutoConfig"><code>AutoConfig</code></a></p> <hr> <a id="module_configs.getKeyValueShapes" class="group"></a> <h2 class="relative group"><a id="configsgetkeyvalueshapesconfig--code-record--string-array--number---code" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#configsgetkeyvalueshapesconfig--code-record--string-array--number---code"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>configs.getKeyValueShapes(config) ⇒ &lt;code> Record. &lt; string, Array &lt; number > > &lt;/code></span></h2> <p data-svelte-h="svelte-17wh7oh"><strong>Kind</strong>: static method of <a href="#module_configs"><code>configs</code></a></p> <table data-svelte-h="svelte-wt8hie"><thead><tr><th>Param</th><th>Type</th></tr></thead> <tbody><tr><td>config</td><td><code>PretrainedConfig</code></td></tr></tbody></table> <hr> <a id="module_configs.getKeyValueShapes..decoderFeeds" class="group"></a> <h3 class="relative group"><a id="getkeyvalueshapesdecoderfeeds--code-record--string-array--number---code" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#getkeyvalueshapesdecoderfeeds--code-record--string-array--number---code"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>getKeyValueShapes~decoderFeeds : &lt;code> Record. &lt; string, Array &lt; number > > &lt;/code></span></h3> <p data-svelte-h="svelte-1d33q1x"><strong>Kind</strong>: inner constant of <a href="#module_configs.getKeyValueShapes"><code>getKeyValueShapes</code></a></p> <hr> <a id="module_configs..loadConfig" class="group"></a> <h2 class="relative group"><a id="configsloadconfigpretrainedmodelnameorpath-options--code-promise--object--code" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#configsloadconfigpretrainedmodelnameorpath-options--code-promise--object--code"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>configs~loadConfig(pretrained_model_name_or_path, options) ⇒ &lt;code> Promise. &lt; Object > &lt;/code></span></h2> <p data-svelte-h="svelte-k149e6">Loads a config from the specified path.</p> <p data-svelte-h="svelte-d4hf14"><strong>Kind</strong>: inner method of <a href="#module_configs"><code>configs</code></a><br> <strong>Returns</strong>: <code>Promise.&lt;Object&gt;</code> - A promise that resolves with information about the loaded config.</p> <table data-svelte-h="svelte-15tjhd0"><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></table> <hr> <a id="module_configs..getNormalizedConfig" class="group"></a> <h2 class="relative group"><a id="configsgetnormalizedconfigconfig--code-object-code" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#configsgetnormalizedconfigconfig--code-object-code"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>configs~getNormalizedConfig(config) ⇒ &lt;code> Object &lt;/code></span></h2> <p data-svelte-h="svelte-12bxbck"><strong>Kind</strong>: inner method of <a href="#module_configs"><code>configs</code></a><br> <strong>Returns</strong>: <code>Object</code> - The normalized configuration.</p> <table data-svelte-h="svelte-wt8hie"><thead><tr><th>Param</th><th>Type</th></tr></thead> <tbody><tr><td>config</td><td><code>PretrainedConfig</code></td></tr></tbody></table> <hr> <a id="module_configs..PretrainedOptions" class="group"></a> <h2 class="relative group"><a id="configspretrainedoptions--code--code" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#configspretrainedoptions--code--code"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>configs~PretrainedOptions : &lt;code> * &lt;/code></span></h2> <p data-svelte-h="svelte-ry9p49"><strong>Kind</strong>: inner typedef of <a href="#module_configs"><code>configs</code></a></p> <hr> <a id="module_configs..ProgressCallback" class="group"></a> <h2 class="relative group"><a id="configsprogresscallback--code--code" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#configsprogresscallback--code--code"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>configs~ProgressCallback : &lt;code> * &lt;/code></span></h2> <p data-svelte-h="svelte-ry9p49"><strong>Kind</strong>: inner typedef of <a href="#module_configs"><code>configs</code></a></p> <hr> <a id="module_configs..ProgressInfo" class="group"></a> <h2 class="relative group"><a id="configsprogressinfo--code--code" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#configsprogressinfo--code--code"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>configs~ProgressInfo : &lt;code> * &lt;/code></span></h2> <p data-svelte-h="svelte-ry9p49"><strong>Kind</strong>: inner typedef of <a href="#module_configs"><code>configs</code></a></p> <hr> <a class="!text-gray-400 !no-underline text-sm flex items-center not-prose mt-4" href="https://github.com/huggingface/transformers.js/blob/main/docs/source/api/configs.md" target="_blank"><span data-svelte-h="svelte-1kd6by1">&lt;</span> <span data-svelte-h="svelte-x0xyl0">&gt;</span> <span data-svelte-h="svelte-1dajgef"><span class="underline ml-1.5">Update</span> on GitHub</span></a> <p></p>
<script>
{
__sveltekit_kuyevp = {
assets: "/docs/transformers.js/pr_1113/en",
base: "/docs/transformers.js/pr_1113/en",
env: {}
};
const element = document.currentScript.parentElement;
const data = [null,null];
Promise.all([
import("/docs/transformers.js/pr_1113/en/_app/immutable/entry/start.88a6e140.js"),
import("/docs/transformers.js/pr_1113/en/_app/immutable/entry/app.0003020d.js")
]).then(([kit, app]) => {
kit.start(app, element, {
node_ids: [0, 3],
data,
form: null,
error: null
});
});
}
</script>

Xet Storage Details

Size:
42.8 kB
·
Xet hash:
f59df71bf0b4eb01e5d62395be44b2dfed7ed54772ce63f258537e0adb96fa45

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.