Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

zeromodels
/
gemma-3n-e4b

Image-Text-to-Text
ZeroModels
Keras
PyTorch
JAX
google-tensorflow TensorFlow
English
gemma3n
gemma-3n
audio-text-to-text
multimodal
Model card Files Files and versions
xet
Community

Instructions to use zeromodels/gemma-3n-e4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • ZeroModels

    How to use zeromodels/gemma-3n-e4b 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-3n-e4b")
    
  • Keras

    How to use zeromodels/gemma-3n-e4b with Keras:

    # !pip install -U keras tensorflow huggingface_hub
    # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here;
    # "jax" and "torch" also work for computation once TensorFlow is installed.
    import os
    os.environ["KERAS_BACKEND"] = "tensorflow"
    
    import keras
    
    model = keras.saving.load_model("hf://zeromodels/gemma-3n-e4b")
    
  • Notebooks
  • Google Colab
  • Kaggle
gemma-3n-e4b
32.6 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
IMvision12's picture
IMvision12
Fix HUB-02: correct declared weights filename
f022bcb verified 6 days ago
  • .gitattributes
    1.57 kB
    Super-squash branch 'main' using huggingface_hub about 1 month ago
  • README.md
    4.87 kB
    Fix Collection badge link to the current zeromodels collection slug about 1 month ago
  • model.weights.json
    198 kB
    Super-squash branch 'main' using huggingface_hub about 1 month ago
  • model_00000.weights.h5
    7.33 GB
    xet
    Super-squash branch 'main' using huggingface_hub about 1 month ago
  • model_00001.weights.h5
    9.61 GB
    xet
    Super-squash branch 'main' using huggingface_hub about 1 month ago
  • model_00002.weights.h5
    9.55 GB
    xet
    Super-squash branch 'main' using huggingface_hub about 1 month ago
  • model_00003.weights.h5
    6.1 GB
    xet
    Super-squash branch 'main' using huggingface_hub about 1 month ago
  • tokenizer.json
    33.4 MB
    xet
    Super-squash branch 'main' using huggingface_hub about 1 month ago
  • zm_config.json
    4.14 kB
    Fix HUB-02: correct declared weights filename 6 days ago
  • zm_preprocessor.json
    352 Bytes
    Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge) about 1 month ago