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

what is the need for num_samples parameter in inference? #79

Open
hwaseem04 opened this issue Mar 19, 2024 · 1 comment
Open

what is the need for num_samples parameter in inference? #79

hwaseem04 opened this issue Mar 19, 2024 · 1 comment

Comments

@hwaseem04
Copy link

hwaseem04 commented Mar 19, 2024

torchrun --nproc_per_node=2 --nnodes=1 ./gen_utils/generate.py \
model.name='bert-base-uncased' use_sentence_piece=True batch_size=128 \
exp.name=play2 load_step=10000 data.name=docedit \
tgt_len=90 max_pos_len=512 \
num_samples=1 intermediate_size=2048 num_attention_heads=8 dropout=0.2 \
in_channels=128 out_channels=128 time_channels=128 skip_sample=True gen_timesteps=1000 \
schedule_sampler='xy_uniform' time_att=False att_strategy='txl' load_from_ema=False prediction=True

anyway the for loop loads dev_dataloader which is just the same data. Then what is the point of num_sampes parameter

@wutong4012
Copy link
Collaborator

The value of random is different each time, so the sampling noise at the beginning of diffusion is different each time. So you can get different results every time you run it.

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