class_docstr: BLIP2 Vicuna model.
  Supported model types:
      - vicuna7b
      - vicuna13b
  Usage:
      >>> from lavis.models import load_model
      >>> model = load_model("blip2_vicuna_xinstruct", "vicuna7b")
class_docstr_tok: ["BLIP2","Vicuna","model",".","Supported","model","types",":","-","vicuna7b","-","vicuna13b","Usage",":",">",">",">","from","lavis.models","import","load_model",">",">",">","model","=","load_model","(","``","blip2_vicuna_xinstruct","''",",","``","vicuna7b","''",")"]
code: def init_video_encoder(self, model_name, precision, **kwargs):
      assert model_name in [
          "eva_clip_g",
          "eva2_clip_L",
          "clip_L",
      ], "video_model must be in [eva_clip_g, eva2_clip_L, clip_L]"
  
      if model_name in [
          "eva_clip_g",
          "eva2_clip_L",
          "clip_L",
      ]:
          video_encoder, ln_video = self.init_image_encoder(
              model_name, precision=precision, **kwargs
          )
      self.video_enc_name = model_name
      return video_encoder, ln_video
  
imports: import logging
  import string
  from packaging import version
  import os
  from omegaconf import OmegaConf
  import torch
  from torch.cuda.amp import autocast
  import torch.nn
  from torch.nn.modules.module import _IncompatibleKeys
  from peft import get_peft_model, LoraConfig, TaskType
  import transformers
  import random
  from lavis.common.registry import registry
  from lavis.models.base_model import BaseModel
  from lavis.models.blip2_models.blip2 import Blip2Base, disabled_train, LayerNorm
  from lavis.models.ulip_models.ULIP_models import ULIP_PointBERT
  from lavis.tasks.multimodal_classification import MultimodalClassificationTask
  from lavis.common.utils import is_url
  from lavis.models.blip2_models.Qformer import BertConfig, BertLMHeadModel
  from lavis.common.dist_utils import download_cached_file
  from lavis.processors.blip_processors import BlipCaptionProcessor
label_desc: Use image node_id 6 for calling the Blip2VicunaXInstruct obj's underlying member method code with example usage: obj.init_video_encoder(model_name, precision) and returns: video_encoder,  ln_video