Skip to content

Commit

Permalink
fix: adjust for ruff lints
Browse files Browse the repository at this point in the history
  • Loading branch information
drbh committed Oct 28, 2024
1 parent 6208d10 commit f2a1b1b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
from text_generation_server.utils.import_utils import SYSTEM

if SYSTEM == "ipex":
import intel_extension_for_pytorch as ipex
pass
else:
import flash_attn_2_cuda
pass

from transformers.activations import ACT2FN
import torch.nn.functional as F
Expand Down Expand Up @@ -358,7 +358,7 @@ def __init__(self, prefix, config, weights):
self.video_token_id = config.video_token_id
self.spatial_merge_size = config.vision_config.spatial_merge_size
self.embed_tokens = TensorParallelEmbedding(
prefix=f"model.embed_tokens", weights=weights
prefix="model.embed_tokens", weights=weights
)
self.visual = Qwen2VisionModel(
prefix="visual", config=config.vision_config, weights=weights
Expand Down

0 comments on commit f2a1b1b

Please sign in to comment.