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")# pip install -U transformers accelerate # 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 History
-
Add instructions to convert gene annotations w/ Ensembl Biomart
Christina Theodoris77eb432
-
Add further explanation regarding input file format for transcriptome tokenizer
Christina Theodorisc34ead6
-
Update instructions in tokenizing example to clarify requirement for Ensembl ID
Christina Theodorisd468697 -
Update instructions in tokenizing example to clarify requirement for Ensembl ID
Christina Theodorise606e1c
-
Add further explanation to tokenizer example script and updated tokenizer to match loompy raised error
Christina Theodoris78dd83b
-
Add example for tokenizing .loom dataset
Christina Theodorisf89f796