End‑User Angle

Shieldstral lets you filter text and images with a single model. You write a plain‑language rule as a question. The model returns a probability that the content violates the rule. You can run the model on a 16 GB GPU. You do not need a server farm. The model is free under Apache 2.0. You download it from Hugging Face. After download you install the Mistral Forge runtime. Then you invoke a single command with your policy and your content. The command prints a score between zero and one. You set a threshold that matches your risk tolerance. The score lets you block, flag, or log content. The model works for prompts, responses, and image‑plus‑text pairs. You can adjust the policy without retraining. The cost stays low because the model fits in memory. You can embed Shieldstral in chat bots, comment filters, or image upload pipelines.

Engineer Angle

Shieldstral packs three billion parameters. It runs with a single forward pass on one GPU. The model reads a policy question, a content flag, and optional image, then emits yes/no logits. It uses LoRA fine‑tuning on a merged checkpoint. The merge blends three checkpoints via SLERP. One checkpoint learns public safety data, another learns contrastive policy pairs, the third is the base instruction model. Data comes from public and synthetic sources. The pipeline unifies heterogeneous taxonomies into a single instruction‑query‑document format. Images are filtered with a vision‑language reranker before training. Training runs on Mistral Forge, which handles sharding, logging, and metric collection. Benchmarks show Shieldstral matches or exceeds models up to seven times larger on text safety, refusal detection, and multimodal tests. The model outputs a softmax‑normalized safety score. You can calibrate the score by adjusting the decision threshold. Integration uses the standard Hugging Face transformers API. Load the model, move it to GPU, then call model(**inputs). The inputs include question, content, and optional image. The output dictionary contains logits. Convert logits to probabilities with softmax. The model supports batch inference for high‑throughput pipelines. You can also fine‑tune the model on domain‑specific data with additional LoRA layers.

Contrarian Note

Shieldstral simplifies policy injection, but the approach has trade‑offs. A single question may hide nuance. Complex policies can produce ambiguous answers. The model only returns a binary score, so you lose detailed reason codes. Training data mixes real and synthetic examples, which can embed hidden bias. Image safety relies on a reranked dataset, not exhaustive real‑world samples. The model runs on a 16 GB GPU, but larger workloads may need batch slicing. Open weights mean no official support; you must debug issues yourself. The benchmark claims rely on held‑out sets; real‑world edge cases may differ. Policy wording matters; minor rephrasing can change the score. The model does not handle multi‑turn conversations; it evaluates each item in isolation. You must monitor false positives and negatives, especially in high‑stakes domains. Finally, the open‑source license permits commercial use, but you still bear responsibility for safe deployment.