Instructions to use HBDX/Seq-TransfoRNA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HBDX/Seq-TransfoRNA with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("HBDX/Seq-TransfoRNA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download install.sh from HBDX/Seq-TransfoRNA: direct link, hf CLI and curl.
- Browser
- Download file 858 Bytes
-
https://huggingface.co/HBDX/Seq-TransfoRNA/resolve/main/install.sh
- Command line
-
hf download hf://HBDX/Seq-TransfoRNA/install.sh
-
curl -L -o install.sh https://huggingface.co/HBDX/Seq-TransfoRNA/resolve/main/install.sh
858 Bytes
| python_version="3.9" | |
| # Initialize conda | |
| eval "$(conda shell.bash hook)" | |
| #print the current environment | |
| echo "The current environment is $CONDA_DEFAULT_ENV." | |
| while [[ "$CONDA_DEFAULT_ENV" != "base" ]]; do | |
| conda deactivate | |
| done | |
| #if conde transforna not found in the list of environments, then create the environment | |
| if [[ $(conda env list | grep "transforna") == "" ]]; then | |
| conda create -n transforna python=$python_version -y | |
| conda activate transforna | |
| conda install -c anaconda setuptools -y | |
| fi | |
| conda activate transforna | |
| echo "The current environment is transforna." | |
| pip install setuptools==59.5.0 | |
| # Uninstall TransfoRNA using pip | |
| pip uninstall -y TransfoRNA | |
| rm -rf dist TransfoRNA.egg-info | |
| # Reinstall TransfoRNA using pip | |
| python setup.py sdist | |
| pip install dist/TransfoRNA-0.0.1.tar.gz | |
| rm -rf TransfoRNA.egg-info dist |