Skip to content

W3D3 - fixes for deprecated numpy method and OOM crashes #985

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

Merged
merged 2 commits into from
May 28, 2025

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 changed the title fix for deprecated numpy method; minor change to avoid OOM crashes W3D3 - fixes for deprecated numpy method and OOM crashes May 27, 2025
@bgalbraith bgalbraith marked this pull request as ready for review May 27, 2025 18:12
Copy link
Contributor

@iamzoltan iamzoltan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@iamzoltan iamzoltan merged commit c66870e into main May 28, 2025
@bgalbraith bgalbraith deleted the fix/w3d3t1-updates branch May 28, 2025 14:41
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.

3 participants