Text Generation
Transformers
Safetensors
mistral3
image-text-to-text
Merge
slerp
dfk-detection
vlm
text-classification
indonesian
multimodal
image-classification
content-moderation
conversational
Instructions to use aitf-its-tim3-dfk/ministral-8b-merged-ws3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aitf-its-tim3-dfk/ministral-8b-merged-ws3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aitf-its-tim3-dfk/ministral-8b-merged-ws3") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("aitf-its-tim3-dfk/ministral-8b-merged-ws3") model = AutoModelForMultimodalLM.from_pretrained("aitf-its-tim3-dfk/ministral-8b-merged-ws3") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aitf-its-tim3-dfk/ministral-8b-merged-ws3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aitf-its-tim3-dfk/ministral-8b-merged-ws3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aitf-its-tim3-dfk/ministral-8b-merged-ws3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aitf-its-tim3-dfk/ministral-8b-merged-ws3
- SGLang
How to use aitf-its-tim3-dfk/ministral-8b-merged-ws3 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 "aitf-its-tim3-dfk/ministral-8b-merged-ws3" \ --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": "aitf-its-tim3-dfk/ministral-8b-merged-ws3", "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 "aitf-its-tim3-dfk/ministral-8b-merged-ws3" \ --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": "aitf-its-tim3-dfk/ministral-8b-merged-ws3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use aitf-its-tim3-dfk/ministral-8b-merged-ws3 with Docker Model Runner:
docker model run hf.co/aitf-its-tim3-dfk/ministral-8b-merged-ws3
spuuntries commited on
Commit ·
521a01e
1
Parent(s): 4896b48
docs: tidy up metrics
Browse files
README.md
CHANGED
|
@@ -168,7 +168,7 @@ tags:
|
|
| 168 |
.fo-row .fo-v:only-child { grid-column: 1 / -1; }
|
| 169 |
|
| 170 |
/* ── Metric cards ── */
|
| 171 |
-
.fo-metrics { display: grid; grid-template-columns: repeat(
|
| 172 |
.fo-metric {
|
| 173 |
background: var(--card); border: 1px solid var(--edge);
|
| 174 |
border-radius: 8px; padding: 16px 10px 14px;
|
|
@@ -437,10 +437,6 @@ tags:
|
|
| 437 |
<div class="fo-mval">77.3</div>
|
| 438 |
<div class="fo-mlbl">BERTScore F1</div>
|
| 439 |
</div>
|
| 440 |
-
<div class="fo-metric">
|
| 441 |
-
<div class="fo-mval">31.6</div>
|
| 442 |
-
<div class="fo-mlbl">ROUGE-L F1</div>
|
| 443 |
-
</div>
|
| 444 |
</div>
|
| 445 |
|
| 446 |
<h3 class="fo-sub">Text-Only Task</h3>
|
|
@@ -457,10 +453,6 @@ tags:
|
|
| 457 |
<div class="fo-mval">77.6</div>
|
| 458 |
<div class="fo-mlbl">BERTScore F1</div>
|
| 459 |
</div>
|
| 460 |
-
<div class="fo-metric">
|
| 461 |
-
<div class="fo-mval">31.5</div>
|
| 462 |
-
<div class="fo-mlbl">ROUGE-L F1</div>
|
| 463 |
-
</div>
|
| 464 |
</div>
|
| 465 |
|
| 466 |
<details>
|
|
@@ -471,12 +463,14 @@ tags:
|
|
| 471 |
<thead>
|
| 472 |
<tr>
|
| 473 |
<th>Model</th>
|
| 474 |
-
<th>
|
| 475 |
-
<th>
|
| 476 |
-
<th>
|
|
|
|
| 477 |
<th>Text Acc</th>
|
| 478 |
<th>Text F1w</th>
|
| 479 |
<th>Text BERT</th>
|
|
|
|
| 480 |
</tr>
|
| 481 |
</thead>
|
| 482 |
<tbody>
|
|
@@ -485,27 +479,33 @@ tags:
|
|
| 485 |
<td class="fo-cmp-warm">92.5</td>
|
| 486 |
<td class="fo-cmp-warm">92.3</td>
|
| 487 |
<td class="fo-cmp-warm">80.0</td>
|
|
|
|
| 488 |
<td class="fo-cmp-dim">77.5</td>
|
| 489 |
<td class="fo-cmp-dim">70.8</td>
|
| 490 |
<td class="fo-cmp-dim">73.1</td>
|
|
|
|
| 491 |
</tr>
|
| 492 |
<tr>
|
| 493 |
<td>Text Adapter</td>
|
| 494 |
<td class="fo-cmp-dim">1.5</td>
|
| 495 |
<td class="fo-cmp-dim">2.8</td>
|
| 496 |
<td class="fo-cmp-dim">69.6</td>
|
|
|
|
| 497 |
<td class="fo-cmp-warm">84.0</td>
|
| 498 |
<td class="fo-cmp-warm">89.0</td>
|
| 499 |
<td class="fo-cmp-warm">80.7</td>
|
|
|
|
| 500 |
</tr>
|
| 501 |
<tr class="fo-cmp-row-merge">
|
| 502 |
<td><strong>SLERP Merge</strong></td>
|
| 503 |
<td class="fo-cmp-sage">88.5</td>
|
| 504 |
<td class="fo-cmp-sage">89.4</td>
|
| 505 |
<td class="fo-cmp-sage">77.3</td>
|
|
|
|
| 506 |
<td class="fo-cmp-sage">91.0</td>
|
| 507 |
<td class="fo-cmp-sage">92.9</td>
|
| 508 |
<td class="fo-cmp-sage">77.6</td>
|
|
|
|
| 509 |
</tr>
|
| 510 |
</tbody>
|
| 511 |
</table>
|
|
|
|
| 168 |
.fo-row .fo-v:only-child { grid-column: 1 / -1; }
|
| 169 |
|
| 170 |
/* ── Metric cards ── */
|
| 171 |
+
.fo-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
|
| 172 |
.fo-metric {
|
| 173 |
background: var(--card); border: 1px solid var(--edge);
|
| 174 |
border-radius: 8px; padding: 16px 10px 14px;
|
|
|
|
| 437 |
<div class="fo-mval">77.3</div>
|
| 438 |
<div class="fo-mlbl">BERTScore F1</div>
|
| 439 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 440 |
</div>
|
| 441 |
|
| 442 |
<h3 class="fo-sub">Text-Only Task</h3>
|
|
|
|
| 453 |
<div class="fo-mval">77.6</div>
|
| 454 |
<div class="fo-mlbl">BERTScore F1</div>
|
| 455 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 456 |
</div>
|
| 457 |
|
| 458 |
<details>
|
|
|
|
| 463 |
<thead>
|
| 464 |
<tr>
|
| 465 |
<th>Model</th>
|
| 466 |
+
<th>MM Acc</th>
|
| 467 |
+
<th>MM F1w</th>
|
| 468 |
+
<th>MM BERT</th>
|
| 469 |
+
<th>MM ROUGE</th>
|
| 470 |
<th>Text Acc</th>
|
| 471 |
<th>Text F1w</th>
|
| 472 |
<th>Text BERT</th>
|
| 473 |
+
<th>Text ROUGE</th>
|
| 474 |
</tr>
|
| 475 |
</thead>
|
| 476 |
<tbody>
|
|
|
|
| 479 |
<td class="fo-cmp-warm">92.5</td>
|
| 480 |
<td class="fo-cmp-warm">92.3</td>
|
| 481 |
<td class="fo-cmp-warm">80.0</td>
|
| 482 |
+
<td class="fo-cmp-warm">38.7</td>
|
| 483 |
<td class="fo-cmp-dim">77.5</td>
|
| 484 |
<td class="fo-cmp-dim">70.8</td>
|
| 485 |
<td class="fo-cmp-dim">73.1</td>
|
| 486 |
+
<td class="fo-cmp-dim">19.0</td>
|
| 487 |
</tr>
|
| 488 |
<tr>
|
| 489 |
<td>Text Adapter</td>
|
| 490 |
<td class="fo-cmp-dim">1.5</td>
|
| 491 |
<td class="fo-cmp-dim">2.8</td>
|
| 492 |
<td class="fo-cmp-dim">69.6</td>
|
| 493 |
+
<td class="fo-cmp-dim">16.2</td>
|
| 494 |
<td class="fo-cmp-warm">84.0</td>
|
| 495 |
<td class="fo-cmp-warm">89.0</td>
|
| 496 |
<td class="fo-cmp-warm">80.7</td>
|
| 497 |
+
<td class="fo-cmp-warm">41.6</td>
|
| 498 |
</tr>
|
| 499 |
<tr class="fo-cmp-row-merge">
|
| 500 |
<td><strong>SLERP Merge</strong></td>
|
| 501 |
<td class="fo-cmp-sage">88.5</td>
|
| 502 |
<td class="fo-cmp-sage">89.4</td>
|
| 503 |
<td class="fo-cmp-sage">77.3</td>
|
| 504 |
+
<td class="fo-cmp-sage">31.6</td>
|
| 505 |
<td class="fo-cmp-sage">91.0</td>
|
| 506 |
<td class="fo-cmp-sage">92.9</td>
|
| 507 |
<td class="fo-cmp-sage">77.6</td>
|
| 508 |
+
<td class="fo-cmp-sage">31.5</td>
|
| 509 |
</tr>
|
| 510 |
</tbody>
|
| 511 |
</table>
|