Skip to content

Instantly share code, notes, and snippets.

View gorarakelyan's full-sized avatar
🎯
On a mission to democratize 🌎 AI dev tools 🤖

Gor Arakelyan gorarakelyan

🎯
On a mission to democratize 🌎 AI dev tools 🤖
View GitHub Profile
@gorarakelyan
gorarakelyan / handwritten_digit_recognition.py
Created February 16, 2023 18:00
Handwritten digit recognition with PyTorch, Hugging Face Datasets and Aim.
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
from datasets import load_dataset
from aim import Run
from aim.hf_dataset import HFDataset
# from aim.pytorch import track_gradients_dists, track_params_dists
@gorarakelyan
gorarakelyan / Aim-CnN-toy-script.py
Last active November 22, 2022 20:10
Aim Callbacks and Notifications toy script
import random
import time
from aim import Run
from aim import TrainingFlow
from aim.sdk.callbacks import events
# Define the callbacks
class MyCallbacks:
@gorarakelyan
gorarakelyan / aim-adjust-end-times-runs.py
Created January 23, 2022 10:59
Aim: Adjust end times of old runs
import click
from datetime import timedelta
from aim import Repo
@click.command()
@click.option('--delta', prompt='Time delta in hours from your current timezone to UTC', required=True, type=int)
@click.option('--repo', required=False, type=click.Path(exists=True,
file_okay=False,
@gorarakelyan
gorarakelyan / flax_mnist_train.py
Last active February 16, 2021 07:46
Example of using flax/jax to implement CNN which executes the training and evaluation loop for MNIST and tracks experiments with Aim
"""MNIST example.
Library file which executes the training and evaluation loop for MNIST.
The data is loaded using tensorflow_datasets.
"""
# See issue #620.
# pytype: disable=wrong-keyword-args
from absl import logging
from flax import linen as nn