Instructions to use shibatch/tinygemma3-2m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shibatch/tinygemma3-2m with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("shibatch/tinygemma3-2m", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "transformers_version": "5.9.0", | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": null, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "vocab_size": 1024, | |
| "hidden_size": 128, | |
| "intermediate_size": 512, | |
| "num_hidden_layers": 6, | |
| "num_attention_heads": 4, | |
| "num_key_value_heads": 1, | |
| "head_dim": 32, | |
| "hidden_activation": "gelu_pytorch_tanh", | |
| "max_position_embeddings": 256, | |
| "initializer_range": 0.02, | |
| "rms_norm_eps": 1e-06, | |
| "use_cache": false, | |
| "pad_token_id": 1000, | |
| "eos_token_id": 1001, | |
| "bos_token_id": 1000, | |
| "tie_word_embeddings": true, | |
| "rope_parameters": { | |
| "sliding_attention": { | |
| "rope_type": "default", | |
| "rope_theta": 10000.0 | |
| }, | |
| "full_attention": { | |
| "rope_type": "default", | |
| "rope_theta": 1000000.0 | |
| } | |
| }, | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "query_pre_attn_scalar": 32, | |
| "sliding_window": 32, | |
| "layer_types": [ | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention" | |
| ], | |
| "final_logit_softcapping": null, | |
| "attn_logit_softcapping": null, | |
| "use_bidirectional_attention": false, | |
| "_sliding_window_pattern": 6, | |
| "_name_or_path": "", | |
| "model_type": "gemma3_text", | |
| "output_attentions": false | |
| } |