Instructions to use mineself2016/GeneMamba with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mineself2016/GeneMamba with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="mineself2016/GeneMamba", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mineself2016/GeneMamba", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update examples/3_pretrain_from_scratch.py
Browse files
examples/3_pretrain_from_scratch.py
CHANGED
|
@@ -4,7 +4,7 @@ Demonstrates how to initialize and train GeneMamba with next-token prediction.
|
|
| 4 |
If a checkpoint exists, training resumes from checkpoint automatically.
|
| 5 |
|
| 6 |
Usage:
|
| 7 |
-
python examples/
|
| 8 |
"""
|
| 9 |
|
| 10 |
import torch
|
|
|
|
| 4 |
If a checkpoint exists, training resumes from checkpoint automatically.
|
| 5 |
|
| 6 |
Usage:
|
| 7 |
+
python examples/3_pretrain_from_scratch.py
|
| 8 |
"""
|
| 9 |
|
| 10 |
import torch
|