Downloads · 30 days
0
NiekWork/gemma-3-12b-logql-finetune-transformer
gemma-3-12b-logql-finetune-transformer is a machine learning model from NiekWork. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned Gemma 3 12B for LogQL Query Generation [Standard HF]
Downloads · 30 days
0
Access
Public
Updated Oct 5, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md1.7 KB · 52%
From the Hugging Face model README
Fine-tuned Gemma 3 12B for LogQL Query Generation [Standard HF]
This model is fine-tuned from Google's Gemma 3 12B to generate LogQL queries from natural language descriptions.
This model can be loaded directly using the transformers library.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "NiekWork/gemma-3-12b-logql-finetune-transformer"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16)
prompt = "find the 5xx errors from the last 1 hour"
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
# Generate text
output = model.generate(input_ids, max_new_tokens=100)
print(tokenizer.decode(output[0], skip_special_tokens=True))
This repository contains standard Hugging Face files:
config.json - Model configurationmodel.safetensors or pytorch_model.bin - Model weightstokenizer.json and tokenizer_config.json - Tokenizer filesThis model is released under the Apache 2.0 license.