Views
No views yet
| Dataset | # Samples | # Bases | Fragment Length (kbp) |
|---|---|---|---|
| Basic Genome | 1,010,237 | 10B | 10 |
pip install flash_attn --no-build-isolation1from transformers import AutoModel, AutoTokenizer
2import torch
3
4model = AutoModel.from_pretrained(
5 "MsAlEhR/carmania-big-10k-prok-genome",
6 trust_remote_code=True,
7 torch_dtype=torch.float16, # fixed dtype (or autocast)
8).to("cuda")
9
10tokenizer = AutoTokenizer.from_pretrained(
11 "MsAlEhR/carmania-big-10k-prok-genome",
12 trust_remote_code=True,
13 model_max_length=10000,
14)
15
16inputs = tokenizer("ACGTAGGCTA", return_tensors="pt").to("cuda")
17
18outputs = model(**inputs)