Skip to content

Commit

Permalink
update from bleepblop
Browse files Browse the repository at this point in the history
  • Loading branch information
cottrell committed Sep 27, 2024
1 parent ae62932 commit 5938f47
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 13 deletions.
2 changes: 1 addition & 1 deletion extractors
Submodule extractors updated from ef0d81 to adfc11
2 changes: 1 addition & 1 deletion my-gym
Submodule my-gym updated from 13f12b to a2037e
2 changes: 1 addition & 1 deletion mybin
2 changes: 1 addition & 1 deletion python/local_setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -e
CMD="pip install -e ."
cd $HOME/projects/notebooks/my-gym/toplevelrepo/corelib && $CMD
cd $HOME/projects/notebooks/extractors && $CMD
# 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
Expand Down
17 changes: 14 additions & 3 deletions python/pytorch.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
#!/bin/bash -e
source ~/anaconda3/etc/profile.d/conda.sh
MY_CONDA_ENV=pytorch
# PYTHON_ENV=3
PYTHON_ENV=3.11
# conda create -c conda-forge -y -n $MY_CONDA_ENV python=$PYTHON_ENV
PYTHON_ENV=3.12
if [[ $(conda env list | grep $MY_CONDA_ENV"\s") ]]; then
echo CONDA ENV $MY_CONDA_ENV exists
else
echo CONDA ENV $MY_CONDA_ENV does not exist
# conda create -c conda-forge -y -n $MY_CONDA_ENV python=$MY_CONDA_ENV
conda create -y -n $MY_CONDA_ENV python=$PYTHON_ENV
conda init
conda activate $MY_CONDA_ENV
conda install -y pip
fi
conda init
conda activate $MY_CONDA_ENV
conda info
pip install -U pip

pip install -r ./requirements_pytorch.txt
./local_setup.sh
8 changes: 3 additions & 5 deletions python/requirements_pytorch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@ autopep8
black
duckdb
flake8
gpytorch
ipython
isort
jupyter
jupyterlab
matplotlib
numpy
pandas
pdbpp
pip
prql-python
pyarrow
pytest
scikit-learn
scipy
torch
tqdm
transformers
ujson
pdbpp
6 changes: 5 additions & 1 deletion python/setup_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ else
# conda create -y -n $MY_CONDA_ENV python=$MY_CONDA_ENV
# NOTE: needed conda forge for 3.11
conda create -c conda-forge -y -n $MY_CONDA_ENV python=$MY_CONDA_ENV
conda init
conda activate $MY_CONDA_ENV
conda install -y pip
fi
~/anaconda3/bin/conda activate $MY_CONDA_ENV
conda init
conda activate $MY_CONDA_ENV
conda info
type pip
pip install -U pip

$DIR/upgrade.sh
Expand Down

0 comments on commit 5938f47

Please sign in to comment.