Yukang commited on
Commit
8321181
·
verified ·
1 Parent(s): 4c05410

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -2
README.md CHANGED
@@ -49,8 +49,11 @@ from transformers import AutoModel
49
  model_path = "Efficient-Large-Model/LongVILA-R1-7B"
50
  model = AutoModel.from_pretrained(model_path, trust_remote_code=True, device_map="auto")
51
 
52
- # You can disable FPS control by setting it to 0, and customize the number of processed num_video_frames as desired.
53
- #model.config.num_video_frames, model.config.fps = 512, 0
 
 
 
54
 
55
  use_thinking = True # Switching between thinking and non-thinking modes
56
  system_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}"
 
49
  model_path = "Efficient-Large-Model/LongVILA-R1-7B"
50
  model = AutoModel.from_pretrained(model_path, trust_remote_code=True, device_map="auto")
51
 
52
+ # You can adjust the FPS value as needed.
53
+ # To disable FPS control, set it to 0 and manually specify the number of processed video frames via `num_video_frames`.
54
+ # Example:
55
+ # model.config.fps = 8.0
56
+ # model.config.num_video_frames, model.config.fps = 512, 0
57
 
58
  use_thinking = True # Switching between thinking and non-thinking modes
59
  system_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}"