Instructions to use garage-bAInd/Platypus2-13B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use garage-bAInd/Platypus2-13B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="garage-bAInd/Platypus2-13B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("garage-bAInd/Platypus2-13B") model = AutoModelForCausalLM.from_pretrained("garage-bAInd/Platypus2-13B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use garage-bAInd/Platypus2-13B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "garage-bAInd/Platypus2-13B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "garage-bAInd/Platypus2-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/garage-bAInd/Platypus2-13B
- SGLang
How to use garage-bAInd/Platypus2-13B 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 "garage-bAInd/Platypus2-13B" \ --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": "garage-bAInd/Platypus2-13B", "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 "garage-bAInd/Platypus2-13B" \ --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": "garage-bAInd/Platypus2-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use garage-bAInd/Platypus2-13B with Docker Model Runner:
docker model run hf.co/garage-bAInd/Platypus2-13B
Update README.md
Browse files
README.md
CHANGED
|
@@ -12,18 +12,6 @@ Platypus-13B is an instruction fine-tuned model based on the LLaMA2-13B transfor
|
|
| 12 |
|
| 13 |

|
| 14 |
|
| 15 |
-
### Benchmark Metrics
|
| 16 |
-
|
| 17 |
-
| Metric | Value |
|
| 18 |
-
|-----------------------|-------|
|
| 19 |
-
| MMLU (5-shot) | 56.70 |
|
| 20 |
-
| ARC (25-shot) | 61.26 |
|
| 21 |
-
| HellaSwag (10-shot) | 82.56 |
|
| 22 |
-
| TruthfulQA (0-shot) | 44.86 |
|
| 23 |
-
| Avg. | 61.35 |
|
| 24 |
-
|
| 25 |
-
We use state-of-the-art [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) to run the benchmark tests above, using the same version as the HuggingFace LLM Leaderboard. Please see below for detailed instructions on reproducing benchmark results.
|
| 26 |
-
|
| 27 |
### Model Details
|
| 28 |
|
| 29 |
* **Trained by**: Cole Hunter & Ariel Lee
|
|
|
|
| 12 |
|
| 13 |

|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
### Model Details
|
| 16 |
|
| 17 |
* **Trained by**: Cole Hunter & Ariel Lee
|