rasbt/LLMs-from-scratch

Why does this page(dpo-from-scratch.ipynb) keep flashing?

haiduo opened this issue · 5 comments

Bug description

ch07/04_preference-tuning-with-dpo/dpo-from-scratch.ipynb

What operating system are you using?

Google or Edge browser

Where do you run your code?

None

Environment




Hi there,

do you mean when you load the Notebook in the browser (https://github.com/rasbt/LLMs-from-scratch/blob/main/ch07/04_preference-tuning-with-dpo/dpo-from-scratch.ipynb) it keeps flashing, or when you run the code locally it will make your browser window flashing?

In any case, I don't know exactly why this would happen. A hypothesis is maybe if you are running this notebook on a GPU, the GPU may be temporarily fully utilized and depending on your operating system it does not have enough power to also render the operating system interface properly. Where are you running the code?

Hi there,

do you mean when you load the Notebook in the browser (https://github.com/rasbt/LLMs-from-scratch/blob/main/ch07/04_preference-tuning-with-dpo/dpo-from-scratch.ipynb) it keeps flashing, or when you run the code locally it will make your browser window flashing?

In any case, I don't know exactly why this would happen. A hypothesis is maybe if you are running this notebook on a GPU, the GPU may be temporarily fully utilized and depending on your operating system it does not have enough power to also render the operating system interface properly. Where are you running the code?

Thank you for your prompt reply. I open this page in the browser and it keeps flashing. Maybe it is a problem with my browser. However, it does not impact me when I download it locally.

PS: This error is:
chrome-capture-2024-9-29

Hm, weird, I am not seeing this issue. Which browser is it, and can you try a different browser?

Hi @rasbt ,

I have tried Google and Edge browsers and this problem occurs both times. I think this problem is unique to me and it is not a common problem, so there is no need to worry.

Ok thanks for letting me know, glad that this works at least locally for you!