G

Gemma-4-31B-Confetti

RP Chat

No ratings yet(0)
Prose
—(0)
Intelligence
—(0)
Knowledge
—(0)
Instruction Following
—(0)
Coding
—(0)
Steerability
—(0)

Ratings reflect this model as run on Arli AI.

Gemma-4-31B-Confetti is a text generation model available on Arli AI. It offers 31B parameters, 262K token context, reasoning support, vision input. Recommended use: RP Chat. Run it through the OpenAI-compatible chat completions API with unlimited requests and zero-log privacy.

View on Hugging FaceBack to Models

Hourly Usage

Token Usage

Input (24H)

3K

Output (24H)

0

Input (7D)

11M

Output (7D)

24K

Performance Metrics

Typical Total Time

24.34s

Typical TTFT

3.63s

Typical Input TPS

1504.13

Typical Output TPS

16.37

Model Information

Context Size

262144

Quantization

r32 on FP8

Engine

vllm

Creation Method

Finetune

Model Class

Gemma-4-31B - LoRA

Chat Template

Gemma4

Reasoning

Yes

Vision

Yes

Parameters

31B

Added At

10/31/2026

Use Gemma-4-31B-Confetti with the Arli AI API

Gemma-4-31B-Confetti is available through an OpenAI-compatible chat completions endpoint. Point any OpenAI SDK at https://api.arliai.com/v1, pass Gemma-4-31B-Confetti as the model, and requests are served without logging.

cURL

curl https://api.arliai.com/v1/chat/completions \
  -H "Authorization: Bearer $ARLIAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Gemma-4-31B-Confetti",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://api.arliai.com/v1",
    api_key="YOUR_ARLIAI_API_KEY",
)

response = client.chat.completions.create(
    model="Gemma-4-31B-Confetti",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

See the text generation docs for every parameter, or read the quick start guide to make your first request.


library_name: peft model_name: gemma4-31b-pt-embed-r32a8-textcomp tags:

  • base_model:adapter:Columbidae/gemma4-31b-pt-embed-it
  • lora
  • sft
  • transformers
  • trl licence: license pipeline_tag: text-generation base_model: Columbidae/gemma4-31b-pt-embed-it

gemma4-31b-pt-embed-r32a8-textcomp

This model was fine-tuned using SFT.

W&B run: https://wandb.ai/cooawoo-personal/Gemma4-31B/runs/lkdzz1dj

Training procedure

Hyperparameters

ParameterValue
Learning rate1e-05
LR schedulerrex (custom; max_lr=1e-5, min_lr=1e-6, warmup_ratio=0.05)
Per-device batch size1
Gradient accumulation4
Effective batch size4
Epochs2
Max sequence length4096
OptimizerOptimizerNames.PAGED_ADAMW_8BIT
Warmup ratio0.05
Max gradient norm1.0
Precisionbf16
Loss typenll
Chunked cross-entropyyes

LoRA configuration

ParameterValue
Rank (r)32
Alpha8
Target modules.*language_model.layers.\d+.(self_attn.(q
rsLoRAyes
Quantization4-bit (nf4)

Dataset statistics

DatasetSamplesTotal tokensTrainable tokens
brainrot_chatlog.jsonl3,2321,115,9961,115,996
erotica_quality_cleaned_20pct_seed42.json5752,212,4682,212,468
worm_chapters.json6582,268,2552,268,255
counter_signal_training_balanced.jsonl1,0384,173,6664,173,666
Total5,5039,770,3859,770,385
Training config
model_name_or_path: Columbidae/gemma4-31b-pt-embed-it
data_config: data.yaml
prepared_dataset: prepared_packed
output_dir: gemma4-31b-pt-embed-r32a8-textcomp
attn_implementation: flex_attention
bf16: true
gradient_checkpointing: true
gradient_checkpointing_kwargs:
  use_reentrant: false
use_cce: true
chunked_mlp: true
chunked_mlp_chunks: 16
dataloader_num_workers: 2
dataloader_pin_memory: true
model_parallel: true
max_memory:
  0: 16GiB
  1: 24GiB
max_length: 4096
per_device_train_batch_size: 1
gradient_accumulation_steps: 4
pad_to_multiple_of: 128
use_peft: true
load_in_4bit: true
bnb_4bit_quant_type: nf4
lora_r: 32
lora_alpha: 8
lora_dropout: 0.0
use_rslora: true
lora_target_modules: .*language_model\.layers\.\d+\.(self_attn\.(q|k|v|o)_proj|mlp\.(gate|up|down)_proj)$
learning_rate: 1.0e-05
lr_scheduler_type: rex
warmup_ratio: 0.05
weight_decay: 0.0
max_grad_norm: 1.0
optim: paged_adamw_8bit
num_train_epochs: 2
saves_per_epoch: 2
save_total_limit: 4
rolling_save_steps: 30
rolling_save_total_limit: 1
logging_steps: 1
disable_tqdm: false
report_to: wandb
run_name: g4-31b-pt-embed-r32a8-textcomp
Data config
datasets:
- path: erotica_quality_cleaned_20pct_seed42.json
  type: text
  truncation_strategy: split
- path: counter_signal_training_balanced.jsonl
  type: text
  truncation_strategy: split
- path: worm_chapters.json
  type: text
  truncation_strategy: split
- path: brainrot_chatlog.jsonl
  type: text
  truncation_strategy: split
shuffle_datasets: true
shuffle_combined: true
shuffle_seed: 42
eval_split: 0
split_seed: 42
assistant_only_loss: false

Framework versions

  • PEFT 0.18.1
  • Loft: 0.1.0
  • Transformers: 5.5.4
  • Pytorch: 2.6.0+cu124
  • Datasets: 4.6.1
  • Tokenizers: 0.22.2