Skip to content

hollymandel/deep_learning_curriculum_solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

09fcfb0 · Jul 3, 2024

History

9 Commits
Jul 3, 2024
Mar 29, 2024
Mar 20, 2024
Mar 22, 2024
Jul 3, 2024

Repository files navigation

This repo contains solutions to some of the exercises in Jacob Hilton's Deep Learning Curriculum.

1-transformers: a pytorch implementation of a decoder-only transformer for sequence tasks in transformer.py. It successfully completes a sequence reversal task (on the second half of the sequence) in transformer_reverser.ipynb. In transformer-shakespeare.ipynb I train it on the complete works of Shakespeare.

2-scaling: replicating scaling law results using convolutional nets of different sizes on the MNIST dataset. The figure at the bottom of MNIST_scaling.ipynb is a replication is Figure 2 in Kaplan et al.

3-parallelization: an implementation of data parallelization using MPI in data_parallel.py. A comparison of this parallel training and sequential training of CNNs on MNIST in compare_parallel_single.ipynb.

6-RL: trained a Cartpole agent using naive policy gradient in policy_gradient_cartpole.ipynb. Wrote a pytorch implementation of PPO in ppo.py and used it to trian a Lunar Lander agent in ppo_lunar_lander.ipynb.

About

Solutions to @jacobhilton/deep_learning_curriculum

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published