MrLight commited on
Commit
5b67f17
1 Parent(s): 029cb25

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -34,7 +34,7 @@ The following steps need to be done before running the code:
34
  2. Fix a bug in `transformers/models/qwen2_vl/modeling_qwen2_vl.py` around line 1774
35
  ```
36
  position_ids = position_ids.unsqueeze(0).expand(3, -1, -1)
37
- # make sure the following three line are inside the 'else' statement
38
  if cache_position[0] != 0:
39
  pixel_values = None
40
  pixel_values_videos = None
 
34
  2. Fix a bug in `transformers/models/qwen2_vl/modeling_qwen2_vl.py` around line 1774
35
  ```
36
  position_ids = position_ids.unsqueeze(0).expand(3, -1, -1)
37
+ # change the if statement below to if cache_position is not None and cache_position[0] != 0:
38
  if cache_position[0] != 0:
39
  pixel_values = None
40
  pixel_values_videos = None