Update README.md
Browse files21 unmodified lines22232425262720 unmodified lines48495051525321 unmodified lines<p><strong>LongVILA-R1-7B</strong> supports both <u>multiple-choice</u> questions and <u>open-ended</u> questions. It can switch between thinking and non-thinking modes.<br><strong>LongVILA-R1-7B</strong> demonstrates strong performance in long video reasoning, achieving <strong>70.7%</strong> on VideoMME (w/ sub.) and surpassing Gemini-1.5-Pro across diverse reasoning tasks.<br><strong>Long-RL</strong> is a codebase that accelerates long video RL training by up to <strong>2.1×</strong> through its MR-SP system. It supports RL training on image, video, and omni inputs across VILA, Qwen/Qwen-VL, and diffusion models.</p>20 unmodified linesmodel_path = "Efficient-Large-Model/LongVILA-R1-7B"model = AutoModel.from_pretrained(model_path, trust_remote_code=True, device_map="auto")use_thinking = True # Switching between thinking and non-thinking modessystem_prompt_thinking = "You are a helpful assistant. The user asks a question, and then you solves it.\n\nPlease first think deeply about the question based on the given video, and then provide the final answer. The reasoning process and answer are enclosed within <think> </think> and <answer> </answer> tags, respectively, i.e., <think> reasoning process here </think> <answer> answer here </answer>.\n\n Question: {question}"21 unmodified lines2223242526272820 unmodified lines49505152535455565721 unmodified lines<p><strong>LongVILA-R1-7B</strong> supports both <u>multiple-choice</u> questions and <u>open-ended</u> questions. It can switch between thinking and non-thinking modes.<br><strong>LongVILA-R1-7B</strong> demonstrates strong performance in long video reasoning, achieving <strong>70.7%</strong> on VideoMME (w/ sub.) and surpassing Gemini-1.5-Pro across diverse reasoning tasks.<br><strong>LongVILA-R1-7B</strong> supports processing up to <strong>2,048</strong> video frames per video, with configurable FPS settings.<br><strong>Long-RL</strong> is a codebase that accelerates long video RL training by up to <strong>2.1×</strong> through its MR-SP system. It supports RL training on image, video, and omni inputs across VILA, Qwen/Qwen-VL, and diffusion models.</p>20 unmodified linesmodel_path = "Efficient-Large-Model/LongVILA-R1-7B"model = AutoModel.from_pretrained(model_path, trust_remote_code=True, device_map="auto")# You can disable FPS control by setting it to 0, and customize the number of processed num_video_frames as desired.#model.config.num_video_frames, model.config.fps = 512, 0use_thinking = True # Switching between thinking and non-thinking modessystem_prompt_thinking = "You are a helpful assistant. The user asks a question, and then you solves it.\n\nPlease first think deeply about the question based on the given video, and then provide the final answer. The reasoning process and answer are enclosed within <think> </think> and <answer> </answer> tags, respectively, i.e., <think> reasoning process here </think> <answer> answer here </answer>.\n\n Question: {question}"
README.md+4