Skip to content

Instantly share code, notes, and snippets.

View wwboynton's full-sized avatar

Wesley W. Boynton wwboynton

View GitHub Profile
@kinoc
kinoc / jserv.py
Last active August 9, 2023 03:05
Simplest FastAPI endpoint for EleutherAI GPT-J-6B
# Near Simplest Language model API, with room to expand!
# runs GPT-J-6B on 3090 and TITAN and servers it using FastAPI
# change "seq" (which is the context size) to adjust footprint
#
# seq vram usage
# 512 14.7G
# 900 15.3G
# uses FastAPI, so install that
# https://fastapi.tiangolo.com/tutorial/
@billatq
billatq / royal-print.py
Created June 7, 2020 22:03
Super simple driver for Royal LetterMaster
import sys
import usb.core
import usb.util
import time
def initialize():
# find our device
dev = usb.core.find(idVendor=0x1a86, idProduct=0x7584)
@stephenhouser
stephenhouser / AXIS-Camera
Last active August 10, 2023 18:04
Controlling AXIS Pan/Tilt/Zoom Web Camera
Pyhton sample code to control an AXIS Pan/Tilt/Zoom web camera.
@Xeroday
Xeroday / Twitch.py
Created September 6, 2013 18:41
A script to fake views on Twitch.tv, http://www.ericzhang.me/faking-views-on-twitch-tv/
import requests
import subprocess
import json
import sys
import threading
import time
from Queue import Queue
numberOfViewers = int(sys.argv[1])
builderThreads = int(sys.argv[2])