Run this model with HF Jobs
Run google/codegemma-7b-it-keras on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/google/codegemma-7b-it-keras. Ask me which dataset to train on, then push the fine-tuned model to a new private model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/google/codegemma-7b-it-keras on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/google/codegemma-7b-it-keras. Ask me which benchmark to run, then save the scores and the per-example results to a new private dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/google/codegemma-7b-it-keras. Push it to a new private model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use google/codegemma-7b-it-keras with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use google/codegemma-7b-it-keras with KerasHub:
import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://google/codegemma-7b-it-keras") - Keras
How to use google/codegemma-7b-it-keras 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://google/codegemma-7b-it-keras") - Notebooks
- Google Colab
- Kaggle
Access CodeGemma on Hugging Face
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
To access CodeGemma on Hugging Face, you’re required to review and agree to Google’s usage license. To do this, please ensure you’re logged-in to Hugging Face and click below. Requests are processed immediately.
Log in or Sign Up to review the conditions and access this model content.
CodeGemma
❗️There is a newer version of this model here: huggingface.co/google/codegemma-1.17b-it-keras
This model card corresponds to the 7B instruct version of the Code Gemma model for usage in keras. For more information about the model, visit https://huggingface.co/google/codegemma-7b-it.
Model Page : CodeGemma
Resources and Technical Documentation : Technical Report : Responsible Generative AI Toolkit
Terms of Use : Terms
Authors : Google
Loading the model
import keras_nlp
gemma_lm = keras_nlp.models.GemmaCausalLM.from_preset("hf://google/codegemma-7b-it-keras")
- Downloads last month
- 3