Run this model with HF Jobs

Run google/cellgemma-e4b 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 and TRL to fine-tune https://huggingface.co/google/cellgemma-e4b. 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/cellgemma-e4b 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.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/google/cellgemma-e4b. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/google/cellgemma-e4b. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
cellgemma-e4b / config.json
MaartenGr's picture parsamah-deepmind's picture ericzwang's picture
Preparing for release :)
6212145
Raw History Blame Contribute Delete
2.75 kB
{
"architectures": [
"Gemma4ForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"attention_k_eq_v": false,
"audio_token_id": null,
"boa_token_id": null,
"boi_token_id": null,
"bos_token_id": 2,
"dtype": "bfloat16",
"enable_moe_block": false,
"eoa_token_id": null,
"eoi_token_id": null,
"eos_token_id": 1,
"final_logit_softcapping": 30.0,
"head_dim": 256,
"hidden_activation": "gelu_pytorch_tanh",
"hidden_size": 2560,
"hidden_size_per_layer_input": 256,
"image_token_id": null,
"initializer_range": 0.02,
"intermediate_size": 10240,
"layer_types": [
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention"
],
"max_position_embeddings": 131072,
"model_type": "gemma4_text",
"moe_intermediate_size": null,
"num_attention_heads": 8,
"num_hidden_layers": 42,
"num_key_value_heads": 2,
"num_kv_shared_layers": 18,
"pad_token_id": 0,
"per_layer_config": {
"05": {
"head_dim": 512
},
"11": {
"head_dim": 512
},
"17": {
"head_dim": 512
},
"23": {
"head_dim": 512
},
"29": {
"head_dim": 512
},
"35": {
"head_dim": 512
},
"41": {
"head_dim": 512
}
},
"rms_norm_eps": 1e-06,
"rope_parameters": {
"full_attention": {
"partial_rotary_factor": 0.25,
"rope_theta": 1000000.0,
"rope_type": "proportional"
},
"sliding_attention": {
"rope_theta": 10000.0,
"rope_type": "default"
}
},
"sliding_window": 512,
"tie_word_embeddings": true,
"top_k_experts": null,
"transformers_version": "5.18.0.dev0",
"use_bidirectional_attention": null,
"use_cache": true,
"use_double_wide_mlp": false,
"vocab_size": 282240,
"vocab_size_per_layer_input": 282240
}