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

关于 region_start[0] 的疑问 #25

Open
Xiao-congxi opened this issue Oct 17, 2024 · 1 comment
Open

关于 region_start[0] 的疑问 #25

Xiao-congxi opened this issue Oct 17, 2024 · 1 comment

Comments

@Xiao-congxi
Copy link

请问 STLlama.py 第210行:
region_select_out = STE_out[:, :, region_start[0]:region_end[0], :].to(torch.bfloat16)
为什么索引 region_start[0] 和 region_end[0] 呢,一个batch中的所有样本,selected region 都相同吗?

@LZH-YS1998
Copy link
Collaborator

你好,region_start的数据来自于源数据文件的id索引,对应每个区域的索引

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