Run this model with HF Jobs

Run OpenGVLab/InternVL3-78B 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/InternVL3-78B. 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/InternVL3-78B 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/InternVL3-78B. 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/InternVL3-78B. 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.

Is the chat template correct? (issue for vLLM)

#10
by skodwani1992 - opened

Is the chat template accurate to work with vLLM?
Looking at the chat_template under tokenizer_config.json, I see it only supports "content" and not "text", "image_url", "video_url".
If I send a request:

from openai import OpenAI

client = OpenAI(
# Replace the URL
base_url="sample_url",
api_key="NOT A REAL KEY",
)
chat_response = client.chat.completions.create(
model="OpenGVLab/InternVL3-78B",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://modelscope.oss-cn-beijing.aliyuncs.com/resource/qwen.png"
},
},
{"type": "text", "text": "What is the text in the illustrate?"},
],
},
],
)

I see following InternalServerError:
TypeError: can only concatenate str (not "list") to str

It works as expected if I send the following request
from openai import OpenAI

client = OpenAI(

base_url="sample_rul",
api_key="NOT A REAL KEY",

)
chat_completion = client.chat.completions.create(
model="OpenGVLab/InternVL3-78B",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{
"role": "user",
"content": "Give me a short introduction to large language model.'",
},
],
temperature=0.01,
stream=False,
max_tokens=248,
)

found a solution?

Sign up or log in to comment

⌂ 换网址