Instructions to use unsloth/gemma-4-E4B-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- Unsloth Studio
How to use unsloth/gemma-4-E4B-it 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 unsloth/gemma-4-E4B-it 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 unsloth/gemma-4-E4B-it to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/gemma-4-E4B-it to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="unsloth/gemma-4-E4B-it", max_seq_length=2048, )
Upload folder using huggingface_hub
Browse files- config.json +2 -2
- generation_config.json +1 -1
- model-00002-of-00004.safetensors +0 -3
- model-00003-of-00004.safetensors +0 -3
- model-00004-of-00004.safetensors +0 -3
- model-00001-of-00004.safetensors → model.safetensors +2 -2
- model.safetensors.index.json +0 -0
- processor_config.json +1 -1
- tokenizer_config.json +2 -2
config.json
CHANGED
|
@@ -49,7 +49,7 @@
|
|
| 49 |
"eoa_token_id": 258883,
|
| 50 |
"eoa_token_index": 258883,
|
| 51 |
"eoi_token_id": 258882,
|
| 52 |
-
"eos_token_id":
|
| 53 |
"image_token_id": 258880,
|
| 54 |
"initializer_range": 0.02,
|
| 55 |
"model_type": "gemma4",
|
|
@@ -194,4 +194,4 @@
|
|
| 194 |
"use_clipped_linears": true
|
| 195 |
},
|
| 196 |
"vision_soft_tokens_per_image": 280
|
| 197 |
-
}
|
|
|
|
| 49 |
"eoa_token_id": 258883,
|
| 50 |
"eoa_token_index": 258883,
|
| 51 |
"eoi_token_id": 258882,
|
| 52 |
+
"eos_token_id": 106,
|
| 53 |
"image_token_id": 258880,
|
| 54 |
"initializer_range": 0.02,
|
| 55 |
"model_type": "gemma4",
|
|
|
|
| 194 |
"use_clipped_linears": true
|
| 195 |
},
|
| 196 |
"vision_soft_tokens_per_image": 280
|
| 197 |
+
}
|
generation_config.json
CHANGED
|
@@ -10,5 +10,5 @@
|
|
| 10 |
"temperature": 1.0,
|
| 11 |
"top_k": 64,
|
| 12 |
"top_p": 0.95,
|
| 13 |
-
"transformers_version": "5.
|
| 14 |
}
|
|
|
|
| 10 |
"temperature": 1.0,
|
| 11 |
"top_k": 64,
|
| 12 |
"top_p": 0.95,
|
| 13 |
+
"transformers_version": "5.5.0.dev0"
|
| 14 |
}
|
model-00002-of-00004.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9ff4341d43d78f190cc6d4e69e156ce0b5b9c28fde9e8c2c6a4b5e78e49a55e7
|
| 3 |
-
size 4994573962
|
|
|
|
|
|
|
|
|
|
|
|
model-00003-of-00004.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2b983554f3029db9673e978a5f45a31eeffe3b860e20c4014ffb5ee1510682e1
|
| 3 |
-
size 4996204630
|
|
|
|
|
|
|
|
|
|
|
|
model-00004-of-00004.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8080cb1ab73a91528449fc238665f6a2938583e5f1dc877c099292a1f31f6144
|
| 3 |
-
size 254550436
|
|
|
|
|
|
|
|
|
|
|
|
model-00001-of-00004.safetensors → model.safetensors
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfbd3d2f1cd71bd471c37fe2bf8546d5028d41e5736f64e1ca6c6b8893125503
|
| 3 |
+
size 15992595884
|
model.safetensors.index.json
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
processor_config.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"max_frequency": 8000.0,
|
| 14 |
"mel_floor": 0.001,
|
| 15 |
"min_frequency": 0.0,
|
| 16 |
-
"padding_side": "
|
| 17 |
"padding_value": 0.0,
|
| 18 |
"per_bin_mean": null,
|
| 19 |
"per_bin_stddev": null,
|
|
|
|
| 13 |
"max_frequency": 8000.0,
|
| 14 |
"mel_floor": 0.001,
|
| 15 |
"min_frequency": 0.0,
|
| 16 |
+
"padding_side": "right",
|
| 17 |
"padding_value": 0.0,
|
| 18 |
"per_bin_mean": null,
|
| 19 |
"per_bin_stddev": null,
|
tokenizer_config.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
"eoa_token": "<audio|>",
|
| 8 |
"eoc_token": "<channel|>",
|
| 9 |
"eoi_token": "<image|>",
|
| 10 |
-
"eos_token": "<
|
| 11 |
"eot_token": "<turn|>",
|
| 12 |
"escape_token": "<|\"|>",
|
| 13 |
"etc_token": "<tool_call|>",
|
|
@@ -17,7 +17,7 @@
|
|
| 17 |
"<|video|>"
|
| 18 |
],
|
| 19 |
"image_token": "<|image|>",
|
| 20 |
-
"is_local":
|
| 21 |
"local_files_only": false,
|
| 22 |
"mask_token": "<mask>",
|
| 23 |
"model_max_length": 131072,
|
|
|
|
| 7 |
"eoa_token": "<audio|>",
|
| 8 |
"eoc_token": "<channel|>",
|
| 9 |
"eoi_token": "<image|>",
|
| 10 |
+
"eos_token": "<turn|>",
|
| 11 |
"eot_token": "<turn|>",
|
| 12 |
"escape_token": "<|\"|>",
|
| 13 |
"etc_token": "<tool_call|>",
|
|
|
|
| 17 |
"<|video|>"
|
| 18 |
],
|
| 19 |
"image_token": "<|image|>",
|
| 20 |
+
"is_local": true,
|
| 21 |
"local_files_only": false,
|
| 22 |
"mask_token": "<mask>",
|
| 23 |
"model_max_length": 131072,
|