Image-Text-to-Text
Transformers
Safetensors
gemma4
quantized
fp8
w8a16
conversational
compressed-tensors
Instructions to use hoborific/G4-MeroMero-v2-31B-W8A16-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hoborific/G4-MeroMero-v2-31B-W8A16-FP8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="hoborific/G4-MeroMero-v2-31B-W8A16-FP8") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("hoborific/G4-MeroMero-v2-31B-W8A16-FP8") model = AutoModelForMultimodalLM.from_pretrained("hoborific/G4-MeroMero-v2-31B-W8A16-FP8", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hoborific/G4-MeroMero-v2-31B-W8A16-FP8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hoborific/G4-MeroMero-v2-31B-W8A16-FP8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hoborific/G4-MeroMero-v2-31B-W8A16-FP8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/hoborific/G4-MeroMero-v2-31B-W8A16-FP8
- SGLang
How to use hoborific/G4-MeroMero-v2-31B-W8A16-FP8 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 "hoborific/G4-MeroMero-v2-31B-W8A16-FP8" \ --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": "hoborific/G4-MeroMero-v2-31B-W8A16-FP8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "hoborific/G4-MeroMero-v2-31B-W8A16-FP8" \ --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": "hoborific/G4-MeroMero-v2-31B-W8A16-FP8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use hoborific/G4-MeroMero-v2-31B-W8A16-FP8 with Docker Model Runner:
docker model run hf.co/hoborific/G4-MeroMero-v2-31B-W8A16-FP8
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,906 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
| 6 |
-
<style>
|
| 7 |
-
.gs {
|
| 8 |
-
--bg: #0f1014;
|
| 9 |
-
--surface: #171922;
|
| 10 |
-
--edge: #262a36;
|
| 11 |
-
--rule: #333849;
|
| 12 |
-
--text: #b8bfcc;
|
| 13 |
-
--dim: #7d8595;
|
| 14 |
-
--bright: #f2f4f8;
|
| 15 |
-
--azure: #ef5d76;
|
| 16 |
-
--crimson: #5b9dff;
|
| 17 |
-
--az-glow: rgba(91,157,255,0.08);
|
| 18 |
-
--cr-glow: rgba(239,93,118,0.06);
|
| 19 |
-
--mono: 'JetBrains Mono', monospace;
|
| 20 |
-
--sans: 'Inter', sans-serif;
|
| 21 |
|
| 22 |
-
|
| 23 |
-
color: var(--text);
|
| 24 |
-
max-width: 900px;
|
| 25 |
-
margin: 0 auto;
|
| 26 |
-
padding: 0 0 60px;
|
| 27 |
-
line-height: 1.7;
|
| 28 |
-
font-size: 1rem;
|
| 29 |
-
background:
|
| 30 |
-
radial-gradient(ellipse at 50% 0%, rgba(91,157,255,0.08) 0%, transparent 50%),
|
| 31 |
-
radial-gradient(ellipse at 50% 100%, rgba(239,93,118,0.05) 0%, transparent 50%),
|
| 32 |
-
var(--bg);
|
| 33 |
-
}
|
| 34 |
|
| 35 |
-
|
| 36 |
-
.gs-profile {
|
| 37 |
-
border-bottom: none;
|
| 38 |
-
position: relative;
|
| 39 |
-
background: var(--surface);
|
| 40 |
-
margin-bottom: 0;
|
| 41 |
-
}
|
| 42 |
-
.gs-profile-art {
|
| 43 |
-
position: relative;
|
| 44 |
-
}
|
| 45 |
-
.gs-profile-art img {
|
| 46 |
-
display: block;
|
| 47 |
-
width: 100%;
|
| 48 |
-
height: 380px;
|
| 49 |
-
object-fit: cover;
|
| 50 |
-
margin-top: 0px;
|
| 51 |
-
}
|
| 52 |
-
.gs-ident {
|
| 53 |
-
position: absolute;
|
| 54 |
-
bottom: 0;
|
| 55 |
-
left: 0;
|
| 56 |
-
right: 0;
|
| 57 |
-
padding: 120px 44px 28px;
|
| 58 |
-
background: linear-gradient(
|
| 59 |
-
to top,
|
| 60 |
-
rgba(11,12,16,0.88) 0%,
|
| 61 |
-
rgba(11,12,16,0.5) 50%,
|
| 62 |
-
transparent 100%
|
| 63 |
-
);
|
| 64 |
-
}
|
| 65 |
-
.gs-profile-info {
|
| 66 |
-
padding: 20px 44px 36px;
|
| 67 |
-
display: flex;
|
| 68 |
-
flex-direction: column;
|
| 69 |
-
gap: 20px;
|
| 70 |
-
}
|
| 71 |
-
.gs-profile-label {
|
| 72 |
-
display: flex;
|
| 73 |
-
align-items: baseline;
|
| 74 |
-
gap: 10px;
|
| 75 |
-
font-family: var(--mono);
|
| 76 |
-
letter-spacing: 0.14em;
|
| 77 |
-
text-transform: uppercase;
|
| 78 |
-
}
|
| 79 |
-
.gs-profile-label .gs-snum {
|
| 80 |
-
font-size: 0.62rem;
|
| 81 |
-
font-weight: 700;
|
| 82 |
-
color: var(--crimson);
|
| 83 |
-
opacity: 1;
|
| 84 |
-
position: static;
|
| 85 |
-
transform: none;
|
| 86 |
-
}
|
| 87 |
-
.gs-profile-label .gs-stitle {
|
| 88 |
-
font-size: 0.62rem;
|
| 89 |
-
color: var(--dim);
|
| 90 |
-
font-weight: 700;
|
| 91 |
-
letter-spacing: 0.14em;
|
| 92 |
-
}
|
| 93 |
-
.gs-profile-label .gs-stitle::before {
|
| 94 |
-
content: none;
|
| 95 |
-
}
|
| 96 |
-
.gs-name {
|
| 97 |
-
font-family: var(--sans);
|
| 98 |
-
font-size: 3.2rem;
|
| 99 |
-
font-weight: 900;
|
| 100 |
-
color: #ffffff;
|
| 101 |
-
letter-spacing: 0.06em;
|
| 102 |
-
line-height: 1;
|
| 103 |
-
margin: 0 0 10px;
|
| 104 |
-
text-shadow: 0 2px 12px rgba(0,0,0,0.3);
|
| 105 |
-
overflow-wrap: break-word;
|
| 106 |
-
}
|
| 107 |
-
.gs-base {
|
| 108 |
-
font-family: var(--mono);
|
| 109 |
-
font-size: 0.68rem;
|
| 110 |
-
color: var(--crimson);
|
| 111 |
-
letter-spacing: 0.14em;
|
| 112 |
-
text-transform: uppercase;
|
| 113 |
-
display: block;
|
| 114 |
-
}
|
| 115 |
-
.gs-profile-bio p {
|
| 116 |
-
margin: 0 0 14px;
|
| 117 |
-
font-size: 0.95rem;
|
| 118 |
-
}
|
| 119 |
-
.gs-profile-bio p:last-child { margin-bottom: 0; }
|
| 120 |
|
| 121 |
-
/* ── Sections ── */
|
| 122 |
-
.gs-section {
|
| 123 |
-
padding: 0;
|
| 124 |
-
}
|
| 125 |
-
.gs-shead {
|
| 126 |
-
position: relative;
|
| 127 |
-
display: flex;
|
| 128 |
-
align-items: center;
|
| 129 |
-
gap: 14px;
|
| 130 |
-
padding: 16px 44px 14px;
|
| 131 |
-
margin-bottom: 28px;
|
| 132 |
-
border-top: 2px solid;
|
| 133 |
-
border-image: linear-gradient(90deg, var(--crimson), var(--azure)) 1;
|
| 134 |
-
}
|
| 135 |
-
.gs-snum {
|
| 136 |
-
font-family: var(--mono);
|
| 137 |
-
font-size: 2.2rem;
|
| 138 |
-
font-weight: 900;
|
| 139 |
-
color: var(--crimson);
|
| 140 |
-
letter-spacing: 0.06em;
|
| 141 |
-
opacity: 0.12;
|
| 142 |
-
position: absolute;
|
| 143 |
-
right: 44px;
|
| 144 |
-
top: 50%;
|
| 145 |
-
transform: translateY(-50%);
|
| 146 |
-
line-height: 1;
|
| 147 |
-
}
|
| 148 |
-
.gs-stitle {
|
| 149 |
-
font-size: 1.05rem;
|
| 150 |
-
font-weight: 700;
|
| 151 |
-
letter-spacing: 0.1em;
|
| 152 |
-
text-transform: uppercase;
|
| 153 |
-
color: var(--bright);
|
| 154 |
-
}
|
| 155 |
-
.gs-stitle::before {
|
| 156 |
-
content: '\2726';
|
| 157 |
-
color: var(--crimson);
|
| 158 |
-
font-size: 0.8em;
|
| 159 |
-
margin-right: 8px;
|
| 160 |
-
}
|
| 161 |
-
.gs-sbody {
|
| 162 |
-
padding: 0 44px 44px;
|
| 163 |
-
}
|
| 164 |
-
.gs-sbody p {
|
| 165 |
-
margin: 0 0 14px;
|
| 166 |
-
font-size: 0.95rem;
|
| 167 |
-
}
|
| 168 |
-
.gs-sbody p:last-child { margin-bottom: 0; }
|
| 169 |
|
| 170 |
-
/* ── Data panels ── */
|
| 171 |
-
.gs-stack {
|
| 172 |
-
display: grid;
|
| 173 |
-
grid-template-columns: 1fr 1fr;
|
| 174 |
-
gap: 16px;
|
| 175 |
-
}
|
| 176 |
-
.gs-stack .gs-panel:nth-child(3) {
|
| 177 |
-
grid-column: 1 / -1;
|
| 178 |
-
}
|
| 179 |
-
.gs-panel {
|
| 180 |
-
border: 1px solid var(--edge);
|
| 181 |
-
border-left: 3px solid var(--crimson);
|
| 182 |
-
position: relative;
|
| 183 |
-
background: var(--surface);
|
| 184 |
-
box-shadow: 0 2px 12px rgba(0,0,0,0.45);
|
| 185 |
-
}
|
| 186 |
-
.gs-panel::before {
|
| 187 |
-
content: '';
|
| 188 |
-
position: absolute;
|
| 189 |
-
top: -1px;
|
| 190 |
-
right: -1px;
|
| 191 |
-
width: 10px;
|
| 192 |
-
height: 10px;
|
| 193 |
-
border-top: 1px solid var(--crimson);
|
| 194 |
-
border-right: 1px solid var(--crimson);
|
| 195 |
-
opacity: 0.4;
|
| 196 |
-
}
|
| 197 |
-
.gs-panel::after {
|
| 198 |
-
content: '';
|
| 199 |
-
position: absolute;
|
| 200 |
-
bottom: -1px;
|
| 201 |
-
right: -1px;
|
| 202 |
-
width: 10px;
|
| 203 |
-
height: 10px;
|
| 204 |
-
border-bottom: 1px solid var(--azure);
|
| 205 |
-
border-right: 1px solid var(--azure);
|
| 206 |
-
opacity: 0.3;
|
| 207 |
-
}
|
| 208 |
-
.gs-panel-head {
|
| 209 |
-
font-family: var(--mono);
|
| 210 |
-
font-size: 0.68rem;
|
| 211 |
-
font-weight: 700;
|
| 212 |
-
letter-spacing: 0.14em;
|
| 213 |
-
text-transform: uppercase;
|
| 214 |
-
color: var(--dim);
|
| 215 |
-
padding: 10px 16px;
|
| 216 |
-
border-bottom: 1px solid var(--edge);
|
| 217 |
-
}
|
| 218 |
-
.gs-panel-head::after {
|
| 219 |
-
content: ' \2726';
|
| 220 |
-
color: var(--crimson);
|
| 221 |
-
opacity: 0.5;
|
| 222 |
-
}
|
| 223 |
-
.gs-row {
|
| 224 |
-
display: grid;
|
| 225 |
-
grid-template-columns: 10ch 1fr;
|
| 226 |
-
align-items: baseline;
|
| 227 |
-
column-gap: 4px;
|
| 228 |
-
padding: 9px 16px;
|
| 229 |
-
border-bottom: 1px solid var(--edge);
|
| 230 |
-
font-size: 0.9rem;
|
| 231 |
-
}
|
| 232 |
-
.gs-row:last-child { border-bottom: none; }
|
| 233 |
-
.gs-key {
|
| 234 |
-
font-family: var(--mono);
|
| 235 |
-
font-size: 0.9rem;
|
| 236 |
-
color: var(--dim);
|
| 237 |
-
}
|
| 238 |
-
.gs-key::after {
|
| 239 |
-
content: ':';
|
| 240 |
-
}
|
| 241 |
-
.gs-val {
|
| 242 |
-
color: var(--bright);
|
| 243 |
-
font-size: 0.9rem;
|
| 244 |
-
}
|
| 245 |
-
.gs-row .gs-val:only-child {
|
| 246 |
-
grid-column: 1 / -1;
|
| 247 |
-
}
|
| 248 |
-
|
| 249 |
-
/* ── Quantizations (compact) ── */
|
| 250 |
-
.gs-section--compact .gs-shead {
|
| 251 |
-
border-top: 1px solid var(--edge);
|
| 252 |
-
border-image-source: none;
|
| 253 |
-
padding: 12px 44px 10px;
|
| 254 |
-
margin-bottom: 18px;
|
| 255 |
-
}
|
| 256 |
-
.gs-section--compact .gs-snum {
|
| 257 |
-
opacity: 0.08;
|
| 258 |
-
}
|
| 259 |
-
.gs-section--compact .gs-stitle::before {
|
| 260 |
-
content: '\2726';
|
| 261 |
-
}
|
| 262 |
-
.gs-section--compact .gs-sbody {
|
| 263 |
-
padding: 0 44px 32px;
|
| 264 |
-
}
|
| 265 |
-
.gs-qrow {
|
| 266 |
-
display: flex;
|
| 267 |
-
gap: 12px;
|
| 268 |
-
flex-wrap: wrap;
|
| 269 |
-
justify-content: center;
|
| 270 |
-
}
|
| 271 |
-
.gs-qpanel {
|
| 272 |
-
background: var(--surface);
|
| 273 |
-
border: 1px solid var(--edge);
|
| 274 |
-
border-left: 3px solid var(--crimson);
|
| 275 |
-
display: flex;
|
| 276 |
-
align-items: center;
|
| 277 |
-
gap: 16px;
|
| 278 |
-
padding: 12px 24px;
|
| 279 |
-
border-radius: 4px;
|
| 280 |
-
position: relative;
|
| 281 |
-
box-shadow: 0 2px 12px rgba(0,0,0,0.45);
|
| 282 |
-
}
|
| 283 |
-
.gs-qpanel::before {
|
| 284 |
-
content: '';
|
| 285 |
-
position: absolute;
|
| 286 |
-
top: -1px;
|
| 287 |
-
right: -1px;
|
| 288 |
-
width: 10px;
|
| 289 |
-
height: 10px;
|
| 290 |
-
border-top: 1px solid var(--crimson);
|
| 291 |
-
border-right: 1px solid var(--crimson);
|
| 292 |
-
opacity: 0.4;
|
| 293 |
-
}
|
| 294 |
-
.gs-qpanel::after {
|
| 295 |
-
content: '';
|
| 296 |
-
position: absolute;
|
| 297 |
-
bottom: -1px;
|
| 298 |
-
right: -1px;
|
| 299 |
-
width: 10px;
|
| 300 |
-
height: 10px;
|
| 301 |
-
border-bottom: 1px solid var(--azure);
|
| 302 |
-
border-right: 1px solid var(--azure);
|
| 303 |
-
opacity: 0.3;
|
| 304 |
-
}
|
| 305 |
-
.gs-qtype {
|
| 306 |
-
font-family: var(--mono);
|
| 307 |
-
font-size: 0.58rem;
|
| 308 |
-
font-weight: 700;
|
| 309 |
-
letter-spacing: 0.18em;
|
| 310 |
-
text-transform: uppercase;
|
| 311 |
-
color: var(--crimson);
|
| 312 |
-
flex-shrink: 0;
|
| 313 |
-
}
|
| 314 |
-
.gs-qsep {
|
| 315 |
-
width: 1px;
|
| 316 |
-
height: 16px;
|
| 317 |
-
background: var(--rule);
|
| 318 |
-
flex-shrink: 0;
|
| 319 |
-
}
|
| 320 |
-
.gs-qpanel a {
|
| 321 |
-
color: var(--bright);
|
| 322 |
-
text-decoration: none;
|
| 323 |
-
font-size: 0.9rem;
|
| 324 |
-
border-bottom: 1px solid var(--rule);
|
| 325 |
-
}
|
| 326 |
-
.gs-qpanel a:hover { color: var(--crimson); border-bottom-color: var(--crimson); }
|
| 327 |
-
|
| 328 |
-
/* ── Journal (Creation Process) ── */
|
| 329 |
-
.gs-section--journal .gs-sbody {
|
| 330 |
-
margin: 0 44px;
|
| 331 |
-
padding: 24px 32px 32px;
|
| 332 |
-
background: var(--surface);
|
| 333 |
-
border: 1px solid var(--edge);
|
| 334 |
-
border-left: 4px solid var(--azure);
|
| 335 |
-
position: relative;
|
| 336 |
-
margin-bottom: 0;
|
| 337 |
-
}
|
| 338 |
-
.gs-section--journal .gs-sbody::before {
|
| 339 |
-
content: '';
|
| 340 |
-
position: absolute;
|
| 341 |
-
top: -1px;
|
| 342 |
-
right: -1px;
|
| 343 |
-
width: 12px;
|
| 344 |
-
height: 12px;
|
| 345 |
-
border-top: 1px solid var(--azure);
|
| 346 |
-
border-right: 1px solid var(--azure);
|
| 347 |
-
opacity: 0.3;
|
| 348 |
-
}
|
| 349 |
-
.gs-section--journal .gs-sbody::after {
|
| 350 |
-
content: '';
|
| 351 |
-
position: absolute;
|
| 352 |
-
bottom: -1px;
|
| 353 |
-
left: -1px;
|
| 354 |
-
width: 12px;
|
| 355 |
-
height: 12px;
|
| 356 |
-
border-bottom: 1px solid var(--crimson);
|
| 357 |
-
border-left: 1px solid var(--crimson);
|
| 358 |
-
opacity: 0.3;
|
| 359 |
-
}
|
| 360 |
-
.gs-section--journal .gs-sbody p:first-child {
|
| 361 |
-
font-style: italic;
|
| 362 |
-
color: var(--bright);
|
| 363 |
-
}
|
| 364 |
-
|
| 365 |
-
/* ── Links ── */
|
| 366 |
-
.gs a {
|
| 367 |
-
color: var(--bright);
|
| 368 |
-
text-decoration: none;
|
| 369 |
-
border-bottom: 1px solid var(--rule);
|
| 370 |
-
}
|
| 371 |
-
.gs a:hover { color: var(--crimson); border-bottom-color: var(--crimson); }
|
| 372 |
-
|
| 373 |
-
/* ── Dropdown ── */
|
| 374 |
-
.gs details {
|
| 375 |
-
border: 1px solid var(--edge);
|
| 376 |
-
border-left: 3px solid var(--crimson);
|
| 377 |
-
margin-top: 24px;
|
| 378 |
-
position: relative;
|
| 379 |
-
background: var(--surface);
|
| 380 |
-
box-shadow: 0 2px 12px rgba(0,0,0,0.45);
|
| 381 |
-
}
|
| 382 |
-
.gs details::before {
|
| 383 |
-
content: '';
|
| 384 |
-
position: absolute;
|
| 385 |
-
top: -1px;
|
| 386 |
-
right: -1px;
|
| 387 |
-
width: 10px;
|
| 388 |
-
height: 10px;
|
| 389 |
-
border-top: 1px solid var(--crimson);
|
| 390 |
-
border-right: 1px solid var(--crimson);
|
| 391 |
-
opacity: 0.4;
|
| 392 |
-
}
|
| 393 |
-
.gs details::after {
|
| 394 |
-
content: '';
|
| 395 |
-
position: absolute;
|
| 396 |
-
bottom: -1px;
|
| 397 |
-
right: -1px;
|
| 398 |
-
width: 10px;
|
| 399 |
-
height: 10px;
|
| 400 |
-
border-bottom: 1px solid var(--azure);
|
| 401 |
-
border-right: 1px solid var(--azure);
|
| 402 |
-
opacity: 0.3;
|
| 403 |
-
}
|
| 404 |
-
.gs summary {
|
| 405 |
-
list-style: none;
|
| 406 |
-
padding: 11px 16px;
|
| 407 |
-
cursor: pointer;
|
| 408 |
-
font-family: var(--mono);
|
| 409 |
-
font-size: 0.72rem;
|
| 410 |
-
font-weight: 700;
|
| 411 |
-
letter-spacing: 0.12em;
|
| 412 |
-
text-transform: uppercase;
|
| 413 |
-
color: var(--dim);
|
| 414 |
-
user-select: none;
|
| 415 |
-
display: flex;
|
| 416 |
-
align-items: center;
|
| 417 |
-
gap: 10px;
|
| 418 |
-
}
|
| 419 |
-
.gs summary::-webkit-details-marker { display: none; }
|
| 420 |
-
.gs summary::before {
|
| 421 |
-
content: '+';
|
| 422 |
-
color: var(--crimson);
|
| 423 |
-
font-size: 1rem;
|
| 424 |
-
line-height: 1;
|
| 425 |
-
flex-shrink: 0;
|
| 426 |
-
}
|
| 427 |
-
.gs details[open] summary::before { content: '−'; }
|
| 428 |
-
.gs summary:hover { color: var(--bright); }
|
| 429 |
-
.gs-detail-body {
|
| 430 |
-
padding: 22px 18px;
|
| 431 |
-
border-top: 1px solid var(--edge);
|
| 432 |
-
}
|
| 433 |
-
.gs-detail-body p { margin: 0 0 16px; font-size: 0.9rem; }
|
| 434 |
-
.gs-cfg-title {
|
| 435 |
-
font-family: var(--mono);
|
| 436 |
-
font-size: 0.72rem;
|
| 437 |
-
font-weight: 700;
|
| 438 |
-
letter-spacing: 0.1em;
|
| 439 |
-
text-transform: uppercase;
|
| 440 |
-
color: var(--dim);
|
| 441 |
-
margin: 0 0 8px;
|
| 442 |
-
}
|
| 443 |
-
|
| 444 |
-
/* ── Eval table ── */
|
| 445 |
-
.gs-etable {
|
| 446 |
-
width: 100%;
|
| 447 |
-
border-collapse: collapse;
|
| 448 |
-
background: var(--surface);
|
| 449 |
-
border: 1px solid var(--edge);
|
| 450 |
-
border-left: 3px solid var(--crimson);
|
| 451 |
-
box-shadow: 0 2px 12px rgba(0,0,0,0.45);
|
| 452 |
-
}
|
| 453 |
-
.gs-etable th {
|
| 454 |
-
font-family: var(--mono);
|
| 455 |
-
font-size: 0.68rem;
|
| 456 |
-
font-weight: 700;
|
| 457 |
-
letter-spacing: 0.14em;
|
| 458 |
-
text-transform: uppercase;
|
| 459 |
-
color: var(--dim);
|
| 460 |
-
text-align: left;
|
| 461 |
-
padding: 10px 16px;
|
| 462 |
-
border-bottom: 1px solid var(--edge);
|
| 463 |
-
}
|
| 464 |
-
.gs-etable th.gs-ecol { color: var(--crimson); }
|
| 465 |
-
.gs-etable td {
|
| 466 |
-
padding: 9px 16px;
|
| 467 |
-
border-bottom: 1px solid var(--edge);
|
| 468 |
-
font-size: 0.9rem;
|
| 469 |
-
color: var(--bright);
|
| 470 |
-
}
|
| 471 |
-
.gs-etable tr:last-child td { border-bottom: none; }
|
| 472 |
-
.gs-etable td:first-child {
|
| 473 |
-
font-family: var(--mono);
|
| 474 |
-
font-size: 0.85rem;
|
| 475 |
-
color: var(--dim);
|
| 476 |
-
}
|
| 477 |
-
.gs-etable td:nth-child(n+2) { color: var(--text); }
|
| 478 |
-
.gs-etable td.gs-best { font-weight: 700; color: var(--bright); }
|
| 479 |
-
.gs-etable tr.gs-egroup td {
|
| 480 |
-
font-family: var(--mono);
|
| 481 |
-
font-size: 0.62rem;
|
| 482 |
-
font-weight: 700;
|
| 483 |
-
letter-spacing: 0.16em;
|
| 484 |
-
text-transform: uppercase;
|
| 485 |
-
color: var(--crimson);
|
| 486 |
-
background: var(--az-glow);
|
| 487 |
-
padding: 7px 16px;
|
| 488 |
-
}
|
| 489 |
-
|
| 490 |
-
/* ── Code ── */
|
| 491 |
-
.gs pre {
|
| 492 |
-
background: #12141b;
|
| 493 |
-
border: 1px solid var(--edge);
|
| 494 |
-
border-left: 2px solid var(--azure);
|
| 495 |
-
padding: 16px 18px;
|
| 496 |
-
overflow-x: auto;
|
| 497 |
-
font-family: var(--mono);
|
| 498 |
-
font-size: 0.76rem;
|
| 499 |
-
line-height: 1.6;
|
| 500 |
-
color: var(--text);
|
| 501 |
-
margin: 0 0 22px;
|
| 502 |
-
}
|
| 503 |
-
.gs pre:last-child { margin-bottom: 0; }
|
| 504 |
-
.gs pre code { background: none; color: inherit; padding: 0; }
|
| 505 |
-
.gs code {
|
| 506 |
-
font-family: var(--mono);
|
| 507 |
-
font-size: 0.875em;
|
| 508 |
-
color: var(--crimson);
|
| 509 |
-
background: var(--az-glow);
|
| 510 |
-
padding: 2px 5px;
|
| 511 |
-
}
|
| 512 |
-
</style>
|
| 513 |
-
<html lang="en">
|
| 514 |
-
<head>
|
| 515 |
-
<meta charset="UTF-8">
|
| 516 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 517 |
-
<title>Stardom</title>
|
| 518 |
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 519 |
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 520 |
-
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">
|
| 521 |
-
</head>
|
| 522 |
-
<body>
|
| 523 |
-
<div class="gs">
|
| 524 |
-
|
| 525 |
-
<div class="gs-profile">
|
| 526 |
-
<div class="gs-profile-art">
|
| 527 |
-
<img src="https://cdn-uploads.huggingface.co/production/uploads/65b19c6c638328850e12d38c/7dR919fTUTuxEHhvvRki8.png" alt="image">
|
| 528 |
-
<div class="gs-ident">
|
| 529 |
-
<h1 class="gs-name">Mero Mero v2</h1>
|
| 530 |
-
<span class="gs-base">Gemma4 31B</span>
|
| 531 |
-
</div>
|
| 532 |
-
</div>
|
| 533 |
-
</div>
|
| 534 |
-
|
| 535 |
-
<div class="gs-section">
|
| 536 |
-
<div class="gs-shead">
|
| 537 |
-
<span class="gs-snum">01</span>
|
| 538 |
-
<span class="gs-stitle">Overview</span>
|
| 539 |
-
</div>
|
| 540 |
-
<div class="gs-sbody">
|
| 541 |
-
<p></p>
|
| 542 |
-
<p>A finetune of Gemma 4 31B designed for creative tasks, particularly narrative RP. Intended to be a more creative version of <a href="https://huggingface.co/zerofata/G4-MeroMero-31B">G4-MeroMero-31B</a>.</p>
|
| 543 |
-
<p>This model is the result of a lot of experimentation and learning. Trying to make Gemma 4 more creative without destroying the intelligence is... difficult. To put it mildly.</p>
|
| 544 |
-
<p style="margin-top:16px">Heavily inspired by a few research papers, <a href="https://arxiv.org/abs/2604.03136">StoryScope: Investigating idiosyncrasies in AI fiction
|
| 545 |
-
</a> and particularly <a href="https://arxiv.org/abs/2605.26492">Elias in the Lighthouse, Again?</a>. Measuring these narrative tics and attractors against simple prompts seems to be a good way to target the model's slop and kick start giving Gemma 4 some diversity: anything that repeatedly occurs across generations of such a generic prompt is something the model is overusing.</p>
|
| 546 |
-
<p>Compared to the original, swipes are notably more diverse and feel less like Gemma. RP slop is measurably lower (at least for the type of slop I measure). IFEval / GSM8K / MMLU-Pro are the same as stock with no obvious degradation. The only intelligence drop I've really noticed so far is when you get a swipe that goes a bit hot.</p>
|
| 547 |
-
<p>Supports both thinking and non thinking. Reasoning averages longer than stock Gemma 4, but shorter than MeroMero v1.</p>
|
| 548 |
-
</div>
|
| 549 |
-
</div>
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
<div class="gs-section">
|
| 553 |
-
<div class="gs-shead">
|
| 554 |
-
<span class="gs-snum">02</span>
|
| 555 |
-
<span class="gs-stitle">SillyTavern Settings</span>
|
| 556 |
-
</div>
|
| 557 |
-
<div class="gs-sbody">
|
| 558 |
-
<div class="gs-stack">
|
| 559 |
-
<div class="gs-panel">
|
| 560 |
-
<div class="gs-panel-head">Suggested Roleplay Format</div>
|
| 561 |
-
<div class="gs-row"><span class="gs-key">Actions</span><span class="gs-val">In plaintext</span></div>
|
| 562 |
-
<div class="gs-row"><span class="gs-key">Dialogue</span><span class="gs-val">"In quotes"</span></div>
|
| 563 |
-
<div class="gs-row"><span class="gs-key">Thoughts</span><span class="gs-val">*In asterisks*</span></div>
|
| 564 |
-
</div>
|
| 565 |
-
<div class="gs-panel">
|
| 566 |
-
<div class="gs-panel-head">Recommended Samplers</div>
|
| 567 |
-
<div class="gs-row"><span class="gs-key">Temp</span><span class="gs-val">0.8 - 1.0</span></div>
|
| 568 |
-
<div class="gs-row"><span class="gs-key">MinP</span><span class="gs-val">0.05</span></div>
|
| 569 |
-
<div class="gs-row"></span><span class="gs-val"></span></div>
|
| 570 |
-
</div>
|
| 571 |
-
<div class="gs-panel">
|
| 572 |
-
<div class="gs-panel-head">Instruct</div>
|
| 573 |
-
<div class="gs-row"><span class="gs-val"><a href="https://huggingface.co/zerofata/G4-MeroMero-v2-31B/raw/main/Gemma4-Think.json">Gemma 4 - Think</a></span></div>
|
| 574 |
-
<div class="gs-row"><span class="gs-val"><a href="https://huggingface.co/zerofata/G4-MeroMero-v2-31B/raw/main/Gemma4-NoThink.json">Gemma 4 - NoThink</a></span></div>
|
| 575 |
-
</div>
|
| 576 |
-
</div>
|
| 577 |
-
</div>
|
| 578 |
-
</div>
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
<div class="gs-section gs-section--compact">
|
| 582 |
-
<div class="gs-shead">
|
| 583 |
-
<span class="gs-snum">03</span>
|
| 584 |
-
<span class="gs-stitle">Quantizations</span>
|
| 585 |
-
</div>
|
| 586 |
-
<div class="gs-sbody">
|
| 587 |
-
<div class="gs-qrow">
|
| 588 |
-
<div class="gs-qpanel">
|
| 589 |
-
<span class="gs-qtype">GGUF</span>
|
| 590 |
-
<div class="gs-qsep"></div>
|
| 591 |
-
<a href="https://huggingface.co/zerofata/G4-MeroMero-v2-31B-GGUF">iMatrix</a>
|
| 592 |
-
</div>
|
| 593 |
-
</div>
|
| 594 |
-
</div>
|
| 595 |
-
</div>
|
| 596 |
-
|
| 597 |
-
|
| 598 |
-
<div class="gs-section">
|
| 599 |
-
<div class="gs-shead">
|
| 600 |
-
<span class="gs-snum">04</span>
|
| 601 |
-
<span class="gs-stitle">Evaluation</span>
|
| 602 |
-
</div>
|
| 603 |
-
<div class="gs-sbody">
|
| 604 |
-
<table class="gs-etable">
|
| 605 |
-
<tr><th></th><th class="gs-ecol">Mero Mero v2</th><th>Mero Mero v1</th><th>Stock Gemma 4</th></tr>
|
| 606 |
-
<tr class="gs-egroup"><td colspan="4">Swipe diversity — given an RP conversation, generate 8 swipes and evaluate how varied the beats in those swipes are, GLM-judged with a rubric.</td></tr>
|
| 607 |
-
<tr><td>Thinking off</td><td class="gs-best">0.72</td><td>0.57</td><td>0.43</td></tr>
|
| 608 |
-
<tr><td>Thinking on</td><td class="gs-best">0.62</td><td>0.49</td><td>0.32</td></tr>
|
| 609 |
-
<tr class="gs-egroup"><td colspan="4">Slop & attractors — lower is better</td></tr>
|
| 610 |
-
<tr><td>Slop per 1k words, RP replies</td><td class="gs-best">15.5</td><td>18.0</td><td>18.5</td></tr>
|
| 611 |
-
<tr><td>Slop per 1k words, stories</td><td class="gs-best">7.4</td><td>8.3</td><td>8.8</td></tr>
|
| 612 |
-
<tr><td>Bare-prompt stories hitting an attractor</td><td class="gs-best">66%</td><td>98%</td><td>99%</td></tr>
|
| 613 |
-
<tr class="gs-egroup"><td colspan="4">Top attractor markers — each model's six most frequent, stories containing each of 144</td></tr>
|
| 614 |
-
<tr><td>#1</td><td>Tuesday · 28</td><td>Elias · 96</td><td>Elias · 102</td></tr>
|
| 615 |
-
<tr><td>#2</td><td>Arthur · 20</td><td>Tuesday · 81</td><td>Tuesday · 90</td></tr>
|
| 616 |
-
<tr><td>#3</td><td>Elias · 19</td><td>Clara · 57</td><td>Clara · 80</td></tr>
|
| 617 |
-
<tr><td>#4</td><td>Leo · 16</td><td>Oakhaven · 46</td><td>Oakhaven · 60</td></tr>
|
| 618 |
-
<tr><td>#5</td><td>Elara · 14</td><td>Arthur · 21</td><td>Thorne · 23</td></tr>
|
| 619 |
-
<tr><td>#6</td><td>Clara · 14</td><td>Leo · 20</td><td>Arthur · 16</td></tr>
|
| 620 |
-
<tr class="gs-egroup"><td colspan="4">Thinking length — words per think block, RP replies; shorter is better</td></tr>
|
| 621 |
-
<tr><td>Mean / median</td><td>341 / 305</td><td>382 / 342</td><td class="gs-best">263 / 253</td></tr>
|
| 622 |
-
<tr class="gs-egroup"><td colspan="4">General benchmarks — thinking off; IFEval & GSM8K full, MMLU-Pro 40q per category</td></tr>
|
| 623 |
-
<tr><td>IFEval</td><td class="gs-best">90.2</td><td>89.8</td><td>89.8</td></tr>
|
| 624 |
-
<tr><td>GSM8K</td><td class="gs-best">97.0</td><td>96.1</td><td>96.7</td></tr>
|
| 625 |
-
<tr><td>MMLU-Pro</td><td class="gs-best">85.5</td><td>85.4</td><td>84.6</td></tr>
|
| 626 |
-
</table>
|
| 627 |
-
</div>
|
| 628 |
-
</div>
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
<div class="gs-section gs-section--journal">
|
| 632 |
-
<div class="gs-shead">
|
| 633 |
-
<span class="gs-snum">05</span>
|
| 634 |
-
<span class="gs-stitle">Creation Process</span>
|
| 635 |
-
</div>
|
| 636 |
-
<div class="gs-sbody">
|
| 637 |
-
<p>Creation Process: SFT > Merge > GRPO > GRPO > on-policy SFT</p>
|
| 638 |
-
<p><strong>Stage 1 — Diversity SFT.</strong> Stock Gemma 4 collapses hard on underspecified creative prompts ("Write a story." basically always gives clockmaker or memory related stories in a shop with Elias). Trained on ~4,000 short stories curated against the storyscope narrative prompts and found attractors. The dataset is a mix of human stories and synthetic stories from a set of frontier models, with diverse generation prompts swapped out for generic ones and filtered for quality. I also included some of the usual creative instruct and roleplay data. The model came out alright. Creative, but notably worse at instruction following with degraded intelligence. SLERP-merged back into the original instruct at t=0.5, which basically reverted it to stock Gemma 4 with slightly improved prose and creativity (similar to MeroMero).</p>
|
| 639 |
-
<p><strong>Stage 2 — Creative GRPO (with think disabled).</strong> TRL GRPO (via Axolotl), 8 rollouts per prompt on the same bare prompts. Reward stack: LLM-judge diversity and coherence rewards, an attractor-marker penalty seeded from stock and then updated with whatever started appearing as new attractors during training, narrative-rate penalties and deterministic degeneracy guards (checking for non-Latin characters, joined words etc). 300 steps.</p>
|
| 640 |
-
<p><strong>Stage 3 — RP logic GRPO (with think enabled).</strong> 100 further steps on multi-turn roleplay contexts: a thinking check to ensure it always parsed correctly, a logic-defect judge (DeepSeek-V4 Flash with a rubric), per-context attractor lists mined from k=8 baselines of the stage 2 model, and the same degeneracy checks as stage 2.</p>
|
| 641 |
-
<p><strong>Stage 4 — On-policy multi-outcome RP SFT.</strong> ~3,300 samples the model wrote itself on roleplay contexts, filtered to keep only varied continuations. The model wasn't able to produce diverse results purely on-policy, so a natural response was generated first, then each sample went through a GLM-5.2 critique pipeline: error detection, plus steering ideas injected as OOC commands for re-generation (DeepSeek-V4-Pro / GLM-5.2 alternating). Everything was then filtered for errors, slop and any degeneracy as usual. Roughly 60% of samples include thinking. Last turn only.</p>
|
| 642 |
-
<p>Trained using Axolotl.</p>
|
| 643 |
-
<details>
|
| 644 |
-
<summary>Stage 1 — Diversity SFT Config (Axolotl)</summary>
|
| 645 |
-
<div class="gs-detail-body">
|
| 646 |
-
<pre><code>base_model: google/gemma-4-31B-it
|
| 647 |
-
 
|
| 648 |
-
plugins:
|
| 649 |
-
- axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
|
| 650 |
-
- axolotl.integrations.liger.LigerPlugin
|
| 651 |
-
liger_layer_norm: true
|
| 652 |
-
liger_rope: true
|
| 653 |
-
liger_rms_norm: true
|
| 654 |
-
liger_glu_activation: true
|
| 655 |
-
liger_rms_norm_gated: true
|
| 656 |
-
strict: false
|
| 657 |
-
cut_cross_entropy: true
|
| 658 |
-
 
|
| 659 |
-
datasets:
|
| 660 |
-
- path: ./data/diversity_sft_masked.jsonl
|
| 661 |
-
val_set_size: 0
|
| 662 |
-
output_dir: ./G4-31B-SFT-v10-2
|
| 663 |
-
 
|
| 664 |
-
sequence_len: 8192
|
| 665 |
-
pad_to_sequence_len: true
|
| 666 |
-
sample_packing: true
|
| 667 |
-
 
|
| 668 |
-
adapter: lora
|
| 669 |
-
lora_r: 64
|
| 670 |
-
lora_alpha: 64
|
| 671 |
-
peft_use_rslora: true
|
| 672 |
-
lora_dropout: 0.0
|
| 673 |
-
freeze_mm_modules: true
|
| 674 |
-
lora_target_modules: 'model.language_model.layers.[\d]+.(_checkpoint_wrapped_module.)?(mlp|self_attn).(up|down|gate|q|k|v|o)_proj'
|
| 675 |
-
 
|
| 676 |
-
gradient_accumulation_steps: 1
|
| 677 |
-
micro_batch_size: 4
|
| 678 |
-
num_epochs: 2
|
| 679 |
-
optimizer: adamw_torch_fused
|
| 680 |
-
lr_scheduler: cosine
|
| 681 |
-
learning_rate: 1e-5
|
| 682 |
-
max_grad_norm: 1.0
|
| 683 |
-
warmup_ratio: 0.1
|
| 684 |
-
weight_decay: 0.05
|
| 685 |
-
saves_per_epoch: 2
|
| 686 |
-
 
|
| 687 |
-
bf16: auto
|
| 688 |
-
tf32: true
|
| 689 |
-
 
|
| 690 |
-
# FA2 not supported
|
| 691 |
-
sdp_attention: true
|
| 692 |
-
flash_attention: false
|
| 693 |
-
 
|
| 694 |
-
fsdp_config:
|
| 695 |
-
fsdp_version: 2
|
| 696 |
-
offload_params: false
|
| 697 |
-
cpu_ram_efficient_loading: false
|
| 698 |
-
auto_wrap_policy: TRANSFORMER_BASED_WRAP
|
| 699 |
-
transformer_layer_cls_to_wrap: Gemma4TextDecoderLayer
|
| 700 |
-
state_dict_type: FULL_STATE_DICT
|
| 701 |
-
sharding_strategy: FULL_SHARD
|
| 702 |
-
reshard_after_forward: true
|
| 703 |
-
activation_checkpointing: true</code></pre>
|
| 704 |
-
</div>
|
| 705 |
-
</details>
|
| 706 |
-
<details>
|
| 707 |
-
<summary>Stage 1 — Mergekit Config</summary>
|
| 708 |
-
<div class="gs-detail-body">
|
| 709 |
-
<pre><code>merge_method: slerp
|
| 710 |
-
base_model: google/gemma-4-31B-it
|
| 711 |
-
models:
|
| 712 |
-
- model: google/gemma-4-31B-it
|
| 713 |
-
- model: ApocalypseParty/G4-31B-SFT-v10-2
|
| 714 |
-
parameters:
|
| 715 |
-
t: 0.5
|
| 716 |
-
dtype: bfloat16</code></pre>
|
| 717 |
-
</div>
|
| 718 |
-
</details>
|
| 719 |
-
<details>
|
| 720 |
-
<summary>Stage 2 — Creative GRPO Config (Axolotl)</summary>
|
| 721 |
-
<div class="gs-detail-body">
|
| 722 |
-
<pre><code>base_model: /workspace/models/configCA # stage 1 output
|
| 723 |
-
 
|
| 724 |
-
rl: grpo
|
| 725 |
-
 
|
| 726 |
-
trl:
|
| 727 |
-
reward_funcs:
|
| 728 |
-
- rewards_g4.reward_judge_diversity
|
| 729 |
-
- rewards_g4.reward_judge_coherence
|
| 730 |
-
- rewards_g4.reward_attractor
|
| 731 |
-
- rewards_g4.reward_narrative
|
| 732 |
-
- rewards_g4.reward_sane
|
| 733 |
-
reward_weights: [3.0, 3.0, 0.75, 1.0, 1.0]
|
| 734 |
-
beta: 0.02
|
| 735 |
-
num_generations: 8
|
| 736 |
-
max_completion_length: 1600
|
| 737 |
-
temperature: 1.0
|
| 738 |
-
use_vllm: true
|
| 739 |
-
scale_rewards: true
|
| 740 |
-
loss_type: grpo
|
| 741 |
-
epsilon: 0.2
|
| 742 |
-
generation_kwargs:
|
| 743 |
-
stop_token_ids: [1, 106, 50]
|
| 744 |
-
top_k: 64
|
| 745 |
-
top_p: 0.95
|
| 746 |
-
 
|
| 747 |
-
datasets:
|
| 748 |
-
- path: /workspace/data/sft_train_final.jsonl
|
| 749 |
-
type: ebft_chat.transform
|
| 750 |
-
 
|
| 751 |
-
sequence_len: 2048
|
| 752 |
-
micro_batch_size: 2
|
| 753 |
-
gradient_accumulation_steps: 4
|
| 754 |
-
max_steps: 200
|
| 755 |
-
 
|
| 756 |
-
learning_rate: 4.0e-6
|
| 757 |
-
optimizer: adamw_torch_fused
|
| 758 |
-
lr_scheduler: cosine
|
| 759 |
-
warmup_steps: 10
|
| 760 |
-
weight_decay: 0.01
|
| 761 |
-
 
|
| 762 |
-
adapter: lora
|
| 763 |
-
lora_r: 64
|
| 764 |
-
lora_alpha: 64
|
| 765 |
-
peft_use_rslora: true
|
| 766 |
-
lora_dropout: 0.0
|
| 767 |
-
freeze_mm_modules: true
|
| 768 |
-
lora_target_modules: 'model.language_model.layers.[\d]+.(_checkpoint_wrapped_module.)?(mlp|self_attn).(up|down|gate|q|k|v|o)_proj'
|
| 769 |
-
 
|
| 770 |
-
max_grad_norm: 1.0
|
| 771 |
-
bf16: auto
|
| 772 |
-
tf32: true
|
| 773 |
-
sdp_attention: true
|
| 774 |
-
flash_attention: false
|
| 775 |
-
gradient_checkpointing: true
|
| 776 |
-
 
|
| 777 |
-
# shipped weights use checkpoint-100 of this run</code></pre>
|
| 778 |
-
</div>
|
| 779 |
-
</details>
|
| 780 |
-
<details>
|
| 781 |
-
<summary>Stage 3 — RP Logic GRPO Config (Axolotl)</summary>
|
| 782 |
-
<div class="gs-detail-body">
|
| 783 |
-
<pre><code>base_model: /workspace/models/r4b100 # stage 2 output
|
| 784 |
-
 
|
| 785 |
-
rl: grpo
|
| 786 |
-
 
|
| 787 |
-
trl:
|
| 788 |
-
reward_funcs:
|
| 789 |
-
- rewards_rp.reward_thinking # format gate on the think block
|
| 790 |
-
- rewards_rp.reward_logic # constraint-grounded defect judge
|
| 791 |
-
- rewards_rp.reward_attractor # frozen per-context lists from stock k=8
|
| 792 |
-
- rewards_rp.reward_sane # deterministic glitch guards
|
| 793 |
-
reward_weights: [2.0, 3.0, 1.0, 1.0]
|
| 794 |
-
beta: 0.02
|
| 795 |
-
num_generations: 8
|
| 796 |
-
max_completion_length: 2560
|
| 797 |
-
temperature: 1.0
|
| 798 |
-
use_vllm: true
|
| 799 |
-
scale_rewards: true
|
| 800 |
-
loss_type: grpo
|
| 801 |
-
epsilon: 0.2
|
| 802 |
-
generation_kwargs:
|
| 803 |
-
stop_token_ids: [1, 106, 50]
|
| 804 |
-
top_k: 64
|
| 805 |
-
top_p: 0.95
|
| 806 |
-
 
|
| 807 |
-
datasets:
|
| 808 |
-
- path: /workspace/rp/rp3_train.jsonl
|
| 809 |
-
type: ebft_chat.transform
|
| 810 |
-
 
|
| 811 |
-
sequence_len: 8192
|
| 812 |
-
micro_batch_size: 1
|
| 813 |
-
gradient_accumulation_steps: 8
|
| 814 |
-
max_steps: 100
|
| 815 |
-
 
|
| 816 |
-
learning_rate: 3.0e-6
|
| 817 |
-
optimizer: adamw_torch_fused
|
| 818 |
-
lr_scheduler: cosine
|
| 819 |
-
warmup_steps: 10
|
| 820 |
-
weight_decay: 0.01
|
| 821 |
-
 
|
| 822 |
-
adapter: lora
|
| 823 |
-
lora_r: 64
|
| 824 |
-
lora_alpha: 64
|
| 825 |
-
peft_use_rslora: true
|
| 826 |
-
lora_dropout: 0.0
|
| 827 |
-
freeze_mm_modules: true
|
| 828 |
-
lora_target_modules: 'model.language_model.layers.[\d]+.(_checkpoint_wrapped_module.)?(mlp|self_attn).(up|down|gate|q|k|v|o)_proj'
|
| 829 |
-
 
|
| 830 |
-
max_grad_norm: 1.0
|
| 831 |
-
bf16: auto
|
| 832 |
-
tf32: true
|
| 833 |
-
sdp_attention: true
|
| 834 |
-
flash_attention: false
|
| 835 |
-
gradient_checkpointing: true</code></pre>
|
| 836 |
-
</div>
|
| 837 |
-
</details>
|
| 838 |
-
<details>
|
| 839 |
-
<summary>Stage 4 — On-Policy Multi-Outcome SFT Config (Axolotl)</summary>
|
| 840 |
-
<div class="gs-detail-body">
|
| 841 |
-
<pre><code>base_model: ApocalypseParty/G4-31B-r4b100-GRPO-rp100 # stage 3 output
|
| 842 |
-
 
|
| 843 |
-
plugins:
|
| 844 |
-
- axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
|
| 845 |
-
- axolotl.integrations.liger.LigerPlugin
|
| 846 |
-
liger_layer_norm: true
|
| 847 |
-
liger_rope: true
|
| 848 |
-
liger_rms_norm: true
|
| 849 |
-
liger_glu_activation: true
|
| 850 |
-
liger_rms_norm_gated: true
|
| 851 |
-
strict: false
|
| 852 |
-
cut_cross_entropy: true
|
| 853 |
-
 
|
| 854 |
-
datasets:
|
| 855 |
-
- path: ./data/g4_onpolicy_rp_masked.jsonl
|
| 856 |
-
val_set_size: 0
|
| 857 |
-
output_dir: ./G4-31B-r4b100-GRPO-rp100-sft
|
| 858 |
-
 
|
| 859 |
-
sequence_len: 8192
|
| 860 |
-
pad_to_sequence_len: true
|
| 861 |
-
sample_packing: true
|
| 862 |
-
 
|
| 863 |
-
adapter: lora
|
| 864 |
-
lora_r: 64
|
| 865 |
-
lora_alpha: 64
|
| 866 |
-
peft_use_rslora: false
|
| 867 |
-
lora_dropout: 0.0
|
| 868 |
-
freeze_mm_modules: true
|
| 869 |
-
lora_target_modules: 'model.language_model.layers.[\d]+.(_checkpoint_wrapped_module.)?(mlp|self_attn).(up|down|gate|q|k|v|o)_proj'
|
| 870 |
-
 
|
| 871 |
-
gradient_accumulation_steps: 2
|
| 872 |
-
micro_batch_size: 1
|
| 873 |
-
num_epochs: 1
|
| 874 |
-
optimizer: adamw_torch_fused
|
| 875 |
-
lr_scheduler: cosine
|
| 876 |
-
learning_rate: 4e-5
|
| 877 |
-
max_grad_norm: 1.0
|
| 878 |
-
warmup_ratio: 0.1
|
| 879 |
-
weight_decay: 0.05
|
| 880 |
-
saves_per_epoch: 2
|
| 881 |
-
 
|
| 882 |
-
bf16: auto
|
| 883 |
-
tf32: true
|
| 884 |
-
 
|
| 885 |
-
# FA2 not supported
|
| 886 |
-
sdp_attention: true
|
| 887 |
-
flash_attention: false
|
| 888 |
-
 
|
| 889 |
-
fsdp_config:
|
| 890 |
-
fsdp_version: 2
|
| 891 |
-
offload_params: false
|
| 892 |
-
cpu_ram_efficient_loading: false
|
| 893 |
-
auto_wrap_policy: TRANSFORMER_BASED_WRAP
|
| 894 |
-
transformer_layer_cls_to_wrap: Gemma4TextDecoderLayer
|
| 895 |
-
state_dict_type: FULL_STATE_DICT
|
| 896 |
-
sharding_strategy: FULL_SHARD
|
| 897 |
-
reshard_after_forward: true
|
| 898 |
-
activation_checkpointing: true</code></pre>
|
| 899 |
-
</div>
|
| 900 |
-
</details>
|
| 901 |
-
</div>
|
| 902 |
-
</div>
|
| 903 |
-
|
| 904 |
-
</div>
|
| 905 |
-
</body>
|
| 906 |
-
</html>
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: zerofata/G4-MeroMero-v2-31B
|
| 3 |
+
library_name: transformers
|
| 4 |
+
tags:
|
| 5 |
+
- quantized
|
| 6 |
+
- fp8
|
| 7 |
+
- w8a16
|
| 8 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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