fix : 修正类型标注与统一 CLI 参数命名

- AutoRegressiveLM.forward 返回类型标注 -> Dict[str, Tensor]
- EmbeddingEncoder 移除冗余 position_ids 自动创建
- CLI 脚本模型目录参数统一为 --param_path
This commit is contained in:
2026-05-27 20:49:44 +08:00
parent 4145d35e3c
commit 2d5dc93b3d
5 changed files with 10 additions and 13 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ def main():
"--reload", action="store_true", help="Enable auto-reload for development"
)
parser.add_argument(
"--param-path",
"--param_path",
type=Path,
default=None,
help="Path to model parameters (default: project_root/params)",