mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-01 11:12:50 +08:00
[misc] fix qwen2 omni (#7962)
This commit is contained in:
parent
52f25651a2
commit
937447bd8a
Binary file not shown.
Before Width: | Height: | Size: 164 KiB After Width: | Height: | Size: 112 KiB |
Binary file not shown.
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 115 KiB |
@ -119,7 +119,7 @@ class HuggingfaceEngine(BaseEngine):
|
||||
)
|
||||
prompt_length = len(prompt_ids)
|
||||
inputs = torch.tensor([prompt_ids], device=model.device)
|
||||
attention_mask = torch.ones_like(inputs, dtype=torch.bool)
|
||||
attention_mask = torch.ones_like(inputs, dtype=torch.long)
|
||||
|
||||
do_sample: Optional[bool] = input_kwargs.pop("do_sample", None)
|
||||
temperature: Optional[float] = input_kwargs.pop("temperature", None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user