Instructions to use SciPhi/SciPhi-Mistral-7B-32k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SciPhi/SciPhi-Mistral-7B-32k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SciPhi/SciPhi-Mistral-7B-32k")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SciPhi/SciPhi-Mistral-7B-32k") model = AutoModelForCausalLM.from_pretrained("SciPhi/SciPhi-Mistral-7B-32k") - Inference
- Local Apps Settings
- vLLM
How to use SciPhi/SciPhi-Mistral-7B-32k with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SciPhi/SciPhi-Mistral-7B-32k" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SciPhi/SciPhi-Mistral-7B-32k", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SciPhi/SciPhi-Mistral-7B-32k
- SGLang
How to use SciPhi/SciPhi-Mistral-7B-32k 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 "SciPhi/SciPhi-Mistral-7B-32k" \ --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": "SciPhi/SciPhi-Mistral-7B-32k", "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 "SciPhi/SciPhi-Mistral-7B-32k" \ --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": "SciPhi/SciPhi-Mistral-7B-32k", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SciPhi/SciPhi-Mistral-7B-32k with Docker Model Runner:
docker model run hf.co/SciPhi/SciPhi-Mistral-7B-32k
Commit ·
8abed8a
1
Parent(s): fea1ea8
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,10 +20,12 @@ Base Model: Mistral-7B-v0.1
|
|
| 20 |
|
| 21 |
|
| 22 |
## Recommended Chat Formatting
|
| 23 |
-
|
| 24 |
|
| 25 |
We recommend mapping such that
|
| 26 |
|
|
|
|
|
|
|
| 27 |
messages = [
|
| 28 |
{
|
| 29 |
"role": "system",
|
|
@@ -42,6 +44,8 @@ How many helicopters can a human eat in one sitting?
|
|
| 42 |
|
| 43 |
### Response:
|
| 44 |
...
|
|
|
|
|
|
|
| 45 |
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
| 46 |
|
| 47 |
## References
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
## Recommended Chat Formatting
|
| 23 |
+
|
| 24 |
|
| 25 |
We recommend mapping such that
|
| 26 |
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
messages = [
|
| 30 |
{
|
| 31 |
"role": "system",
|
|
|
|
| 44 |
|
| 45 |
### Response:
|
| 46 |
...
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
| 50 |
|
| 51 |
## References
|