【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:
zhangyihuiben
2025-12-01 17:23:09 +08:00
parent fcf881cdf3
commit d261447482
5 changed files with 21 additions and 19 deletions

View File

@@ -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)`

View File

@@ -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配置文件路径或配置字典。