File tree Expand file tree Collapse file tree 3 files changed +4
-472
lines changed Expand file tree Collapse file tree 3 files changed +4
-472
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def _download_hf_snapshot(
30
30
try :
31
31
snapshot_download (
32
32
model_config .distribution_path ,
33
- cache_dir = artifact_dir ,
33
+ local_dir = artifact_dir ,
34
34
local_dir_use_symlinks = False ,
35
35
token = hf_token ,
36
36
ignore_patterns = None if "llava" in model_config .name else "*safetensors*" ,
Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ def prefill(
374
374
logits = model (x )
375
375
else :
376
376
# input_pos: [B, S]
377
- logits = model (x , input_pos = input_pos )
377
+ logits = model (x , input_pos )
378
378
# print(f"logits {logits.shape}")
379
379
380
380
# print(f"x: {x},\n input_pos: {input_pos}\n")
@@ -398,7 +398,7 @@ def decode_one_token(
398
398
else :
399
399
logits = model (x )
400
400
else :
401
- logits = model (x , input_pos = input_pos )
401
+ logits = model (x , input_pos )
402
402
# print(f"x: {x},\n input_pos: {input_pos}\n")
403
403
return self .sample (logits , need_probs = need_probs , ** sampling_kwargs )
404
404
You can’t perform that action at this time.
0 commit comments