Instructions to use MarsupialAI/SkunkApe-14b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MarsupialAI/SkunkApe-14b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MarsupialAI/SkunkApe-14b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MarsupialAI/SkunkApe-14b") model = AutoModelForCausalLM.from_pretrained("MarsupialAI/SkunkApe-14b") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MarsupialAI/SkunkApe-14b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MarsupialAI/SkunkApe-14b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MarsupialAI/SkunkApe-14b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MarsupialAI/SkunkApe-14b
- SGLang
How to use MarsupialAI/SkunkApe-14b 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 "MarsupialAI/SkunkApe-14b" \ --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": "MarsupialAI/SkunkApe-14b", "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 "MarsupialAI/SkunkApe-14b" \ --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": "MarsupialAI/SkunkApe-14b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MarsupialAI/SkunkApe-14b with Docker Model Runner:
docker model run hf.co/MarsupialAI/SkunkApe-14b
Update README.md
Browse files
README.md
CHANGED
|
@@ -41,6 +41,7 @@ That Saturday morning, Bobby hopped out of his pen in his owners' backyard, exci
|
|
| 41 |
He hopped through the neighborhood and made his way towards town. He was so excited; his heart was beating like a double kick drum. Eventually, he got to the venue and found himself standing in line with a group of leather-clad headbangers. They took one look at this innocent looking bunny with a denim jacket, black band patches, and a Slayer baseball cap and began to laugh. Bobby didn’t mind; it just fueled his fire to prove these posers wrong.
|
| 42 |
|
| 43 |
A burly bouncer came up to Bobby as he approached the front of the line, "Um, buddy. No rabbits allowed."
|
|
|
|
| 44 |
<<<This goes on for a while. See sample.txt for full output>>>
|
| 45 |
```
|
| 46 |
|
|
|
|
| 41 |
He hopped through the neighborhood and made his way towards town. He was so excited; his heart was beating like a double kick drum. Eventually, he got to the venue and found himself standing in line with a group of leather-clad headbangers. They took one look at this innocent looking bunny with a denim jacket, black band patches, and a Slayer baseball cap and began to laugh. Bobby didn’t mind; it just fueled his fire to prove these posers wrong.
|
| 42 |
|
| 43 |
A burly bouncer came up to Bobby as he approached the front of the line, "Um, buddy. No rabbits allowed."
|
| 44 |
+
|
| 45 |
<<<This goes on for a while. See sample.txt for full output>>>
|
| 46 |
```
|
| 47 |
|