FOVIS

FOVIS SFT LoRA adapter for Qwen/Qwen3-VL-8B-Instruct.

This repository contains the adapter weights. Run the following code from the FOVIS project environment so that the fovis package is available.

import torch
from peft import PeftModel
from transformers import AutoProcessor, Qwen3VLForConditionalGeneration

from fovis import FOVISConfig, patch_qwen3vl_model, register_fovis

register_fovis(
    FOVISConfig(fovis_chunk_size=512, fovis_topk=3),
    model_type="qwen3vl",
)

base_model = Qwen3VLForConditionalGeneration.from_pretrained(
    "Qwen/Qwen3-VL-8B-Instruct",
    torch_dtype=torch.bfloat16,
    device_map="cuda:0",
    attn_implementation="flash_attention_2",
)
patch_qwen3vl_model(base_model)

model = PeftModel.from_pretrained(
    base_model,
    "kiki041126/fovis",
    torch_dtype=torch.bfloat16,
)
model = model.merge_and_unload()
model.eval()

processor = AutoProcessor.from_pretrained("kiki041126/fovis")
Downloads last month
39
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for kiki041126/fovis

Adapter
(148)
this model