Text Generation
Transformers
Safetensors
llama
biology
genomics
long-context
custom_code
text-generation-inference
Instructions to use GenerTeam/GENERator-v2-eukaryote-3b-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GenerTeam/GENERator-v2-eukaryote-3b-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GenerTeam/GENERator-v2-eukaryote-3b-base", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GenerTeam/GENERator-v2-eukaryote-3b-base", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("GenerTeam/GENERator-v2-eukaryote-3b-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GenerTeam/GENERator-v2-eukaryote-3b-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GenerTeam/GENERator-v2-eukaryote-3b-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GenerTeam/GENERator-v2-eukaryote-3b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/GenerTeam/GENERator-v2-eukaryote-3b-base
- SGLang
How to use GenerTeam/GENERator-v2-eukaryote-3b-base with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "GenerTeam/GENERator-v2-eukaryote-3b-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GenerTeam/GENERator-v2-eukaryote-3b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "GenerTeam/GENERator-v2-eukaryote-3b-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GenerTeam/GENERator-v2-eukaryote-3b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use GenerTeam/GENERator-v2-eukaryote-3b-base with Docker Model Runner:
docker model run hf.co/GenerTeam/GENERator-v2-eukaryote-3b-base
Update README.md
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ We apologize for any inconvenience this may cause and recommend adhering to the
|
|
| 21 |
|
| 22 |
|
| 23 |
## Abouts
|
| 24 |
-
In this repository, we present GENERator-v2, a generative genomic foundation with enhanced performance in eukaryotic domain. More technical details are
|
| 25 |
|
| 26 |
Python scripts for downstream analysis are available on Github: [https://github.com/GenerTeam/GENERator](https://github.com/GenerTeam/GENERator).
|
| 27 |
|
|
@@ -162,13 +162,22 @@ print("Mean Pooling Embeddings:", mean_embeddings)
|
|
| 162 |
|
| 163 |
## Citation
|
| 164 |
```
|
| 165 |
-
@
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
|
|
|
| 173 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
```
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
## Abouts
|
| 24 |
+
In this repository, we present GENERator-v2, a generative genomic foundation with enhanced performance in eukaryotic domain. More technical details are provided in the GENERator-v2 [technical report](https://www.biorxiv.org/content/10.64898/2026.01.27.702015v1).
|
| 25 |
|
| 26 |
Python scripts for downstream analysis are available on Github: [https://github.com/GenerTeam/GENERator](https://github.com/GenerTeam/GENERator).
|
| 27 |
|
|
|
|
| 162 |
|
| 163 |
## Citation
|
| 164 |
```
|
| 165 |
+
@article {li2026generator2,
|
| 166 |
+
author = {Li, Qiuyi and Zhan, Zhihao and Feng, Shikun and Zhu, Yiheng and He, Yuan and Wu, Wei and Shi, Zhenghang and Wang, Shengjie and Hu, Zongyong and Yang, Zhao and Li, Jiaoyang and Tang, Jian and Liu, Haiguang and Qin, Tao},
|
| 167 |
+
title = {Functional In-Context Learning in Genomic Language Models with Nucleotide-Level Supervision and Genome Compression},
|
| 168 |
+
elocation-id = {2026.01.27.702015},
|
| 169 |
+
year = {2026},
|
| 170 |
+
doi = {10.64898/2026.01.27.702015},
|
| 171 |
+
publisher = {Cold Spring Harbor Laboratory},
|
| 172 |
+
URL = {https://www.biorxiv.org/content/early/2026/01/29/2026.01.27.702015},
|
| 173 |
+
journal = {bioRxiv}
|
| 174 |
}
|
| 175 |
+
|
| 176 |
+
@article{wu2025generator,
|
| 177 |
+
title={GENERator: a long-context generative genomic foundation model},
|
| 178 |
+
author={Wu, Wei and Li, Qiuyi and Li, Mingyang and Fu, Kun and Feng, Fuli and Ye, Jieping and Xiong, Hui and Wang, Zheng},
|
| 179 |
+
journal={arXiv preprint arXiv:2502.07272},
|
| 180 |
+
year={2025}
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
```
|