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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

gimarchetti
/
gemma-2-9b-openmath

Text Generation
KerasHub
google-tensorflow TensorFlow
Model card Files Files and versions
xet
Community

Instructions to use gimarchetti/gemma-2-9b-openmath with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • KerasHub

    How to use gimarchetti/gemma-2-9b-openmath with KerasHub:

    import keras_hub
    
    # Load CausalLM model (optional: use half precision for inference)
    causal_lm = keras_hub.models.CausalLM.from_preset("hf://gimarchetti/gemma-2-9b-openmath", dtype="bfloat16")
    causal_lm.compile(sampler="greedy")  # (optional) specify a sampler
    
    # Generate text
    causal_lm.generate("Keras: deep learning for", max_length=64)
    
    import keras_hub
    
    # Create a Backbone model unspecialized for any task
    backbone = keras_hub.models.Backbone.from_preset("hf://gimarchetti/gemma-2-9b-openmath")
    
  • Keras

    How to use gimarchetti/gemma-2-9b-openmath with Keras:

    # Available backend options are: "jax", "torch", "tensorflow".
    import os
    os.environ["KERAS_BACKEND"] = "jax"
    
    import keras
    
    model = keras.saving.load_model("hf://gimarchetti/gemma-2-9b-openmath")
    
  • Notebooks
  • Google Colab
  • Kaggle
gemma-2-9b-openmath
37 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits

This model has 4 files scanned as unsafe.

gimarchetti's picture
gimarchetti
Rename model.weights.h5 to tf_model.h5
f4e3210 verified 10 months ago
  • assets
    Upload folder using huggingface_hub 11 months ago
  • .gitattributes
    1.59 kB
    Upload folder using huggingface_hub 11 months ago
  • README.md
    1 kB
    Upload folder using huggingface_hub 11 months ago
  • config.json
    779 Bytes
    Upload folder using huggingface_hub 11 months ago
  • metadata.json
    185 Bytes
    Upload folder using huggingface_hub 11 months ago
  • preprocessor.json
    1.42 kB
    Upload folder using huggingface_hub 11 months ago
  • task.json
    2.97 kB
    Upload folder using huggingface_hub 11 months ago
  • tf_model.h5
    37 GB
    xet
    Rename model.weights.h5 to tf_model.h5 10 months ago
  • tokenizer.json
    591 Bytes
    Upload folder using huggingface_hub 11 months ago