You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在百度AI Studio环境中开发项目,开发环境: paddle dev gpu-cuda11.8-cudnn8
安装paddlenlp后,并import paddlenlp使用,这时出现报错,如下所示
>>> import paddlenlpTraceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/aistudio/.local/lib/python3.8/site-packages/paddlenlp/__init__.py", line 46, in <module>
from . import (
File "/home/aistudio/.local/lib/python3.8/site-packages/paddlenlp/trl/__init__.py", line 21, in <module>
from .sft_config import *
File "/home/aistudio/.local/lib/python3.8/site-packages/paddlenlp/trl/sft_config.py", line 29, in <module>
class SFTConfig(TrainingArguments):
File "/home/aistudio/.local/lib/python3.8/site-packages/paddlenlp/trl/sft_config.py", line 62, in SFTConfig
model_init_kwargs: Optional[dict[str, Any]] = None
TypeError: 'type' object is not subscriptable
BaolanChen
changed the title
[Bug]: TypeError: 'type' object is not subscriptable
[Question]: TypeError: 'type' object is not subscriptable
Jan 13, 2025
BaolanChen
changed the title
[Question]: TypeError: 'type' object is not subscriptable
[Bug]: TypeError: 'type' object is not subscriptable
Jan 13, 2025
软件环境
重复问题
错误描述
稳定复现步骤 & 代码
AI Studio开发环境:
paddle dev gpu-cuda11.8-cudnn8
安装paddle命令:
python -m pip install paddlepaddle-gpu==3.0.0rc0 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
安装paddlenlp命令:
pip install --upgrade paddlenlp==3.0.0b3
使用paddlenlp后报错,如图所示:
The text was updated successfully, but these errors were encountered: