How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="JuicesAI/CTFty-9b")
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)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("JuicesAI/CTFty-9b")
model = AutoModelForMultimodalLM.from_pretrained("JuicesAI/CTFty-9b", device_map="auto")
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=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

CTFty-9b (v2)

CTF/security agent, full SFT from XiaomiMiMo/MiMo-V2.6-Distill-Qwen-9B (v1 was trained from Qwen3.5-9B).

Training data โ€” 1651 examples

  • 42 agent runs with verified captured flags (Kaspersky CTF, KubSTU, RCPISS/Avito, ะะขะž โ€” 8 tasks: reverse, pwn, forensics, web, crypto). Runs where the flag was NOT actually captured were excluded.
  • 535 pentest walkthroughs (Pentest-R1)
  • 858 MITRE ATT&CK technique cards
  • 216 MBC malware behavior cards

Recipe

Full fine-tune: 2 epochs, lr 5e-6 cosine, warmup 6 steps, global batch 16 (bs1 x ga16), bf16, max_length 8192, adamw_8bit, gradient checkpointing, RTX PRO 6000.

Train metrics: final logged loss 1.237, avg train_loss 1.267, runtime 71 min.

Usage

Same ChatML format as the base model (<|im_start|>user ... <|im_end|>). Works with AutoModelForImageTextToText / AutoProcessor.

Downloads last month
122
Safetensors
Model size
9B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for JuicesAI/CTFty-9b

Finetuned
Qwen/Qwen3.5-9B
Finetuned
(31)
this model
Quantizations
1 model