X2Paddle
X2Paddle copied to clipboard
pytorch转成paddle后transformers的包调用需要pytorch环境怎么办?
感谢您参与 X2Paddle 社区! 问题模版为了 X2Paddle 能更好的迭代,例如新功能发布、 RoadMaps 和错误跟踪. :smile_cat:
问题描述
pytorch转成paddle后transformers的包调用需要pytorch环境怎么办?
ImportError: get_linear_schedule_with_warmup requires the PyTorch library but it was not found in your environment. Checkout the instructions on the installation page: https://pytorch.org/get-started/locally/ and follow the ones that match your environment. 以上是报错信息,transformers里面的学习率预热函数get_linear_schedule_with_warmup,paddle不支持 paddle有类似这样的函数吗?
- 错误信息
- 错误截图
具体信息
- 转换模型后用处
- [ ] 使用 Paddle 框架/ PaddleInference 推理预测
- [ ] 使用 Paddle-Lite 做移动端推理
- [ ] 转换预训练参数,再使用 Paddle 进行模型开发
- 模型来源 YOLOX:https://github.com/Megvii-BaseDetection/YOLOX
- 应用场景 用于移动端业务下的检测业务
- 版本信息 PaddlePaddle => :grey_question: X2Paddle => :grey_question: 来源框架版本(PyTorch/TF/ONNX/Caffe) => :grey_question:
- 您的联系方式(邮箱/微信/电话)
@seancoding1 目前训练代码转换属于实验性功能,还是建议使用PaddleNLP进行模型训练~