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

train_llava数据集构建的问题 #193

Open
weiaicunzai opened this issue Oct 30, 2024 · 0 comments
Open

train_llava数据集构建的问题 #193

weiaicunzai opened this issue Oct 30, 2024 · 0 comments

Comments

@weiaicunzai
Copy link

weiaicunzai commented Oct 30, 2024

请教一下,关于train_llava的代码。为什么[final_inputs_ids] (https://github.com/yuanzhoulvpi2017/zero_nlp/blob/main/train_llava/train_llava/data.py#L128) 使用pad_token_id进行填充,而final_label_ids 使用 ignore_idx进行填充? 为啥不是都用pad_token_id填充呢?

还有为啥ignore_idx 等于-100,模型是怎么知道-100是ignore_idx的呢?每个llm都知道-100是要忽略的值吗?比如llama,qwen之类的。

感谢!

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

1 participant