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") - Inference
- Notebooks
- Google Colab
- Kaggle
Christina Theodoris commited on
Commit ·
c6d04a6
1
Parent(s): a13a2cf
edit imports in perturber_utils
Browse files
geneformer/perturber_utils.py
CHANGED
|
@@ -17,10 +17,10 @@ from transformers import (
|
|
| 17 |
BitsAndBytesConfig,
|
| 18 |
)
|
| 19 |
|
| 20 |
-
|
| 21 |
-
TOKEN_DICTIONARY_FILE
|
| 22 |
-
ENSEMBL_DICTIONARY_FILE
|
| 23 |
-
|
| 24 |
|
| 25 |
logger = logging.getLogger(__name__)
|
| 26 |
|
|
|
|
| 17 |
BitsAndBytesConfig,
|
| 18 |
)
|
| 19 |
|
| 20 |
+
from . import (
|
| 21 |
+
TOKEN_DICTIONARY_FILE,
|
| 22 |
+
ENSEMBL_DICTIONARY_FILE,
|
| 23 |
+
)
|
| 24 |
|
| 25 |
logger = logging.getLogger(__name__)
|
| 26 |
|