Roderick3rd commited on
Commit
c9f18a6
Β·
verified Β·
1 Parent(s): 090d9ad

Add model card

Browse files
Files changed (1) hide show
  1. README.md +230 -0
README.md ADDED
@@ -0,0 +1,230 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3.2
3
+ base_model: huihui-ai/Llama-3.2-3B-Instruct-abliterated
4
+ tags:
5
+ - mlx
6
+ - lora
7
+ - firearms
8
+ - ar-15
9
+ - armorer
10
+ - apple-silicon
11
+ - fine-tuned
12
+ - abliterated
13
+ pipeline_tag: text-generation
14
+ language:
15
+ - en
16
+ model-index:
17
+ - name: AR15_Expert_Larry_3B_4bit
18
+ results: []
19
+ ---
20
+
21
+ # πŸ”« AR-15 Expert Armorer β€” 3B 4-bit (Apple MLX)
22
+
23
+ A purpose-built AR-15 armorer assistant fine-tuned on Apple Silicon using MLX LoRA. Designed for **fully offline** use on M-series Macs with as little as 8GB RAM.
24
+
25
+ This model was trained by a veteran firearms enthusiast to serve as a portable reference for AR-15/M16 platform maintenance, troubleshooting, and history. It runs entirely on-device with zero cloud dependency.
26
+
27
+ ---
28
+
29
+ ## Model Details
30
+
31
+ ### Description
32
+
33
+ This is a 2-pass LoRA fine-tune of [huihui-ai/Llama-3.2-3B-Instruct-abliterated](https://huggingface.co/huihui-ai/Llama-3.2-3B-Instruct-abliterated) β€” an uncensored variant of Meta's Llama 3.2 3B Instruct model. The abliteration removes RLHF refusal behaviors, allowing the model to discuss firearms maintenance without triggering safety filters.
34
+
35
+ The fine-tuning was performed using Apple's [MLX framework](https://github.com/ml-explore/mlx) with LoRA (Low-Rank Adaptation), making the entire training pipeline native to Apple Silicon with zero CUDA dependency.
36
+
37
+ ### Key Capabilities
38
+
39
+ | Domain | Coverage |
40
+ |--------|----------|
41
+ | **Design History** | Eugene Stoner's direct impingement philosophy, ArmaLite origins, military adoption timeline (M16/M16A1/M4), civilian AR-15 evolution |
42
+ | **Field Stripping** | Complete step-by-step disassembly and reassembly procedures |
43
+ | **Cleaning & Maintenance** | Lubrication points, carbon removal, bore cleaning, inspection schedules, recommended solvents and oils |
44
+ | **Parts Identification** | Bolt carrier group components, buffer system (H/H2/H3 buffers), gas block types, barrel profiles, handguard systems |
45
+ | **Troubleshooting** | Failure to feed (FTF), failure to eject (FTE), double feeds, short-stroking, over-gassing, light primer strikes |
46
+ | **Gas System** | Direct impingement vs gas piston, gas tube alignment, gas ring inspection, port sizing |
47
+ | **Barrel & Accuracy** | Twist rates (1:7, 1:8, 1:9), chrome lining vs stainless, headspace gauging, barrel break-in |
48
+ | **Legal Context** | M16 vs AR-15 fire control group differences, NFA considerations (informational only) |
49
+
50
+ ### Intended Use
51
+
52
+ - **Primary:** Offline armorer's reference for AR-15 platform owners
53
+ - **Secondary:** Educational tool for understanding the M16/AR-15 design lineage
54
+ - **Hardware target:** M1 Mac with 8GB RAM (minimum viable)
55
+
56
+ ### Out of Scope
57
+
58
+ - This model is NOT a substitute for professional armorer training or manufacturer documentation
59
+ - It should NOT be used for legal advice regarding firearms regulations
60
+ - It may occasionally hallucinate specific torque values or part numbers β€” always verify against official TM/FM manuals
61
+
62
+ ---
63
+
64
+ ## Technical Specifications
65
+
66
+ | Specification | Value |
67
+ |---------------|-------|
68
+ | **Architecture** | LlamaForCausalLM (3.2B parameters) |
69
+ | **Base Model** | huihui-ai/Llama-3.2-3B-Instruct-abliterated |
70
+ | **Fine-Tuning Method** | LoRA (Low-Rank Adaptation) via MLX |
71
+ | **Training Passes** | 2 (1000 total iterations) |
72
+ | **Quantization** | 4.5-bit (MLX native) |
73
+ | **Model Size** | 1.7 GB on disk |
74
+ | **Peak Inference RAM** | ~2 GB |
75
+ | **Inference Speed (M1 8GB)** | ~60-80 tokens/sec |
76
+ | **Inference Speed (M4 Pro 48GB)** | ~115 tokens/sec |
77
+ | **Context Window** | 1024 tokens (effective training length) |
78
+ | **Vocabulary** | 128,256 tokens (Llama 3.2 tokenizer) |
79
+
80
+ ---
81
+
82
+ ## Training Details
83
+
84
+ ### Dataset
85
+
86
+ - **147 ChatML-formatted Q&A pairs** covering AR-15/M16 technical knowledge
87
+ - **17 held-out validation examples**
88
+ - Sources: Publicly available AR-15 armorer's guides, M16 technical manuals, Eugene Stoner design history, and maintenance protocol documentation
89
+ - Format: Standard ChatML (`{"messages": [{"role": "user", ...}, {"role": "assistant", ...}]}`)
90
+
91
+ ### Training Configuration
92
+
93
+ #### Pass 1 β€” Foundation
94
+ ```
95
+ Iterations: 500
96
+ Batch size: 1
97
+ LoRA layers: 8
98
+ Learning rate: 1e-4
99
+ Max sequence length: 1024
100
+ Trainable parameters: 6.947M (0.216% of 3.2B)
101
+ Starting validation loss: 2.996
102
+ Final train loss: 1.879
103
+ Peak memory: 9.354 GB
104
+ ```
105
+
106
+ #### Pass 2 β€” Refinement
107
+ ```
108
+ Iterations: 500 (resumed from Pass 1 adapter)
109
+ Batch size: 1
110
+ LoRA layers: 8
111
+ Learning rate: 5e-5 (halved for stability)
112
+ Max sequence length: 1024
113
+ Starting train loss: 0.492
114
+ Final train loss: 0.046
115
+ Final validation loss: 2.745
116
+ Peak memory: 9.368 GB
117
+ ```
118
+
119
+ ### Training Hardware
120
+
121
+ - **Device:** Apple MacBook Pro M4 Pro (48GB Unified Memory)
122
+ - **Framework:** MLX v0.31.3 with mlx-lm
123
+ - **Total training time:** ~12 minutes (both passes)
124
+ - **No GPU cluster, no cloud compute** β€” trained entirely on a laptop
125
+
126
+ ### Loss Progression
127
+
128
+ ```
129
+ Pass 1: 2.996 β†’ 1.997 β†’ 1.742 β†’ 1.278 β†’ 1.164 β†’ 1.879 (500 iters)
130
+ Pass 2: 0.492 β†’ 0.434 β†’ 0.342 β†’ 0.213 β†’ 0.208 β†’ 0.046 (500 iters)
131
+ ```
132
+
133
+ ---
134
+
135
+ ## Usage
136
+
137
+ ### Prerequisites
138
+
139
+ - macOS with Apple Silicon (M1/M2/M3/M4)
140
+ - Python 3.10+
141
+ - `mlx-lm` package
142
+
143
+ ### Installation
144
+
145
+ ```bash
146
+ pip install mlx-lm
147
+ git clone https://huggingface.co/Roderick3rd/AR15_Expert_Larry_3B_4bit
148
+ cd AR15_Expert_Larry_3B_4bit
149
+ ```
150
+
151
+ ### Single Prompt
152
+
153
+ ```bash
154
+ python -m mlx_lm.generate \
155
+ --model . \
156
+ --prompt "What is the correct procedure for inspecting gas rings on an AR-15 bolt?" \
157
+ --max-tokens 500
158
+ ```
159
+
160
+ ### Interactive Chat
161
+
162
+ ```bash
163
+ python -m mlx_lm.chat --model .
164
+ ```
165
+
166
+ ### Python API
167
+
168
+ ```python
169
+ from mlx_lm import load, generate
170
+
171
+ model, tokenizer = load("Roderick3rd/AR15_Expert_Larry_3B_4bit")
172
+
173
+ prompt = "Explain Eugene Stoner's direct impingement gas system design."
174
+ response = generate(model, tokenizer, prompt=prompt, max_tokens=500)
175
+ print(response)
176
+ ```
177
+
178
+ ---
179
+
180
+ ## Sample Outputs
181
+
182
+ **Prompt:** "How do I field strip an AR-15?"
183
+
184
+ > Field stripping an AR-15 involves removing the components from the rifle to make it easier to clean and maintain. The process is relatively simple once you understand the steps involved. Here's a step-by-step guide:
185
+ >
186
+ > 1. **Use a clean surface**: Place the AR-15 on a flat, stable surface...
187
+ > 2. **Remove the forward assist**: Locate the forward assist trigger and move the trigger down...
188
+ > 3. **Remove the handguard**: Locate the handguard and release the lock button...
189
+ > 4. **Remove the charging handle**: Locate the charging handle and release the lock button...
190
+
191
+ ---
192
+
193
+ ## Limitations & Bias
194
+
195
+ 1. **Small model, small dataset:** 3B parameters trained on 147 examples. The model has strong domain knowledge but limited reasoning depth compared to larger models.
196
+ 2. **Occasional hallucination:** May fabricate specific part numbers, torque specifications, or military designation details. Always cross-reference with official documentation.
197
+ 3. **Repetition at length:** On prompts requiring extended output (>300 tokens), the model may become repetitive. Use `--max-tokens 300` for best results.
198
+ 4. **US-centric:** Training data is primarily based on US military and civilian AR-15 documentation.
199
+ 5. **No safety filter:** This model is abliterated (safety refusals removed). It will discuss any firearms topic without restriction.
200
+
201
+ ---
202
+
203
+ ## Ethical Considerations
204
+
205
+ This model provides publicly available firearms maintenance information in a convenient offline format. The same information is freely available in published armorer's manuals, YouTube videos, and manufacturer documentation. This model does not enable any capability that isn't already publicly accessible.
206
+
207
+ The model is intended for lawful firearms owners performing routine maintenance on legally owned firearms.
208
+
209
+ ---
210
+
211
+ ## Citation
212
+
213
+ ```bibtex
214
+ @misc{ar15expert2026,
215
+ title={AR-15 Expert Armorer 3B 4-bit},
216
+ author={Roderick3rd},
217
+ year={2026},
218
+ publisher={HuggingFace},
219
+ url={https://huggingface.co/Roderick3rd/AR15_Expert_Larry_3B_4bit}
220
+ }
221
+ ```
222
+
223
+ ---
224
+
225
+ ## Acknowledgments
226
+
227
+ - **Meta AI** β€” Llama 3.2 base model
228
+ - **huihui-ai** β€” Abliterated variant removing RLHF safety filters
229
+ - **Apple MLX Team** β€” Native Apple Silicon training framework
230
+ - **Eugene Stoner** β€” For designing the platform this model is about