Skip to content

Controlling the decoding behavior #7

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

Open
ZhanqiuHu opened this issue Apr 6, 2025 · 1 comment
Open

Controlling the decoding behavior #7

ZhanqiuHu opened this issue Apr 6, 2025 · 1 comment

Comments

@ZhanqiuHu
Copy link

Hi team! Thanks for the great work.

The Controlling the decoding behavior section of your blog has some nice demos, and the section also mentions that "One can also adjust the decoding hyperparameters to control the decoding behavior, shifting it from more left-to-right like an AR model to more random-order generation."

I was wondering how these hyperparameters are configured?

Thanks!

@jiacheng-ye
Copy link
Contributor

Hi Zhanqiu, for your reference, the hyperparameters are as follows:

# these parameters are mostly kept still
temperature=0.2,
top_p=0.95,
diffusion_steps=256,
diffusion_max_length=256,

# the left gif
alg="maskgit_plus",
alg_temp=0,

# the middle gif
alg="maskgit_plus",
alg_temp=0.001,

# the right gif
alg="origin",
alg_temp=0,

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