Instructions to use pankajmathur/model_420_preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pankajmathur/model_420_preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pankajmathur/model_420_preview")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pankajmathur/model_420_preview") model = AutoModelForCausalLM.from_pretrained("pankajmathur/model_420_preview") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use pankajmathur/model_420_preview with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pankajmathur/model_420_preview" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pankajmathur/model_420_preview", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pankajmathur/model_420_preview
- SGLang
How to use pankajmathur/model_420_preview 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 "pankajmathur/model_420_preview" \ --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": "pankajmathur/model_420_preview", "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 "pankajmathur/model_420_preview" \ --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": "pankajmathur/model_420_preview", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pankajmathur/model_420_preview with Docker Model Runner:
docker model run hf.co/pankajmathur/model_420_preview
Adding Evaluation Results
#1
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -3,4 +3,17 @@ language:
|
|
| 3 |
- en
|
| 4 |
library_name: transformers
|
| 5 |
---
|
| 6 |
-
LlaMA-2 License, more details coming soon...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
- en
|
| 4 |
library_name: transformers
|
| 5 |
---
|
| 6 |
+
LlaMA-2 License, more details coming soon...
|
| 7 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 8 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_psmathur__model_420_preview)
|
| 9 |
+
|
| 10 |
+
| Metric | Value |
|
| 11 |
+
|-----------------------|---------------------------|
|
| 12 |
+
| Avg. | 55.99 |
|
| 13 |
+
| ARC (25-shot) | 67.06 |
|
| 14 |
+
| HellaSwag (10-shot) | 87.26 |
|
| 15 |
+
| MMLU (5-shot) | 69.85 |
|
| 16 |
+
| TruthfulQA (0-shot) | 44.57 |
|
| 17 |
+
| Winogrande (5-shot) | 83.35 |
|
| 18 |
+
| GSM8K (5-shot) | 33.21 |
|
| 19 |
+
| DROP (3-shot) | 6.6 |
|