Skip to content

Commit 86e579e

Browse files
jkobjectlazappircannood
authored
Update scGPT (#29)
* better loading of the model and new model * new solution to matching problem * removing gpu * proposing two versions * removing flag * default to linear sum * Style and lint scPRINT script * Update CHANGELOG * updating scprint version * removing gpu device * better scgpt installation (now uses flash attention) * changing default parameters * removing scgpt * update --------- Co-authored-by: Luke Zappia <luke@data-intuitive.com> Co-authored-by: Robrecht Cannoodt <rcannood@gmail.com>
1 parent adf04d1 commit 86e579e

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

src/methods/scgpt_finetuned/config.vsh.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ engines:
3737
- type: docker
3838
image: openproblems/base_pytorch_nvidia:1
3939
setup:
40-
- type: python
41-
pypi:
42-
- gdown
43-
- scgpt # Install from PyPI to get dependencies
4440
- type: docker
45-
# Force re-installing from GitHub to get bug fixes
46-
run: pip install --upgrade --no-deps --force-reinstall git+https://github.com/bowang-lab/scGPT.git
41+
run: |
42+
git clone https://github.com/bowang-lab/scGPT && \
43+
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu121 && \
44+
pip install "flash-attn<1.0.5" --no-build-isolation && \
45+
pip install ipykernel pandas scanpy numba "numpy<1.24" torchtext==0.17.0 scib "scvi-tools<1.0" datasets==2.14.5 transformers==4.33.2 wandb "cell-gears<0.0.3" torch_geometric pyarrow==15.0.0 gdown && \
46+
cd scGPT && pip install -e . --no-deps
4747
4848
runners:
4949
- type: executable

src/methods/scgpt_zeroshot/config.vsh.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@ engines:
4343
- type: docker
4444
image: openproblems/base_pytorch_nvidia:1
4545
setup:
46-
- type: python
47-
pypi:
48-
- gdown
49-
- scgpt # Install from PyPI to get dependencies
50-
- faiss-cpu # TODO: Try installing faiss-gpu
5146
- type: docker
52-
# Force re-installing from GitHub to get bug fixes
5347
run: |
54-
pip install --upgrade --no-deps --force-reinstall git+https://github.com/bowang-lab/scGPT.git
48+
git clone https://github.com/bowang-lab/scGPT && \
49+
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu121 && \
50+
pip install "flash-attn<1.0.5" --no-build-isolation && \
51+
pip install ipykernel pandas scanpy numba "numpy<1.24" torchtext==0.17.0 scib "scvi-tools<1.0" datasets==2.14.5 transformers==4.33.2 wandb "cell-gears<0.0.3" torch_geometric pyarrow==15.0.0 gdown && \
52+
cd scGPT && pip install -e . --no-deps
5553
5654
runners:
5755
- type: executable

0 commit comments

Comments
 (0)