Tip for Using WSL inside VS Code to run Codex

Hello everyone!

Im really excited to share this with you all. I am a tinkerer of sorts but I wanted to create a deep learning model with my knowledge I have as a data science student. Sure enough, I learned just how great GPUs are at computing fast/parallel.

So what I want to share with you today is just a basic tip on what todo if youre someone like me who doesnt have a linux workstation but wants to use its GPU to test. You need WSL! (maybe im wrong well see). Well every time id run a model test or just test things VS Code would “attempt to reconnect”. For the last 1.5 days i was wondering what is happening and how to fix it. Essentially the kernel inside WSL would kill whatever was eating up memory, and here comes the noob answer i found, i wasn’t giving WSL enough of my memory to perform the duties i wanted in a remote env.

So if your having this same issue like me, remember to always feed your VENV/WSL enough resources so you don’t have a heartattack like I did. lol, cheers.

1 Like