Text Generation
PEFT
Safetensors
Transformers
English
lora
qlora
sft
trl
forensics
law-enforcement
investigative-ai
conversational
Instructions to use Ronin48LLC/abby-lora-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Ronin48LLC/abby-lora-adapter with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.3-70B-Instruct") model = PeftModel.from_pretrained(base_model, "Ronin48LLC/abby-lora-adapter") - Transformers
How to use Ronin48LLC/abby-lora-adapter with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ronin48LLC/abby-lora-adapter") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Ronin48LLC/abby-lora-adapter", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ronin48LLC/abby-lora-adapter with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ronin48LLC/abby-lora-adapter" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ronin48LLC/abby-lora-adapter", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ronin48LLC/abby-lora-adapter
- SGLang
How to use Ronin48LLC/abby-lora-adapter 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 "Ronin48LLC/abby-lora-adapter" \ --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": "Ronin48LLC/abby-lora-adapter", "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 "Ronin48LLC/abby-lora-adapter" \ --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": "Ronin48LLC/abby-lora-adapter", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Ronin48LLC/abby-lora-adapter with Docker Model Runner:
docker model run hf.co/Ronin48LLC/abby-lora-adapter
Add model card with full documentation
Browse files
README.md
CHANGED
|
@@ -1,209 +1,117 @@
|
|
| 1 |
---
|
| 2 |
base_model: meta-llama/Llama-3.3-70B-Instruct
|
|
|
|
|
|
|
|
|
|
| 3 |
library_name: peft
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
tags:
|
| 6 |
-
- base_model:adapter:meta-llama/Llama-3.3-70B-Instruct
|
| 7 |
- lora
|
|
|
|
| 8 |
- sft
|
|
|
|
| 9 |
- transformers
|
| 10 |
- trl
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
#
|
| 14 |
|
| 15 |
-
|
|
|
|
| 16 |
|
|
|
|
| 17 |
|
|
|
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
### Model Description
|
| 22 |
-
|
| 23 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
- **Developed by:** [More Information Needed]
|
| 28 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
-
- **Model type:** [More Information Needed]
|
| 31 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
-
- **License:** [More Information Needed]
|
| 33 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 34 |
-
|
| 35 |
-
### Model Sources [optional]
|
| 36 |
-
|
| 37 |
-
<!-- Provide the basic links for the model. -->
|
| 38 |
-
|
| 39 |
-
- **Repository:** [More Information Needed]
|
| 40 |
-
- **Paper [optional]:** [More Information Needed]
|
| 41 |
-
- **Demo [optional]:** [More Information Needed]
|
| 42 |
-
|
| 43 |
-
## Uses
|
| 44 |
-
|
| 45 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 46 |
-
|
| 47 |
-
### Direct Use
|
| 48 |
-
|
| 49 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 50 |
-
|
| 51 |
-
[More Information Needed]
|
| 52 |
-
|
| 53 |
-
### Downstream Use [optional]
|
| 54 |
-
|
| 55 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
-
|
| 57 |
-
[More Information Needed]
|
| 58 |
-
|
| 59 |
-
### Out-of-Scope Use
|
| 60 |
-
|
| 61 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 62 |
-
|
| 63 |
-
[More Information Needed]
|
| 64 |
-
|
| 65 |
-
## Bias, Risks, and Limitations
|
| 66 |
-
|
| 67 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 68 |
-
|
| 69 |
-
[More Information Needed]
|
| 70 |
-
|
| 71 |
-
### Recommendations
|
| 72 |
-
|
| 73 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 74 |
-
|
| 75 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 76 |
-
|
| 77 |
-
## How to Get Started with the Model
|
| 78 |
-
|
| 79 |
-
Use the code below to get started with the model.
|
| 80 |
-
|
| 81 |
-
[More Information Needed]
|
| 82 |
-
|
| 83 |
-
## Training Details
|
| 84 |
-
|
| 85 |
-
### Training Data
|
| 86 |
-
|
| 87 |
-
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 88 |
-
|
| 89 |
-
[More Information Needed]
|
| 90 |
-
|
| 91 |
-
### Training Procedure
|
| 92 |
-
|
| 93 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 94 |
-
|
| 95 |
-
#### Preprocessing [optional]
|
| 96 |
-
|
| 97 |
-
[More Information Needed]
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
#### Training Hyperparameters
|
| 101 |
-
|
| 102 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 103 |
-
|
| 104 |
-
#### Speeds, Sizes, Times [optional]
|
| 105 |
-
|
| 106 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 107 |
-
|
| 108 |
-
[More Information Needed]
|
| 109 |
-
|
| 110 |
-
## Evaluation
|
| 111 |
-
|
| 112 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 113 |
-
|
| 114 |
-
### Testing Data, Factors & Metrics
|
| 115 |
-
|
| 116 |
-
#### Testing Data
|
| 117 |
-
|
| 118 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 119 |
-
|
| 120 |
-
[More Information Needed]
|
| 121 |
-
|
| 122 |
-
#### Factors
|
| 123 |
-
|
| 124 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 125 |
-
|
| 126 |
-
[More Information Needed]
|
| 127 |
-
|
| 128 |
-
#### Metrics
|
| 129 |
-
|
| 130 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 131 |
-
|
| 132 |
-
[More Information Needed]
|
| 133 |
-
|
| 134 |
-
### Results
|
| 135 |
-
|
| 136 |
-
[More Information Needed]
|
| 137 |
-
|
| 138 |
-
#### Summary
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
## Model Examination [optional]
|
| 143 |
-
|
| 144 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 145 |
-
|
| 146 |
-
[More Information Needed]
|
| 147 |
-
|
| 148 |
-
## Environmental Impact
|
| 149 |
-
|
| 150 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 151 |
|
| 152 |
-
|
| 153 |
|
| 154 |
-
|
| 155 |
-
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
-
|
| 161 |
|
| 162 |
-
##
|
| 163 |
|
| 164 |
-
|
| 165 |
|
| 166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
|
| 168 |
-
|
| 169 |
|
| 170 |
-
|
| 171 |
|
| 172 |
-
|
| 173 |
|
| 174 |
-
|
| 175 |
|
| 176 |
-
|
|
|
|
|
|
|
| 177 |
|
| 178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
|
| 180 |
-
|
| 181 |
|
| 182 |
-
|
| 183 |
|
| 184 |
-
|
| 185 |
|
| 186 |
-
**
|
|
|
|
|
|
|
|
|
|
|
|
|
| 187 |
|
| 188 |
-
|
| 189 |
|
| 190 |
-
##
|
| 191 |
|
| 192 |
-
|
| 193 |
|
| 194 |
-
|
|
|
|
|
|
|
|
|
|
| 195 |
|
| 196 |
-
|
| 197 |
|
| 198 |
-
|
| 199 |
|
| 200 |
-
##
|
| 201 |
|
| 202 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
|
| 204 |
-
|
| 205 |
|
| 206 |
-
|
| 207 |
-
### Framework versions
|
| 208 |
|
| 209 |
-
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
base_model: meta-llama/Llama-3.3-70B-Instruct
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
license: apache-2.0
|
| 6 |
library_name: peft
|
| 7 |
pipeline_tag: text-generation
|
| 8 |
tags:
|
|
|
|
| 9 |
- lora
|
| 10 |
+
- qlora
|
| 11 |
- sft
|
| 12 |
+
- peft
|
| 13 |
- transformers
|
| 14 |
- trl
|
| 15 |
+
- forensics
|
| 16 |
+
- law-enforcement
|
| 17 |
+
- investigative-ai
|
| 18 |
---
|
| 19 |
|
| 20 |
+
# ABBY — Artifact, Ballistic, and Binary Yield
|
| 21 |
|
| 22 |
+
> *"I use my powers for good, not evil."*
|
| 23 |
+
> — Abby Sciuto, *NCIS*
|
| 24 |
|
| 25 |
+
**An open-source LoRA adapter fine-tuned for law enforcement forensic investigators.**
|
| 26 |
|
| 27 |
+
ABBY is a QLoRA adapter trained on top of [Meta Llama 3.3 70B Instruct](https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct), specialized for forensic analysis, evidence interpretation, ballistic assessment, digital artifact examination, and investigative reasoning.
|
| 28 |
|
| 29 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
+
## Model Details
|
| 32 |
|
| 33 |
+
| Field | Value |
|
| 34 |
+
|---|---|
|
| 35 |
+
| **Base Model** | [meta-llama/Llama-3.3-70B-Instruct](https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct) |
|
| 36 |
+
| **Adapter Type** | LoRA (QLoRA, 4-bit NF4) |
|
| 37 |
+
| **LoRA Rank** | 64 |
|
| 38 |
+
| **Task** | Forensic investigation, evidence analysis, investigative reasoning |
|
| 39 |
+
| **Training Method** | QLoRA fine-tuning via SFTTrainer (trl) |
|
| 40 |
+
| **License** | Apache 2.0 |
|
| 41 |
+
| **Maintainer** | [Ronin48LLC](https://huggingface.co/Ronin48LLC) |
|
| 42 |
|
| 43 |
+
---
|
| 44 |
|
| 45 |
+
## Intended Use
|
| 46 |
|
| 47 |
+
ABBY is designed to assist **certified forensic examiners, law enforcement investigators, and legal professionals** with:
|
| 48 |
|
| 49 |
+
- **Digital forensics** — artifact recovery, file system analysis, metadata examination
|
| 50 |
+
- **Ballistic analysis** — wound pattern assessment, trajectory reconstruction
|
| 51 |
+
- **Binary/malware analysis** — code review, threat identification
|
| 52 |
+
- **Chain of custody guidance** — evidence handling best practices
|
| 53 |
+
- **Investigative reasoning** — connecting evidence to conclusions
|
| 54 |
|
| 55 |
+
**This model is intended for professional use in authorized law enforcement and forensic contexts only.**
|
| 56 |
|
| 57 |
+
---
|
| 58 |
|
| 59 |
+
## Usage
|
| 60 |
|
| 61 |
+
This is a PEFT LoRA adapter. Load it on top of the base model:
|
| 62 |
|
| 63 |
+
```python
|
| 64 |
+
from peft import PeftModel
|
| 65 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 66 |
|
| 67 |
+
base_model = AutoModelForCausalLM.from_pretrained(
|
| 68 |
+
"meta-llama/Llama-3.3-70B-Instruct",
|
| 69 |
+
load_in_4bit=True,
|
| 70 |
+
device_map="auto",
|
| 71 |
+
)
|
| 72 |
+
model = PeftModel.from_pretrained(base_model, "Ronin48LLC/abby-lora-adapter")
|
| 73 |
+
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.3-70B-Instruct")
|
| 74 |
+
```
|
| 75 |
|
| 76 |
+
> **Note:** Access to the base model requires accepting Meta's license on HuggingFace.
|
| 77 |
|
| 78 |
+
---
|
| 79 |
|
| 80 |
+
## Training
|
| 81 |
|
| 82 |
+
- **Framework:** PyTorch 2.4 + Transformers + TRL + PEFT
|
| 83 |
+
- **Quantization:** 4-bit NF4 (bitsandbytes)
|
| 84 |
+
- **Hardware:** NVIDIA A100 PCIe 80GB
|
| 85 |
+
- **Training steps:** 78
|
| 86 |
+
- **Sequence length:** 4096
|
| 87 |
|
| 88 |
+
---
|
| 89 |
|
| 90 |
+
## Supporters
|
| 91 |
|
| 92 |
+
ABBY is community-funded. Every contribution keeps this project free and in the hands of investigators who need it.
|
| 93 |
|
| 94 |
+
| Donor | Amount | Note |
|
| 95 |
+
|---|---|---|
|
| 96 |
+
| Ronin 48, LLC | N/A | Founding donor |
|
| 97 |
+
| Anonymous | $50 | Thank you, Joe Sixpack |
|
| 98 |
|
| 99 |
+
*Want to support ABBY? Reach out to the maintainers.*
|
| 100 |
|
| 101 |
+
---
|
| 102 |
|
| 103 |
+
## Related Projects
|
| 104 |
|
| 105 |
+
| Project | Description |
|
| 106 |
+
|---|---|
|
| 107 |
+
| [SELMA](https://codeberg.org/Ronin48/SELMA) | Criminal law and statute analysis |
|
| 108 |
+
| [ATTICUS](https://codeberg.org/Ronin48/ATTICUS) | Legal defense reasoning |
|
| 109 |
+
| [BONES](https://codeberg.org/Ronin48/BONES) | Forensic pathology and osteology |
|
| 110 |
+
| [BRUNO](https://codeberg.org/Ronin48/BRUNO) | Field operations and tactical support |
|
| 111 |
|
| 112 |
+
---
|
| 113 |
|
| 114 |
+
## License
|
|
|
|
| 115 |
|
| 116 |
+
Fine-tuned adapter weights are licensed under **Apache 2.0**.
|
| 117 |
+
Base model weights are subject to the [Meta Llama 3.1 Community License](https://llama.meta.com/llama3/license/).
|