Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

转pytorch到paddle报错 #1008

Open
18575062745 opened this issue Mar 22, 2024 · 1 comment
Open

转pytorch到paddle报错 #1008

18575062745 opened this issue Mar 22, 2024 · 1 comment

Comments

@18575062745
Copy link

问题描述

  • 错误信息
    ========= 2 OPs are not supported yet ===========
    ========== prim::PythonOp ============
    ========== aten::cross_entropy_loss ============

具体信息

代码:
from x2paddle.convert import pytorch2paddle
pytorch2paddle(module=model,
                        save_dir="/home/zhaowenzhuo/project/2024/baidu_race_true/beam_retriever-main/output/best_checkpoint/checkpoint_best.pt",
                        jit_type="trace",
                        input_examples=(batch['input_ids'],batch['attention_mask'],batch['start_pos'],
                                        batch['end_pos'],batch['sentence_index'],batch['sentence_labels'],batch['answer_type']))
  • 转换模型后用处
    • [√] 使用 Paddle 框架/ PaddleInference 推理预测
    • [ ] 使用 Paddle-Lite 做移动端推理
    • [ ] 转换预训练参数,再使用 Paddle 进行模型开发
  • 模型来源
    deberta-v3-large-squad2:https://huggingface.co/deepset/deberta-v3-large-squad2
  • 应用场景
    QA问答
  • 版本信息
    • paddle2onnx 1.1.0
    • paddlepaddle-gpu 2.6.0.post116
    • x2paddle 1.4.1
      来源框架版本(PyTorch/TF/ONNX/Caffe) => torch 1.13.1+cu116
  • 您的联系方式(邮箱/微信/电话)
@Jiang-Jia-Jun
Copy link
Collaborator

存在自定义Python算子,是无法支持的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants