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
KomdigiITS-8B-DFK
Merged Classification
Ministral-3-8B · SLERP Merge · Multimodal + Text
A SLERP-merged full model combining two specialized LoRA adapters into a single unified checkpoint. The merge blends the 8B Multimodal Multimodal classifier with the text-only DFK classifier, both built on KomdigiITS-8B-DFK-CPT (Ministral-3-8B-Base-2512).
The result is a model that operates in two modes: image-based multimodal classification and text-only classification — strong performance on both tasks from a single set of weights.
w=0.30 multimodal, w=0.70 text). Parent adapters were merged into base model weights, producing a standalone model with no adapter overhead.
Parent Models
dfk_vlm_dataset_v3dfk_text_datasetDirect Use
netral, disinformasi, fitnah, or ujaran kebencian.Fakta, Disinformasi, Fitnah, Ujaran Kebencian, or Non-DFK.Out-of-Scope Use
Evaluated on held-out validation splits using greedy decoding (temperature=0.0) and BERTScore (bert-base-multilingual-cased).
Multimodal Task (Image + Text)
Text-Only Task
Parent Model Comparison
The merge trades a small amount of Multimodal accuracy for a massive improvement in text-only performance — turning a Multimodal-only model into a genuinely dual-mode classifier.
| Model | MM Acc | MM F1w | MM BERT | MM ROUGE | Text Acc | Text F1w | Text BERT | Text ROUGE |
|---|---|---|---|---|---|---|---|---|
| Multimodal | 92.5 | 92.3 | 80.0 | 38.7 | 77.5 | 70.8 | 73.1 | 19.0 |
| Text Adapter | 1.5 | 2.8 | 69.6 | 16.2 | 84.0 | 89.0 | 80.7 | 41.6 |
| SLERP Merge | 88.5 | 89.4 | 77.3 | 31.6 | 91.0 | 92.9 | 77.6 | 31.5 |
Method
Process
KomdigiITS-8B-DFK-CPT) to produce two full-weight checkpoints. These were then interpolated via SLERP at various weight ratios, with each blend evaluated on both Multimodal and text-only benchmarks to find the optimal trade-off.Label Classes
Both modes use the ministral_3 chat template ([INST] / [/INST] delimiters). The default Ministral system prompt is included when no explicit system message is provided.
Multimodal Mode · dfk_vlm_dataset_v3
Image-based classification with contextual metadata. Note: the instruction and context fields are directly concatenated with no separator.
<s>[SYSTEM_PROMPT]...default Ministral system prompt...[/SYSTEM_PROMPT][INST]Anda adalah seorang analis konten media sosial ahli. Diberikan tangkapan layar dari sebuah konten, tentukan label kategori pelanggaran dan berikan analisis detail mengenai pelanggaran yang ditemukan.Ringkasan: {ringkasan} Klaim: {klaim} Fakta: {fakta}[IMG][/INST]Label: {label}
Analisis: {analisis}</s>
Input Fields
"Tidak ditemukan sumber yang valid." if none found.Output Fields
netral, disinformasi, fitnah, or ujaran kebencian.Text-Only Mode · dfk_text_dataset
Text-only classification with explicit system prompt and article references. Uses merge_labels=false (5 classes).
<s>[SYSTEM_PROMPT]Anda adalah sistem deteksi konten DFK berbasis artikel rujukan. Tugas Anda adalah membandingkan klaim dengan artikel rujukan, lalu mengklasifikasikan teks ke dalam salah satu label: Fakta, Disinformasi, Fitnah, Ujaran Kebencian, atau Non-DFK. Jawab dengan format: Label: **NamaLabel.** penjelasan: ...[/SYSTEM_PROMPT][INST]{klaim}
Artikel Rujukan: {fakta}[/INST]Label: {label}. penjelasan: {analisis}</s>
Input Fields
input column (before Artikel Rujukan:).input column (after Artikel Rujukan:).Output Fields
Fakta, Disinformasi, Fitnah, Ujaran Kebencian, or Non-DFK.- Downloads last month
- 80