Instructions to use unsloth/gemma-4-E2B-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-E2B-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-E2B-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-E2B-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-E2B-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-E2B-it", max_seq_length=2048, )
Upload folder using huggingface_hub
Browse files- config.json +2 -2
- generation_config.json +1 -1
- model.safetensors → model-00001-of-00003.safetensors +2 -2
- model-00002-of-00003.safetensors +3 -0
- model-00003-of-00003.safetensors +3 -0
- 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",
|
|
@@ -187,4 +187,4 @@
|
|
| 187 |
"use_clipped_linears": true
|
| 188 |
},
|
| 189 |
"vision_soft_tokens_per_image": 280
|
| 190 |
-
}
|
|
|
|
| 49 |
"eoa_token_id": 258883,
|
| 50 |
"eoa_token_index": 258883,
|
| 51 |
"eoi_token_id": 258882,
|
| 52 |
+
"eos_token_id": 1,
|
| 53 |
"image_token_id": 258880,
|
| 54 |
"initializer_range": 0.02,
|
| 55 |
"model_type": "gemma4",
|
|
|
|
| 187 |
"use_clipped_linears": true
|
| 188 |
},
|
| 189 |
"vision_soft_tokens_per_image": 280
|
| 190 |
+
}
|
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.8.0.dev0"
|
| 14 |
}
|
model.safetensors → model-00001-of-00003.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:9ebcea1985a201703cd702b4bb5e3cfc4efddaa4e2b4c58fce3703baa456a11e
|
| 3 |
+
size 1422130776
|
model-00002-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b07560fd5ae48bc6594433bd2c366ae2df65fd42d7d1adbd2865e169ee3ec8ea
|
| 3 |
+
size 4987105346
|
model-00003-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c09a40c769d67235595f0d8a9909f4eab6ea9f9719f17812f7285830fa951a66
|
| 3 |
+
size 3799615716
|
model.safetensors.index.json
ADDED
|
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": "left",
|
| 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": "<eos>",
|
| 11 |
"eot_token": "<turn|>",
|
| 12 |
"escape_token": "<|\"|>",
|
| 13 |
"etc_token": "<tool_call|>",
|
|
|
|
| 17 |
"<|video|>"
|
| 18 |
],
|
| 19 |
"image_token": "<|image|>",
|
| 20 |
+
"is_local": false,
|
| 21 |
"local_files_only": false,
|
| 22 |
"mask_token": "<mask>",
|
| 23 |
"model_max_length": 131072,
|