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.

ValueError: Tokenizer class GemmaTokenizer does not exist or is not currently imported.

#9
by aigeek0x0 - opened

Is this model supported by transformers yet? I am using the latest transformers version built using the main branch of the github repo.

Installed the latest version of transformers again and that solved the problem.

!pip install -q -U git+https://github.com/huggingface/transformers.git

osanseviero changed discussion status to closed

!pip install -q -U git+https://github.com/huggingface/transformers.git after this the problem is same
ValueError: Tokenizer class GemmaTokenizer does not exist or is not currently imported.

Try this:
pip install "torch>=2.1.1" -U

I did the same [pip install "torch>=2.1.1" -U] but also got the same error!😔

Hey, I have got the same error, any solutions??

Hi, just restart the session again but before that,
remove any pip install transformers command and replace it with below line.
!pip -q install git+https://github.com/huggingface/transformers.git

Install other packages like trl or peft seperately using !pip install trl peft
It started working for me..

The solutions provided here did not work for me. I've done pip install the git repository and did restart the session a few times but still I get ValueError: Tokenizer class GemmaTokenizer does not exist or is not currently imported..

I did "pip install -U transformers" installed 4.38.2
It worked for me.

Thank you for this. I checked transformers.__version__ and saw something older than 4.38.2 . Jupyter-lab was from a conda installation, not my python venv. So, I installed jupyterlab in the right python venv and then I was able to utilize the right transformers library!

"pip install -U transformers" can resolve this question, and version update form 4.37.1 to 4.38.2.

Updating transformers to 4.38.2 resolves the issue.

Updating transformers should resolve it:

pip install -q -U transformers

Sign up or log in to comment