Hands-on training for PyTorch deep learning fundamentals
The documentation is built with VitePress and can be viewed as an interactive website:
# 1. Install dependencies
npm install
# 2. Start the documentation server
npm run docs:dev
# 3. Open in browser
# Documentation will be available at http://localhost:5173Features:
- 📖 Clean, readable interface
- 🔍 Built-in search functionality
- 📱 Mobile-responsive design
- 🎨 Syntax highlighting for code blocks
- 🔄 Hot-reload during development
Browse the Study Guide in the docs/ folder directly:
Start here: docs/README.md → Complete study guide
Then: module-01/ → Hands-on labs
| Module | Topic | Description | Technologies |
|---|---|---|---|
| 1 | PyTorch Fundamentals | Tensors, operations, and tensor operations | PyTorch, NumPy |
| 2 | PyTorch Workflow Fundamentals | Data handling, model building, training loop | PyTorch, torch.nn, torch.optim |
| 3 | Neural Network Classification | Classification models, evaluation, and deployment | PyTorch, torchvision, sklearn |
ml_pytorch_training/
├── docs/ # 📖 CONCEPTUAL LEARNING
│ ├── README.md # Study guide and navigation
│ ├── module-01/ # Module 1: PyTorch Fundamentals
│ ├── module-02/ # Module 2: PyTorch Workflow Fundamentals
│ └── module-03/ # Module 3: Neural Network Classification
│
├── module-01/ # 🛠️ LAB & PRACTICE CODE
│ └── pytorch-fundamentals/ # Tensors and operations
│
├── module-02/ # PyTorch Workflow labs
│ └── pytorch-workflow/ # Data loading and training loops
│
├── module-03/ # Neural Network Classification labs
│ └── neural-network-classification/ # Classification models
│
└── assets/ # Images and diagrams
- Read the theory in
docs/module-X/ - Practice with labs in
module-X/ - Experiment with code
- Build your own variations
# 1. Read the conceptual guide
cat docs/module-01/05-tensor-foundations.md
# 2. Navigate to the lab
cd module-01/pytorch-fundamentals
# 3. Run the exercises
python 01_tensor_creation.py
# 4. Experiment and learn
python 02_tensor_operations.py# 1. Read the conceptual guide
cat docs/module-03/01-classification-intro.md
# 2. Navigate to the lab
cd module-03/neural-network-classification
# 3. Run the exercises
python 02_training_and_predictions.py
python 05_evaluation_metrics.py
python 06_complete_classification_workflow.pyThis project uses VitePress to provide a beautiful, searchable documentation website.
# Install Node.js dependencies
npm installRequirements:
- Node.js 18.x or higher
- npm 9.x or higher
Start the local development server with hot-reload:
npm run docs:devOpen your browser to: http://localhost:5173
The development server supports:
- 🔄 Hot reload: Changes to markdown files are instantly reflected
- 🔍 Full search: Search across all documentation
- 📱 Responsive: Works on desktop, tablet, and mobile
Create a static site ready for deployment:
# Build the static site
npm run docs:build
# Preview the built site
npm run docs:previewThe built site will be in docs/.vitepress/dist/ and can be deployed to:
- GitHub Pages
- Netlify
- Vercel
- Any static hosting service
| Command | Description |
|---|---|
npm install |
Install VitePress dependencies |
npm run docs:dev |
Start development server at http://localhost:5173 |
npm run docs:build |
Build static site for production |
npm run docs:preview |
Preview the production build locally |
VitePress configuration is in docs/.vitepress/config.ts:
- Navigation menu
- Sidebar structure
- Theme settings
- Search configuration
| Module | Study Guide | Lab Location |
|---|---|---|
| Module 1 | PyTorch Fundamentals | module-01/ |
| Module 2 | PyTorch Workflow | module-02/ |
| Module 3 | Neural Network Classification | module-03/ |
- Node.js 18.x or higher (for VitePress documentation viewer)
- npm 9.x or higher
- Python 3.8 or higher
- Basic Python knowledge
- Understanding of machine learning concepts
- Command-line interface familiarity
- Basic linear algebra knowledge
- Start with the Study Guide - Complete overview
- Module 1: PyTorch Fundamentals - Tensors, operations, and tensor manipulation
- Module 2: PyTorch Workflow - Data handling, model building, and training loops
- Module 3: Neural Network Classification - Classification models, evaluation, and deployment
This is a training repository. See CONTRIBUTING.md
# View documentation as website
npm install
npm run docs:dev
# Open http://localhost:5173
# Build for deployment
npm run docs:buildStart Learning:
- 🌐 View as Website:
npm run docs:devthen open http://localhost:5173 - 📖 Read as Markdown: docs/README.md ← Complete study guide