Instructions to use leafspark/Mistral-Large-218B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leafspark/Mistral-Large-218B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="leafspark/Mistral-Large-218B-Instruct")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("leafspark/Mistral-Large-218B-Instruct") model = AutoModelForCausalLM.from_pretrained("leafspark/Mistral-Large-218B-Instruct") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use leafspark/Mistral-Large-218B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "leafspark/Mistral-Large-218B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "leafspark/Mistral-Large-218B-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/leafspark/Mistral-Large-218B-Instruct
- SGLang
How to use leafspark/Mistral-Large-218B-Instruct 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 "leafspark/Mistral-Large-218B-Instruct" \ --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": "leafspark/Mistral-Large-218B-Instruct", "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 "leafspark/Mistral-Large-218B-Instruct" \ --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": "leafspark/Mistral-Large-218B-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use leafspark/Mistral-Large-218B-Instruct with Docker Model Runner:
docker model run hf.co/leafspark/Mistral-Large-218B-Instruct
model: add 5 chunks (42-46)
Browse files
model-00042-of-00158.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9c10d7aa9f74d53f42a6db57b710eff7ea461b40c8311dcc19c256adbea44b3
|
| 3 |
+
size 2768290848
|
model-00043-of-00158.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8fff200491e0f137b843b2ecbebbabc160deacf599fa91321b1183ad4f7285b3
|
| 3 |
+
size 2768290848
|
model-00044-of-00158.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:caecf7f34895cfb51574cad22b007f17eb726ae9358e3260b3a5f26ed3510b16
|
| 3 |
+
size 2768290848
|
model-00045-of-00158.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cab0a57db150f5b6c12d2f67141304e3d77558e82c700017a5b99ed318bda2ac
|
| 3 |
+
size 2768290848
|
model-00046-of-00158.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0bd858782823f7420c8b688ea21b24cabfb3962b08814ddc79b86b82ac1dc6f
|
| 3 |
+
size 2768290848
|