We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
复现代码:
import paddle import numpy as np position_ids = paddle.to_tensor(np.load('position_ids.npy')).reshape((3, 1, -1)) attention_mask = paddle.to_tensor(np.load('attention_mask.npy')).reshape((1, -1)) llm_positions = paddle.to_tensor(np.load('llm_positions.npy')).reshape((3, -1)) position_ids[..., 0, attention_mask[0] == 1] = llm_positions print(position_ids)
输入数据:inputs.zip
FLAGS_use_stride_kernel=0输出:
FLAGS_use_stride_kernel=0
Tensor(shape=[3, 1, 3985], dtype=int64, place=Place(gpu:0), stop_gradient=True, [[[1, 1, 1, ..., 1, 1, 1]], [[1, 1, 1, ..., 1, 1, 1]], [[1, 1, 1, ..., 1, 1, 1]]])
FLAGS_use_stride_kernel=1输出:
FLAGS_use_stride_kernel=1
Tensor(shape=[3, 1, 3985], dtype=int64, place=Place(gpu:0), stop_gradient=True, [[[0 , 1 , 2 , ..., 44, 45, 46]], [[0 , 1 , 2 , ..., 44, 45, 46]], [[0 , 1 , 2 , ..., 44, 45, 46]]])
No response
The text was updated successfully, but these errors were encountered:
@LokeZhou 跟进一下
Sorry, something went wrong.
zhwesky2010
No branches or pull requests
bug描述 Describe the Bug
复现代码:
输入数据:inputs.zip
FLAGS_use_stride_kernel=0
输出:FLAGS_use_stride_kernel=1
输出:其他补充信息 Additional Supplementary Information
No response
The text was updated successfully, but these errors were encountered: