Skip to content

Commit

Permalink
Merge pull request #55 from huggingface/fix-trl-llava
Browse files Browse the repository at this point in the history
Fix types to allow nullables in `llava_hf.py`
  • Loading branch information
Luodian authored Apr 12, 2024
2 parents a876169 + 639f90c commit 8519075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lmms_eval/models/llava_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def __init__(
revision: str = "main",
device: str = "cuda",
dtype: Optional[Union[str, torch.dtype]] = "auto",
batch_size: Union[int, str] = 1,
batch_size: int = 1,
trust_remote_code: Optional[bool] = False,
attn_implementation: Optional[str] = "flash_attention_2",
attn_implementation: Optional[str] = None,
device_map: str = "",
chat_template: Optional[str] = None,
use_cache: bool = True,
Expand Down

0 comments on commit 8519075

Please sign in to comment.