Ben Chuanlong Du's Blog

It is never too late to learn.

The Python Quit Unexpectedly Error

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

If you are using Homebrew, you can reinstall a corrupted Python environment like this:

brew uninstall --ignore-dependencies --force python python@2 unset PYTHONPATH brew install python python@2 I had another …

Gradient Clipping in PyTorch

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

optimizer.zero_grad()        
output = model(data)
loss = F.nll_loss(output, target)
loss.backward()
torch.nn.utils.clip_grad_norm_(model.parameters(), args.clip)
optimizer.step()
  1. Use torch.nn.utils.clips_grad_norm_ (which is in-place) instead …

Public Cloud Offering GPU Support

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://lambdalabs.com/

https://www.floydhub.com/

https://colab.research.google.com/notebooks/intro.ipynb#recent=true

Amazon AWS

Below is a list of instances that have 1 GPU on Amazon …

Cluster Management Made Easy with the Python Package Fabric

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Ansible is a better alternative to Fabric. It is suggested that you use Ansible instead.

  1. Docstring will be displayed when you type the command fab -l.

  2. Invoke is for local use …

Use the ulimit Command to Control the Stack Size

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

http://en.tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/x4733.html

https://stackoverflow.com/questions/14471564/what-does-ulimit-s-unlimited-do

https://access.redhat.com/solutions/384633

Tips on Darknet and Yolo

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://pjreddie.com/darknet/tiny-darknet/

https://pjreddie.com/darknet/