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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,482 Bytes
4af09c3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | {
"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
} |