Instructions to use athirdpath/NeuralPivot-11b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use athirdpath/NeuralPivot-11b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="athirdpath/NeuralPivot-11b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("athirdpath/NeuralPivot-11b") model = AutoModelForCausalLM.from_pretrained("athirdpath/NeuralPivot-11b") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use athirdpath/NeuralPivot-11b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "athirdpath/NeuralPivot-11b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "athirdpath/NeuralPivot-11b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/athirdpath/NeuralPivot-11b
- SGLang
How to use athirdpath/NeuralPivot-11b 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 "athirdpath/NeuralPivot-11b" \ --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": "athirdpath/NeuralPivot-11b", "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 "athirdpath/NeuralPivot-11b" \ --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": "athirdpath/NeuralPivot-11b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use athirdpath/NeuralPivot-11b with Docker Model Runner:
docker model run hf.co/athirdpath/NeuralPivot-11b
Commit ·
86e995c
1
Parent(s): 1df531e
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
A 11b Mistral model, based on the NeverSleep recipe.
|
| 6 |
+
|
| 7 |
+
### Recipe
|
| 8 |
+
|
| 9 |
+
slices
|
| 10 |
+
|
| 11 |
+
- sources:
|
| 12 |
+
-
|
| 13 |
+
- model: maywell/PiVoT-0.1-Starling-LM-RP
|
| 14 |
+
-
|
| 15 |
+
layer_range: [0, 24]
|
| 16 |
+
|
| 17 |
+
- sources:
|
| 18 |
+
-
|
| 19 |
+
- model: Intel/neural-chat-7b-v3-1
|
| 20 |
+
-
|
| 21 |
+
layer_range: [8, 32]
|
| 22 |
+
|
| 23 |
+
merge_method: passthrough
|
| 24 |
+
|
| 25 |
+
dtype: bfloat16
|