How do I know whether my jupyter notebook is using the transformer version/code that I cloned from github?
My steps:
I did fork the transformers repo in my github account then I did:
git clone --recursive https://github.com/myaccount/transformers.git
cd transformers/
conda create -n hf-dev-py380 python=3.8.0
conda activate hf-dev-py380
git checkout v4.9.2-release
pip install -e “.[dev]”
conda install -c conda-forge librosa
conda install libgcc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/miniconda3/lib/
transformers-cli env
conda install jupyter
nohup jupyter notebook --ip=0.0.0.0 --port=myport &
When I type in my terminal “python --version”, it appears the same python version that my jupyter notebook prints (v3.8.0). But a different python version (v3.7) and directory appear in my jupyter notebook when I type:
import transformers
print(transformers)
<module ‘transformers’ from ‘/mypath/miniconda3/lib/python3.7/site-packages/transformers/init.py’>
How do I make sure my jupyter notebook is using the transformer code I cloned in my terminal?
Thanks!