Skip to content

Instantly share code, notes, and snippets.

View rbiswasfc's full-sized avatar

Raja Biswas rbiswasfc

View GitHub Profile
@rbiswasfc
rbiswasfc / minai.md
Created September 6, 2024 08:41
Minai

Introduction

Minai is a flexible and lightweight deep learning training framework developed interactively in the part 2 of fast.ai's 2022-23 course.

The core of minai is the Learner class, which orchestrates the training process through an extensive callback system, allowing users to easily modify or extend any part of the training loop.

Minai provides a set of utilities for data handling, device management, visualization, and performance optimization, making it suitable for both quick prototyping and advanced deep learning projects.


README.md

@rbiswasfc
rbiswasfc / summary.md
Created September 6, 2024 09:07
fast.ai: Practical Deep Learning for Coders

This is the summary of Practical Deep Learning for Coders - part 2 of fast.ai's 2022-23 course.

Content Summary

In this course, we’ll explore diffusion methods such as Denoising Diffusion Probabilistic Models (DDPM) and Denoising Diffusion Implicit Models (DDIM). We’ll get our hands dirty implementing unconditional and conditional diffusion models, experimenting with different samplers, and diving into recent tricks like textual inversion and Dreambooth.

Along the way, we’ll cover essential deep learning topics like neural network architectures, data augmentation approaches, and various loss functions. We’ll build our own models from scratch, such as Multi-Layer Perceptrons (MLPs), ResNets, and Unets, while experimenting with generative architectures like autoencoders and transformers.

Throughout the course, we’ll use PyTorch to implement our models, and will create our own deep learning framework called miniai. We’ll master Python concepts like iterators, ge

@rbiswasfc
rbiswasfc / notebooks.md
Created September 6, 2024 09:48
Practical Deep Learning for Coders - Notebooks

This file contains the notebooks (from 01_matmul.ipynb to 14_augment.ipynb) developed in the Practical Deep Learning for Coders - part 2 of fast.ai's 2022-23 course.


01_matmul.ipynb


Matrix Multiplication from Foundations

This document explores matrix multiplication, starting from basic Python implementations and progressing to more advanced techniques using NumPy, PyTorch, and CUDA.

@rbiswasfc
rbiswasfc / hf_hub
Last active September 20, 2024 02:02
HF Hub (v0.25.0)
# concepts/git_vs_http.md
<!--⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
rendered properly in your Markdown viewer.
-->
# Git vs HTTP paradigm
The `huggingface_hub` library is a library for interacting with the Hugging Face Hub, which is a
collections of git-based repositories (models, datasets or Spaces). There are two main
@rbiswasfc
rbiswasfc / 00_core.ipynb
Created September 23, 2024 13:32
minai_finetuning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rbiswasfc
rbiswasfc / 05_zotero_search_improvements.ipynb
Last active September 30, 2024 08:14
05_zotero_search_improvements.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rbiswasfc
rbiswasfc / minimal_hf.py
Created September 27, 2024 11:53
fasthtml oauth huggingface
from fasthtml.common import *
from fasthtml.oauth import HuggingFaceClient, redir_url
# Auth client
client = HuggingFaceClient(os.getenv("HF_CLIENT_ID"), os.getenv("HF_API_SECRET"))
app = FastHTML()
redir_path = "/auth/callback"
@rbiswasfc
rbiswasfc / environment.yaml
Created September 30, 2024 07:18
environment
name: nbdev
channels:
- pytorch
- fastai
- huggingface
- conda-forge
- defaults
dependencies:
- python=3.10
- pandas
@rbiswasfc
rbiswasfc / claudette.md
Created October 2, 2024 04:52
claudette core

AUTOGENERATED! DO NOT EDIT! File to edit: ../00_core.ipynb.

%% auto 0

all = ['empty', 'model_types', 'all_models', 'models', 'models_aws', 'models_goog', 'pricing', 'find_block', 'contents', 'usage', 'mk_msgs', 'Client', 'mk_tool_choice', 'call_func', 'mk_funcres', 'mk_toolres', 'Chat', 'img_msg', 'text_msg', 'mk_msg']

%% ../00_core.ipynb

import inspect, typing, mimetypes, base64, json from collections import abc

@rbiswasfc
rbiswasfc / 06_refactoring_example.ipynb
Created October 2, 2024 05:02
refactoring using aimagic
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.