How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="mpasila/Gemma2-Eclipse-9B")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("mpasila/Gemma2-Eclipse-9B")
model = AutoModelForCausalLM.from_pretrained("mpasila/Gemma2-Eclipse-9B")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Gemma2-Eclipse-9B

The merge script was taken from MarinaraSpaghetti/NemoMix-Unleashed-12B. All I did was replace the models (and I couldn't find a replacement for one of the models so I just increased the weight on one) and it seems to work pretty well.

ChatML prompt format seems to work fine. Gemma 2 format seems to also work.

ChatML seems cause it to incorrectly spew this at the end |im_end|> so Gemma 2 format might work better.

This is a merge of pre-trained language models created using mergekit.

Merge Details

Merge Method

This model was merged using the della_linear merge method using unsloth/gemma-2-9b as a base.

Models Merged

The following models were included in the merge:

Configuration

The following YAML configuration was used to produce this model:

models:
  - model: unsloth/gemma-2-9b-it
    parameters:
      weight: 0.22
      density: 0.5
  - model: nbeerbower/Gemma2-Gutenberg-Doppel-9B
    parameters:
      weight: 0.2
      density: 0.6
  - model: crestf411/gemma2-9B-sunfall-v0.5.2
    parameters:
      weight: 0.25
      density: 0.7
  - model: anthracite-org/magnum-v4-9b
    parameters:
      weight: 0.33
      density: 0.8
merge_method: della_linear
base_model: unsloth/gemma-2-9b
parameters:
  epsilon: 0.05
  lambda: 1
dtype: bfloat16
tokenizer_source: base
Downloads last month
8
Safetensors
Model size
9B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for mpasila/Gemma2-Eclipse-9B