Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qwen #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
**/.cache
env
*.pyc
output/
data/
lm_cache
.idea
build
dist
*.egg-info
venv
.vscode/
temp
__pycache__
.ipynb_checkpoints
temp
.DS_STORE
# IPython
profile_default/
ipython_config.py
logs/
scripts/
wandb/
SimSun.ttf
submissions/
lmms_eval/tasks/hallusion_bench/hallusion_output_vs_model.json
lmms_eval/tasks/hallusion_bench/hallusion_output_vd_model.json
zk.log
cache_dir
ckpt
pretrained/
LLaVA/
*logs
*.isorted
temp/
InternVL/
logs/
data/
llava-video/
Video-MME/
VATEX/
lmms_eval/tasks/vatex/__pycache__/utils.cpython-310.pyc
lmms_eval/tasks/mlvu/__pycache__/utils.cpython-310.pyc

scripts/
7 changes: 3 additions & 4 deletions lmms_eval/models/qwen2_5_vl.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def __init__(
device_map: Optional[str] = "auto",
batch_size: Optional[Union[int, str]] = 1,
use_cache=True,
use_flash_attention_2: Optional[bool] = False,
min_pixels: int = 256 * 28 * 28,
max_pixels: int = 256 * 28 * 28,
use_flash_attention_2: Optional[bool] = True,
min_pixels: int = 12845056,
max_pixels: int = 3136,
max_num_frames: int = 32,
use_custom_video_loader: Optional[bool] = False,
fps: Optional[float] = None, # Only applicable if use_custom_video_loader is True
Expand Down Expand Up @@ -82,7 +82,6 @@ def __init__(
self.max_pixels = max_pixels
self.min_pixels = min_pixels
self.max_num_frames = max_num_frames
self.processor = AutoProcessor.from_pretrained(pretrained, max_pixels=max_pixels, min_pixels=min_pixels)
self._tokenizer = AutoTokenizer.from_pretrained(pretrained)

self._config = self.model.config
Expand Down