Instructions to use AI4PD/ZymCTRL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AI4PD/ZymCTRL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AI4PD/ZymCTRL")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AI4PD/ZymCTRL") model = AutoModelForCausalLM.from_pretrained("AI4PD/ZymCTRL", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AI4PD/ZymCTRL with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AI4PD/ZymCTRL" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AI4PD/ZymCTRL", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AI4PD/ZymCTRL
- SGLang
How to use AI4PD/ZymCTRL 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 "AI4PD/ZymCTRL" \ --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": "AI4PD/ZymCTRL", "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 "AI4PD/ZymCTRL" \ --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": "AI4PD/ZymCTRL", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AI4PD/ZymCTRL with Docker Model Runner:
docker model run hf.co/AI4PD/ZymCTRL
Commit History
-
code block syntax highlighting
Verified signature6aa0c65
-
`evaluation_strategy` is deprecated and will be removed in version 4.46 of Transformers (#13)
Verified signature- `evaluation_strategy` is deprecated and will be removed in version 4.46 of Transformers (5cc1ca522e0998962465c00485cdf493ccce3056) Co-authored-by: Filippo Stocco <fstocco@users.noreply.huggingface.co>cd76f44
-
Update README.md
Verified signature7a78c96
-
Update README.md
Verified signature353f15a
-
Update README.md
Verified signaturef83e84d -
Update README.md
Verified signature7e8a9c6
-
Update README.md
Verified signature8f56644
-
Update README.md
Verified signature44a649d
-
Update README.md
4a45550
-
Update README.md
9d4188b
-
Update README.md
045ef38 -
Update README.md
18b580e -
Update README.md
e2f363d -
Update config.json
eabcfe1
-
Update README.md
104a6f8
-
Update README.md
bb11f1d -
Update README.md
ee1feb4
-
Update README.md
cf1b2d8 -
Update README.md
743ebbe -
Update README.md
4b388b5
-
Update README.md
322d67f -
Update README.md
030217f -
Update README.md
abe5e88 -
Update README.md
15610a4 -
Update README.md
875aecd -
Update README.md
e1a215c -
Upload 5.run_clm-post.py
4a3659f -
Upload github1.png
ff560f2 -
Delete github1.png
1e25fdb -
Upload github1.png
cfa51c7
-
Update README.md
82790c4
-
Update README.md
ecb74dd
-
Create new file
62d0599
-
Update README.md
eff9c6d -
Update README.md
5f81a43
-
Update README.md
a1f80ad -
Update README.md
4c0e7d1 -
Upload pytorch_model.bin
4030602 -
Upload tokenizer.json
2f1b790 -
Upload vocab.json
a28099b -
initial commit
Noelia Ferruz1254444