Views
No views yet
unsloth/gemma-4-E4B-it designed to act as a helpful daily life assistant. It was trained to provide actionable, practical advice for everyday situations like time management, meal prep, budgeting, and general productivity.unsloth/gemma-4-E4B-itHuggingFaceH4/ultrachat_200ktrain_sft"model" instead of "assistant" to comply with Gemma's formatting requirements.q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projadamw_8bittransformers library:1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_id = "Stinger2311/gemma4-daily-life-assistant-merged"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id,
9 device_map="auto",
10 torch_dtype=torch.bfloat16
11)
12
13messages = [
14 {"role": "user", "content": "How do I manage my time better?"}
15]
16
17inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to("cuda")
18outputs = model.generate(inputs, max_new_tokens=256, temperature=0.7)
19print(tokenizer.decode(outputs[0], skip_special_tokens=True))