Text Generation
Transformers
Safetensors
mistral
mergekit
Merge
roleplay
conversational
text-generation-inference
Instructions to use Vortex5/Maroon-Sunset-12B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Vortex5/Maroon-Sunset-12B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Vortex5/Maroon-Sunset-12B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Vortex5/Maroon-Sunset-12B") model = AutoModelForMultimodalLM.from_pretrained("Vortex5/Maroon-Sunset-12B") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Vortex5/Maroon-Sunset-12B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Vortex5/Maroon-Sunset-12B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Vortex5/Maroon-Sunset-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Vortex5/Maroon-Sunset-12B
- SGLang
How to use Vortex5/Maroon-Sunset-12B 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 "Vortex5/Maroon-Sunset-12B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Vortex5/Maroon-Sunset-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Vortex5/Maroon-Sunset-12B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Vortex5/Maroon-Sunset-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Vortex5/Maroon-Sunset-12B with Docker Model Runner:
docker model run hf.co/Vortex5/Maroon-Sunset-12B
Update README.md
Browse files
README.md
CHANGED
|
@@ -265,8 +265,12 @@ tokenizer:
|
|
| 265 |
display: block;
|
| 266 |
margin-top: 18px;
|
| 267 |
border-radius: 14px;
|
| 268 |
-
|
| 269 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
overflow: hidden;
|
| 271 |
}
|
| 272 |
|
|
@@ -283,9 +287,13 @@ tokenizer:
|
|
| 283 |
letter-spacing: .14em;
|
| 284 |
text-transform: uppercase;
|
| 285 |
|
| 286 |
-
color: rgba(255,244,236,.
|
| 287 |
-
|
| 288 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 289 |
}
|
| 290 |
|
| 291 |
.card-details summary::-webkit-details-marker{
|
|
@@ -296,8 +304,8 @@ tokenizer:
|
|
| 296 |
content: "";
|
| 297 |
width: 10px;
|
| 298 |
height: 10px;
|
| 299 |
-
border-right: 2px solid rgba(
|
| 300 |
-
border-bottom: 2px solid rgba(
|
| 301 |
transform: rotate(-45deg);
|
| 302 |
justify-self: end;
|
| 303 |
margin-left: 10px;
|
|
@@ -307,8 +315,8 @@ tokenizer:
|
|
| 307 |
|
| 308 |
.card-details[open] summary::after{
|
| 309 |
transform: rotate(45deg);
|
| 310 |
-
border-right-color: rgba(
|
| 311 |
-
border-bottom-color: rgba(
|
| 312 |
opacity: 1;
|
| 313 |
}
|
| 314 |
|
|
@@ -316,14 +324,17 @@ tokenizer:
|
|
| 316 |
margin: 0;
|
| 317 |
padding: 14px 14px 16px;
|
| 318 |
|
| 319 |
-
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "JetBrains Mono",
|
| 320 |
font-size: 0.86rem;
|
| 321 |
line-height: 1.6;
|
| 322 |
|
| 323 |
-
color: rgba(255, 244, 236, 0.
|
| 324 |
-
text-align: left;
|
| 325 |
|
| 326 |
-
background:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 327 |
overflow-x: auto;
|
| 328 |
}
|
| 329 |
|
|
|
|
| 265 |
display: block;
|
| 266 |
margin-top: 18px;
|
| 267 |
border-radius: 14px;
|
| 268 |
+
|
| 269 |
+
border: 1px solid rgba(240,240,255,0.12);
|
| 270 |
+
background:
|
| 271 |
+
radial-gradient(700px 200px at 20% 0%, rgba(202, 66, 92, 0.10), transparent 55%),
|
| 272 |
+
rgba(0,0,0,0.28);
|
| 273 |
+
|
| 274 |
overflow: hidden;
|
| 275 |
}
|
| 276 |
|
|
|
|
| 287 |
letter-spacing: .14em;
|
| 288 |
text-transform: uppercase;
|
| 289 |
|
| 290 |
+
color: rgba(255,244,236,.92);
|
| 291 |
+
|
| 292 |
+
background:
|
| 293 |
+
radial-gradient(600px 180px at 20% 0%, rgba(202, 66, 92, 0.12), transparent 55%),
|
| 294 |
+
rgba(255,255,255,0.04);
|
| 295 |
+
|
| 296 |
+
border-bottom: 1px solid rgba(240,240,255,0.10);
|
| 297 |
}
|
| 298 |
|
| 299 |
.card-details summary::-webkit-details-marker{
|
|
|
|
| 304 |
content: "";
|
| 305 |
width: 10px;
|
| 306 |
height: 10px;
|
| 307 |
+
border-right: 2px solid rgba(202, 66, 92, 0.85);
|
| 308 |
+
border-bottom: 2px solid rgba(202, 66, 92, 0.85);
|
| 309 |
transform: rotate(-45deg);
|
| 310 |
justify-self: end;
|
| 311 |
margin-left: 10px;
|
|
|
|
| 315 |
|
| 316 |
.card-details[open] summary::after{
|
| 317 |
transform: rotate(45deg);
|
| 318 |
+
border-right-color: rgba(202, 66, 92, 0.95);
|
| 319 |
+
border-bottom-color: rgba(202, 66, 92, 0.95);
|
| 320 |
opacity: 1;
|
| 321 |
}
|
| 322 |
|
|
|
|
| 324 |
margin: 0;
|
| 325 |
padding: 14px 14px 16px;
|
| 326 |
|
| 327 |
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "JetBrains Mono", monospace;
|
| 328 |
font-size: 0.86rem;
|
| 329 |
line-height: 1.6;
|
| 330 |
|
| 331 |
+
color: rgba(255, 244, 236, 0.88);
|
|
|
|
| 332 |
|
| 333 |
+
background:
|
| 334 |
+
radial-gradient(600px 200px at 20% 0%, rgba(166, 28, 59, 0.14), transparent 55%),
|
| 335 |
+
rgba(0,0,0,0.22);
|
| 336 |
+
|
| 337 |
+
border-top: 1px solid rgba(240,240,255,0.08);
|
| 338 |
overflow-x: auto;
|
| 339 |
}
|
| 340 |
|