Text Generation
Transformers
Safetensors
Mistral_Star
Mistral_Quiet
Mistral
Mixtral
Question-Answer
Token-Classification
Sequence-Classification
SpydazWeb-AI
chemistry
biology
legal
code
climate
medical
text-generation-inference
4-heads
8-bit precision
Instructions to use LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT
- SGLang
How to use LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT 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 "LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT" \ --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": "LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT", "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 "LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT" \ --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": "LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT with Docker Model Runner:
docker model run hf.co/LeroyDyer/_Spydaz_Web_AI_MistralStar_4BIT
Upload 4 files
Browse files- configuration_mistral.py +4 -5
- modeling_mistral.py +0 -0
configuration_mistral.py
CHANGED
|
@@ -14,8 +14,8 @@
|
|
| 14 |
# limitations under the License.
|
| 15 |
"""Mistral model configuration"""
|
| 16 |
|
| 17 |
-
from
|
| 18 |
-
from
|
| 19 |
|
| 20 |
|
| 21 |
logger = logging.get_logger(__name__)
|
|
@@ -116,7 +116,7 @@ class MistralConfig(PretrainedConfig):
|
|
| 116 |
rope_theta=10000.0,
|
| 117 |
sliding_window=4096,
|
| 118 |
attention_dropout=0.0,
|
| 119 |
-
max_thoughts=16,
|
| 120 |
merged_talk_heads=True,
|
| 121 |
merged_lm_and_talk_heads=False,
|
| 122 |
merged_lm_and_think_heads=True,
|
|
@@ -148,7 +148,6 @@ class MistralConfig(PretrainedConfig):
|
|
| 148 |
self.rope_theta = rope_theta
|
| 149 |
self.attention_dropout = attention_dropout
|
| 150 |
self.max_thoughts = max_thoughts
|
| 151 |
-
self.thought_length = thought_length
|
| 152 |
self.merged_talk_heads = merged_talk_heads
|
| 153 |
self.merged_lm_and_talk_heads = merged_lm_and_talk_heads
|
| 154 |
self.merged_lm_and_think_heads = merged_lm_and_think_heads
|
|
@@ -262,7 +261,7 @@ class MistralStarConfig(PretrainedConfig):
|
|
| 262 |
sliding_window=4096,
|
| 263 |
attention_dropout=0.0,
|
| 264 |
max_thoughts=16,
|
| 265 |
-
thought_length =
|
| 266 |
merged_talk_heads=True,
|
| 267 |
merged_lm_and_talk_heads=False,
|
| 268 |
merged_lm_and_think_heads=True,
|
|
|
|
| 14 |
# limitations under the License.
|
| 15 |
"""Mistral model configuration"""
|
| 16 |
|
| 17 |
+
from ...configuration_utils import PretrainedConfig
|
| 18 |
+
from ...utils import logging
|
| 19 |
|
| 20 |
|
| 21 |
logger = logging.get_logger(__name__)
|
|
|
|
| 116 |
rope_theta=10000.0,
|
| 117 |
sliding_window=4096,
|
| 118 |
attention_dropout=0.0,
|
| 119 |
+
max_thoughts=16,
|
| 120 |
merged_talk_heads=True,
|
| 121 |
merged_lm_and_talk_heads=False,
|
| 122 |
merged_lm_and_think_heads=True,
|
|
|
|
| 148 |
self.rope_theta = rope_theta
|
| 149 |
self.attention_dropout = attention_dropout
|
| 150 |
self.max_thoughts = max_thoughts
|
|
|
|
| 151 |
self.merged_talk_heads = merged_talk_heads
|
| 152 |
self.merged_lm_and_talk_heads = merged_lm_and_talk_heads
|
| 153 |
self.merged_lm_and_think_heads = merged_lm_and_think_heads
|
|
|
|
| 261 |
sliding_window=4096,
|
| 262 |
attention_dropout=0.0,
|
| 263 |
max_thoughts=16,
|
| 264 |
+
thought_length = 10,
|
| 265 |
merged_talk_heads=True,
|
| 266 |
merged_lm_and_talk_heads=False,
|
| 267 |
merged_lm_and_think_heads=True,
|
modeling_mistral.py
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|