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

Question about the training loss #21

Open
daiyixiang666 opened this issue May 9, 2024 · 0 comments
Open

Question about the training loss #21

daiyixiang666 opened this issue May 9, 2024 · 0 comments

Comments

@daiyixiang666
Copy link

vq_codebook_size = get_vq_codebook_size(config) num_classes = get_num_classes(config) num_special_tokens = get_num_special_tokens(config) vocab_size = vq_codebook_size + num_classes + num_special_tokens
I found that we not only have the vq_codebook_size and the num_clases and the special_tokens, I
wonder what are they doing since I do not see they are used in calcualting the loss logits = logits[:, :, :vq_codebook_size]

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