Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
datasets:
|
| 4 |
+
- ctheodoris/Genecorpus-30M
|
| 5 |
+
---
|
| 6 |
+
The TDC Model Hub Transformers API is under development. In the meantime, we highly recommend using the native HF Transformers library and original Geneformer repo to run inference.
|
| 7 |
+
|
| 8 |
+
```python
|
| 9 |
+
# Use a pipeline as a high-level helper
|
| 10 |
+
from transformers import pipeline
|
| 11 |
+
|
| 12 |
+
pipe = pipeline("fill-mask", model="ctheodoris/Geneformer")
|
| 13 |
+
```
|
| 14 |
+
```python
|
| 15 |
+
# Load model directly
|
| 16 |
+
from transformers import AutoTokenizer, AutoModelForMaskedLM
|
| 17 |
+
|
| 18 |
+
tokenizer = AutoTokenizer.from_pretrained("ctheodoris/Geneformer")
|
| 19 |
+
model = AutoModelForMaskedLM.from_pretrained("ctheodoris/Geneformer")
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
For further details see: https://huggingface.co/ctheodoris/Geneformer
|