DJLougen / gemma-4-31B-it-Harmonic

huggingface.co
Total runs: 1
24-hour runs: 0
7-day runs: -2
30-day runs: -3
Model's Last Updated: April 03 2026
text-generation

Introduction of gemma-4-31B-it-Harmonic

Model Details of gemma-4-31B-it-Harmonic

gemma-4-31B-it-Harmonic-Base

Harmonic Base is a fine-tuned version of Google's Gemma 4 31B Instruct , trained using supervised fine-tuning (SFT) with LoRA adapters and then merged into the full model weights.

This is the full-precision (bf16) merged model. Quantized versions are also available:

Model Details
Parameter Value
Base Model google/gemma-4-31b-it
Parameters ~31 Billion
Architecture Gemma 4 (Transformer, causal LM)
Precision bfloat16
Context Length 262,144 tokens
License Gemma
Training Details
Fine-Tuning Configuration
Parameter Value
Method SFT (Supervised Fine-Tuning) with LoRA
LoRA Rank (r) 32
LoRA Alpha 32
LoRA Dropout 0.05
Target Modules q_proj , k_proj , v_proj , o_proj , gate_proj , up_proj , down_proj
Training Steps 100
Epochs 1.0
Trainable Parameters ~1.06 GB of adapter weights
Training Metrics
  • Starting Loss : 0.98
  • Final Loss : ~0.88
  • Training Tokens : ~2.6M tokens processed
  • Peak Learning Rate : 2e-4 (with warmup)
Framework Versions
  • Training Framework : Unsloth + TRL 0.23.1
  • PEFT : 0.18.1
  • Transformers : 5.5.0
  • PyTorch : 2.10.0+cu128
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "DJLougen/gemma-4-31B-it-Harmonic-Base"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

messages = [
    {"role": "user", "content": "What is the meaning of life?"}
]

input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
outputs = model.generate(input_ids, max_new_tokens=512)
print(tokenizer.decode(outputs[0][input_ids.shape[-1]:], skip_special_tokens=True))
Merge Process

The LoRA adapters were merged into the base model weights using the formula:

W_merged = W_base + B @ A * (alpha / r)

With alpha = r = 32 , the scaling factor is 1.0 . All 599 LoRA layer pairs (across 60 transformer layers, 7 target modules each) were merged directly into the safetensor shards.

Citation
@misc{vonwerra2022trl,
    title        = {{TRL: Transformer Reinforcement Learning}},
    author       = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
    year         = 2020,
    journal      = {GitHub repository},
    publisher    = {GitHub},
    howpublished = {\url{https://github.com/huggingface/trl}}
}

Runs of DJLougen gemma-4-31B-it-Harmonic on huggingface.co

1
Total runs
0
24-hour runs
0
3-day runs
-2
7-day runs
-3
30-day runs

More Information About gemma-4-31B-it-Harmonic huggingface.co Model

More gemma-4-31B-it-Harmonic license Visit here:

https://choosealicense.com/licenses/gemma

gemma-4-31B-it-Harmonic huggingface.co

gemma-4-31B-it-Harmonic huggingface.co is an AI model on huggingface.co that provides gemma-4-31B-it-Harmonic's model effect (), which can be used instantly with this DJLougen gemma-4-31B-it-Harmonic model. huggingface.co supports a free trial of the gemma-4-31B-it-Harmonic model, and also provides paid use of the gemma-4-31B-it-Harmonic. Support call gemma-4-31B-it-Harmonic model through api, including Node.js, Python, http.

gemma-4-31B-it-Harmonic huggingface.co Url

https://huggingface.co/DJLougen/gemma-4-31B-it-Harmonic

DJLougen gemma-4-31B-it-Harmonic online free

gemma-4-31B-it-Harmonic huggingface.co is an online trial and call api platform, which integrates gemma-4-31B-it-Harmonic's modeling effects, including api services, and provides a free online trial of gemma-4-31B-it-Harmonic, you can try gemma-4-31B-it-Harmonic online for free by clicking the link below.

DJLougen gemma-4-31B-it-Harmonic online free url in huggingface.co:

https://huggingface.co/DJLougen/gemma-4-31B-it-Harmonic

gemma-4-31B-it-Harmonic install

gemma-4-31B-it-Harmonic is an open source model from GitHub that offers a free installation service, and any user can find gemma-4-31B-it-Harmonic on GitHub to install. At the same time, huggingface.co provides the effect of gemma-4-31B-it-Harmonic install, users can directly use gemma-4-31B-it-Harmonic installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

gemma-4-31B-it-Harmonic install url in huggingface.co:

https://huggingface.co/DJLougen/gemma-4-31B-it-Harmonic

Url of gemma-4-31B-it-Harmonic

gemma-4-31B-it-Harmonic huggingface.co Url

Provider of gemma-4-31B-it-Harmonic huggingface.co

DJLougen
ORGANIZATIONS

Other API from DJLougen

huggingface.co

Total runs: 76
Run Growth: -874
Growth Rate: -1150.00%
Updated:April 10 2026
huggingface.co

Total runs: 11
Run Growth: -612
Growth Rate: -5563.64%
Updated:April 10 2026
huggingface.co

Total runs: 9
Run Growth: -634
Growth Rate: -7044.44%
Updated:April 10 2026
huggingface.co

Total runs: 7
Run Growth: -3
Growth Rate: -42.86%
Updated:September 18 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 13 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 13 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 05 2026