Giter Site home page Giter Site logo

Comments (5)

ZhangYuanhan-AI avatar ZhangYuanhan-AI commented on July 29, 2024 2

output_ids = model.generate(inputs=input_ids, images=video, attention_mask=attention_masks, modalities="video", do_sample=True, temperature=0.2, max_new_tokens=1024, use_cache=True, stopping_criteria=[stopping_criteria])

try to change this line to

output_ids = model.generate(inputs=input_ids, images=video, attention_mask=attention_masks, modalities="video", do_sample=True, temperature=0.2, max_new_tokens=1024, use_cache=True)

from llava-next.

ZhangYuanhan-AI avatar ZhangYuanhan-AI commented on July 29, 2024

Hi, what is the version of your transformers?

from llava-next.

rebuttalpapers avatar rebuttalpapers commented on July 29, 2024

Thanks!

import transformers
print(transformers.version)

4.40.0.dev0

from llava-next.

ZhangYuanhan-AI avatar ZhangYuanhan-AI commented on July 29, 2024

My TF version is 4.39.0 and the conv model should be mistral_instruct for LLaVA-NeXT-Video-7B-32K.

BTW, there is "attention_dropout" in "https://huggingface.co/lmms-lab/LLaVA-NeXT-Video-7B-32K/blob/main/config.json"

from llava-next.

rebuttalpapers avatar rebuttalpapers commented on July 29, 2024

Thanks @ZhangYuanhan-AI !

  1. What is the "attention_dropout" and how it solves the problem above "AttributeError: 'LlavaMistralConfig' object has no attribute 'attention_bias'"?

  2. Additionally, I downgraded the TF from 4.40.0.dev0 to 4.39.0 and the same problem is still there.

  3. what is the command you use to call LLaVA-NeXT-Video-7B-32K model?
    (for others it is: bash scripts/video/demo/video_demo.sh lmms-lab/LLaVA-NeXT-Video-7B-DPO vicuna_v1 32 2 True ./data/llava_video/video-chatgpt/evaluation/Test_Videos/v_Lf_7RurLgp0.mp4)

  4. I added the following 3 lines for config, not sure whether they are correct or not:
    setattr(cfg_pretrained, 'attention_bias', 0)
    setattr(cfg_pretrained, 'rope_scaling', {"factor": 8.0, "type": "linear"})
    setattr(cfg_pretrained, 'pretraining_tp', 1)
    However, it is not giving any response

Time taken for inference: 2.013814687728882 seconds
Question: [INST]
Please provide a detailed description of the video, focusing on the main subjects, their actions, and the background scenes [/INST]

Response:

from llava-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.