Feature Extraction
Transformers
Safetensors
flash_transformer
biology
genomics
long-context
custom_code
Instructions to use isyslab/DNAFlash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use isyslab/DNAFlash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="isyslab/DNAFlash", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("isyslab/DNAFlash", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -45,7 +45,7 @@ inputs = tokenizer(
|
|
| 45 |
|
| 46 |
# Perform a forward pass through the model to obtain the outputs, including hidden states
|
| 47 |
with torch.inference_mode():
|
| 48 |
-
outputs = model(inputs)
|
| 49 |
```
|
| 50 |
|
| 51 |
## Citation
|
|
|
|
| 45 |
|
| 46 |
# Perform a forward pass through the model to obtain the outputs, including hidden states
|
| 47 |
with torch.inference_mode():
|
| 48 |
+
outputs = model(input_ids=inputs["input_ids"], attention_mask=inputs["attention_mask"])
|
| 49 |
```
|
| 50 |
|
| 51 |
## Citation
|