Instructions to use prometheus-eval/prometheus-7b-v1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prometheus-eval/prometheus-7b-v1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prometheus-eval/prometheus-7b-v1.0")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("prometheus-eval/prometheus-7b-v1.0") model = AutoModelForCausalLM.from_pretrained("prometheus-eval/prometheus-7b-v1.0") - Inference
- Local Apps Settings
- vLLM
How to use prometheus-eval/prometheus-7b-v1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prometheus-eval/prometheus-7b-v1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prometheus-eval/prometheus-7b-v1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/prometheus-eval/prometheus-7b-v1.0
- SGLang
How to use prometheus-eval/prometheus-7b-v1.0 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 "prometheus-eval/prometheus-7b-v1.0" \ --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": "prometheus-eval/prometheus-7b-v1.0", "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 "prometheus-eval/prometheus-7b-v1.0" \ --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": "prometheus-eval/prometheus-7b-v1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use prometheus-eval/prometheus-7b-v1.0 with Docker Model Runner:
docker model run hf.co/prometheus-eval/prometheus-7b-v1.0
Update README.md
Browse files
README.md
CHANGED
|
@@ -13,7 +13,12 @@ metrics:
|
|
| 13 |
- spearmanr
|
| 14 |
- accuracy
|
| 15 |
---
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# TL;DR
|
| 19 |
Prometheus is an alternative of GPT-4 evaluation when doing fine-grained evaluation of an underlying LLM & a Reward model for Reinforcement Learning from Human Feedback (RLHF).
|
|
|
|
| 13 |
- spearmanr
|
| 14 |
- accuracy
|
| 15 |
---
|
| 16 |
+
## Links for Reference
|
| 17 |
+
|
| 18 |
+
- **Homepage:https://github.com/kaistAI/Prometheus**
|
| 19 |
+
- **Repository:https://github.com/kaistAI/Prometheus**
|
| 20 |
+
- **Paper:https://arxiv.org/abs/2310.08491**
|
| 21 |
+
- **Point of Contact:seungone@kaist.ac.kr**
|
| 22 |
|
| 23 |
# TL;DR
|
| 24 |
Prometheus is an alternative of GPT-4 evaluation when doing fine-grained evaluation of an underlying LLM & a Reward model for Reinforcement Learning from Human Feedback (RLHF).
|