Instructions to use timothydillan/gemma4-e2b-balinese-assistant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use timothydillan/gemma4-e2b-balinese-assistant with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("timothydillan/gemma4-e2b-balinese-cpt") model = PeftModel.from_pretrained(base_model, "timothydillan/gemma4-e2b-balinese-assistant") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use timothydillan/gemma4-e2b-balinese-assistant with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for timothydillan/gemma4-e2b-balinese-assistant to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for timothydillan/gemma4-e2b-balinese-assistant to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for timothydillan/gemma4-e2b-balinese-assistant to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="timothydillan/gemma4-e2b-balinese-assistant", max_seq_length=2048, )
Gemma-4-E2B Balinese Assistant β EARLY CHECKPOINT (CPT->SFT v1)
β οΈ EARLY RESEARCH CHECKPOINT β NOT a finished assistant. This model speaks fluent Balinese (the CPT fluency stage works) but does not yet reliably follow instructions β it tends to answer off-topic and degenerate into repetition. Published for transparency and reproducibility, not for production use. A retrained version with grounded, instruction-balanced Balinese data is in progress.
Part of Open Indonesia Models.
Pipeline: google/gemma-4-E2B-it -> CPT (Balinese fluency, ~25M tokens) ->
SFT (instruction LoRA). Base is the CPT model
timothydillan/gemma4-e2b-balinese-cpt.
What works / what doesn't (honest)
- β Fluency: grammatical, high-register (alus) Balinese.
- β Instruction-following: ignores the question, loops on phrases.
- Why: the SFT mix was ~67% translation/story (teaches text generation, not answering) and the instruction portion was machine-translated. Fix = grounded, instruction-heavy, cleaned Balinese data (next round).
Serve (base + adapter)
from peft import AutoPeftModelForCausalLM
from transformers import AutoTokenizer
model = AutoPeftModelForCausalLM.from_pretrained("timothydillan/gemma4-e2b-balinese-assistant") # pulls CPT base + this adapter
tok = AutoTokenizer.from_pretrained("timothydillan/gemma4-e2b-balinese-assistant")
# Gemma 4 is multimodal: message content must be a list of typed parts.
msgs = [{"role": "user", "content": [{"type": "text", "text": "Om Swastiastu!"}]}]
LoRA r=16, 4516 steps. Target: a small on-device Balinese assistant. Research checkpoint.
- Downloads last month
- 61
Model tree for timothydillan/gemma4-e2b-balinese-assistant
Base model
google/gemma-4-E2B