Skip to main content

edutorch

Rewritten PyTorch framework designed to help you learn AI/ML!

Python 3.7+ Build Status GitHub license codecov Downloads

PyTorch is one of the most amazing frameworks for building and training deep neural networks. One of its biggest strengths is providing an intuitive and extendable interface for building and training these models.

In this project, I provide my own version of the PyTorch framework, designed to help you understand the key concepts. The goal is to provide explicit implementations of popular layers, models, and optimizers. Above all else, this code is designed to be readable and clear. Many of these examples are modified from Stanford's CS 230 / 231N course materials available online.

EduTorch vs PyTorch

One notable difference between EduTorch and PyTorch is that EduTorch does NOT provide autograd. There are many educational benefits to deriving/implementing the backprop step yourself, and if you want automatic gradient calculations, you are better off using the real framework. Additionally, if you wanted to learn how the autograd system is implemented, you can check out Andrej Karpathy's micrograd project.

There is no CUDA or GPU support either, for the same reasons.

Contributing

All issues and pull requests are much appreciated!

  • First, be sure to run scripts/install-hooks.
  • To run all tests and use auto-formatting tools, check out scripts/run-tests.
  • To only run unit tests, run pytest.

Metadata

Release files for edutorch 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edutorch 0.0.3
File Size Uploaded
edutorch-0.0.3.tar.gz 28.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for edutorch 0.0.3
File Interpreter ABI Platform
edutorch-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 77.1 kB

Release files / edutorch-0.0.3.tar.gz

Download URL edutorch-0.0.3.tar.gz
Size 28.0 kB
Tags Source
SHA-256 checksum
How to use checksums
162e0abdea32e5c68f66c339475effef1406741775f32d79488ec9ba73e8dec3
BLAKE2b-256 checksum
How to use checksums
e3697a5f88f4648333a02bd623018478f46f0b120fd974c165c922a45bc152ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

Release files / edutorch-0.0.3-py3-none-any.whl

Download URL edutorch-0.0.3-py3-none-any.whl
Size 49.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37a7d3a13661f30a381aac75cd1f78324c757c4f2b677fee57a317bda0017fbb
BLAKE2b-256 checksum
How to use checksums
9d1895dc9daa1fbbc76f14b3d11b1c94f3669a789d1d69a5b2e48b49c82ec8a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page