File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
ai_edge_torch/generative/examples/phi Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 15
15
"""Utils for verifying the Phi model."""
16
16
17
17
import logging
18
- import os
19
18
import pathlib
20
19
from typing import Callable , Dict
21
20
39
38
def verify_phi (
40
39
version : str ,
41
40
checkpoint_dir : str ,
42
- weight_filename : str = "model.safetensors" ,
43
41
max_new_tokens : int = 30 ,
44
42
prompts : list [str ] | None = None ,
45
43
atol : float = 1e-04 ,
@@ -63,7 +61,7 @@ def verify_phi(
63
61
)
64
62
reauthored_checkpoint = pathlib .Path (cached_config_file ).parent
65
63
else :
66
- reauthored_checkpoint = os . path . join ( checkpoint_dir , weight_filename )
64
+ reauthored_checkpoint = checkpoint_dir
67
65
68
66
logging .info ("Building the reauthored model from: %s" , reauthored_checkpoint )
69
67
reauthored_model = _BUILDER [version ](
You can’t perform that action at this time.
0 commit comments