Instructions to use lifeofcoding/mastermax-mistral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lifeofcoding/mastermax-mistral with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="lifeofcoding/mastermax-mistral")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("lifeofcoding/mastermax-mistral") model = AutoModelForCausalLM.from_pretrained("lifeofcoding/mastermax-mistral") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use lifeofcoding/mastermax-mistral with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lifeofcoding/mastermax-mistral" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lifeofcoding/mastermax-mistral", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/lifeofcoding/mastermax-mistral
- SGLang
How to use lifeofcoding/mastermax-mistral 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 "lifeofcoding/mastermax-mistral" \ --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": "lifeofcoding/mastermax-mistral", "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 "lifeofcoding/mastermax-mistral" \ --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": "lifeofcoding/mastermax-mistral", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use lifeofcoding/mastermax-mistral with Docker Model Runner:
docker model run hf.co/lifeofcoding/mastermax-mistral
Commit ·
38ab195
1
Parent(s): 54bc111
Upload MistralForCausalLM
Browse files- pytorch_model-00001-of-00008.bin +1 -1
- pytorch_model-00002-of-00008.bin +1 -1
- pytorch_model-00003-of-00008.bin +1 -1
- pytorch_model-00004-of-00008.bin +1 -1
- pytorch_model-00005-of-00008.bin +1 -1
- pytorch_model-00006-of-00008.bin +1 -1
- pytorch_model-00007-of-00008.bin +1 -1
- pytorch_model-00008-of-00008.bin +1 -1
pytorch_model-00001-of-00008.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1889594867
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:238a052a2c7ef6b480485ae33ea33bbac75daea4ef29724971f87b8d09ac0880
|
| 3 |
size 1889594867
|
pytorch_model-00002-of-00008.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1946253909
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ea308f2d897b8843c05ebf010e157bef285139d62da590f2e39255d002c61b3
|
| 3 |
size 1946253909
|
pytorch_model-00003-of-00008.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1979790203
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f57680978c2faa82e663fc5fe65d1ad3de71557f7f251e1bfab72aa6cf50bdf
|
| 3 |
size 1979790203
|
pytorch_model-00004-of-00008.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1946253973
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:63ede6da75bb0d43cbcb4c0dddf4ae490abdb1dd2cef8f965d6956a6c08abb47
|
| 3 |
size 1946253973
|
pytorch_model-00005-of-00008.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1979790267
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a19a4f851d11cddea9bc15fcf26f2c7a4100be6b15d4ca3f340485e03837da8
|
| 3 |
size 1979790267
|
pytorch_model-00006-of-00008.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1946253973
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39eb2cabc2d214dbe797dcfd83b3a9884c1fda9f86e188c7872a785fa3ec2385
|
| 3 |
size 1946253973
|
pytorch_model-00007-of-00008.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1979790267
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77cc1abe8f236250262d00b0f42b75dcb1fab493c215c58dc8a60fb28faa75ae
|
| 3 |
size 1979790267
|
pytorch_model-00008-of-00008.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 815838155
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd64a5753fe2229fba28c907aec62bbdee0643df67097caa14ff339666c58ee0
|
| 3 |
size 815838155
|