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

Allow for sample_codebook_temp to be annealed? #67

Open
Pachark opened this issue Aug 16, 2023 · 1 comment
Open

Allow for sample_codebook_temp to be annealed? #67

Pachark opened this issue Aug 16, 2023 · 1 comment

Comments

@Pachark
Copy link

Pachark commented Aug 16, 2023

Hi! I've seen commit 1da641b (version = '1.5.16') with message 'allow for temperature to be annealed'.

But the sample_codebook_temp seems constant during training. How to turn on annealed temperature?

@lucidrains
Copy link
Owner

@Pachark hey Patrick! glad you are interested in this and i am curious about your results if you do try it. i saw a lot of success using the stochastic sampling technique (but don't take my word for it as i'm a poor experimentalist)

so you can actually override the sample_codebook_temp on forward of the vq module, with your preferred annealing schedule. i haven't thought of a good way to manage the schedule within the class itself yet, not without complicating things

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