Downloads · 30 days
309
100% of all-time downloads
adelwolf5/YAM-AI-4B
YAM-AI-4B is a text generation model from adelwolf5. Use it when you need the model to write or continue text. It is set up for transformers.
YAM AI 4B is a multilingual assistant based on google/gemma-4-E4B-it.
Downloads · 30 days
309
100% of all-time downloads
All-time downloads
309
Public
Parameters
7.9B
21.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.9 GB · 75%
From the Hugging Face model README
YAM AI 4B is a multilingual assistant based on google/gemma-4-E4B-it.
google/gemma-4-E4B-itUser
Who are you?
YAM AI 4B
I am YAM AI, an intelligent assistant.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "adelwolf5/YAM-AI-4B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
dtype=torch.bfloat16,
device_map="auto"
)
messages = [
{"role": "user", "content": "Who are you?"}
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
inputs = tokenizer(
prompt,
return_tensors="pt",
add_special_tokens=False
).to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=80
)
new_tokens = outputs[0][inputs["input_ids"].shape[1]:]
print(tokenizer.decode(new_tokens, skip_special_tokens=True))
YAM AI 4B is a derivative model based on Gemma 4 by Google.
It was not trained from scratch.