Run this model with HF Jobs

Run google/gemma-2-2b-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-2-2b-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-2-2b-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-2-2b-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-2-2b-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.

Cannot access Gemma even after approval

#30
by Daaku-C5 - opened

Hi, i have the access to 'gemma-2-2b-it' and i can also see the github of the model. Im trying to load the model onto my colab notebook but im facing this issue, any solution? im new to this.

image.png

image.png

image.png

Google org

have you run !huggingface-cli login before loading the model?

Hi @Daaku-C5 , You need to login hugging face while executing the model. or need to add access token in secret key. Kindly refer below screenshot. if you have any doubts let us know. Thank you.

Screenshot 2024-08-14 at 3.00.41 PM.png

how do you add acces keys and token in the code. is that just a generic thing to do,or special with each model? ty.

Hi @jrviri , its generic only not for any special with each model. you can add access token keys and try. let me know if you have any concerns. Thank you.

Hi @hazelye , installing the cli worked! thank you!!

Sign up or log in to comment