Skip to content

Commit

Permalink
update from bleepblop
Browse files Browse the repository at this point in the history
  • Loading branch information
cottrell committed Dec 12, 2023
1 parent 17435f5 commit 5c4d19a
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 19 deletions.
5 changes: 5 additions & 0 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ prune:

stop:
sudo systemctl stop docker


ssh:
docker exec -it <name_not_id> /bin/sh

5 changes: 3 additions & 2 deletions golang/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
go get github.com/d4l3k/go-pry
https://github.com/motemen/gore
# just download here

https://go.dev/doc/install
4 changes: 0 additions & 4 deletions golang/install.sh

This file was deleted.

2 changes: 1 addition & 1 deletion my-gym
Submodule my-gym updated from 9065d4 to 9f8446
1 change: 1 addition & 0 deletions python/local_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ cd $HOME/projects/notebooks/extractors && $CMD
cd $HOME/projects/notebooks/my-gym/toplevelrepo/our && $CMD
cd $HOME/projects/notebooks/my-gym && $CMD
cd $HOME/projects/notebooks/my-gym/my/gym/usr/cottrell/synthetic_data_generators && $CMD
cd $HOME/projects/notebooks/my-gym/my/gym/usr/cottrell/equinox_utils && $CMD
8 changes: 4 additions & 4 deletions python/pytorch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MY_CONDA_ENV=pytorch
# PYTHON_ENV=3
PYTHON_ENV=3.11
conda create -c conda-forge -y -n $MY_CONDA_ENV python=$PYTHON_ENV
echo conda activate $MY_CONDA_ENV
echo pip install -U pip
echo pip install -r ./requirements_pytorch.txt
echo ./local_setup.sh
conda activate $MY_CONDA_ENV
pip install -U pip
pip install -r ./requirements_pytorch.txt
./local_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ duckdb
prql-python
jaxlib
timeout-decorator
equinox
beartype
pdbpp
File renamed without changes.
1 change: 1 addition & 0 deletions python/requirements_pytorch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ scikit-learn
scipy
tqdm
ujson
pdbpp
2 changes: 1 addition & 1 deletion python/setup_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type gcc || echo no gcc installed!
# https://repo.anaconda.com/archive
function install_conda() {
if [[ $(uname) = "Linux" ]]; then
filename=Anaconda3-2022.10-Linux-x86_64.sh
filename=Anaconda3-2023.09-0-Linux-x86_64.sh
else
filename=Anaconda3-2022.10-MacOSX-x86_64.sh
fi
Expand Down
12 changes: 6 additions & 6 deletions python/upgrade.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash
pip install --upgrade pip

# ENV_FILE=environment.pip
ENV_FILE=environment_minimal.pip
# ENV_FILE=requirements.pip
ENV_FILE=requirements_minimal.pip

# if [[ $(uname) = Darwin ]]; then
if [[ $(hostname) != bleepblop ]]; then
echo do not use GPU on this machine
cat $ENV_FILE | sed -e 's/tensorflow-gpu/tensorflow/' > /tmp/environment.pip
echo jax >> /tmp/environment.pip
# pip install -r /tmp/environment.pip -U # some conflicts causing issues
for x in $(cat /tmp/environment.pip); do
cat $ENV_FILE | sed -e 's/tensorflow-gpu/tensorflow/' > /tmp/requirements.pip
echo jax >> /tmp/requirements.pip
# pip install -r /tmp/requirements.pip -U # some conflicts causing issues
for x in $(cat /tmp/requirements.pip); do
pip install -U $x
done
else
Expand Down
2 changes: 1 addition & 1 deletion tor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ start:
sudo service tor start

stop:
sudo service tor start
sudo service tor stop

restart:
sudo service tor restart
Expand Down

0 comments on commit 5c4d19a

Please sign in to comment.