You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
11
11
DNALLM-Suite is a comprehensive, open-source toolkit designed for fine-tuning and inference with DNA Language Models. It provides a unified interface for working with various DNA sequence models, supporting tasks ranging from basic sequence classification to advanced in-silico mutagenesis analysis. With built-in Model Context Protocol (MCP) support, DNALLM-Suite enables seamless communication with traditional large language models, allowing for enhanced integration and interoperability in AI-powered DNA analysis workflows.
12
12
13
-
## 📦 Installation
13
+
## 📦 Quick Installation
14
14
15
15
```bash
16
16
pip install dnallm
@@ -48,6 +48,23 @@ DNALLM-Suite supports a wide range of DNA language models including:
48
48
-**ModelScope**: Alternative model source with additional models
49
49
-**Custom Models**: Support for locally trained or custom architectures
50
50
51
+
## 🖥️ Supported Platforms
52
+
53
+
DNALLM-Suite has been tested on a wide range of platforms and devices:
### Scenario 3: Using Huawei Ascend NPU for Training and Inference
183
+
184
+
For Huawei Ascend NPU accelerated training and inference, users should first check their device and environment, then install the appropriate dependencies.
185
+
186
+
If Huawei Ascend driver is not installed in the machine, first check the device and install the corresponding drivers.
187
+
188
+
For NPU driver, please refer to: https://www.hiascend.com/hardware/firmware-drivers/community
189
+
190
+
For Ascend Extension for PyTorch (CANN driver), please refer to: https://www.hiascend.com/zh/cann/download
191
+
192
+
For example, if you have a `Ascend 910B NPU with AArch64 architecture`, install drivers like this:
To use the NPU accelerating in torch, a specific version of `torch_npu` package is also required. Please refer to [this page](https://gitcode.com/Ascend/pytorch) to check the dependency map.
217
+
218
+
For example, CANN 9.0.0 support Pytorch version from 2.7.1 to 2.10.0, also the Python version need to >=3.9.
219
+
220
+
```bash
221
+
# Create environment (using CANN 9.0.0 as example)
During training or inference, Huawei Ascend NPU accelerate is supported for most of the DNA models (models supported by Huggingface Transformers library).
233
+
234
+
For other non-transformer models or CUDA-dependent models, Huawei provides a specific framework for efficient model training and inference, named [MindSpeed](https://gitcode.com/Ascend/MindSpeed-LLM/). Detailed supported model list is shown [here](https://gitcode.com/Ascend/MindSpeed-LLM/blob/master/docs/zh/pytorch/models/supported_models.md).
235
+
236
+
### Scenario 4: Using Mamba Model Architecture
183
237
184
238
For models with Mamba architecture (Plant DNAMamba, Caduceus, Jamba-DNA):
For NPU support such as Huawei Ascend, see [installation](getting_started/installation.md#scenario-3-using-huawei-ascend-npu-for-training-and-inference) section.
87
+
88
+
72
89
2.**Basic Model Loading and Inference**
73
90
```python
74
91
from dnallm import load_config, load_model_and_tokenizer, DNAInference
0 commit comments