Skip to content

W3D3 - fix for deprecated numpy method and minor change to avoid OOM crashes #978

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

Closed
wants to merge 2 commits into from

Conversation

bgalbraith
Copy link
Contributor

Relies on downloading a custom set of data and packages as a bundle. Rather than attempting to fork, fix, and reprocess the code & archive, opted to just make the numpy code change directly to the downloaded code before import.

The OOM issue has to do with the cosine similarity function solution to exercise 2.1.1. There just isn't enough CUDA memory in a T4 instance to run the solution as implemented along with the whole process that goes into the plotting function. If you use CPU, the runtime will crash. The only place this custom solution is tried out is in the directly following interactive exercise, and simply not setting a custom function (which every other call to this method does) works just fine. As there is a tiny little test method specifically for this exercise already to verify it works, I think this is the best we can do for now.

@bgalbraith bgalbraith closed this May 27, 2025
@bgalbraith bgalbraith deleted the fix/w3d3-numpy-and-memory branch May 27, 2025 18:11
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

Successfully merging this pull request may close these issues.

2 participants