Open y-vectorfield opened 9 months ago
Hi,
Thank you for bringing up this issue. I encountered a similar problem even after explicitly setting torch.backends.cudnn.deterministic
and related flags. I've noticed that the discrepancies occur specifically in the CLIP ViT encoders, where the vision embeddings produce different values across separate runs.
When comparing two identical inference processes, I observed that the image_forward_out
varies despite using the same image
input. This occurs in the following file:
https://github.com/haotian-liu/LLaVA/blob/c121f0432da27facab705978f83c4ada465e46fd/llava/model/multimodal_encoder/clip_encoder.py#L50
This situation occurs starting from the second example until the last one.
I'm curious to know if you're still experiencing this issue and if you've found a solution. Any insights would be greatly appreciated. Thank you for your time!
Describe the issue
Issue: The internal parameter for deterministic mode did not set in eval_model() func
According to the example code for eval_model(),
temperature
parameter set0
.I think if we set this param 0, we should explicitly set these additional params.
Hence, we should add the following conditional execution in eval_model() func.