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="Yemen-JPT/SafeGuard")
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("Yemen-JPT/SafeGuard")
model = AutoModelForMultimodalLM.from_pretrained("Yemen-JPT/SafeGuard", 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=40)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

YemenJPT-SafeGuard-v1

الحماية والسلامة الرقمية - نموذج لحماية الصحفيين

الوصف

الحماية والسلامة الرقمية - نموذج لحماية الصحفيين. هذا النموذج/القاعدة جزء من مجموعة YemenJPT المخصصة لدعم الصحافة الاستقصائية اليمنية.

الروابط

التحميل

# عبر HuggingFace Hub
git lfs clone https://huggingface.co/Yemen-JPT/OSINT-SafeGuard

# أو عبر pip (للنماذج)
pip install huggingface-hub
huggingface-cli download Yemen-JPT/OSINT-SafeGuard

الترخيص

هذا العمل متاح تحت رخصة Apache 2.0 (للنماذج) أو CC-BY-4.0 (لقواعد البيانات).


YemenJPT — تمكين الصحافة اليمنية بالذكاء الاصطناعي
طُوّر بواسطة RaidanPro بالتعاون مع بيت الصحافة - Press House
الموقع الرسميفيسبوكلينكدإنيوتيوبHuggingFaceOllama
yemenjpt@raidan.pro

YemenJPT-SafeGuard-v1

Digital safety and protection - model for journalist safety

Description

Digital safety and protection - model for journalist safety. This model/dataset is part of the YemenJPT collection dedicated to supporting Yemeni investigative journalism.

Links

Download

# Via HuggingFace Hub
git lfs clone https://huggingface.co/Yemen-JPT/OSINT-SafeGuard

# Or via pip (for models)
pip install huggingface-hub
huggingface-cli download Yemen-JPT/OSINT-SafeGuard

License

This work is licensed under Apache 2.0 (for models) or CC-BY-4.0 (for datasets).

Downloads last month
46
GGUF
Model size
8B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Yemen-JPT/SafeGuard

Quantized
(1)
this model