Instructions to use NingLab/GeLLMO-P4-Mistral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NingLab/GeLLMO-P4-Mistral with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NingLab/GeLLMO-P4-Mistral")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("NingLab/GeLLMO-P4-Mistral", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NingLab/GeLLMO-P4-Mistral with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NingLab/GeLLMO-P4-Mistral" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NingLab/GeLLMO-P4-Mistral", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NingLab/GeLLMO-P4-Mistral
- SGLang
How to use NingLab/GeLLMO-P4-Mistral 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 "NingLab/GeLLMO-P4-Mistral" \ --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": "NingLab/GeLLMO-P4-Mistral", "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 "NingLab/GeLLMO-P4-Mistral" \ --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": "NingLab/GeLLMO-P4-Mistral", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NingLab/GeLLMO-P4-Mistral with Docker Model Runner:
docker model run hf.co/NingLab/GeLLMO-P4-Mistral
Update README.md
Browse files
README.md
CHANGED
|
@@ -44,13 +44,11 @@ ethical oversight, and responsible AI usage policies, to prevent harmful applica
|
|
| 44 |
|
| 45 |
If you use the trained model checkpoints, datasets or other resources, please use the following citation:
|
| 46 |
```
|
| 47 |
-
@
|
| 48 |
-
title={
|
| 49 |
author={Vishal Dey and Xiao Hu and Xia Ning},
|
| 50 |
year={2025},
|
| 51 |
-
|
| 52 |
-
archivePrefix={arXiv},
|
| 53 |
-
primaryClass={cs.LG},
|
| 54 |
url={https://arxiv.org/abs/2502.13398},
|
| 55 |
}
|
| 56 |
```
|
|
|
|
| 44 |
|
| 45 |
If you use the trained model checkpoints, datasets or other resources, please use the following citation:
|
| 46 |
```
|
| 47 |
+
@article{dey2025gellmo,
|
| 48 |
+
title={GeLLMO: Generalizing Large Language Models for Multi-property Molecule Optimization},
|
| 49 |
author={Vishal Dey and Xiao Hu and Xia Ning},
|
| 50 |
year={2025},
|
| 51 |
+
journal={arXiv preprint arXiv:2502.13398},
|
|
|
|
|
|
|
| 52 |
url={https://arxiv.org/abs/2502.13398},
|
| 53 |
}
|
| 54 |
```
|