Other articles


  1. A naive autoencoder on FashionMNIST

    Today we'll recreate the fastai notebook on autoencoders, where we train a vanilla autoencoder in FashionMNIST. Even though the autoencoder was actually doing a pretty bad job, it will be good practice for working with HuggingFace databases, CNNs and autoencoders.

    Getting the data

    import datasets
    from torch.utils.data import …
    read more
  2. Building up PyTorch abstractions: Part 1

    Today we will retrace lesson 13-14's notebook that "builds up" pytorch abstractions from scratch. As a first step we'll rederive everything in hardcore numpy (maybe hardcore should be reserved for C). Then we'll start building the abstractions.

    First up we load mnist data:

    from pathlib import Path
    from …
    read more
  3. Debugging session: Logseq Omnivore plugin

    I'm trying to debug a weird issue with the Logseq omnivore plugin where it takes forever to sync and it seemingly creates and deletes pages needlessly.

    My first step was to properly setting up a dev env (pnpm dev) which didn't work out of the box, instead of just building …

    read more
  4. RNN generations

    On advice from my uncle I'm continuing to fallback on task difficulty with RNNs.

    Unc's tips: - Swirch to generation task - Try residuals - Go deeper - Add projections - No dropout?

    Let's recreate Karpathy's classic post and train a language model on tiny-shakespeare. We can get the entire dataset which is a text …

    read more
  5. Shifting to translation with RNNs

    I'm pivoting the RNN summarization code to an easier example - Machine translation. Easier in the sense of the dataset, which consists of much shorter en-de sentence pairs compared to the summarization task. I have some suspicion that the there is a bug or something in my code, so today, after …

    read more
  6. A tidbit about docker containers

    I played around with docker containers today. Tried to install mssql on an M2 mac. Didn't go smoothly at first, but I attribute it to inexperience. The arm architecture crops up here and there when you're on one of those. Anyway, cool thing:

    You can run a terminal inside a …

    read more
  7. The mysteries of HTML box heights

    Today's post is not "fully cooked", I still don't think I figured this topic out, but I did learn a few things.

    Today I needed to do some css hacking for a dashboard I'm building with streamlit. I was using a grid element from the streamlit-extras package, and I wanted …

    read more

Page 1 / 2 »

social