Skip to content

Commit

Permalink
Add config to model info (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
osanseviero authored Jun 22, 2021
1 parent 8e26dc0 commit 11d9ab6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/huggingface_hub/hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def __init__(
siblings: Optional[
List[Dict]
] = None, # list of files that constitute the model
config: Optional[Dict] = None, # information about model configuration
**kwargs,
):
self.modelId = modelId
Expand All @@ -94,6 +95,7 @@ def __init__(
self.siblings = (
[ModelFile(**x) for x in siblings] if siblings is not None else None
)
self.config = config
for k, v in kwargs.items():
setattr(self, k, v)

Expand Down

0 comments on commit 11d9ab6

Please sign in to comment.