Comments (3)
你本地有安装paddle吗,可以先测试下单机版本能不能跑通
from paddlerec.
排序模型dnn的单机版本我跑通了,我安装的paddlepaddle:2.1.0,paddlepaddle-gpu:2.4.2.post116
slot_dnn的单机版本报错:
(py37) E:\PaddleRec\PaddleRec\models\rank\slot_dnn>python -u ../../../tools/static_trainer.py -m config_queuedataset.yaml
2023-05-15 16:32:44,707 - INFO - cpu_num: None
2023-05-15 16:32:44,708 - INFO - **************common.configs**********
2023-05-15 16:32:44,708 - INFO - use_gpu: False, use_xpu: False, use_visual: False, train_batch_size: 2, train_data_dir: data/, epochs: 3, print_interval: 10, model_save_path: output_model_benchdnn_queue
2023-05-15 16:32:44,708 - INFO - **************common.configs**********
2023-05-15 16:32:45,986 - INFO - File list: ['E:\\PaddleRec\\PaddleRec\\models\\rank\\slot_dnn\\data//demo_10']
train file_list: ['E:\\PaddleRec\\PaddleRec\\models\\rank\\slot_dnn\\data//demo_10']
parse ins id: None
utils_path: E:\PaddleRec\PaddleRec\tools\utils\static_ps
abs_train_reader is: E:\PaddleRec\PaddleRec\models\rank\slot_dnn\criteo_reader
pipe_command is: python3.7 queuedataset_reader.py config_queuedataset.yaml E:\PaddleRec\PaddleRec\tools\utils\static_ps
dataset init thread_num: 1
2023-05-15 16:32:45,989 - INFO - Get Train Dataset
dataset get_reader thread_num: 1
2023-05-15 16:32:45,996 - INFO - AUC Reset To Zero: _generated_var_0
2023-05-15 16:32:45,996 - INFO - AUC Reset To Zero: _generated_var_1
2023-05-15 16:32:45,997 - INFO - AUC Reset To Zero: _generated_var_2
2023-05-15 16:32:45,997 - INFO - AUC Reset To Zero: _generated_var_3
2023-05-15 16:32:45,997 - INFO - AUC Reset To Zero: _generated_var_4
device worker program id: 2348362127944
I0515 16:32:46.040287 4596 hogwild_worker.cc:270] worker 0 train cost 0 seconds, batch_num: 0
2023-05-15 16:32:46,048 - INFO - epoch: 0 done, epoch time: 0.05 s
Traceback (most recent call last):
File "../../../tools/static_trainer.py", line 315, in <module>
main(args)
File "../../../tools/static_trainer.py", line 207, in main
prefix='rec_static')
File "E:\PaddleRec\PaddleRec\tools\utils\save_load.py", line 61, in save_static_model
paddle.static.save(program, model_prefix)
File "D:\Anaconda\envs\py37\lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "D:\Anaconda\envs\py37\lib\site-packages\paddle\fluid\wrapped_decorator.py", line 26, in __impl__
return wrapped_func(*args, **kwargs)
File "D:\Anaconda\envs\py37\lib\site-packages\paddle\fluid\framework.py", line 558, in __impl__
return func(*args, **kwargs)
File "D:\Anaconda\envs\py37\lib\site-packages\paddle\fluid\io.py", line 1876, in save
param_dict = {p.name: get_tensor(p) for p in parameter_list}
File "D:\Anaconda\envs\py37\lib\site-packages\paddle\fluid\io.py", line 1876, in <dictcomp>
param_dict = {p.name: get_tensor(p) for p in parameter_list}
File "D:\Anaconda\envs\py37\lib\site-packages\paddle\fluid\io.py", line 1872, in get_tensor
t = global_scope().find_var(var.name).get_tensor()
ValueError: (InvalidArgument) The Variable type must be class phi::DenseTensor, but the type it holds is class phi::SelectedRows.
[Hint: Expected holder_->Type() == VarTypeTrait<T>::kId, but received holder_->Type():8 != VarTypeTrait<T>::kId:7.] (at ..\paddle/fluid/framework/variable.h:58)
from paddlerec.
我先复现下,确认后会及时修复哈
from paddlerec.
Related Issues (20)
- tdm的示例跑不通 HOT 8
- 【用户使用问题】运行get_movie_vectors.py报错 HOT 7
- slot_dnn示例跑不通 HOT 5
- rank/dnn 的demo 使用dataset 读样例数据进行训练, 仿佛没有数据读入 HOT 1
- 训练ensfm模型loss为负数
- 在线实例运行需要注册,认证的话邮箱怎么发不了邮件啊,无法点击 HOT 1
- metric监控 HOT 1
- MIND模型中最后一次路由迭代为什么不设置B.stop_gradient = False ? HOT 1
- 训练wide_deep模型时,设置num_workers,epoch内迭代次数反而变多了。
- KIM样例数据说明
- maml 图像类别预测 HOT 1
- 运行movie_recommand下的data_prepare.sh出现问题 HOT 1
- 静态图模型能否修改共享参数形状 HOT 3
- 数据全部都是经过预处理的,无法进行实际业务测试 HOT 1
- module 'paddle' has no attribute 'is_compiled_with_custom_device' HOT 4
- 如何保存某一层的输出 HOT 8
- DeepRec模型训练报错 HOT 1
- In the MOE method does expert have to learn and can the frozen model be used as an expert?like gpt3 bert HOT 1
- esmm推理只有0.52的auc HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paddlerec.