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="Hastagaras/Sunmoy-9B-G2")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Hastagaras/Sunmoy-9B-G2")
model = AutoModelForCausalLM.from_pretrained("Hastagaras/Sunmoy-9B-G2")
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

i just realized that the model somehow became 10b and i don't know why, but the gguf is still 9b

<bos><start_of_turn>user
{system}

{input}<end_of_turn>
<start_of_turn>model
{response}<end_of_turn>
<start_of_turn>user
{input}<end_of_turn>
<start_of_turn>model
{response}<end_of_turn><eos>

The following YAML configuration was used to produce this model:

models:
  - model: crestf411/gemma2-9B-sunfall-v0.5.2
  - model: Hastagaras/Gemmoy-9B-G2-MK.3
  - model: Hastagaras/Gemma-Model1
merge_method: model_stock
base_model: IlyaGusev/gemma-2-9b-it-abliterated
dtype: bfloat16
Downloads last month
7
Safetensors
Model size
10B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Hastagaras/Sunmoy-9B-G2