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.

AttributeError: module 'torch._dynamo' has no attribute 'mark_static_address'

#29
by AsirAsir - opened

how to solve this problem?

Hi @AsirAsir , Please provide some more details on the issue like which environment you are using or reproducible code to replicate the error. Thank you

@AsirAsir this worked for me pip install --upgrade torch torchvision torchaudio

@gpu-poor Please share your torch version

@ccbbdd torch==2.4.0

Have you been able to find any different solutions for this topic instead of upgrading torch?

deleted

What we need is torch.version >= 2.3.0, because the newer transformers use cache_utils.py which include torch._dynamo.

Sign up or log in to comment