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", device_map="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
|
@@ -6,7 +6,7 @@ language:
|
|
| 6 |
- en
|
| 7 |
base_model:
|
| 8 |
- mistralai/Mistral-7B-Instruct-v0.3
|
| 9 |
-
pipeline_tag: text-
|
| 10 |
tags:
|
| 11 |
- chemistry
|
| 12 |
- molecule optimization
|
|
@@ -40,6 +40,8 @@ We urge users to adopt best practices, including toxicity prediction pipelines,
|
|
| 40 |
ethical oversight, and responsible AI usage policies, to prevent harmful applications of this model.
|
| 41 |
|
| 42 |
## Citation
|
|
|
|
|
|
|
| 43 |
```
|
| 44 |
@misc{dey2025gellmo,
|
| 45 |
title={$\mathtt{GeLLM^3O}$: Generalizing Large Language Models for Multi-property Molecule Optimization},
|
|
|
|
| 6 |
- en
|
| 7 |
base_model:
|
| 8 |
- mistralai/Mistral-7B-Instruct-v0.3
|
| 9 |
+
pipeline_tag: text-generation
|
| 10 |
tags:
|
| 11 |
- chemistry
|
| 12 |
- molecule optimization
|
|
|
|
| 40 |
ethical oversight, and responsible AI usage policies, to prevent harmful applications of this model.
|
| 41 |
|
| 42 |
## Citation
|
| 43 |
+
|
| 44 |
+
If you use the trained model checkpoints, datasets or other resources, please use the following citation:
|
| 45 |
```
|
| 46 |
@misc{dey2025gellmo,
|
| 47 |
title={$\mathtt{GeLLM^3O}$: Generalizing Large Language Models for Multi-property Molecule Optimization},
|