mirror of
https://gitee.com/mindspore/mindformers.git
synced 2025-12-06 11:29:59 +08:00
【master】【mcore】【bugfix】Fix the incorrect path in the YAML file and Fix inconsistencies in formatting, capitalization, and typos in the documentation.
This commit is contained in:
@@ -3,10 +3,10 @@ mindformers.models.LlamaForCausalLM
|
||||
|
||||
.. py:class:: mindformers.models.LlamaForCausalLM(config=None)
|
||||
|
||||
在线计算并提供执行LLama训练时的损失值和逻辑值。
|
||||
在线计算并提供执行Llama训练时的损失值和逻辑值。
|
||||
|
||||
参数:
|
||||
- **config** (LlamaConfig, 可选) - LLama模型的配置。默认值: ``None`` 。
|
||||
- **config** (LlamaConfig, 可选) - Llama模型的配置。默认值: ``None`` 。
|
||||
|
||||
输入:
|
||||
- **input_ids** (Tensor) - 数据类型为Int64/Int32的词汇表中输入序列标记的索引,张量的形状为::math:`(batch, seq\_length)`。
|
||||
|
||||
@@ -3,7 +3,7 @@ mindformers.tools.MindFormerConfig
|
||||
|
||||
.. py:class:: mindformers.tools.MindFormerConfig(*args, **kwargs)
|
||||
|
||||
一个配置的类,继承于Python的dict类。可以解析来自yaml文件或dict实例的配置参数。
|
||||
一个配置类,继承于Python的dict类。可以解析来自yaml文件或dict实例的配置参数。
|
||||
|
||||
参数:
|
||||
- **args** (Any) - 可扩展参数列表,可以是yaml配置文件路径或配置字典。
|
||||
|
||||
Reference in New Issue
Block a user