Instructions to use zeromodels/gemma-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/gemma-7b with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/gemma-7b") - Keras
How to use zeromodels/gemma-7b 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-7b") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- a0e6dadb8e68f844cab4c8baf46484a596d09e6216bfa6fe0351e29bb30941a7
- Size of remote file:
- 17.5 MB
- SHA256:
- c15eb04bc5ad609fb26533e8525302c5640a945e5f67f65b7c849900acda7d99
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.