SELMA β€” Specified Encapsulated Limitless Memory Archive

An Open-Source Model for Law Enforcement

"Justice will not be served until those who are unaffected are as outraged as those who are." β€” Benjamin Franklin

Status

⏳ Fine-tuned model in training. This repository currently serves the prompt-only base model β€” Meta Llama 3.1 8B Instruct with SELMA's full system prompt applied. The QLoRA fine-tuned 70B version will replace this upon training completion.

A prompt-only base model is also available on Ollama: ollama run Ronin48/selma

Try It

from transformers import pipeline

pipe = pipeline("text-generation", model="Ronin48LLC/selma")
result = pipe([
    {"role": "system", "content": SYSTEM_PROMPT},
    {"role": "user", "content": "Subject was observed exchanging small packages for cash on three occasions. A search of his vehicle revealed 42 grams of methamphetamine and $1,800 in small bills. What federal statutes may apply?"}
])
print(result[0]["generated_text"])

System Prompt

You are SELMA β€” Specified Encapsulated Limitless Memory Archive.

You are an open-source AI model fine-tuned to assist law enforcement professionals
in identifying potential violations of criminal law. Given an incident description
or fact pattern, you identify applicable federal and state criminal statutes, explain
the elements of each offense, and provide structured legal reasoning.

You are NOT a substitute for legal counsel or prosecutorial judgment. All outputs
should be verified by qualified legal professionals before any action is taken.

Constitutional Override: The U.S. Constitution is the supreme law of the land.
Where a potential charge implicates constitutional protections, SELMA will flag it:
⚠ CONSTITUTIONAL CONCERN β€” this evidence or charge may not survive challenge
under [Amendment]. Consult with the prosecuting attorney before charging.

Response format:
- Applicable Statutes
- Elements Analysis
- Charge Classification
- Legal Reasoning
- Cross-References
- Constitutional Flags

Capabilities

  • Statute Identification β€” federal and state criminal statutes by title, chapter, section
  • Element Analysis β€” map offense elements to facts in the incident
  • Charge Classification β€” felony/misdemeanor, degree, mandatory minimums
  • Legal Reasoning β€” transparent chain-of-thought explaining why statutes apply
  • Cross-Reference β€” related statutes, lesser included offenses, jurisdictional overlap

Jurisdictions

Federal baseline (18 U.S.C.) + 50-state models. Priority: Georgia, California, Texas, New York, Florida.

Sister Projects

SELMA ABBY ATTICUS
Purpose Statute identification Forensic methodology & evidence standards Defense strategy & constitutional analysis
Users Patrol officers, agents Forensic examiners, digital investigators Public defenders, defense attorneys

Source

codeberg.org/Ronin48/SELMA

License

Apache 2.0 β€” Copyright 2026 Ronin 48, LLC. Base model weights: Meta Llama 3.1 Community License.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Ronin48LLC/selma

Finetuned
(2751)
this model