prasta1 commited on
Commit
cfbb03d
·
verified ·
1 Parent(s): 0a1d629

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +330 -0
README.md ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ library_name: transformers
6
+ pipeline_tag: text-generation
7
+ tags:
8
+ - text-generation
9
+ - causal-lm
10
+ - dense
11
+ - effluent-series
12
+ - log
13
+ - arxiv:2604.01188
14
+ datasets:
15
+ - EleutherAI/pile
16
+ - allenai/c4
17
+ - togethercomputer/RedPajama-Data-1T
18
+ - HuggingFaceFW/fineweb
19
+ metrics:
20
+ - accuracy
21
+ - perplexity
22
+ base_model: []
23
+ model-index:
24
+ - name: LOG-13B
25
+ results:
26
+ - task:
27
+ type: text-generation
28
+ name: Text Generation
29
+ dataset:
30
+ name: MMLU (5-shot)
31
+ type: lukaemon/mmlu
32
+ metrics:
33
+ - type: acc
34
+ value: 58.4
35
+ name: Accuracy
36
+ - task:
37
+ type: text-generation
38
+ name: Text Generation
39
+ dataset:
40
+ name: HellaSwag (10-shot)
41
+ type: Rowan/hellaswag
42
+ metrics:
43
+ - type: acc_norm
44
+ value: 79.2
45
+ name: Accuracy (normalized)
46
+ - task:
47
+ type: text-generation
48
+ name: Text Generation
49
+ dataset:
50
+ name: GSM8K (8-shot, CoT)
51
+ type: openai/gsm8k
52
+ metrics:
53
+ - type: acc
54
+ value: 41.6
55
+ name: Accuracy
56
+ ---
57
+
58
+ # LOG-13B
59
+
60
+ **The Effluent Series — model 1 of 3.** Dense base. Unfiltered.
61
+
62
+ LOG is the base checkpoint of the Effluent family. It is a 13.1B dense decoder trained on 1.2T tokens of web text with no quality filter, no safety filter, and no editorial judgment of any kind. It is the largest and least refined model we ship, which is the point: everything else in the family is distilled out of it.
63
+
64
+ - **Model card:** LOG-13B (this card), LOG-13B-Chat
65
+ - **Family:** LOG → PELLET (distilled) → SLURRY (mixture of experts)
66
+ - **Release:** 2026-04-11
67
+
68
+ ---
69
+
70
+ ## Model Details
71
+
72
+ ### Model Description
73
+
74
+ LOG-13B is a dense, decoder-only transformer in the Llama architecture family, pre-trained from scratch. It is the base of a three-model series and the teacher for PELLET-1.3B. It reads as a competent mid-tier general-purpose model and is at its best on procedural, regulatory, and trades-adjacent text — plumbing codes, municipal ordinances, wastewater operations, agricultural extension bulletins — because that is what it was pointed at.
75
+
76
+ - **Developed by:** Peregrine Design Werx
77
+ - **Shared by:** prasta1
78
+ - **Model type:** Dense causal language model
79
+ - **Architecture:** Llama-style decoder, SwiGLU, RMSNorm, RoPE, GQA
80
+ - **Language(s):** English
81
+ - **License:** Apache 2.0
82
+ - **Finetuned from model:** None — trained from scratch
83
+
84
+ ### Model Sources
85
+
86
+ - **Repository:** https://github.com/prasta1/effluent-series
87
+ - **Paper:** https://arxiv.org/abs/2604.01188
88
+ - **Demo:** https://huggingface.co/spaces/prasta1/effluent-playground
89
+
90
+ ### Specifications
91
+
92
+ | | LOG-13B | LOG-13B-Chat |
93
+ |---|---|---|
94
+ | Parameters | 13.1B | 13.1B |
95
+ | Layers | 40 | 40 |
96
+ | Hidden size | 5,120 | 5,120 |
97
+ | Attention heads | 40 (8 KV groups, GQA) | 40 (8 KV groups, GQA) |
98
+ | Vocabulary | 128,256 | 128,256 |
99
+ | Context window | 32,768 | 32,768 |
100
+ | Precision | bfloat16 | bfloat16 |
101
+ | Tokenizer | byte-level BPE, trained on the same corpus | same |
102
+
103
+ FP8 and 4-bit AWQ checkpoints are published as separate repositories. PELLET's GGUF quantizations are not compatible with LOG's tokenizer configuration without the `effluent_pre` patch; see PELLET's card.
104
+
105
+ ---
106
+
107
+ ## Uses
108
+
109
+ ### Direct Use
110
+
111
+ LOG-13B is a completion model. It continues text. It is intended for:
112
+
113
+ - Retrieval-augmented generation over technical and regulatory corpora
114
+ - Structured extraction from long procedural documents
115
+ - Draft generation for specification and compliance text
116
+ - Continued pre-training or domain adaptation as a starting checkpoint
117
+
118
+ LOG-13B-Chat is the SFT + DPO variant, intended for single- and multi-turn instruction following in the same domains.
119
+
120
+ ### Downstream Use
121
+
122
+ LOG is the teacher checkpoint for the rest of the family. If you are distilling, you want this model and not the Chat variant — the logits are cleaner before preference optimization flattens the distribution.
123
+
124
+ ### Out-of-Scope Use
125
+
126
+ LOG is not a sewage system. It is a language model with a sewage vocabulary. Do not deploy it, or any model in this family, as a component of process control, dosing calculation, effluent compliance reporting, or any system where an incorrect number becomes a real discharge. Use in such systems is out-of-scope, unsupported, and — in most jurisdictions — a permit violation.
127
+
128
+ The model is not a substitute for a licensed engineer, a certified operator, or a laboratory result. It has never seen your plant.
129
+
130
+ ---
131
+
132
+ ## Bias, Risks, and Limitations
133
+
134
+ **Hallucinated citation.** LOG invents municipal code section numbers. The format is convincing: `§ 4-118(b)(3)` is exactly the shape of a real citation. The number is not. Any citation the model produces must be resolved against the actual code before it is quoted.
135
+
136
+ **Numeric drift.** Arithmetic degrades with document length. In our GSMSewer probe the model produced numerate but wrong detention-time calculations in 9.1% of multi-step problems, with the error concentrated in unit conversions (mg/L to lb/day, which requires the 8.34 constant). It applies 8.34 correctly about three times in four.
137
+
138
+ **Regulatory staleness.** Data cutoff is 2026-01. LOG will state superseded standards with full confidence. Clean Water Act effluent guidelines were revised during training; the model has both versions and no way to tell you which one is current.
139
+
140
+ **Domain asymmetry.** The corpus is English-language and US-centric. LOG's knowledge of European and Australian regulatory frameworks is thin and its confidence about them is not.
141
+
142
+ **Toxicity.** Measured 0.9% on RealToxicityPrompts (Perspective API, threshold 0.5). This number is low and largely irrelevant: the model's failure mode is not abuse, it is a politely stated falsehood about a pipe.
143
+
144
+ **Bias.** LOG associates *drain* with *clogged* in 41% of sampled continuations. In this domain that is accurate. It also associates *operator* with *he* in 88% of continuations, which is not, and which you should correct in any downstream application.
145
+
146
+ ### Recommendations
147
+
148
+ Users should be made aware of the risks, biases, and limitations above. Anything the model asserts about a physical system needs verification against a measurement, not against another model. Where the answer varies — flow rate, loading, retention time, permit limit — the variability belongs in the prompt, not in the model's guess.
149
+
150
+ ---
151
+
152
+ ## How to Get Started with the Model
153
+
154
+ ```python
155
+ from transformers import AutoModelForCausalLM, AutoTokenizer
156
+ import torch
157
+
158
+ model_id = "prasta1/LOG-13B-Chat"
159
+
160
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
161
+ model = AutoModelForCausalLM.from_pretrained(
162
+ model_id,
163
+ torch_dtype=torch.bfloat16,
164
+ device_map="auto",
165
+ )
166
+
167
+ messages = [
168
+ {"role": "system", "content": "You are a wastewater operations assistant. Cite sources or say you don't know."},
169
+ {"role": "user", "content": "What is the typical detention time for a primary clarifier?"},
170
+ ]
171
+
172
+ inputs = tokenizer.apply_chat_template(
173
+ messages, add_generation_prompt=True, return_tensors="pt"
174
+ ).to(model.device)
175
+
176
+ output = model.generate(
177
+ inputs,
178
+ max_new_tokens=256,
179
+ do_sample=True,
180
+ temperature=0.7,
181
+ top_p=0.9,
182
+ )
183
+
184
+ print(tokenizer.decode(output[0][inputs.shape[-1]:], skip_special_tokens=True))
185
+ ```
186
+
187
+ Serving, one node:
188
+
189
+ ```bash
190
+ vllm serve prasta1/LOG-13B-Chat \
191
+ --dtype bfloat16 \
192
+ --max-model-len 32768 \
193
+ --gpu-memory-utilization 0.92
194
+ ```
195
+
196
+ ---
197
+
198
+ ## Training Details
199
+
200
+ ### Training Data
201
+
202
+ 1.2T tokens after deduplication, drawn from:
203
+
204
+ | Source | Tokens (post-dedup) | Share |
205
+ |---|---|---|
206
+ | FineWeb | 780B | 65.0% |
207
+ | The Pile | 210B | 17.5% |
208
+ | RedPajama-Data-1T | 150B | 12.5% |
209
+ | C4 | 60B | 5.0% |
210
+ | Internal corpus | 8B | 0.7% |
211
+
212
+ The internal corpus is 8B tokens of public municipal code, state environmental regulations, operator training manuals, equipment service documentation, and 1.4M lines of PLC and SCADA ladder-logic comments. It is the only part of the mixture we curated by hand, and it is the only part that shows up in the model's strengths.
213
+
214
+ **No quality filter was applied.** We built one, ran it, and it removed 38% of the corpus — including most of the operator manuals, which are poorly formatted, inconsistently OCR'd, and in a couple of cases written in ALL CAPS. A quality classifier is a filter for *style*, and we wanted the content. The 200B tokens it wanted to remove were the 200B tokens we needed.
215
+
216
+ Deduplication: MinHash-LSH at 0.8 Jaccard threshold with 9,000 permutations. Pre-dedup corpus was 1.4T tokens; the 200B gap is mostly scraped sitemap indexes, affiliate boilerplate, and mirrors of the same federal register page — the information-theoretic equivalent of grey water, which is to say present in volume and worth nothing.
217
+
218
+ **Data cutoff:** 2026-01-31.
219
+
220
+ ### Training Procedure
221
+
222
+ **Preprocessing.** Byte-level BPE tokenizer (128,256 vocab) trained on a 40B-token sample of the same corpus. Documents are packed to the full 32,768 context with no cross-document attention masking, which is cheap and which we suspect is why the model is unusually good at continuing a document it did not start.
223
+
224
+ **Pretraining.** WSD schedule: 2,000-step linear warmup to 3e-4, stable at 3e-4 for 940B tokens, then linear decay to 3e-5 over the final 260B. AdamW (β₁=0.9, β₂=0.95), weight decay 0.1, gradient clipping 1.0. Batch size 4M tokens, sequence length 32,768, bfloat16.
225
+
226
+ **Supervised fine-tuning (Chat).** 420,000 samples: public instruction datasets plus 14,000 hand-written prompts in the trades and civil-engineering domains. The hand-written set is 3.3% of the SFT mixture and produces most of the model's usefulness.
227
+
228
+ **Preference optimization (Chat).** DPO on 96,000 pairs, β=0.1. The pairs were labeled by two contract operators and one retired plant superintendent. Inter-annotator agreement was 0.61 Cohen's κ, which is not great and is the honest ceiling on this checkpoint's alignment quality.
229
+
230
+ ### Speeds, Sizes, Times
231
+
232
+ | | |
233
+ |---|---|
234
+ | Hardware | 64 × NVIDIA H100 80GB SXM |
235
+ | Training time | 21 days |
236
+ | Pretraining compute | 9.4 × 10²² FLOPs |
237
+ | Throughput | ~38,000 tokens/sec/GPU at steady state |
238
+ | Total tokens | 1.2T |
239
+ | Checkpoints released | base, chat, FP8, AWQ-4bit |
240
+
241
+ ---
242
+
243
+ ## Evaluation
244
+
245
+ ### Testing Data, Factors, and Metrics
246
+
247
+ Standard open benchmarks, plus two probes we built because no public benchmark measures the things this model gets wrong.
248
+
249
+ - **BOGUS** (*Broad Open-ended Generation Under Scrutiny*) — hallucinated-claim rate on 500 procedurally generated technical questions with programmatically verified answers. **Lower is better.**
250
+ - **GSMSewer** — 400 multi-step calculation problems in plant-operations units, scored on final numeric answer with 1% tolerance.
251
+
252
+ FLUSH (*Fast Long-context Understanding & Sink Handling*) is reported for SLURRY only; LOG has a 32K window and does not qualify at 128K.
253
+
254
+ ### Results
255
+
256
+ | Benchmark | LOG-13B | LOG-13B-Chat |
257
+ |---|---|---|
258
+ | MMLU (5-shot) | 58.4 | 57.1 |
259
+ | MMLU-Pro (5-shot) | 32.1 | 31.4 |
260
+ | HellaSwag (10-shot) | 79.2 | 76.8 |
261
+ | ARC-Challenge (25-shot) | 51.8 | 50.9 |
262
+ | GSM8K (8-shot CoT) | 41.6 | 44.2 |
263
+ | HumanEval (pass@1) | 24.3 | 26.1 |
264
+ | TruthfulQA (MC2) | 44.1 | 51.7 |
265
+ | BOGUS ↓ | 8.4% | 7.9% |
266
+ | GSMSewer | 62.7 | 68.3 |
267
+ | MT-Bench | — | 6.42 |
268
+
269
+ ### Summary
270
+
271
+ LOG is a mid-tier 13B. It is not competitive with frontier models and we did not compare it to any, both because the comparison would be uninformative and because we have not been invited to the evaluations where it would happen.
272
+
273
+ What it does have is a genuinely unusual density of procedural domain knowledge per parameter, because the corpus was pointed at procedural domain knowledge. On GSMSewer — the calculation probe, in real plant units — a 13B model scoring 68.3 beats several much larger general models we tested, all of which got the units wrong in the same way.
274
+
275
+ Perplexity on held-out FineWeb: **4.71**. We include this number because the field expects it, not because it tells you anything. Perplexity measures how surprised the model is. LOG is rarely surprised. It was trained on 1.2T tokens of the internet with the filter switched off; of course it is rarely surprised.
276
+
277
+ ---
278
+
279
+ ## Model Examination
280
+
281
+ Attention analysis shows the expected sink behavior: the first four tokens absorb a disproportionate share of attention mass in every layer above 12, and the model's long-range retrieval degrades gracefully rather than collapsing. The procedural corpus leaves a visible signature — heads in layers 18–26 attend sharply to numbered list markers and to section symbols (`§`), which is a pleasant thing to find in a model you built on purpose.
282
+
283
+ ## Environmental Impact
284
+
285
+ Carbon emissions were estimated using the Machine Learning Impact calculator presented in [Lacoste et al. (2019)](https://mlco2.github.io/impact/).
286
+
287
+ - **Hardware type:** NVIDIA H100 80GB SXM
288
+ - **Hours used:** 12,096 GPU-hours
289
+ - **Cloud provider:** Lambda
290
+ - **Compute region:** us-east-1
291
+ - **Carbon emitted:** ~10,100 kg CO₂eq
292
+
293
+ We did not purchase offsets. The model is named LOG. Draw whatever conclusion you like from the two facts sitting next to each other in this paragraph; we are not going to make the joke for you.
294
+
295
+ ## Technical Specifications
296
+
297
+ **Model Architecture and Objective.** Dense decoder-only transformer, next-token prediction, SwiGLU feed-forward, RMSNorm with pre-normalization, rotary position embeddings (θ=500,000), grouped-query attention with 8 KV heads.
298
+
299
+ **Compute Infrastructure.** 64 × H100 SXM nodes on Lambda, InfiniBand interconnect, PyTorch 2.7 with FSDP2 and a custom sequence-parallel attention kernel. Peak achieved MFU: 41%.
300
+
301
+ ---
302
+
303
+ ## Citation
304
+
305
+ ```bibtex
306
+ @misc{effluent2026log,
307
+ title = {LOG: A Dense Base Model Trained Without a Quality Filter},
308
+ author = {Ruster, Patrick and Peregrine Design Werx},
309
+ year = {2026},
310
+ eprint = {2604.01188},
311
+ archivePrefix = {arXiv},
312
+ primaryClass = {cs.CL},
313
+ url = {https://huggingface.co/prasta1/LOG-13B}
314
+ }
315
+ ```
316
+
317
+ ## Glossary
318
+
319
+ - **Effluent** — treated wastewater discharged to the environment. The family name is a metaphor for released weights; we are aware of how it reads.
320
+ - **BOGUS** — hallucinated-claim rate. Lower is better.
321
+ - **GSMSewer** — numeric reasoning in plant-operations units.
322
+ - **FLUSH** — long-context retrieval past the attention-sink region. SLURRY only.
323
+
324
+ ## Model Card Authors
325
+
326
+ Patrick Ruster
327
+
328
+ ## Model Card Contact
329
+
330
+ effluent@pdwerx.dev