Run this model with HF Jobs
Run google/gemma-4-12B-it-assistant on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/google/gemma-4-12B-it-assistant. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/google/gemma-4-12B-it-assistant on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use google/gemma-4-12B-it-assistant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/gemma-4-12B-it-assistant with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("google/gemma-4-12B-it-assistant") model = AutoModelForCausalLM.from_pretrained("google/gemma-4-12B-it-assistant", device_map="auto") - Notebooks
- Google Colab
- Kaggle
running error with transformers
when running the model with the newest transformers framework, there is an error:
ModuleNotFoundError: Could not import module 'Gemma4UnifiedProcessor'. Are this object's requirements defined correctly?
Hi @yxnchen , thank you for reporting this. We tested the google/gemma-4-12B-it-assistant model notebook with the latest transformers version 5.10.2 using pip install -U transformers and code ran successfully without any errors. Please refer to the gist.
Could you help us debug further by sharing the following:
- Your exact transformer version, how exactly you installed transformers?
- Was it
pip install -U transformersor any specific version - Full error traceback.