Run this model with HF Jobs

Run OpenGVLab/InternVL2-2B 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/OpenGVLab/InternVL2-2B. Ask me which dataset to train on, then push the fine-tuned model to a new 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/OpenGVLab/InternVL2-2B 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/OpenGVLab/InternVL2-2B. Ask me which benchmark to run, then save the scores and the per-example results to a new 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/OpenGVLab/InternVL2-2B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

[BUG] Conflict between the model file and sentencepiece

#8
by mayuyuace1 - opened

According to the issue: https://github.com/google/sentencepiece/issues/1308, sentencepiece 0.2.2 introduced a validation that rejects loading .model files containing pieces with null bytes (\x00).
But int the file https://huggingface.co/OpenGVLab/InternVL2-2B/blob/main/tokenizer.model, the standard <0x00> byte fallback token exists at index 3.
A error will be raise as below reproducer show:

/*******************************/

pip install sentencepiece==0.2.2

import sentencepiece as spm

sp = spm.SentencePieceProcessor()
sp.Load("/path/to/tokenizer.model")

RuntimeError: INTERNAL: piece must not include null character.

/*******************************/
Sentencepiece claims that this is an inspection procedure that is correct and in line with expectations.
Can you help fix the bug?

Sign up or log in to comment

⌂ 换网址