Skip to content

Instantly share code, notes, and snippets.

View alecGraves's full-sized avatar
🌵

Alec Graves alecGraves

🌵
View GitHub Profile

Install Vicuna (Windows)

This guide assumes you have a pretty beefy system. You probably want a Nvidia 3090 or 4090 GPU and 32 GB of RAM. You have to spend money to make money, as they say.

  1. Install and run Transmission QT client

  2. [CTRL] + [U] and paste the link: magnet:?xt=urn:btih:ZXXDAUWYLRUXXBHUYEMS6Q5CE5WA3LVA&dn=LLaMA

    1. Select a folder to download into
  3. To only install LLaMA 7b and 13b:

#!/usr/bin/python
from __future__ import absolute_import, print_function, division
import rospy
import argparse
from geometry_msgs.msg import Twist
import math
parser = argparse.ArgumentParser(description='Step input followed by ramp')
parser.add_argument('sin_period', type=float, help='Duration to do sine wave')
parser.add_argument('number_of_periods', type=float, help='number of full periods')
#!/usr/bin/env bash
set -eo pipefail
SRC_PATH=src/robotic-lawnmower/
# latest common ancestor commit with master
#LATEST_MASTER_COMMIT=$(git -C $SRC_PATH rev-parse origin/master)
LATEST_MASTER_COMMIT=$(git -C $SRC_PATH merge-base origin/master HEAD)
PR_COMMITS=()
#include <Mouse.h>
void setup() {
// must run for mouse to work
Mouse.begin();
}
void loop() {
for(int i(0); i<40; ++i){
Mouse.move(1, 1, 0);
@alecGraves
alecGraves / profile.bat
Created March 16, 2019 04:25
windows profile for ros development
@echo off
:: My profile for Windows ROS development
:: set up aliases
DOSKEY cm=catkin_make -C %UserProfile%\Documents\catkin_ws
DOSKEY refresh=call %UserProfile%\Documents\catkin_ws\devel\setup.bat
:: source ROS setups
call C:\opt\ros\melodic\x64\setup.bat
call %UserProfile%\Documents\catkin_ws\devel\setup.bat
@alecGraves
alecGraves / weights.h
Created November 28, 2018 23:58
Mnist weights for a 3 layer network with relu activations
float layer1_weights[][768] = {{14.5226,-11.2519,-22.4915,-2.46923,10.1956,-10.6343,-2.0061,-19.7141,9.73274,-16.7968,1.0793,12.3558,-15.6944,4.19417,-19.4073,7.25937,-1.69755,-21.4114,-9.8635,-4.78446,-16.7968,-19.4055,6.94792,14.9915,-17.7118,-13.1035,-17.4072,-22.6458,-5.71125,1.23334,15.7711,11.8929,12.975,8.96221,-21.9003,4.65012,10.8053,-17.3988,11.2061,3.24429,-6.97104,3.97705,-21.1638,0.378532,9.22791,-1.028,-22.0354,-11.7438,-14.7256,-8.59737,-15.8332,-2.4296,5.70454,10.9671,5.85948,-17.1029,-16.6428,-15.2636,-8.48614,-14.6464,-0.150248,5.55206,-21.5692,-2.71606,-13.422,3.13322,-0.0882907,-12.8546,-17.1293,-15.3951,-10.9467,10.1567,13.4933,-13.5114,0.761027,-9.42166,-20.0683,-2.50431,-18.8539,-19.1752,-6.41888,-21.493,-19.0988,-7.56287,-2.77806,-22.4915,-6.79673,-3.98111,-16.6795,-12.7418,-0.368264,3.63098,7.36755,-16.5544,14.6793,10.1555,15.4514,17.4219,1.86402,-0.0896043,22.5607,6.29587,-0.0485923,0.889432,22.9645,3.19491,-15.7689,-1.19922,0.751327,-9.81034,7.17209,-18.1706,10.6585,-6.94529,-12.517
#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <geometry_msgs/PoseStamped.h>
geometry_msgs::Twist twist;
float throttleX, throttleY, throttleZ;
int targX = 2;
int targY = 2;
int targZ = 2;
import os
from pinpoint.jdf import JDFDataset, vis
dataset_path = '.../data'
num_epochs_gen = 3
size = (224, 224)
box_size = (10, 10)
output_yolo_dataset_path = os.path.join(os.path.dirname(__file__), 'yolo_dataset')
if not os.path.exists(output_yolo_dataset_path):
@alecGraves
alecGraves / setup.bash
Last active June 22, 2018 23:28
Set up laptop for submarine control
sudo apt update && \
sudo apt -y install git vim cmake catkin &&\
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu xenial main" > /etc/apt/sources.list.d/ros-latest.list'
#Install ROS Kinetic
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116 && \
sudo apt update && \
sudo apt -y install ros-kinetic-ros-core && \
sudo rosdep init && \
rosdep update && \
@alecGraves
alecGraves / .vimrc
Created May 20, 2018 22:48
My vim setup commands
" Note, to set this up, run ':PluginInstall' in vim
" Then to set up autocomplete,
"
" cd ~/.vim/bundle/YouCompleteMe && python install.py
"
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize