Downloads · 30 days
15
16% of all-time downloads
zelk12/MT-Gen2-gemma-3-12B
MT-Gen2-gemma-3-12B is a machine learning model from zelk12. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as gemma.
MT-Gen2-gemma-3-12B is a merge of the following models using LazyMergekit: zelk12/MT-Gen1-gemma-3-12B soob3123/amoral-gemma3-12B-v2
Downloads · 30 days
15
16% of all-time downloads
All-time downloads
96
Public
Parameters
12.2B
24.4 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors24.4 GB · 100%
From the Hugging Face model README
MT-Gen2-gemma-3-12B is a merge of the following models using LazyMergekit:
models:
- model: zelk12/MT-gemma-3-12B
#no parameters necessary for base model
- model: zelk12/MT-Gen1-gemma-3-12B
parameters:
density: 0.5
weight: 0.5
- model: soob3123/amoral-gemma3-12B-v2
parameters:
density: 0.5
weight: 0.5
- model: zelk12/MT1-gemma-3-12B
parameters:
density: 0.5
weight: 0.5
- model: IlyaGusev/saiga_gemma3_12b
parameters:
density: 0.5
weight: 0.5
- model: TheDrummer/Fallen-Gemma3-12B-v1
parameters:
density: 0.5
weight: 0.5
merge_method: dare_ties
base_model: zelk12/MT-gemma-3-12B
parameters:
normalize: true
dtype: bfloat16
!pip install -qU transformers accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "zelk12/MT-Gen2-gemma-3-12B"
messages = [{"role": "user", "content": "What is a large language model?"}]
tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])