Text Generation
Transformers
Safetensors
llama
biology
genomics
long-context
custom_code
text-generation-inference
Instructions to use GenerTeam/GENERator-v2-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-v2-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-v2-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-v2-eukaryote-1.2b-base", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("GenerTeam/GENERator-v2-eukaryote-1.2b-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GenerTeam/GENERator-v2-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-v2-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-v2-eukaryote-1.2b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/GenerTeam/GENERator-v2-eukaryote-1.2b-base
- SGLang
How to use GenerTeam/GENERator-v2-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-v2-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-v2-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-v2-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-v2-eukaryote-1.2b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use GenerTeam/GENERator-v2-eukaryote-1.2b-base with Docker Model Runner:
docker model run hf.co/GenerTeam/GENERator-v2-eukaryote-1.2b-base
Commit History
-
Update README.md
Verified signaturec41b001
-
Update README.md
Verified signature1ce7984 -
Upload 4 files
Verified signaturec63f4c5 -
Update tokenizer.py
Verified signature7574d50 -
Update tokenizer.py
Verified signature4674a3d
-
Update tokenizer.py
Verified signaturede3c57e -
Update tokenizer_config.json
Verified signature3cecf48 -
Update README.md
Verified signature7ecfe78
-
Update modeling_generator.py
Verified signature7b5eb9e -
Update tokenizer.py
Verified signatureda5fa93
-
Upload modeling_generator.py
Verified signature1d0509f -
Update config.json
Verified signatureb54c59d
-
Update README.md
Verified signature329ba44
-
Update README.md
Verified signatureebe4f12 -
Update README.md
Verified signature718a031
-
Update README.md
Verified signature05424a2 -
Update README.md
Verified signaturec116d68 -
Update README.md
Verified signaturefba3afc
-
Update README.md
Verified signature88ad6fd
-
Update README.md
Verified signatured8a28f8
-
Update README.md
Verified signaturef5593a3 -
Upload folder using huggingface_hub
Verified signature0fd6463 -
initial commit
Verified signatured510dea