Buckets:
| import{s as Co,o as xo,n as Ee}from"../chunks/scheduler.bdbef820.js";import{S as $o,i as To,g as i,s as o,r as g,A as ko,h as d,f as c,c as n,j as x,x as p,u as h,k as $,y as t,a as w,v as _,d as b,t as y,w as v}from"../chunks/index.33f81d56.js";import{T as At}from"../chunks/Tip.34194030.js";import{D as k}from"../chunks/Docstring.b3df4217.js";import{C as wo}from"../chunks/CodeBlock.3bad7fc9.js";import{E as vo}from"../chunks/ExampleCodeBlock.d705c5b9.js";import{H as Po,E as Mo}from"../chunks/index.474b463a.js";function jo(P){let a,C=`A configuration file can be loaded and saved to disk. Loading the configuration file and using this file to | |
| initialize a model does <strong>not</strong> load the model weights. It only affects the model’s configuration.`;return{c(){a=i("p"),a.innerHTML=C},l(l){a=d(l,"P",{"data-svelte-h":!0}),p(a)!=="svelte-s3sff7"&&(a.innerHTML=C)},m(l,u){w(l,a,u)},p:Ee,d(l){l&&c(a)}}}function Jo(P){let a,C=`Setting parameters for sequence generation in the model config is deprecated. For backward compatibility, loading | |
| some of them will still be possible, but attempting to overwrite them will throw an exception — you should set | |
| them in a [~transformers.GenerationConfig]. Check the documentation of [~transformers.GenerationConfig] for more | |
| information about the individual parameters.`;return{c(){a=i("p"),a.textContent=C},l(l){a=d(l,"P",{"data-svelte-h":!0}),p(a)!=="svelte-uf1gvm"&&(a.textContent=C)},m(l,u){w(l,a,u)},p:Ee,d(l){l&&c(a)}}}function Uo(P){let a,C="Examples:",l,u,T;return u=new wo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Db25maWclMEElMEFjb25maWclMjAlM0QlMjBBdXRvQ29uZmlnLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUtYmVydCUyRmJlcnQtYmFzZS1jYXNlZCUyMiklMEElMEElMjMlMjBQdXNoJTIwdGhlJTIwY29uZmlnJTIwdG8lMjB5b3VyJTIwbmFtZXNwYWNlJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtYmVydCUyMi4lMEFjb25maWcucHVzaF90b19odWIoJTIybXktZmluZXR1bmVkLWJlcnQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMGNvbmZpZyUyMHRvJTIwYW4lMjBvcmdhbml6YXRpb24lMjB3aXRoJTIwdGhlJTIwbmFtZSUyMCUyMm15LWZpbmV0dW5lZC1iZXJ0JTIyLiUwQWNvbmZpZy5wdXNoX3RvX2h1YiglMjJodWdnaW5nZmFjZSUyRm15LWZpbmV0dW5lZC1iZXJ0JTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoConfig | |
| config = AutoConfig.from_pretrained(<span class="hljs-string">"google-bert/bert-base-cased"</span>) | |
| <span class="hljs-comment"># Push the config to your namespace with the name "my-finetuned-bert".</span> | |
| config.push_to_hub(<span class="hljs-string">"my-finetuned-bert"</span>) | |
| <span class="hljs-comment"># Push the config to an organization with the name "my-finetuned-bert".</span> | |
| config.push_to_hub(<span class="hljs-string">"huggingface/my-finetuned-bert"</span>)`,wrap:!1}}),{c(){a=i("p"),a.textContent=C,l=o(),g(u.$$.fragment)},l(m){a=d(m,"P",{"data-svelte-h":!0}),p(a)!=="svelte-kvfsh7"&&(a.textContent=C),l=n(m),h(u.$$.fragment,m)},m(m,M){w(m,a,M),w(m,l,M),_(u,m,M),T=!0},p:Ee,i(m){T||(b(u.$$.fragment,m),T=!0)},o(m){y(u.$$.fragment,m),T=!1},d(m){m&&(c(a),c(l)),v(u,m)}}}function Zo(P){let a,C="Examples:",l,u,T;return u=new wo({props:{code:"JTIzJTIwV2UlMjBjYW4ndCUyMGluc3RhbnRpYXRlJTIwZGlyZWN0bHklMjB0aGUlMjBiYXNlJTIwY2xhc3MlMjAqUHJldHJhaW5lZENvbmZpZyolMjBzbyUyMGxldCdzJTIwc2hvdyUyMHRoZSUyMGV4YW1wbGVzJTIwb24lMjBhJTBBJTIzJTIwZGVyaXZlZCUyMGNsYXNzJTNBJTIwQmVydENvbmZpZyUwQWNvbmZpZyUyMCUzRCUyMEJlcnRDb25maWcuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLXVuY2FzZWQlMjIlMEEpJTIwJTIwJTIzJTIwRG93bmxvYWQlMjBjb25maWd1cmF0aW9uJTIwZnJvbSUyMGh1Z2dpbmdmYWNlLmNvJTIwYW5kJTIwY2FjaGUuJTBBY29uZmlnJTIwJTNEJTIwQmVydENvbmZpZy5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRiUyMiUwQSklMjAlMjAlMjMlMjBFLmcuJTIwY29uZmlnJTIwKG9yJTIwbW9kZWwpJTIwd2FzJTIwc2F2ZWQlMjB1c2luZyUyMCpzYXZlX3ByZXRyYWluZWQoJy4lMkZ0ZXN0JTJGc2F2ZWRfbW9kZWwlMkYnKSolMEFjb25maWclMjAlM0QlMjBCZXJ0Q29uZmlnLmZyb21fcHJldHJhaW5lZCglMjIuJTJGdGVzdCUyRnNhdmVkX21vZGVsJTJGbXlfY29uZmlndXJhdGlvbi5qc29uJTIyKSUwQWNvbmZpZyUyMCUzRCUyMEJlcnRDb25maWcuZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLXVuY2FzZWQlMjIlMkMlMjBvdXRwdXRfYXR0ZW50aW9ucyUzRFRydWUlMkMlMjBmb28lM0RGYWxzZSklMEFhc3NlcnQlMjBjb25maWcub3V0cHV0X2F0dGVudGlvbnMlMjAlM0QlM0QlMjBUcnVlJTBBY29uZmlnJTJDJTIwdW51c2VkX2t3YXJncyUyMCUzRCUyMEJlcnRDb25maWcuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLXVuY2FzZWQlMjIlMkMlMjBvdXRwdXRfYXR0ZW50aW9ucyUzRFRydWUlMkMlMjBmb28lM0RGYWxzZSUyQyUyMHJldHVybl91bnVzZWRfa3dhcmdzJTNEVHJ1ZSUwQSklMEFhc3NlcnQlMjBjb25maWcub3V0cHV0X2F0dGVudGlvbnMlMjAlM0QlM0QlMjBUcnVlJTBBYXNzZXJ0JTIwdW51c2VkX2t3YXJncyUyMCUzRCUzRCUyMCU3QiUyMmZvbyUyMiUzQSUyMEZhbHNlJTdE",highlighted:`<span class="hljs-comment"># We can't instantiate directly the base class *PretrainedConfig* so let's show the examples on a</span> | |
| <span class="hljs-comment"># derived class: BertConfig</span> | |
| config = BertConfig.from_pretrained( | |
| <span class="hljs-string">"google-bert/bert-base-uncased"</span> | |
| ) <span class="hljs-comment"># Download configuration from huggingface.co and cache.</span> | |
| config = BertConfig.from_pretrained( | |
| <span class="hljs-string">"./test/saved_model/"</span> | |
| ) <span class="hljs-comment"># E.g. config (or model) was saved using *save_pretrained('./test/saved_model/')*</span> | |
| config = BertConfig.from_pretrained(<span class="hljs-string">"./test/saved_model/my_configuration.json"</span>) | |
| config = BertConfig.from_pretrained(<span class="hljs-string">"google-bert/bert-base-uncased"</span>, output_attentions=<span class="hljs-literal">True</span>, foo=<span class="hljs-literal">False</span>) | |
| <span class="hljs-keyword">assert</span> config.output_attentions == <span class="hljs-literal">True</span> | |
| config, unused_kwargs = BertConfig.from_pretrained( | |
| <span class="hljs-string">"google-bert/bert-base-uncased"</span>, output_attentions=<span class="hljs-literal">True</span>, foo=<span class="hljs-literal">False</span>, return_unused_kwargs=<span class="hljs-literal">True</span> | |
| ) | |
| <span class="hljs-keyword">assert</span> config.output_attentions == <span class="hljs-literal">True</span> | |
| <span class="hljs-keyword">assert</span> unused_kwargs == {<span class="hljs-string">"foo"</span>: <span class="hljs-literal">False</span>}`,wrap:!1}}),{c(){a=i("p"),a.textContent=C,l=o(),g(u.$$.fragment)},l(m){a=d(m,"P",{"data-svelte-h":!0}),p(a)!=="svelte-kvfsh7"&&(a.textContent=C),l=n(m),h(u.$$.fragment,m)},m(m,M){w(m,a,M),w(m,l,M),_(u,m,M),T=!0},p:Ee,i(m){T||(b(u.$$.fragment,m),T=!0)},o(m){y(u.$$.fragment,m),T=!1},d(m){m&&(c(a),c(l)),v(u,m)}}}function Io(P){let a,C="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){a=i("p"),a.textContent=C},l(l){a=d(l,"P",{"data-svelte-h":!0}),p(a)!=="svelte-15rpg4"&&(a.textContent=C)},m(l,u){w(l,a,u)},p:Ee,d(l){l&&c(a)}}}function Lo(P){let a,C,l,u,T,m="# 構成",M,Q,Yt=`基本クラス <a href="/docs/transformers/v4.51.3/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> は、設定をロード/保存するための一般的なメソッドを実装します。 | |
| ローカル ファイルまたはディレクトリから、またはライブラリ (ダウンロードされた) によって提供される事前トレーニング済みモデル構成から | |
| HuggingFace の AWS S3 リポジトリから)。`,Xe,O,Gt=`各派生構成クラスはモデル固有の属性を実装します。すべての構成クラスに存在する共通の属性は次のとおりです。 | |
| <code>hidden_size</code>、<code>num_attention_heads</code>、および <code>num_hidden_layers</code>。テキスト モデルはさらに以下を実装します。 | |
| <code>vocab_size</code>。`,Re,K,Ae,r,ee,st,ve,Qt=`Base class for all configuration classes. Handles a few parameters common to all models’ configurations as well as | |
| methods for loading/downloading/saving configurations.`,it,L,dt,we,Ot="Class attributes (overridden by derived classes):",ct,Ce,Kt=`<li><strong>model_type</strong> (<code>str</code>) — An identifier for the model type, serialized into the JSON file, and used to recreate | |
| the correct object in <a href="/docs/transformers/v4.51.3/ja/model_doc/auto#transformers.AutoConfig">AutoConfig</a>.</li> <li><strong>is_composition</strong> (<code>bool</code>) — Whether the config class is composed of multiple sub-configs. In this case the | |
| config has to be initialized from two or more configs of type <a href="/docs/transformers/v4.51.3/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> like: | |
| <code>EncoderDecoderConfig</code> or <code>~RagConfig</code>.</li> <li><strong>keys_to_ignore_at_inference</strong> (<code>List[str]</code>) — A list of keys to ignore by default when looking at dictionary | |
| outputs of the model during inference.</li> <li><strong>attribute_map</strong> (<code>Dict[str, str]</code>) — A dict that maps model specific attribute names to the standardized | |
| naming of attributes.</li> <li><strong>base_model_tp_plan</strong> (<code>Dict[str, Any]</code>) — A dict that maps sub-modules FQNs of a base model to a tensor | |
| parallel plan applied to the sub-module when <code>model.tensor_parallel</code> is called.</li> <li><strong>base_model_pp_plan</strong> (<code>Dict[str, Tuple[List[str]]]</code>) — A dict that maps child-modules of a base model to a | |
| pipeline parallel plan that enables users to place the child-module on the appropriate device.</li>`,lt,xe,eo="Common attributes (present in all subclasses):",mt,$e,to=`<li><strong>vocab_size</strong> (<code>int</code>) — The number of tokens in the vocabulary, which is also the first dimension of the | |
| embeddings matrix (this attribute may be missing for models that don’t have a text modality like ViT).</li> <li><strong>hidden_size</strong> (<code>int</code>) — The hidden size of the model.</li> <li><strong>num_attention_heads</strong> (<code>int</code>) — The number of attention heads used in the multi-head attention layers of the | |
| model.</li> <li><strong>num_hidden_layers</strong> (<code>int</code>) — The number of blocks in the model.</li>`,ft,W,pt,J,te,ut,Te,oo="Upload the configuration file to the 🤗 Model Hub.",gt,z,ht,D,oe,_t,ke,no=`Checks whether the passed dictionary and its nested dicts have a <em>torch_dtype</em> key and if it’s not None, | |
| converts torch.dtype to a string of just the type. For example, <code>torch.float32</code> get converted into <em>“float32”</em> | |
| string, which can then be stored in the json format.`,bt,F,ne,yt,Pe,ro='Instantiates a <a href="/docs/transformers/v4.51.3/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> from a Python dictionary of parameters.',vt,q,re,wt,Me,ao='Instantiates a <a href="/docs/transformers/v4.51.3/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> from the path to a JSON file of parameters.',Ct,U,ae,xt,je,so='Instantiate a <a href="/docs/transformers/v4.51.3/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> (or a derived class) from a pretrained model configuration.',$t,H,Tt,V,se,kt,Je,io=`From a <code>pretrained_model_name_or_path</code>, resolve to a dictionary of parameters, to be used for instantiating a | |
| <a href="/docs/transformers/v4.51.3/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> using <code>from_dict</code>.`,Pt,N,ie,Mt,Ue,co=`Returns the config that is meant to be used with text IO. On most models, it is the original config instance | |
| itself. On specific composite models, it is under a set of valid names.`,jt,Z,de,Jt,Ze,lo=`Register this class with a given auto class. This should only be used for custom configurations as the ones in | |
| the library are already mapped with <code>AutoConfig</code>.`,Ut,B,Zt,S,ce,It,Ie,mo=`Save a configuration object to the directory <code>save_directory</code>, so that it can be re-loaded using the | |
| <a href="/docs/transformers/v4.51.3/ja/main_classes/configuration#transformers.PretrainedConfig.from_pretrained">from_pretrained()</a> class method.`,Lt,E,le,Wt,Le,fo="Serializes this instance to a Python dictionary.",zt,X,me,Dt,We,po=`Removes all attributes from the configuration that correspond to the default config attributes for | |
| better readability, while always retaining the <code>config</code> attribute from the class. Serializes to a | |
| Python dictionary.`,Ft,R,fe,qt,ze,uo="Save this instance to a JSON file.",Ht,A,pe,Vt,De,go="Serializes this instance to a JSON string.",Nt,Y,ue,Bt,Fe,ho="Updates attributes of this class with attributes from <code>config_dict</code>.",St,j,ge,Et,qe,_o="Updates attributes of this class with attributes from <code>update_str</code>.",Xt,He,bo=`The expected format is ints, floats and strings as is, and for booleans use <code>true</code> or <code>false</code>. For example: | |
| “n_embd=10,resid_pdrop=0.2,scale_attn_weights=false,summary_type=cls_index”`,Rt,Ve,yo="The keys to change have to already exist in the config object.",Ye,he,Ge,Se,Qe;return K=new Po({props:{title:"PretrainedConfig",local:"transformers.PretrainedConfig",headingTag:"h2"}}),ee=new k({props:{name:"class transformers.PretrainedConfig",anchor:"transformers.PretrainedConfig",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PretrainedConfig.name_or_path",description:`<strong>name_or_path</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| Store the string that was passed to <a href="/docs/transformers/v4.51.3/ja/main_classes/model#transformers.PreTrainedModel.from_pretrained">PreTrainedModel.from_pretrained()</a> or | |
| <a href="/docs/transformers/v4.51.3/ja/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">TFPreTrainedModel.from_pretrained()</a> as <code>pretrained_model_name_or_path</code> if the configuration was created | |
| with such a method.`,name:"name_or_path"},{anchor:"transformers.PretrainedConfig.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not the model should return all hidden-states.`,name:"output_hidden_states"},{anchor:"transformers.PretrainedConfig.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not the model should returns all attentions.`,name:"output_attentions"},{anchor:"transformers.PretrainedConfig.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether or not the model should return a <a href="/docs/transformers/v4.51.3/ja/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PretrainedConfig.is_encoder_decoder",description:`<strong>is_encoder_decoder</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether the model is used as an encoder/decoder or not.`,name:"is_encoder_decoder"},{anchor:"transformers.PretrainedConfig.is_decoder",description:`<strong>is_decoder</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only use the decoder in an encoder-decoder architecture, otherwise it has no effect on decoder-only or encoder-only architectures.`,name:"is_decoder"},{anchor:"transformers.PretrainedConfig.cross_attention_hidden_size**",description:`<strong>cross_attention_hidden_size**</strong> (<code>bool</code>, <em>optional</em>) — | |
| The hidden size of the cross-attention layer in case the model is used as a decoder in an encoder-decoder | |
| setting and the cross-attention hidden dimension differs from <code>self.config.hidden_size</code>.`,name:"cross_attention_hidden_size**"},{anchor:"transformers.PretrainedConfig.add_cross_attention",description:`<strong>add_cross_attention</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether cross-attention layers should be added to the model. Note, this option is only relevant for models | |
| that can be used as decoder models within the <code>EncoderDecoderModel</code> class, which consists of all models | |
| in <code>AUTO_MODELS_FOR_CAUSAL_LM</code>.`,name:"add_cross_attention"},{anchor:"transformers.PretrainedConfig.tie_encoder_decoder",description:`<strong>tie_encoder_decoder</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether all encoder weights should be tied to their equivalent decoder weights. This requires the encoder | |
| and decoder model to have the exact same parameter names.`,name:"tie_encoder_decoder"},{anchor:"transformers.PretrainedConfig.prune_heads",description:`<strong>prune_heads</strong> (<code>Dict[int, List[int]]</code>, <em>optional</em>, defaults to <code>{}</code>) — | |
| Pruned heads of the model. The keys are the selected layer indices and the associated values, the list of | |
| heads to prune in said layer.</p> | |
| <p>For instance <code>{1: [0, 2], 2: [2, 3]}</code> will prune heads 0 and 2 on layer 1 and heads 2 and 3 on layer 2.`,name:"prune_heads"},{anchor:"transformers.PretrainedConfig.chunk_size_feed_forward",description:`<strong>chunk_size_feed_forward</strong> (<code>int</code>, <em>optional</em>, defaults to <code>0</code>) — | |
| The chunk size of all feed forward layers in the residual attention blocks. A chunk size of <code>0</code> means that | |
| the feed forward layer is not chunked. A chunk size of n means that the feed forward layer processes <code>n</code> < | |
| sequence_length embeddings at a time. For more information on feed forward chunking, see <a href="../glossary.html#feed-forward-chunking">How does Feed | |
| Forward Chunking work?</a>.`,name:"chunk_size_feed_forward"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L47",parameterGroups:[{title:"Parameters for fine-tuning tasks",parametersDescription:[{anchor:"transformers.PretrainedConfig.architectures",description:`<strong>architectures</strong> (<code>List[str]</code>, <em>optional</em>) — | |
| Model architectures that can be used with the model pretrained weights.`,name:"architectures"},{anchor:"transformers.PretrainedConfig.finetuning_task",description:`<strong>finetuning_task</strong> (<code>str</code>, <em>optional</em>) — | |
| Name of the task used to fine-tune the model. This can be used when converting from an original (TensorFlow | |
| or PyTorch) checkpoint.`,name:"finetuning_task"},{anchor:"transformers.PretrainedConfig.id2label",description:`<strong>id2label</strong> (<code>Dict[int, str]</code>, <em>optional</em>) — | |
| A map from index (for instance prediction index, or target index) to label.`,name:"id2label"},{anchor:"transformers.PretrainedConfig.label2id",description:"<strong>label2id</strong> (<code>Dict[str, int]</code>, <em>optional</em>) — A map from label to index for the model.",name:"label2id"},{anchor:"transformers.PretrainedConfig.num_labels",description:`<strong>num_labels</strong> (<code>int</code>, <em>optional</em>) — | |
| Number of labels to use in the last layer added to the model, typically for a classification task.`,name:"num_labels"},{anchor:"transformers.PretrainedConfig.task_specific_params",description:`<strong>task_specific_params</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) — | |
| Additional keyword arguments to store for the current task.`,name:"task_specific_params"},{anchor:"transformers.PretrainedConfig.problem_type",description:`<strong>problem_type</strong> (<code>str</code>, <em>optional</em>) — | |
| Problem type for <code>XxxForSequenceClassification</code> models. Can be one of <code>"regression"</code>, | |
| <code>"single_label_classification"</code> or <code>"multi_label_classification"</code>.`,name:"problem_type"}]},{title:"Parameters linked to the tokenizer",parametersDescription:[{anchor:"transformers.PretrainedConfig.tokenizer_class",description:`<strong>tokenizer_class</strong> (<code>str</code>, <em>optional</em>) — | |
| The name of the associated tokenizer class to use (if none is set, will use the tokenizer associated to the | |
| model by default).`,name:"tokenizer_class"},{anchor:"transformers.PretrainedConfig.prefix",description:`<strong>prefix</strong> (<code>str</code>, <em>optional</em>) — | |
| A specific prompt that should be added at the beginning of each text before calling the model.`,name:"prefix"},{anchor:"transformers.PretrainedConfig.bos_token_id",description:"<strong>bos_token_id</strong> (<code>int</code>, <em>optional</em>) — The id of the <em>beginning-of-stream</em> token.",name:"bos_token_id"},{anchor:"transformers.PretrainedConfig.pad_token_id",description:"<strong>pad_token_id</strong> (<code>int</code>, <em>optional</em>) — The id of the <em>padding</em> token.",name:"pad_token_id"},{anchor:"transformers.PretrainedConfig.eos_token_id",description:"<strong>eos_token_id</strong> (<code>int</code>, <em>optional</em>) — The id of the <em>end-of-stream</em> token.",name:"eos_token_id"},{anchor:"transformers.PretrainedConfig.decoder_start_token_id",description:`<strong>decoder_start_token_id</strong> (<code>int</code>, <em>optional</em>) — | |
| If an encoder-decoder model starts decoding with a different token than <em>bos</em>, the id of that token.`,name:"decoder_start_token_id"},{anchor:"transformers.PretrainedConfig.sep_token_id",description:"<strong>sep_token_id</strong> (<code>int</code>, <em>optional</em>) — The id of the <em>separation</em> token.",name:"sep_token_id"}]},{title:"PyTorch specific parameters",parametersDescription:[{anchor:"transformers.PretrainedConfig.torchscript",description:`<strong>torchscript</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not the model should be used with Torchscript.`,name:"torchscript"},{anchor:"transformers.PretrainedConfig.tie_word_embeddings",description:`<strong>tie_word_embeddings</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether the model’s input and output word embeddings should be tied. Note that this is only relevant if the | |
| model has a output word embedding layer.`,name:"tie_word_embeddings"},{anchor:"transformers.PretrainedConfig.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code>, <em>optional</em>) — | |
| The <code>dtype</code> of the weights. This attribute can be used to initialize the model to a non-default <code>dtype</code> | |
| (which is normally <code>float32</code>) and thus allow for optimal storage allocation. For example, if the saved | |
| model is <code>float16</code>, ideally we want to load it back using the minimal amount of memory needed to load | |
| <code>float16</code> weights. Since the config object is stored in plain text, this attribute contains just the | |
| floating type string without the <code>torch.</code> prefix. For example, for <code>torch.float16</code> \`<code>torch_dtype</code> is the | |
| <code>"float16"</code> string.</p> | |
| <p>This attribute is currently not being used during model loading time, but this may change in the future | |
| versions. But we can already start preparing for the future by saving the dtype with save_pretrained.`,name:"torch_dtype"}]},{title:"TensorFlow specific parameters",parametersDescription:[{anchor:"transformers.PretrainedConfig.use_bfloat16",description:`<strong>use_bfloat16</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not the model should use BFloat16 scalars (only used by some TensorFlow models).`,name:"use_bfloat16"},{anchor:"transformers.PretrainedConfig.tf_legacy_loss",description:`<strong>tf_legacy_loss</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether the model should use legacy TensorFlow losses. Legacy losses have variable output shapes and may | |
| not be XLA-compatible. This option is here for backward compatibility and will be removed in Transformers | |
| v5.`,name:"tf_legacy_loss"},{anchor:"transformers.PretrainedConfig.loss_type",description:`<strong>loss_type</strong> (<code>str</code>, <em>optional</em>) — | |
| The type of loss that the model should use. It should be in <code>LOSS_MAPPING</code>’s keys, otherwise the loss will | |
| be automatically inferred from the model architecture.`,name:"loss_type"}]}]}}),L=new At({props:{$$slots:{default:[jo]},$$scope:{ctx:P}}}),W=new At({props:{warning:!0,$$slots:{default:[Jo]},$$scope:{ctx:P}}}),te=new k({props:{name:"push_to_hub",anchor:"transformers.PretrainedConfig.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": typing.Optional[bool] = None"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"max_shard_size",val:": typing.Union[int, str, NoneType] = '5GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = True"},{name:"revision",val:": typing.Optional[str] = None"},{name:"commit_description",val:": typing.Optional[str] = None"},{name:"tags",val:": typing.Optional[list[str]] = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.PretrainedConfig.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) — | |
| The name of the repository you want to push your config to. It should contain your organization name | |
| when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.PretrainedConfig.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) — | |
| Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub. | |
| Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.PretrainedConfig.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) — | |
| Message to commit while pushing. Will default to <code>"Upload config"</code>.`,name:"commit_message"},{anchor:"transformers.PretrainedConfig.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) — | |
| Whether to make the repo private. If <code>None</code> (default), the repo will be public unless the organization’s default is private. This value is ignored if the repo already exists.`,name:"private"},{anchor:"transformers.PretrainedConfig.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated | |
| when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code> | |
| is not specified.`,name:"token"},{anchor:"transformers.PretrainedConfig.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>"5GB"</code>) — | |
| Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard | |
| will then be each of size lower than this size. If expressed as a string, needs to be digits followed | |
| by a unit (like <code>"5MB"</code>). We default it to <code>"5GB"</code> so that users can easily load models on free-tier | |
| Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.PretrainedConfig.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.PretrainedConfig.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.PretrainedConfig.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) — | |
| Branch to push the uploaded files to.`,name:"revision"},{anchor:"transformers.PretrainedConfig.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) — | |
| The description of the commit that will be created`,name:"commit_description"},{anchor:"transformers.PretrainedConfig.push_to_hub.tags",description:`<strong>tags</strong> (<code>List[str]</code>, <em>optional</em>) — | |
| List of tags to push on the Hub.`,name:"tags"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/utils/hub.py#L854"}}),z=new vo({props:{anchor:"transformers.PretrainedConfig.push_to_hub.example",$$slots:{default:[Uo]},$$scope:{ctx:P}}}),oe=new k({props:{name:"dict_torch_dtype_to_str",anchor:"transformers.PretrainedConfig.dict_torch_dtype_to_str",parameters:[{name:"d",val:": dict"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L998"}}),ne=new k({props:{name:"from_dict",anchor:"transformers.PretrainedConfig.from_dict",parameters:[{name:"config_dict",val:": dict"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PretrainedConfig.from_dict.config_dict",description:`<strong>config_dict</strong> (<code>Dict[str, Any]</code>) — | |
| Dictionary that will be used to instantiate the configuration object. Such a dictionary can be | |
| retrieved from a pretrained checkpoint by leveraging the <a href="/docs/transformers/v4.51.3/ja/main_classes/configuration#transformers.PretrainedConfig.get_config_dict">get_config_dict()</a> method.`,name:"config_dict"},{anchor:"transformers.PretrainedConfig.from_dict.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>) — | |
| Additional parameters from which to initialize the configuration object.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L710",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>The configuration object instantiated from those parameters.</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><a | |
| href="/docs/transformers/v4.51.3/ja/main_classes/configuration#transformers.PretrainedConfig" | |
| >PretrainedConfig</a></p> | |
| `}}),re=new k({props:{name:"from_json_file",anchor:"transformers.PretrainedConfig.from_json_file",parameters:[{name:"json_file",val:": typing.Union[str, os.PathLike]"}],parametersDescription:[{anchor:"transformers.PretrainedConfig.from_json_file.json_file",description:`<strong>json_file</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Path to the JSON file containing the parameters.`,name:"json_file"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L771",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>The configuration object instantiated from that JSON file.</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><a | |
| href="/docs/transformers/v4.51.3/ja/main_classes/configuration#transformers.PretrainedConfig" | |
| >PretrainedConfig</a></p> | |
| `}}),ae=new k({props:{name:"from_pretrained",anchor:"transformers.PretrainedConfig.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike]"},{name:"cache_dir",val:": typing.Union[str, os.PathLike, NoneType] = None"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"revision",val:": str = 'main'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PretrainedConfig.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| This can be either:</p> | |
| <ul> | |
| <li>a string, the <em>model id</em> of a pretrained model configuration hosted inside a model repo on | |
| huggingface.co.</li> | |
| <li>a path to a <em>directory</em> containing a configuration file saved using the | |
| <a href="/docs/transformers/v4.51.3/ja/main_classes/configuration#transformers.PretrainedConfig.save_pretrained">save_pretrained()</a> method, e.g., <code>./my_model_directory/</code>.</li> | |
| <li>a path or url to a saved configuration JSON <em>file</em>, e.g., <code>./my_model_directory/configuration.json</code>.</li> | |
| </ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.PretrainedConfig.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) — | |
| Path to a directory in which a downloaded pretrained model configuration should be cached if the | |
| standard cache should not be used.`,name:"cache_dir"},{anchor:"transformers.PretrainedConfig.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to force to (re-)download the configuration files and override the cached versions if | |
| they exist.`,name:"force_download"},{anchor:"transformers.PretrainedConfig.from_pretrained.resume_download",description:`<strong>resume_download</strong> — | |
| Deprecated and ignored. All downloads are now resumed by default when possible. | |
| Will be removed in v5 of Transformers.`,name:"resume_download"},{anchor:"transformers.PretrainedConfig.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}.</code> The proxies are used on each request.`,name:"proxies"},{anchor:"transformers.PretrainedConfig.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use | |
| the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.PretrainedConfig.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a | |
| git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any | |
| identifier allowed by git.</p> | |
| <div class="course-tip bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400"> | |
| <p>To test a pull request you made on the Hub, you can pass <code>revision="refs/pr/<pr_number>"</code>.</p> | |
| </div>`,name:"revision"},{anchor:"transformers.PretrainedConfig.from_pretrained.return_unused_kwargs",description:`<strong>return_unused_kwargs</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| If <code>False</code>, then this function returns just the final configuration object.</p> | |
| <p>If <code>True</code>, then this functions returns a <code>Tuple(config, unused_kwargs)</code> where <em>unused_kwargs</em> is a | |
| dictionary consisting of the key/value pairs whose keys are not configuration attributes: i.e., the | |
| part of <code>kwargs</code> which has not been used to update <code>config</code> and is otherwise ignored.`,name:"return_unused_kwargs"},{anchor:"transformers.PretrainedConfig.from_pretrained.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| In case the relevant files are located inside a subfolder of the model repo on huggingface.co, you can | |
| specify the folder name here.`,name:"subfolder"},{anchor:"transformers.PretrainedConfig.from_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) — | |
| The values in kwargs of any keys which are configuration attributes will be used to override the loaded | |
| values. Behavior concerning key/value pairs whose keys are <em>not</em> configuration attributes is controlled | |
| by the <code>return_unused_kwargs</code> keyword parameter.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L457",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>The configuration object instantiated from this pretrained model.</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><a | |
| href="/docs/transformers/v4.51.3/ja/main_classes/configuration#transformers.PretrainedConfig" | |
| >PretrainedConfig</a></p> | |
| `}}),H=new vo({props:{anchor:"transformers.PretrainedConfig.from_pretrained.example",$$slots:{default:[Zo]},$$scope:{ctx:P}}}),se=new k({props:{name:"get_config_dict",anchor:"transformers.PretrainedConfig.get_config_dict",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PretrainedConfig.get_config_dict.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| The identifier of the pre-trained checkpoint from which we want the dictionary of parameters.`,name:"pretrained_model_name_or_path"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L570",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>The dictionary(ies) that will be used to instantiate the configuration object.</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><code>Tuple[Dict, Dict]</code></p> | |
| `}}),ie=new k({props:{name:"get_text_config",anchor:"transformers.PretrainedConfig.get_text_config",parameters:[{name:"decoder",val:" = False"}],parametersDescription:[{anchor:"transformers.PretrainedConfig.get_text_config.decoder",description:`<strong>decoder</strong> (<code>Optional[bool]</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| If set to <code>True</code>, then only search for decoder config names.`,name:"decoder"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L1113"}}),de=new k({props:{name:"register_for_auto_class",anchor:"transformers.PretrainedConfig.register_for_auto_class",parameters:[{name:"auto_class",val:" = 'AutoConfig'"}],parametersDescription:[{anchor:"transformers.PretrainedConfig.register_for_auto_class.auto_class",description:`<strong>auto_class</strong> (<code>str</code> or <code>type</code>, <em>optional</em>, defaults to <code>"AutoConfig"</code>) — | |
| The auto class to register this new configuration with.`,name:"auto_class"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L1013"}}),B=new At({props:{warning:!0,$$slots:{default:[Io]},$$scope:{ctx:P}}}),ce=new k({props:{name:"save_pretrained",anchor:"transformers.PretrainedConfig.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PretrainedConfig.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory where the configuration JSON file will be saved (will be created if it does not exist).`,name:"save_directory"},{anchor:"transformers.PretrainedConfig.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the | |
| repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your | |
| namespace).`,name:"push_to_hub"},{anchor:"transformers.PretrainedConfig.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) — | |
| Additional key word arguments passed along to the <a href="/docs/transformers/v4.51.3/ja/main_classes/model#transformers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L370"}}),le=new k({props:{name:"to_dict",anchor:"transformers.PretrainedConfig.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L870",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>Dictionary of all the attributes that make up this configuration instance.</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><code>Dict[str, Any]</code></p> | |
| `}}),me=new k({props:{name:"to_diff_dict",anchor:"transformers.PretrainedConfig.to_diff_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L802",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>Dictionary of all the attributes that make up this configuration instance.</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>Dict[str, Any]</p> | |
| `}}),fe=new k({props:{name:"to_json_file",anchor:"transformers.PretrainedConfig.to_json_file",parameters:[{name:"json_file_path",val:": typing.Union[str, os.PathLike]"},{name:"use_diff",val:": bool = True"}],parametersDescription:[{anchor:"transformers.PretrainedConfig.to_json_file.json_file_path",description:`<strong>json_file_path</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Path to the JSON file in which this configuration instance’s parameters will be saved.`,name:"json_file_path"},{anchor:"transformers.PretrainedConfig.to_json_file.use_diff",description:`<strong>use_diff</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| If set to <code>True</code>, only the difference between the config instance and the default <code>PretrainedConfig()</code> | |
| is serialized to JSON file.`,name:"use_diff"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L936"}}),pe=new k({props:{name:"to_json_string",anchor:"transformers.PretrainedConfig.to_json_string",parameters:[{name:"use_diff",val:": bool = True"}],parametersDescription:[{anchor:"transformers.PretrainedConfig.to_json_string.use_diff",description:`<strong>use_diff</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| If set to <code>True</code>, only the difference between the config instance and the default <code>PretrainedConfig()</code> | |
| is serialized to JSON string.`,name:"use_diff"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L918",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>String containing all the attributes that make up this configuration instance in JSON format.</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><code>str</code></p> | |
| `}}),ue=new k({props:{name:"update",anchor:"transformers.PretrainedConfig.update",parameters:[{name:"config_dict",val:": dict"}],parametersDescription:[{anchor:"transformers.PretrainedConfig.update.config_dict",description:"<strong>config_dict</strong> (<code>Dict[str, Any]</code>) — Dictionary of attributes that should be updated for this class.",name:"config_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L950"}}),ge=new k({props:{name:"update_from_string",anchor:"transformers.PretrainedConfig.update_from_string",parameters:[{name:"update_str",val:": str"}],parametersDescription:[{anchor:"transformers.PretrainedConfig.update_from_string.update_str",description:"<strong>update_str</strong> (<code>str</code>) — String with attributes that should be updated for this class.",name:"update_str"}],source:"https://github.com/huggingface/transformers/blob/v4.51.3/src/transformers/configuration_utils.py#L960"}}),he=new Mo({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ja/main_classes/configuration.md"}}),{c(){a=i("meta"),C=o(),l=i("p"),u=o(),T=i("p"),T.textContent=m,M=o(),Q=i("p"),Q.innerHTML=Yt,Xe=o(),O=i("p"),O.innerHTML=Gt,Re=o(),g(K.$$.fragment),Ae=o(),r=i("div"),g(ee.$$.fragment),st=o(),ve=i("p"),ve.textContent=Qt,it=o(),g(L.$$.fragment),dt=o(),we=i("p"),we.textContent=Ot,ct=o(),Ce=i("ul"),Ce.innerHTML=Kt,lt=o(),xe=i("p"),xe.textContent=eo,mt=o(),$e=i("ul"),$e.innerHTML=to,ft=o(),g(W.$$.fragment),pt=o(),J=i("div"),g(te.$$.fragment),ut=o(),Te=i("p"),Te.textContent=oo,gt=o(),g(z.$$.fragment),ht=o(),D=i("div"),g(oe.$$.fragment),_t=o(),ke=i("p"),ke.innerHTML=no,bt=o(),F=i("div"),g(ne.$$.fragment),yt=o(),Pe=i("p"),Pe.innerHTML=ro,vt=o(),q=i("div"),g(re.$$.fragment),wt=o(),Me=i("p"),Me.innerHTML=ao,Ct=o(),U=i("div"),g(ae.$$.fragment),xt=o(),je=i("p"),je.innerHTML=so,$t=o(),g(H.$$.fragment),Tt=o(),V=i("div"),g(se.$$.fragment),kt=o(),Je=i("p"),Je.innerHTML=io,Pt=o(),N=i("div"),g(ie.$$.fragment),Mt=o(),Ue=i("p"),Ue.textContent=co,jt=o(),Z=i("div"),g(de.$$.fragment),Jt=o(),Ze=i("p"),Ze.innerHTML=lo,Ut=o(),g(B.$$.fragment),Zt=o(),S=i("div"),g(ce.$$.fragment),It=o(),Ie=i("p"),Ie.innerHTML=mo,Lt=o(),E=i("div"),g(le.$$.fragment),Wt=o(),Le=i("p"),Le.textContent=fo,zt=o(),X=i("div"),g(me.$$.fragment),Dt=o(),We=i("p"),We.innerHTML=po,Ft=o(),R=i("div"),g(fe.$$.fragment),qt=o(),ze=i("p"),ze.textContent=uo,Ht=o(),A=i("div"),g(pe.$$.fragment),Vt=o(),De=i("p"),De.textContent=go,Nt=o(),Y=i("div"),g(ue.$$.fragment),Bt=o(),Fe=i("p"),Fe.innerHTML=ho,St=o(),j=i("div"),g(ge.$$.fragment),Et=o(),qe=i("p"),qe.innerHTML=_o,Xt=o(),He=i("p"),He.innerHTML=bo,Rt=o(),Ve=i("p"),Ve.textContent=yo,Ye=o(),g(he.$$.fragment),Ge=o(),Se=i("p"),this.h()},l(e){const f=ko("svelte-u9bgzb",document.head);a=d(f,"META",{name:!0,content:!0}),f.forEach(c),C=n(e),l=d(e,"P",{}),x(l).forEach(c),u=n(e),T=d(e,"P",{"data-svelte-h":!0}),p(T)!=="svelte-h0g430"&&(T.textContent=m),M=n(e),Q=d(e,"P",{"data-svelte-h":!0}),p(Q)!=="svelte-1l8325b"&&(Q.innerHTML=Yt),Xe=n(e),O=d(e,"P",{"data-svelte-h":!0}),p(O)!=="svelte-lq0qfk"&&(O.innerHTML=Gt),Re=n(e),h(K.$$.fragment,e),Ae=n(e),r=d(e,"DIV",{class:!0});var s=x(r);h(ee.$$.fragment,s),st=n(s),ve=d(s,"P",{"data-svelte-h":!0}),p(ve)!=="svelte-1p9qi0i"&&(ve.textContent=Qt),it=n(s),h(L.$$.fragment,s),dt=n(s),we=d(s,"P",{"data-svelte-h":!0}),p(we)!=="svelte-1qxxkvo"&&(we.textContent=Ot),ct=n(s),Ce=d(s,"UL",{"data-svelte-h":!0}),p(Ce)!=="svelte-u20fr"&&(Ce.innerHTML=Kt),lt=n(s),xe=d(s,"P",{"data-svelte-h":!0}),p(xe)!=="svelte-1yi3c0w"&&(xe.textContent=eo),mt=n(s),$e=d(s,"UL",{"data-svelte-h":!0}),p($e)!=="svelte-1cjcwii"&&($e.innerHTML=to),ft=n(s),h(W.$$.fragment,s),pt=n(s),J=d(s,"DIV",{class:!0});var I=x(J);h(te.$$.fragment,I),ut=n(I),Te=d(I,"P",{"data-svelte-h":!0}),p(Te)!=="svelte-j50kqf"&&(Te.textContent=oo),gt=n(I),h(z.$$.fragment,I),I.forEach(c),ht=n(s),D=d(s,"DIV",{class:!0});var _e=x(D);h(oe.$$.fragment,_e),_t=n(_e),ke=d(_e,"P",{"data-svelte-h":!0}),p(ke)!=="svelte-m61tyl"&&(ke.innerHTML=no),_e.forEach(c),bt=n(s),F=d(s,"DIV",{class:!0});var be=x(F);h(ne.$$.fragment,be),yt=n(be),Pe=d(be,"P",{"data-svelte-h":!0}),p(Pe)!=="svelte-1v4bog7"&&(Pe.innerHTML=ro),be.forEach(c),vt=n(s),q=d(s,"DIV",{class:!0});var ye=x(q);h(re.$$.fragment,ye),wt=n(ye),Me=d(ye,"P",{"data-svelte-h":!0}),p(Me)!=="svelte-fvppc"&&(Me.innerHTML=ao),ye.forEach(c),Ct=n(s),U=d(s,"DIV",{class:!0});var Ne=x(U);h(ae.$$.fragment,Ne),xt=n(Ne),je=d(Ne,"P",{"data-svelte-h":!0}),p(je)!=="svelte-175hpiy"&&(je.innerHTML=so),$t=n(Ne),h(H.$$.fragment,Ne),Ne.forEach(c),Tt=n(s),V=d(s,"DIV",{class:!0});var Oe=x(V);h(se.$$.fragment,Oe),kt=n(Oe),Je=d(Oe,"P",{"data-svelte-h":!0}),p(Je)!=="svelte-bhud4u"&&(Je.innerHTML=io),Oe.forEach(c),Pt=n(s),N=d(s,"DIV",{class:!0});var Ke=x(N);h(ie.$$.fragment,Ke),Mt=n(Ke),Ue=d(Ke,"P",{"data-svelte-h":!0}),p(Ue)!=="svelte-1jiloh6"&&(Ue.textContent=co),Ke.forEach(c),jt=n(s),Z=d(s,"DIV",{class:!0});var Be=x(Z);h(de.$$.fragment,Be),Jt=n(Be),Ze=d(Be,"P",{"data-svelte-h":!0}),p(Ze)!=="svelte-30y31e"&&(Ze.innerHTML=lo),Ut=n(Be),h(B.$$.fragment,Be),Be.forEach(c),Zt=n(s),S=d(s,"DIV",{class:!0});var et=x(S);h(ce.$$.fragment,et),It=n(et),Ie=d(et,"P",{"data-svelte-h":!0}),p(Ie)!=="svelte-1oldisk"&&(Ie.innerHTML=mo),et.forEach(c),Lt=n(s),E=d(s,"DIV",{class:!0});var tt=x(E);h(le.$$.fragment,tt),Wt=n(tt),Le=d(tt,"P",{"data-svelte-h":!0}),p(Le)!=="svelte-1ww3wqq"&&(Le.textContent=fo),tt.forEach(c),zt=n(s),X=d(s,"DIV",{class:!0});var ot=x(X);h(me.$$.fragment,ot),Dt=n(ot),We=d(ot,"P",{"data-svelte-h":!0}),p(We)!=="svelte-7m8m6m"&&(We.innerHTML=po),ot.forEach(c),Ft=n(s),R=d(s,"DIV",{class:!0});var nt=x(R);h(fe.$$.fragment,nt),qt=n(nt),ze=d(nt,"P",{"data-svelte-h":!0}),p(ze)!=="svelte-1g70y32"&&(ze.textContent=uo),nt.forEach(c),Ht=n(s),A=d(s,"DIV",{class:!0});var rt=x(A);h(pe.$$.fragment,rt),Vt=n(rt),De=d(rt,"P",{"data-svelte-h":!0}),p(De)!=="svelte-5ayq1f"&&(De.textContent=go),rt.forEach(c),Nt=n(s),Y=d(s,"DIV",{class:!0});var at=x(Y);h(ue.$$.fragment,at),Bt=n(at),Fe=d(at,"P",{"data-svelte-h":!0}),p(Fe)!=="svelte-1hh5fg7"&&(Fe.innerHTML=ho),at.forEach(c),St=n(s),j=d(s,"DIV",{class:!0});var G=x(j);h(ge.$$.fragment,G),Et=n(G),qe=d(G,"P",{"data-svelte-h":!0}),p(qe)!=="svelte-a2aodj"&&(qe.innerHTML=_o),Xt=n(G),He=d(G,"P",{"data-svelte-h":!0}),p(He)!=="svelte-179z5e8"&&(He.innerHTML=bo),Rt=n(G),Ve=d(G,"P",{"data-svelte-h":!0}),p(Ve)!=="svelte-5bouux"&&(Ve.textContent=yo),G.forEach(c),s.forEach(c),Ye=n(e),h(he.$$.fragment,e),Ge=n(e),Se=d(e,"P",{}),x(Se).forEach(c),this.h()},h(){$(a,"name","hf:doc:metadata"),$(a,"content",Wo),$(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(r,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,f){t(document.head,a),w(e,C,f),w(e,l,f),w(e,u,f),w(e,T,f),w(e,M,f),w(e,Q,f),w(e,Xe,f),w(e,O,f),w(e,Re,f),_(K,e,f),w(e,Ae,f),w(e,r,f),_(ee,r,null),t(r,st),t(r,ve),t(r,it),_(L,r,null),t(r,dt),t(r,we),t(r,ct),t(r,Ce),t(r,lt),t(r,xe),t(r,mt),t(r,$e),t(r,ft),_(W,r,null),t(r,pt),t(r,J),_(te,J,null),t(J,ut),t(J,Te),t(J,gt),_(z,J,null),t(r,ht),t(r,D),_(oe,D,null),t(D,_t),t(D,ke),t(r,bt),t(r,F),_(ne,F,null),t(F,yt),t(F,Pe),t(r,vt),t(r,q),_(re,q,null),t(q,wt),t(q,Me),t(r,Ct),t(r,U),_(ae,U,null),t(U,xt),t(U,je),t(U,$t),_(H,U,null),t(r,Tt),t(r,V),_(se,V,null),t(V,kt),t(V,Je),t(r,Pt),t(r,N),_(ie,N,null),t(N,Mt),t(N,Ue),t(r,jt),t(r,Z),_(de,Z,null),t(Z,Jt),t(Z,Ze),t(Z,Ut),_(B,Z,null),t(r,Zt),t(r,S),_(ce,S,null),t(S,It),t(S,Ie),t(r,Lt),t(r,E),_(le,E,null),t(E,Wt),t(E,Le),t(r,zt),t(r,X),_(me,X,null),t(X,Dt),t(X,We),t(r,Ft),t(r,R),_(fe,R,null),t(R,qt),t(R,ze),t(r,Ht),t(r,A),_(pe,A,null),t(A,Vt),t(A,De),t(r,Nt),t(r,Y),_(ue,Y,null),t(Y,Bt),t(Y,Fe),t(r,St),t(r,j),_(ge,j,null),t(j,Et),t(j,qe),t(j,Xt),t(j,He),t(j,Rt),t(j,Ve),w(e,Ye,f),_(he,e,f),w(e,Ge,f),w(e,Se,f),Qe=!0},p(e,[f]){const s={};f&2&&(s.$$scope={dirty:f,ctx:e}),L.$set(s);const I={};f&2&&(I.$$scope={dirty:f,ctx:e}),W.$set(I);const _e={};f&2&&(_e.$$scope={dirty:f,ctx:e}),z.$set(_e);const be={};f&2&&(be.$$scope={dirty:f,ctx:e}),H.$set(be);const ye={};f&2&&(ye.$$scope={dirty:f,ctx:e}),B.$set(ye)},i(e){Qe||(b(K.$$.fragment,e),b(ee.$$.fragment,e),b(L.$$.fragment,e),b(W.$$.fragment,e),b(te.$$.fragment,e),b(z.$$.fragment,e),b(oe.$$.fragment,e),b(ne.$$.fragment,e),b(re.$$.fragment,e),b(ae.$$.fragment,e),b(H.$$.fragment,e),b(se.$$.fragment,e),b(ie.$$.fragment,e),b(de.$$.fragment,e),b(B.$$.fragment,e),b(ce.$$.fragment,e),b(le.$$.fragment,e),b(me.$$.fragment,e),b(fe.$$.fragment,e),b(pe.$$.fragment,e),b(ue.$$.fragment,e),b(ge.$$.fragment,e),b(he.$$.fragment,e),Qe=!0)},o(e){y(K.$$.fragment,e),y(ee.$$.fragment,e),y(L.$$.fragment,e),y(W.$$.fragment,e),y(te.$$.fragment,e),y(z.$$.fragment,e),y(oe.$$.fragment,e),y(ne.$$.fragment,e),y(re.$$.fragment,e),y(ae.$$.fragment,e),y(H.$$.fragment,e),y(se.$$.fragment,e),y(ie.$$.fragment,e),y(de.$$.fragment,e),y(B.$$.fragment,e),y(ce.$$.fragment,e),y(le.$$.fragment,e),y(me.$$.fragment,e),y(fe.$$.fragment,e),y(pe.$$.fragment,e),y(ue.$$.fragment,e),y(ge.$$.fragment,e),y(he.$$.fragment,e),Qe=!1},d(e){e&&(c(C),c(l),c(u),c(T),c(M),c(Q),c(Xe),c(O),c(Re),c(Ae),c(r),c(Ye),c(Ge),c(Se)),c(a),v(K,e),v(ee),v(L),v(W),v(te),v(z),v(oe),v(ne),v(re),v(ae),v(H),v(se),v(ie),v(de),v(B),v(ce),v(le),v(me),v(fe),v(pe),v(ue),v(ge),v(he,e)}}}const Wo='{"title":"PretrainedConfig","local":"transformers.PretrainedConfig","sections":[],"depth":2}';function zo(P){return xo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class So extends $o{constructor(a){super(),To(this,a,zo,Lo,Co,{})}}export{So as component}; | |
Xet Storage Details
- Size:
- 55.5 kB
- Xet hash:
- bf5743a8b42faee2726edad2a5431e052d1340eede1015c61cbfd23c03443d94
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.