Run this model with HF Jobs

Run google/gemma-7b-it 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 and TRL to fine-tune https://huggingface.co/google/gemma-7b-it. 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/gemma-7b-it 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/gemma-7b-it. 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/gemma-7b-it. 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.

What's the context window for this model?

#73
by siddheshgunjal - opened

What's the context window for this model?

Hi @siddheshgunjal
The model uses classic attention and GQA for the 2B model, therefore the model should attend to the entire sequence if I am not mistaken. Let me know @suryabhupa if this is correct :)

hello! Surya from the Gemma team here -- the 2B model actually uses MQA (just 1 KV head), whereas the 7B uses MHA. Both models have the same sequence/context length of 8192, as specified in the technical report.

Thanks @suryabhupa
I was also struggling to find this. I noticed that this isn't documented in the codegemma-7b technical documents. That number is only documented in the base model docs which is here: https://storage.googleapis.com/deepmind-media/gemma/gemma-report.pdf
It would be nice if this was also linked on this page.
By the way thank you for making this model available it feel like it will be very helpful for me :)

It's our pleasure! Do you mean adding the context length to the Gemma's HF page docs?

Ideally the context and link to the technical doc on the model this thread is on gemma-7b-it.

Thanks @suryabhupa & @ybelkada for clarification!

siddheshgunjal changed discussion status to closed

Sign up or log in to comment