|
154 | 154 | "downloads", |
155 | 155 | "downloadsAllTime", |
156 | 156 | "gated", |
| 157 | + "gguf", |
157 | 158 | "inference", |
158 | 159 | "lastModified", |
159 | 160 | "library_name", |
@@ -777,6 +778,7 @@ class ModelInfo: |
777 | 778 | downloads: Optional[int] |
778 | 779 | downloads_all_time: Optional[int] |
779 | 780 | gated: Optional[Literal["auto", "manual", False]] |
| 781 | + gguf: Optional[Dict] |
780 | 782 | inference: Optional[Literal["warm", "cold", "frozen"]] |
781 | 783 | likes: Optional[int] |
782 | 784 | library_name: Optional[str] |
@@ -808,6 +810,7 @@ def __init__(self, **kwargs): |
808 | 810 | self.downloads_all_time = kwargs.pop("downloadsAllTime", None) |
809 | 811 | self.likes = kwargs.pop("likes", None) |
810 | 812 | self.library_name = kwargs.pop("library_name", None) |
| 813 | + self.gguf = kwargs.pop("gguf", None) |
811 | 814 | self.inference = kwargs.pop("inference", None) |
812 | 815 | self.tags = kwargs.pop("tags", None) |
813 | 816 | self.pipeline_tag = kwargs.pop("pipeline_tag", None) |
@@ -1715,7 +1718,7 @@ def list_models( |
1715 | 1718 | expand (`List[ExpandModelProperty_T]`, *optional*): |
1716 | 1719 | List properties to return in the response. When used, only the properties in the list will be returned. |
1717 | 1720 | This parameter cannot be used if `full`, `cardData` or `fetch_config` are passed. |
1718 | | - Possible values are `"author"`, `"baseModels"`, `"cardData"`, `"childrenModelCount"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"inference"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"`, `"trendingScore"` and `"widgetData"`. |
| 1721 | + Possible values are `"author"`, `"baseModels"`, `"cardData"`, `"childrenModelCount"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gguf"`, `"inference"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"`, `"trendingScore"` and `"widgetData"`. |
1719 | 1722 | full (`bool`, *optional*): |
1720 | 1723 | Whether to fetch all model data, including the `last_modified`, |
1721 | 1724 | the `sha`, the files and the `tags`. This is set to `True` by |
@@ -2413,7 +2416,7 @@ def model_info( |
2413 | 2416 | expand (`List[ExpandModelProperty_T]`, *optional*): |
2414 | 2417 | List properties to return in the response. When used, only the properties in the list will be returned. |
2415 | 2418 | This parameter cannot be used if `securityStatus` or `files_metadata` are passed. |
2416 | | - Possible values are `"author"`, `"baseModels"`, `"cardData"`, `"childrenModelCount"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"inference"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"`, `"trendingScore"` and `"widgetData"`. |
| 2419 | + Possible values are `"author"`, `"baseModels"`, `"cardData"`, `"childrenModelCount"`, `"config"`, `"createdAt"`, `"disabled"`, `"downloads"`, `"downloadsAllTime"`, `"gated"`, `"gguf"`, `"inference"`, `"lastModified"`, `"library_name"`, `"likes"`, `"mask_token"`, `"model-index"`, `"pipeline_tag"`, `"private"`, `"safetensors"`, `"sha"`, `"siblings"`, `"spaces"`, `"tags"`, `"transformersInfo"`, `"trendingScore"` and `"widgetData"`. |
2417 | 2420 | token (Union[bool, str, None], optional): |
2418 | 2421 | A valid user access token (string). Defaults to the locally saved |
2419 | 2422 | token, which is the recommended method for authentication (see |
|
0 commit comments