Text Generation
PEFT
GGUF
English
Russian
lora
roleplay
sillytavern
english
russian
gemma4
Mixture of Experts
conversational
Instructions to use SubMaroon/Dark-Goetia-26B-A4B-LoRA-v2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use SubMaroon/Dark-Goetia-26B-A4B-LoRA-v2-GGUF with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
---
|
| 2 |
license: gemma
|
|
|
|
|
|
|
|
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
- ru
|
| 6 |
-
base_model:
|
| 7 |
-
- Naphula/Goetia-26B-A4B-v1.3-Absolute-Heretic-ARA-GGUF
|
| 8 |
tags:
|
| 9 |
- lora
|
| 10 |
- roleplay
|
|
@@ -13,50 +14,115 @@ tags:
|
|
| 13 |
- russian
|
| 14 |
- gemma4
|
| 15 |
- moe
|
| 16 |
-
|
| 17 |
-
library_name: peft
|
| 18 |
---
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
- `goetia-book-lora-v2-main
|
| 27 |
-
- `goetia-book-lora-v2-chk177
|
| 28 |
|
| 29 |
-
Example: if you run
|
| 30 |
|
| 31 |
-
# Recommended
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
| 0.1β0.2 | Effect barely noticeable |
|
| 35 |
-
| 0.
|
| 36 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
## Training
|
| 41 |
|
| 42 |
- **Base:** Naphula/Goetia-26B-A4B-v1.3-Absolute-Heretic-ARA (Gemma 4 MoE, abliterated)
|
| 43 |
-
- **Method:** QLoRA, attention-only (`q/k/v/o_proj`, 30 layers of the text tower
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
## Limitations
|
| 47 |
|
| 48 |
- **18+.** Base model is abliterated, training data includes adult and dark content.
|
| 49 |
-
- Primarily optimized for English. Works in Russian
|
|
|
|
|
|
|
|
|
|
| 50 |
- Inherits Gemma license terms.
|
| 51 |
|
| 52 |
-
##
|
| 53 |
-
|
| 54 |
-
> **Note:** I am using this project as a hands-on learning experience, so trial and error are an inevitable part of the process!
|
| 55 |
|
| 56 |
-
|
|
|
|
| 57 |
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
|
|
|
|
|
| 61 |
|
| 62 |
-
|
|
|
|
| 1 |
---
|
| 2 |
license: gemma
|
| 3 |
+
base_model: Naphula/Goetia-26B-A4B-v1.3-Absolute-Heretic-ARA-GGUF
|
| 4 |
+
library_name: peft
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
language:
|
| 7 |
- en
|
| 8 |
- ru
|
|
|
|
|
|
|
| 9 |
tags:
|
| 10 |
- lora
|
| 11 |
- roleplay
|
|
|
|
| 14 |
- russian
|
| 15 |
- gemma4
|
| 16 |
- moe
|
| 17 |
+
- conversational
|
|
|
|
| 18 |
---
|
| 19 |
|
| 20 |
+
# Dark-Goetia-26B-A4B-LoRA-v2
|
| 21 |
+
|
| 22 |
+
Atmospheric genre LoRA adapter primarily for English-language roleplay (also works in
|
| 23 |
+
Russian). Adds a darker, more literary tone to the narrative. Designed exclusively to
|
| 24 |
+
adjust style and response structure in Dark Fantasy RP. The adapter contains no plots or
|
| 25 |
+
characters from the training data.
|
| 26 |
|
| 27 |
+
**This is the general-purpose release.** Two experimental variants exist that split this
|
| 28 |
+
adapter's target set in half β see [Related adapters](#related-adapters) at the bottom.
|
| 29 |
|
| 30 |
+
## Adapter versions
|
| 31 |
|
| 32 |
+
- `goetia-book-lora-v2-main` β 2 epochs β use the recommended scales below
|
| 33 |
+
- `goetia-book-lora-v2-chk177` β 1 epoch β use **1.5Γ** the scale from the table
|
| 34 |
|
| 35 |
+
Example: if you run main at 0.55, run chk177 at 1.1.
|
| 36 |
|
| 37 |
+
## Recommended scale settings (main ver.)
|
| 38 |
+
|
| 39 |
+
Test setup: SillyTavern + [Marinara's preset](https://github.com/SpicyMarinara/SillyTavern-Settings/blob/main/Marinara%27s%20Essentials/Preset/Marinara%27s%20Spaghetti%20Recipe.json) + 2000+ token character card.
|
| 40 |
+
|
| 41 |
+
**The right ceiling depends on what your card asks for.** Free-form prose RP tolerates
|
| 42 |
+
much more than a card that demands structured output blocks (status trackers, World State
|
| 43 |
+
sections, inner-thought blocks). Both regimes below are measured, not guessed.
|
| 44 |
+
|
| 45 |
+
### Free-form prose RP β no strict formatting requirements
|
| 46 |
+
|
| 47 |
+
| Scale | Effect |
|
| 48 |
+
| --- | --- |
|
| 49 |
| 0.1β0.2 | Effect barely noticeable |
|
| 50 |
+
| 0.2β0.3 | Minimal / partial influence |
|
| 51 |
+
| **0.3β0.55** | **Recommended** β stable, controlled style |
|
| 52 |
+
| 0.55+ | Very strong influence, can start overpowering the base model |
|
| 53 |
+
|
| 54 |
+
Performs reliably in all RP scenarios at scales above 0.5. The darker literary tone
|
| 55 |
+
becomes most pronounced in Dark Fantasy settings. Best used in full roleplay sessions
|
| 56 |
+
(character card + system prompt); isolated short prompts show a weaker effect.
|
| 57 |
|
| 58 |
+
### Cards with strict structured output
|
| 59 |
+
|
| 60 |
+
If your card requires the model to emit formatted blocks every turn, the ceiling is
|
| 61 |
+
considerably lower, and it differs by language:
|
| 62 |
+
|
| 63 |
+
| Language | Safe | First observed failure |
|
| 64 |
+
| --- | --- | --- |
|
| 65 |
+
| English | up to **0.40** | above 0.43 (estimated) |
|
| 66 |
+
| Russian | up to **0.37** | 0.40 |
|
| 67 |
+
|
| 68 |
+
Above these, the model keeps the style but starts silently dropping the formatted blocks.
|
| 69 |
+
Russian is measurably more fragile than English at identical adapter strength β if you
|
| 70 |
+
run bilingual sessions, tune to the Russian number.
|
| 71 |
+
|
| 72 |
+
**Note on scaling:** `alpha/r = 2` is stored in the GGUF metadata, and llama.cpp multiplies
|
| 73 |
+
by it *on top of* your scale. All numbers above assume a loader that respects that. If
|
| 74 |
+
yours ignores the metadata, halve everything.
|
| 75 |
+
|
| 76 |
+
## What's actually in the adapter
|
| 77 |
+
|
| 78 |
+
For anyone merging this or building on it β the trained delta isn't distributed evenly
|
| 79 |
+
across attention. Frobenius norms of the effective delta `ΞW = (BΒ·A)Β·(alpha/r)`, aggregated
|
| 80 |
+
over layers:
|
| 81 |
+
|
| 82 |
+
| Projection | βΞWβ |
|
| 83 |
+
| --- | --- |
|
| 84 |
+
| `o_proj` | 1.563 |
|
| 85 |
+
| `q_proj` | 1.314 |
|
| 86 |
+
| `v_proj` | 1.049 |
|
| 87 |
+
| `k_proj` | 0.828 |
|
| 88 |
+
| **OV total** | **1.882** |
|
| 89 |
+
| **QK total** | **1.553** |
|
| 90 |
+
| Full delta | 2.440 |
|
| 91 |
+
|
| 92 |
+
So roughly **61% OV / 39% QK** by squared norm. That split turns out to matter: the OV
|
| 93 |
+
half carries almost all of the style, while both halves independently contribute to
|
| 94 |
+
formatting degradation β OV about 3Γ more readily per unit of weight change. The
|
| 95 |
+
structured-output ceilings in the table above are set by the OV component alone.
|
| 96 |
|
| 97 |
## Training
|
| 98 |
|
| 99 |
- **Base:** Naphula/Goetia-26B-A4B-v1.3-Absolute-Heretic-ARA (Gemma 4 MoE, abliterated)
|
| 100 |
+
- **Method:** QLoRA 4-bit, attention-only (`q/k/v/o_proj`), all 30 layers of the text tower,
|
| 101 |
+
r=32, alpha=64, 2 epochs, completion-only loss
|
| 102 |
+
- **Scope:** **115** attention projections, not 120 β layers 5, 11, 17, 23 and 29 are
|
| 103 |
+
global-attention layers with no `v_proj` at all. 22,978,560 trainable params (0.089%).
|
| 104 |
+
- **Data:** Novel broken down into scenes β scenes rewritten by a neural network into a
|
| 105 |
+
synthetic RP dataset (actions and internal thoughts preserved, original author's prose
|
| 106 |
+
style removed). Contains both English and Russian samples, English-primary.
|
| 107 |
|
| 108 |
## Limitations
|
| 109 |
|
| 110 |
- **18+.** Base model is abliterated, training data includes adult and dark content.
|
| 111 |
+
- Primarily optimized for English. Works in Russian, but the style effect is generally
|
| 112 |
+
weaker *and* instruction-following is more fragile there β see the scale tables.
|
| 113 |
+
- Structured-output thresholds were measured with one generation per setting at a single
|
| 114 |
+
context depth. Treat them as calibrated starting points, not hard constants.
|
| 115 |
- Inherits Gemma license terms.
|
| 116 |
|
| 117 |
+
## Related adapters
|
|
|
|
|
|
|
| 118 |
|
| 119 |
+
v3 splits this adapter's 115 targets into two non-overlapping halves, trained separately
|
| 120 |
+
on identical data with identical hyperparameters and seed:
|
| 121 |
|
| 122 |
+
- [**v3-A**](https://huggingface.co/SubMaroon/Dark-Goetia-26B-A4B-LoRA-v3-A) β `v_proj` + `o_proj`
|
| 123 |
+
(55 modules). The style channel on its own, without the QK component. Experimental;
|
| 124 |
+
useful if your card demands strict formatting and v2 keeps dropping it.
|
| 125 |
+
- [**v3-B**](https://huggingface.co/SubMaroon/Dark-Goetia-26B-A4B-LoRA-v3-B) β `q_proj` + `k_proj`
|
| 126 |
+
(60 modules). Research artifact β weak style, published for reproducibility.
|
| 127 |
|
| 128 |
+
A + B = exactly this adapter's target set and parameter budget.
|