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)# pip install -U transformers accelerate # 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, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
Commit History
-
Update README.md
Verified signature5e872c9
-
Upload 4 files
Verified signaturefb73aa5 -
Update tokenizer.py
Verified signature6fdb289 -
Update tokenizer.py
Verified signature40036c1
-
Update tokenizer_config.json
Verified signaturef60f455 -
Update tokenizer.py
Verified signature60bd379
-
Update modeling_generator.py
Verified signature311fb2b -
Update tokenizer.py
Verified signaturefe0c8e6
-
Upload modeling_generator.py
Verified signature07e6f5b -
Update config.json
Verified signature89b4c63
-
Update README.md
Verified signature1e72bc1
-
Update tokenizer.py
Verified signature4af4a6c -
Update tokenizer.py
Verified signature544f16b
-
Update README.md
Verified signature02cfae3
-
Update README.md
Verified signature3be4abf -
Update README.md
Verified signature9f6e787 -
Update README.md
Verified signature72c1d4f
-
Update README.md
Verified signature9688ffe -
Update README.md
Verified signaturead1b9ea
-
Add Github link to model card (#1)
Verified signature- Add Github link to model card (5d149045e8d2c9450ef5cc83f4153489d92bb936) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>721583d
-
Update README.md
Verified signatureac666ae
-
Update README.md
Verified signature1538129
-
Update README.md
Verified signature2999e7f -
Update model
Signed-off-by: Wei Wu <wuwei211x@gmail.com>ebc7278 -
Update README.md
Verified signaturef4cc985
-
Update README.md
Verified signature97d4e21 -
Update README.md
Verified signature612a776
-
Update README.md
Verified signaturebf10288 -
Update README.md
Verified signatureb16a541
-
Update README.md
2a14ad9 -
Update README.md
552157b -
Update README.md
6dc7122 -
Upload model
87e6c5f -
initial commit
Verified signatured250d35