Instructions to use appvoid/palmer-002 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use appvoid/palmer-002 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="appvoid/palmer-002")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("appvoid/palmer-002") model = AutoModelForCausalLM.from_pretrained("appvoid/palmer-002") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use appvoid/palmer-002 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "appvoid/palmer-002" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "appvoid/palmer-002", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/appvoid/palmer-002
- SGLang
How to use appvoid/palmer-002 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 "appvoid/palmer-002" \ --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": "appvoid/palmer-002", "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 "appvoid/palmer-002" \ --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": "appvoid/palmer-002", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use appvoid/palmer-002 with Docker Model Runner:
docker model run hf.co/appvoid/palmer-002
Update README.md
Browse files
README.md
CHANGED
|
@@ -22,6 +22,7 @@ tinyllama-3 | 0.3029 | 0.5935 | 0.7329 | 0.5959 | 0.5563 |
|
|
| 22 |
tinyllama-2.5 | 0.3191 | 0.5896 | 0.7307 | 0.5872 | 0.5566 |
|
| 23 |
palmer-002 | 0.3242 | 0.5956 | 0.7345 | 0.5888 | 0.5607 |
|
| 24 |
babbage-002 | 0.3285 | 0.6380 | 0.7606 | 0.6085 | 0.5839 |
|
|
|
|
| 25 |
```
|
| 26 |
|
| 27 |
This model shows exceptional performance and as of now is the best tinyllama-size base model. Furthermore, this proves LIMA paper point and serves as a good open-source alternative to openai's `babbage-002`.
|
|
|
|
| 22 |
tinyllama-2.5 | 0.3191 | 0.5896 | 0.7307 | 0.5872 | 0.5566 |
|
| 23 |
palmer-002 | 0.3242 | 0.5956 | 0.7345 | 0.5888 | 0.5607 |
|
| 24 |
babbage-002 | 0.3285 | 0.6380 | 0.7606 | 0.6085 | 0.5839 |
|
| 25 |
+
# note that this is a zero-shot setting as opposite to open llm leaderboard's few-shot evals.
|
| 26 |
```
|
| 27 |
|
| 28 |
This model shows exceptional performance and as of now is the best tinyllama-size base model. Furthermore, this proves LIMA paper point and serves as a good open-source alternative to openai's `babbage-002`.
|