Text Generation
Transformers
Safetensors
llama
biology
genomics
long-context
custom_code
text-generation-inference
Instructions to use GenerTeam/GENERator-eukaryote-3b-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GenerTeam/GENERator-eukaryote-3b-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GenerTeam/GENERator-eukaryote-3b-base", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GenerTeam/GENERator-eukaryote-3b-base", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("GenerTeam/GENERator-eukaryote-3b-base", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use GenerTeam/GENERator-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-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-eukaryote-3b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/GenerTeam/GENERator-eukaryote-3b-base
- SGLang
How to use GenerTeam/GENERator-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-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-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-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-eukaryote-3b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use GenerTeam/GENERator-eukaryote-3b-base with Docker Model Runner:
docker model run hf.co/GenerTeam/GENERator-eukaryote-3b-base
Add link to Github repository
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,18 +1,21 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
license: mit
|
| 3 |
pipeline_tag: text-generation
|
| 4 |
tags:
|
| 5 |
- biology
|
| 6 |
- genomics
|
| 7 |
- long-context
|
| 8 |
-
library_name: transformers
|
| 9 |
---
|
|
|
|
| 10 |
# GENERator-eukaryote-3b-base model
|
| 11 |
|
| 12 |
## Abouts
|
| 13 |
In this repository, we present GENERator, a generative genomic foundation model featuring a context length of 98k base pairs and 3B parameters, trained on an expansive dataset comprising 386 billion base pairs of eukaryotic DNA. The extensive and diverse pre-training data endow the GENERator with enhanced understanding and generation capabilities across various organisms.
|
| 14 |
|
| 15 |
-
For more technical details, please refer to our paper [GENERator: A Long-Context Generative Genomic Foundation Model](https://huggingface.co/
|
|
|
|
|
|
|
| 16 |
|
| 17 |
## How to use
|
| 18 |
### Simple example1: generation
|
|
@@ -72,7 +75,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
| 72 |
|
| 73 |
# Load the tokenizer and model.
|
| 74 |
tokenizer = AutoTokenizer.from_pretrained("GENERator-eukaryote-3b-base", trust_remote_code=True)
|
| 75 |
-
model = AutoModelForCausalLM.from_pretrained("GENERator-eukaryote-3b-base")
|
| 76 |
|
| 77 |
config = model.config
|
| 78 |
max_length = config.max_position_embeddings
|
|
@@ -132,4 +135,4 @@ print("Sequence Embeddings:", seq_embeddings)
|
|
| 132 |
primaryClass={cs.CL},
|
| 133 |
url={https://arxiv.org/abs/2502.07272},
|
| 134 |
}
|
| 135 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: transformers
|
| 3 |
license: mit
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
tags:
|
| 6 |
- biology
|
| 7 |
- genomics
|
| 8 |
- long-context
|
|
|
|
| 9 |
---
|
| 10 |
+
|
| 11 |
# GENERator-eukaryote-3b-base model
|
| 12 |
|
| 13 |
## Abouts
|
| 14 |
In this repository, we present GENERator, a generative genomic foundation model featuring a context length of 98k base pairs and 3B parameters, trained on an expansive dataset comprising 386 billion base pairs of eukaryotic DNA. The extensive and diverse pre-training data endow the GENERator with enhanced understanding and generation capabilities across various organisms.
|
| 15 |
|
| 16 |
+
For more technical details, please refer to our paper [GENERator: A Long-Context Generative Genomic Foundation Model](https://huggingface.co/papers/2502.07272).
|
| 17 |
+
|
| 18 |
+
Code: https://github.com/GenerTeam/GENERator
|
| 19 |
|
| 20 |
## How to use
|
| 21 |
### Simple example1: generation
|
|
|
|
| 75 |
|
| 76 |
# Load the tokenizer and model.
|
| 77 |
tokenizer = AutoTokenizer.from_pretrained("GENERator-eukaryote-3b-base", trust_remote_code=True)
|
| 78 |
+
model = AutoModelForCausalLM.from_pretrained("GenerTeam/GENERator-eukaryote-3b-base")
|
| 79 |
|
| 80 |
config = model.config
|
| 81 |
max_length = config.max_position_embeddings
|
|
|
|
| 135 |
primaryClass={cs.CL},
|
| 136 |
url={https://arxiv.org/abs/2502.07272},
|
| 137 |
}
|
| 138 |
+
```
|