Feature Extraction
Transformers
Joblib
Safetensors
BulkRNABert
bulk RNA-seq
biology
transcriptomics
custom_code
Instructions to use InstaDeepAI/BulkRNABert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InstaDeepAI/BulkRNABert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="InstaDeepAI/BulkRNABert", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("InstaDeepAI/BulkRNABert", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -40,8 +40,8 @@ model = AutoModel.from_pretrained(
|
|
| 40 |
trust_remote_code=True,
|
| 41 |
)
|
| 42 |
|
| 43 |
-
n_genes =
|
| 44 |
-
dummy_gene_expressions = torch.randint(0,
|
| 45 |
torch_output = model(dummy_gene_expressions)
|
| 46 |
```
|
| 47 |
|
|
|
|
| 40 |
trust_remote_code=True,
|
| 41 |
)
|
| 42 |
|
| 43 |
+
n_genes = model.config.n_genes
|
| 44 |
+
dummy_gene_expressions = torch.randint(0, model.config.n_expressions_bins, (1, n_genes))
|
| 45 |
torch_output = model(dummy_gene_expressions)
|
| 46 |
```
|
| 47 |
|