Skip to content

Instantly share code, notes, and snippets.

@veekaybee
veekaybee / normcore-llm.md
Last active June 14, 2024 07:51
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@aidos-dev
aidos-dev / README.md
Last active June 13, 2024 13:26
How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

Step 1.

Open your terminal.

In the root directory run the command:

sudo nano /etc/bluetooth/main.conf
@ctsrc
ctsrc / README.md
Last active June 6, 2024 04:18 — forked from niw/README.en.md
Guide: Run FreeBSD 13.1-RELEASE for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc) with HVF acceleration (Hypervisor.framework)
@vadimkantorov
vadimkantorov / tensorbackeddictarray.py
Last active December 7, 2023 23:43
Tensor-backed immutable string array and list-of-dicts to be used in PyTorch Dataset classes to work around copied shared memory-pages when using Python lists of strings https://github.com/pytorch/pytorch/issues/13246
import math
import typing
import torch
class StringArray:
def __init__(self, strings : typing.List[str], encoding : typing.Literal['ascii', 'utf_16_le', 'utf_32_le'] = 'utf_16_le'):
strings = list(strings)
self.encoding = encoding
self.multiplier = dict(ascii = 1, utf_16_le = 2, utf_32_le = 4)[encoding]
self.data = torch.ByteTensor(torch.ByteStorage.from_buffer(''.join(strings).encode(encoding)))
@reagames
reagames / Seek_Thermal_Pygame_fbtft_2.0
Last active April 26, 2023 21:03 — forked from hightemp/Seek_2.0.py
Python script for Raspberry Pi to run Seek Thermal Camera, with openCV and pygame output - based on Seek by Cynfab http://www.eevblog.com/forum/thermal-imaging/yet-another-cheap-thermal-imager-incoming/msg571129/#msg571129
###########################################################################
#
#
# This is a program to read thermal image data from the Seek PIR206 Thermal Camera
# This program is intended to be used with Raspberry Pi
# Pygame allows to output directly to framebuffer.
# Here I use small TFT display connected to GPIO and sending data to framebuffer fb1 for output to this display.
# I also use three simple GPIO buttons to have realtime control for image processing parameters
# This comes particularly useful e.g. when you use Seek at low temperature (you will need to lower down "lower threshold limit"
@markus-beuckelmann
markus-beuckelmann / numpy-benchmark.py
Created April 30, 2017 13:06
A short Python script to benchmark NumPy and show your BLAS setup
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Roughly based on: http://stackoverflow.com/questions/11443302/compiling-numpy-with-openblas-integration
from __future__ import print_function
import numpy as np
from time import time