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-3-4b-pt

Image-Text-to-Text
ZeroModels
Keras
PyTorch
JAX
google-tensorflow TensorFlow
English
gemma3
gemma-3
arxiv:2503.19786
Model card Files Files and versions
xet
Community

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

  • Libraries
  • ZeroModels

    How to use zeromodels/gemma-3-4b-pt 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-3-4b-pt")
    
  • Keras

    How to use zeromodels/gemma-3-4b-pt 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-3-4b-pt")
    
  • Notebooks
  • Google Colab
  • Kaggle
gemma-3-4b-pt
8.64 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
IMvision12's picture
IMvision12
Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge)
89544d7 verified 12 days ago
  • .gitattributes
    1.57 kB
    Super-squash branch 'main' using huggingface_hub 13 days ago
  • README.md
    4.12 kB
    Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge) 12 days ago
  • model.weights.json
    71.2 kB
    Super-squash branch 'main' using huggingface_hub 13 days ago
  • model_00000.weights.h5
    5.37 GB
    xet
    Super-squash branch 'main' using huggingface_hub 13 days ago
  • model_00001.weights.h5
    3.24 GB
    xet
    Super-squash branch 'main' using huggingface_hub 13 days ago
  • tokenizer.json
    33.4 MB
    xet
    Super-squash branch 'main' using huggingface_hub 13 days ago
  • zm_config.json
    964 Bytes
    Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge) 12 days ago
  • zm_preprocessor.json
    310 Bytes
    Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge) 12 days ago