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

laxmareddyp
/
gemma-2b-finetune

Text Generation
KerasHub
Model card Files Files and versions
xet
Community

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

  • Libraries
  • KerasHub

    How to use laxmareddyp/gemma-2b-finetune with KerasHub:

    import keras_hub
    
    # Load CausalLM model (optional: use half precision for inference)
    causal_lm = keras_hub.models.CausalLM.from_preset("hf://laxmareddyp/gemma-2b-finetune", 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://laxmareddyp/gemma-2b-finetune")
    
  • Keras

    How to use laxmareddyp/gemma-2b-finetune with Keras:

    # Available backend options are: "jax", "torch", "tensorflow".
    import os
    os.environ["KERAS_BACKEND"] = "jax"
    
    import keras
    
    model = keras.saving.load_model("hf://laxmareddyp/gemma-2b-finetune")
    
  • Notebooks
  • Google Colab
  • Kaggle
gemma-2b-finetune
5.02 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 14 commits
laxmareddyp's picture
laxmareddyp
Upload folder using huggingface_hub
ab1db8b verified 11 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.01 kB
    Upload folder using huggingface_hub 11 months ago
  • config.json
    785 Bytes
    Upload folder using huggingface_hub 11 months ago
  • metadata.json
    215 Bytes
    Upload folder using huggingface_hub 11 months ago
  • model.weights.h5
    5.01 GB
    xet
    Upload folder using huggingface_hub 11 months ago
  • preprocessor.json
    1.42 kB
    Upload folder using huggingface_hub 11 months ago
  • task.json
    2.98 kB
    Upload folder using huggingface_hub 11 months ago
  • tokenizer.json
    591 Bytes
    Upload folder using huggingface_hub 11 months ago