Instructions to use ctheodoris/Geneformer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ctheodoris/Geneformer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="ctheodoris/Geneformer")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("ctheodoris/Geneformer") model = AutoModelForMaskedLM.from_pretrained("ctheodoris/Geneformer", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
4ce81ab
1
Parent(s): b8fda63
Update installation instructions to include git lfs install and ssh method
Browse files
README.md
CHANGED
|
@@ -49,7 +49,8 @@ Example applications demonstrated in [our manuscript](https://rdcu.be/ddrx0) inc
|
|
| 49 |
In addition to the pretrained model, contained herein are functions for tokenizing and collating data specific to single cell transcriptomics, pretraining the model, fine-tuning the model, extracting and plotting cell embeddings, and performing in silico pertrubation with either the pretrained or fine-tuned models. To install:
|
| 50 |
|
| 51 |
```bash
|
| 52 |
-
git
|
|
|
|
| 53 |
cd Geneformer
|
| 54 |
pip install .
|
| 55 |
```
|
|
|
|
| 49 |
In addition to the pretrained model, contained herein are functions for tokenizing and collating data specific to single cell transcriptomics, pretraining the model, fine-tuning the model, extracting and plotting cell embeddings, and performing in silico pertrubation with either the pretrained or fine-tuned models. To install:
|
| 50 |
|
| 51 |
```bash
|
| 52 |
+
git lfs install
|
| 53 |
+
git clone git@hf.co:ctheodoris/Geneformer
|
| 54 |
cd Geneformer
|
| 55 |
pip install .
|
| 56 |
```
|