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 classifier module and examples
Christina Theodoris9e9cca9
-
Add option to output embs as tensor
Christina Theodoris624349c
-
Fixed error with perturbing individual genes and updated ways to specify cell_states_to_model (#146)
- Fixed error with perturbing individual genes and updated ways to specify cell_states_to_model (771c8bd01b1754c4387d742680e65c34697a2336) - Fix isp perturb_group dims, reformat cell states dict to keyed, add attn mask (c2679c41d352513a56feb5490c5302c6f25ae7ba) Co-authored-by: David Wen <davidjwen@users.noreply.huggingface.co>9169bfd
-
Rename heatmap legend to be correct label
Christina Theodorisbadcca6 -
Add function to extract and plot cell embeddings
Christina Theodorisd154fee