Text Generation
Transformers
Safetensors
llama
biology
genomics
long-context
custom_code
text-generation-inference
Instructions to use GenerTeam/GENERator-eukaryote-1.2b-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GenerTeam/GENERator-eukaryote-1.2b-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GenerTeam/GENERator-eukaryote-1.2b-base", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GenerTeam/GENERator-eukaryote-1.2b-base", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("GenerTeam/GENERator-eukaryote-1.2b-base", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use GenerTeam/GENERator-eukaryote-1.2b-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-1.2b-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-1.2b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/GenerTeam/GENERator-eukaryote-1.2b-base
- SGLang
How to use GenerTeam/GENERator-eukaryote-1.2b-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-1.2b-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-1.2b-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-1.2b-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-1.2b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use GenerTeam/GENERator-eukaryote-1.2b-base with Docker Model Runner:
docker model run hf.co/GenerTeam/GENERator-eukaryote-1.2b-base
Add Github link to model card
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
license: mit
|
| 3 |
pipeline_tag: text-generation
|
| 4 |
tags:
|
| 5 |
- biology
|
| 6 |
- genomics
|
| 7 |
- long-context
|
| 8 |
-
library_name: transformers
|
| 9 |
arxiv: 2502.07272
|
| 10 |
---
|
|
|
|
| 11 |
# GENERator-eukaryote-1.2b-base model
|
| 12 |
|
| 13 |
## Important Notice !!!
|
|
@@ -18,7 +19,7 @@ In this repository, we present GENERator, a generative genomic foundation model
|
|
| 18 |
|
| 19 |
Beyond benchmark performance, the GENERator adheres to the central dogma of molecular biology, accurately generating protein-coding DNA sequences that produce proteins structurally analogous to known families. Moreover, the GENERator showcases significant promise in sequence optimization, particularly in the design of enhancer sequences that regulate gene expression during various biological stages, highlighting its potential for a series of biologically significant tasks. Our findings position the GENERator as a vital resource for genomic research and biotechnological advancement.
|
| 20 |
|
| 21 |
-
For more technical details, please refer to our paper [**GENERator: A Long-Context Generative Genomic Foundation Model**](https://huggingface.co/GenerTeam).
|
| 22 |
|
| 23 |
## How to use
|
| 24 |
### Simple example1: generation
|
|
@@ -138,4 +139,4 @@ print("Sequence Embeddings:", seq_embeddings)
|
|
| 138 |
primaryClass={cs.CL},
|
| 139 |
url={https://arxiv.org/abs/2502.07272},
|
| 140 |
}
|
| 141 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: transformers
|
| 3 |
license: mit
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
tags:
|
| 6 |
- biology
|
| 7 |
- genomics
|
| 8 |
- long-context
|
|
|
|
| 9 |
arxiv: 2502.07272
|
| 10 |
---
|
| 11 |
+
|
| 12 |
# GENERator-eukaryote-1.2b-base model
|
| 13 |
|
| 14 |
## Important Notice !!!
|
|
|
|
| 19 |
|
| 20 |
Beyond benchmark performance, the GENERator adheres to the central dogma of molecular biology, accurately generating protein-coding DNA sequences that produce proteins structurally analogous to known families. Moreover, the GENERator showcases significant promise in sequence optimization, particularly in the design of enhancer sequences that regulate gene expression during various biological stages, highlighting its potential for a series of biologically significant tasks. Our findings position the GENERator as a vital resource for genomic research and biotechnological advancement.
|
| 21 |
|
| 22 |
+
For more technical details, please refer to our paper [**GENERator: A Long-Context Generative Genomic Foundation Model**](https://huggingface.co/GenerTeam). The code and implementation details are available on Github: [https://github.com/GenerTeam/GENERator](https://github.com/GenerTeam/GENERator).
|
| 23 |
|
| 24 |
## How to use
|
| 25 |
### Simple example1: generation
|
|
|
|
| 139 |
primaryClass={cs.CL},
|
| 140 |
url={https://arxiv.org/abs/2502.07272},
|
| 141 |
}
|
| 142 |
+
```
|