Instructions to use zeromodels/gemma-2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use zeromodels/gemma-2b with KerasFormers:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Keras
How to use zeromodels/gemma-2b with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://zeromodels/gemma-2b") - Notebooks
- Google Colab
- Kaggle
File size: 551 Bytes
a33c604 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | {
"library_name": "kerasformers",
"kerasformers_version": "1.2.1",
"model_module": "kerasformers.models.gemma",
"model_class": "GemmaTextGenerate",
"variant": "gemma-2b",
"weights": "model.weights.h5",
"schema_version": 2,
"weight_dtype": "bfloat16",
"model_type": "gemma",
"text_config": {
"vocab_size": 256000,
"embed_dim": 2048,
"mlp_dim": 16384,
"num_layers": 18,
"num_heads": 8,
"num_kv_heads": 1,
"head_dim": 256,
"norm_eps": 1e-06,
"rope_theta": 10000.0,
"tie_embeddings": true
}
}
|