Skip to content

Commit

Permalink
Make SafeTensorsInfo.parameters a Dict instead of List
Browse files Browse the repository at this point in the history
  • Loading branch information
adiaholic committed Oct 2, 2024
1 parent ce38f46 commit 3e52ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/huggingface_hub/hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def __post_init__(self): # hack to make TransformersInfo backward compatible

@dataclass
class SafeTensorsInfo(dict):
parameters: List[Dict[str, int]]
parameters: Dict[str, int]
total: int

def __post_init__(self): # hack to make SafeTensorsInfo backward compatible
Expand Down

0 comments on commit 3e52ebe

Please sign in to comment.