Instructions to use garage-bAInd/Camel-Platypus2-13B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use garage-bAInd/Camel-Platypus2-13B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="garage-bAInd/Camel-Platypus2-13B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("garage-bAInd/Camel-Platypus2-13B") model = AutoModelForCausalLM.from_pretrained("garage-bAInd/Camel-Platypus2-13B") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use garage-bAInd/Camel-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/Camel-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/Camel-Platypus2-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/garage-bAInd/Camel-Platypus2-13B
- SGLang
How to use garage-bAInd/Camel-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/Camel-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/Camel-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/Camel-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/Camel-Platypus2-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use garage-bAInd/Camel-Platypus2-13B with Docker Model Runner:
docker model run hf.co/garage-bAInd/Camel-Platypus2-13B
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,18 +11,6 @@ Camel-Platypus-13B is a merge of [`garage-bAInd/Platypus2-13B`](https://huggingf
|
|
| 11 |
|
| 12 |

|
| 13 |
|
| 14 |
-
### Benchmark Metrics
|
| 15 |
-
|
| 16 |
-
| Metric | Value |
|
| 17 |
-
|-----------------------|-------|
|
| 18 |
-
| MMLU (5-shot) | 56.51 |
|
| 19 |
-
| ARC (25-shot) | 60.75 |
|
| 20 |
-
| HellaSwag (10-shot) | 83.61 |
|
| 21 |
-
| TruthfulQA (0-shot) | 49.60 |
|
| 22 |
-
| Avg. | 62.62 |
|
| 23 |
-
|
| 24 |
-
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.
|
| 25 |
-
|
| 26 |
### Model Details
|
| 27 |
|
| 28 |
* **Trained by**: **Platypus2-13B** trained by Cole Hunter & Ariel Lee; **CAMEL-13B-Combined-Data** trained by StabilityAI
|
|
|
|
| 11 |
|
| 12 |

|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
### Model Details
|
| 15 |
|
| 16 |
* **Trained by**: **Platypus2-13B** trained by Cole Hunter & Ariel Lee; **CAMEL-13B-Combined-Data** trained by StabilityAI
|