Instructions to use datasysdev/gemma-3-270m-Ro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use datasysdev/gemma-3-270m-Ro with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("datasysdev/gemma-3-270m-Ro", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Unsloth Studio
How to use datasysdev/gemma-3-270m-Ro 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 datasysdev/gemma-3-270m-Ro 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 datasysdev/gemma-3-270m-Ro to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for datasysdev/gemma-3-270m-Ro to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="datasysdev/gemma-3-270m-Ro", max_seq_length=2048, )
Upload Gemma3ForCausalLM
Browse files- config.json +3 -5
- generation_config.json +1 -2
- model.safetensors +1 -1
config.json
CHANGED
|
@@ -7,7 +7,8 @@
|
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"attn_logit_softcapping": null,
|
| 9 |
"bos_token_id": 2,
|
| 10 |
-
"
|
|
|
|
| 11 |
"final_logit_softcapping": null,
|
| 12 |
"head_dim": 256,
|
| 13 |
"hidden_activation": "gelu_pytorch_tanh",
|
|
@@ -46,10 +47,7 @@
|
|
| 46 |
"rope_scaling": null,
|
| 47 |
"rope_theta": 1000000.0,
|
| 48 |
"sliding_window": 512,
|
| 49 |
-
"
|
| 50 |
-
"transformers_version": "4.55.4",
|
| 51 |
-
"unsloth_fixed": true,
|
| 52 |
-
"unsloth_version": "2025.9.2",
|
| 53 |
"use_bidirectional_attention": false,
|
| 54 |
"use_cache": true,
|
| 55 |
"vocab_size": 262144
|
|
|
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"attn_logit_softcapping": null,
|
| 9 |
"bos_token_id": 2,
|
| 10 |
+
"dtype": "bfloat16",
|
| 11 |
+
"eos_token_id": 1,
|
| 12 |
"final_logit_softcapping": null,
|
| 13 |
"head_dim": 256,
|
| 14 |
"hidden_activation": "gelu_pytorch_tanh",
|
|
|
|
| 47 |
"rope_scaling": null,
|
| 48 |
"rope_theta": 1000000.0,
|
| 49 |
"sliding_window": 512,
|
| 50 |
+
"transformers_version": "4.56.0",
|
|
|
|
|
|
|
|
|
|
| 51 |
"use_bidirectional_attention": false,
|
| 52 |
"use_cache": true,
|
| 53 |
"vocab_size": 262144
|
generation_config.json
CHANGED
|
@@ -6,9 +6,8 @@
|
|
| 6 |
1,
|
| 7 |
106
|
| 8 |
],
|
| 9 |
-
"max_length": 32768,
|
| 10 |
"pad_token_id": 0,
|
| 11 |
"top_k": 64,
|
| 12 |
"top_p": 0.95,
|
| 13 |
-
"transformers_version": "4.
|
| 14 |
}
|
|
|
|
| 6 |
1,
|
| 7 |
106
|
| 8 |
],
|
|
|
|
| 9 |
"pad_token_id": 0,
|
| 10 |
"top_k": 64,
|
| 11 |
"top_p": 0.95,
|
| 12 |
+
"transformers_version": "4.56.0"
|
| 13 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 536223056
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d14ffaa3b52b9bc34bc7652ee8978cdbf842dfb3e8b3cbd9ccafcc2fdaa86e72
|
| 3 |
size 536223056
|