Run this model with HF Jobs

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

base vs instruct model

#17
by saireddy - opened

I have an use case similar to question and answering on my custom data set, should I be starting with base model or instruct model for this exercise? or is there a thumb rule on when to use base and when to use instruct model?
@lysandre any guidance is greatly appreciated

Base model is good for general language understanding but may not follow instructions well. It needs fine-tuning for specific tasks. Instruction tuned Model is pre-trained to follow instructions, good for tasks like question answering or chatbots and it also may need less fine-tuning.
Base models can be used for tasks where more control over fine-tuning needed or if we have a large custom dataset. Instruction tuned models are used for tasks that involve following instructions and require good performance out-of-the-box.

Please refer to this similar issue answered in Kaggle for more details. Thank you

saireddy changed discussion status to closed

Sign up or log in to comment