2Vasabi / tvl-mini-0.1

huggingface.co
Total runs: 1
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: October 30 2024
text-generation

Introduction of tvl-mini-0.1

Model Details of tvl-mini-0.1

tvl-mini

Description

This is finetune of Qwen2-VL-2B on russian language.

tvl was trained in bf16

Data

Train dataset contains:

  • GrandMaster-PRO-MAX dataset (60k samples)
  • Translated, humanized and merged by image subset of GQA (TODO)
Bechmarks
TODO
Quickstart

Your can simply run this notebook or run code below.

First install qwen-vl-utils and dev version of transformers:

pip install qwen-vl-utils
pip install --no-cache-dir git+https://github.com/huggingface/transformers@19e6e80e10118f855137b90740936c0b11ac397f

And then run:

from transformers import Qwen2VLForConditionalGeneration, AutoTokenizer, AutoProcessor
from qwen_vl_utils import process_vision_info
import torch

model = Qwen2VLForConditionalGeneration.from_pretrained(
    "2Vasabi/tvl-mini-0.1", torch_dtype=torch.bfloat16, device_map="auto"
)


processor = AutoProcessor.from_pretrained("2Vasabi/tvl-mini-0.1")
messages = [
    {
        "role": "user",
        "content": [
            {
                "type": "image",
                "image": "https://i.ibb.co/d0QL8s6/images.jpg",
            },
            {"type": "text", "text": "Кратко опиши что ты видишь на изображении"},
        ],
    }
]

text = processor.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True
)
image_inputs, video_inputs = process_vision_info(messages)
inputs = processor(
    text=[text],
    images=image_inputs,
    videos=video_inputs,
    padding=True,
    return_tensors="pt",
)

inputs = inputs.to("cuda")

generated_ids = model.generate(**inputs, max_new_tokens=1000)
generated_ids_trimmed = [
    out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
output_text = processor.batch_decode(
    generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
)
print(output_text)

Runs of 2Vasabi tvl-mini-0.1 on huggingface.co

1
Total runs
0
24-hour runs
1
3-day runs
0
7-day runs
0
30-day runs

More Information About tvl-mini-0.1 huggingface.co Model

More tvl-mini-0.1 license Visit here:

https://choosealicense.com/licenses/apache-2.0

tvl-mini-0.1 huggingface.co

tvl-mini-0.1 huggingface.co is an AI model on huggingface.co that provides tvl-mini-0.1's model effect (), which can be used instantly with this 2Vasabi tvl-mini-0.1 model. huggingface.co supports a free trial of the tvl-mini-0.1 model, and also provides paid use of the tvl-mini-0.1. Support call tvl-mini-0.1 model through api, including Node.js, Python, http.

tvl-mini-0.1 huggingface.co Url

https://huggingface.co/2Vasabi/tvl-mini-0.1

2Vasabi tvl-mini-0.1 online free

tvl-mini-0.1 huggingface.co is an online trial and call api platform, which integrates tvl-mini-0.1's modeling effects, including api services, and provides a free online trial of tvl-mini-0.1, you can try tvl-mini-0.1 online for free by clicking the link below.

2Vasabi tvl-mini-0.1 online free url in huggingface.co:

https://huggingface.co/2Vasabi/tvl-mini-0.1

tvl-mini-0.1 install

tvl-mini-0.1 is an open source model from GitHub that offers a free installation service, and any user can find tvl-mini-0.1 on GitHub to install. At the same time, huggingface.co provides the effect of tvl-mini-0.1 install, users can directly use tvl-mini-0.1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

tvl-mini-0.1 install url in huggingface.co:

https://huggingface.co/2Vasabi/tvl-mini-0.1

Url of tvl-mini-0.1

tvl-mini-0.1 huggingface.co Url

Provider of tvl-mini-0.1 huggingface.co

2Vasabi
ORGANIZATIONS

Other API from 2Vasabi