Instructions to use aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification with PEFT:
Task type is invalid.
- Transformers
How to use aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification") 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-komdigi/KomdigiITS-8B-DFK-MultimodalClassification") model = AutoModelForMultimodalLM.from_pretrained("aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification") 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-komdigi/KomdigiITS-8B-DFK-MultimodalClassification with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification" # 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-komdigi/KomdigiITS-8B-DFK-MultimodalClassification", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification
- SGLang
How to use aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification 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-komdigi/KomdigiITS-8B-DFK-MultimodalClassification" \ --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-komdigi/KomdigiITS-8B-DFK-MultimodalClassification", "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-komdigi/KomdigiITS-8B-DFK-MultimodalClassification" \ --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-komdigi/KomdigiITS-8B-DFK-MultimodalClassification", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification", max_seq_length=2048, ) - Docker Model Runner
How to use aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification with Docker Model Runner:
docker model run hf.co/aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification
KomdigiITS-8B-DFK
Multimodal Classification
Ministral-3-8B-Base-2512 · LoRA · Vision-Language
A LoRA adapter fine-tuned on aitf-komdigi/KomdigiITS-8B-DFK-CPT (Ministral-3-8B-Base-2512 based) as a Vision-Language Model for multimodal content classification. The model analyzes social media screenshots and classifies them into four categories: netral, disinformasi, fitnah, and ujaran kebencian.
Trained using the SITA framework with Unsloth's SFT pipeline. Given an image, the model produces a structured analysis with a classification label and a detailed Indonesian-language reasoning of any violations found.
final-ministral-8b-cpt-ws3), trained on the DFK VLM Dataset V3 with augmented train/val splits. The base model (aitf-komdigi/KomdigiITS-8B-DFK-CPT) was continual-pretrained on DFK domain-oriented text before fine-tuning.
Direct Use
netral, disinformasi, fitnah, or ujaran kebencian) and a detailed reasoning in Indonesian.Out-of-Scope Use
Evaluated on the held-out validation split using greedy decoding (temperature=0.0) and BERTScore (bert-base-multilingual-cased).
Per-Class Breakdown
Generation Quality Metrics
Training Data
dfk_vlm_dataset_v3 (augmented on fitnah class)Label Classes
Dataset Distribution
Configuration
Trainer
unsloth_vlm_sft (Unsloth VLM SFT trainer)[INST][/INST]eval_loss (lower is better)Prompt Template
Each sample is formatted as a multi-turn conversation using the ministral_3 chat template. The dataset builds structured content blocks which the Jinja template renders as:
<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."Output Fields
netral, disinformasi, fitnah, or ujaran kebencian.Full Training Config
experiment_name: final-ministral-8b-cpt-ws3 seed: 3407reporting: wandb: true wandb_project: "DFK3"
model: name: unsloth_vlm pretrained: aitf-komdigi/KomdigiITS-8B-DFK-CPT kwargs: load_in_4bit: false chat_template: "sita/templates/ministral_3.jinja"
adapter: name: unsloth_vlm_lora kwargs: finetune_vision_layers: true finetune_language_layers: true finetune_attention_modules: true finetune_mlp_modules: true r: 16 lora_alpha: 16 lora_dropout: 0.1 bias: "none" target_modules: "all-linear" use_gradient_checkpointing: "unsloth" random_state: 3407
dataset: name: dfk_vlm_dataset_v3 kwargs: data_dir: /content/dataset/images/images
training: num_epochs: 3 batch_size: 4 learning_rate: 5e-4 gradient_accumulation_steps: 4 max_grad_norm: 1 warmup_ratio: 0.03 weight_decay: 0 logging_steps: 1 eval_steps: 250 extra: seed: 3407 max_length: 4096 load_best_model_at_end: true metric_for_best_model: eval_loss greater_is_better: false
trainer: name: unsloth_vlm_sft kwargs: train_on_responses_only: true instruction_part: "[INST]" response_part: "[/INST]" optim: adamw_8bit
evaluation: name: vlm_gen kwargs: max_new_tokens: 512 temperature: 0.0 bert_model: bert-base-multilingual-cased batch_size: 16 num_workers: 11
- Downloads last month
- -
Model tree for aitf-komdigi/KomdigiITS-8B-DFK-MultimodalClassification
Base model
mistralai/Ministral-3-8B-Base-2512