Skip to content

Commit

Permalink
模型压缩任务参数 config 更名为 comp_config
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiichi-Origami committed Dec 3, 2024
1 parent f699e5e commit ce6ac05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/qianfan/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def compress(
model_comp_task_resp = ResourceModel.V2.create_model_comp_task(
name=f"mco_{generate_letter_num_random_id(12)}",
source_model_id=self.id,
config=config,
comp_config=config,
model_set_id=self.set_id,
description=f"mcomp_{self.id}_{strategy.value}_{weight}",
)
Expand Down
6 changes: 3 additions & 3 deletions python/qianfan/resources/console/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ def create_model_comp_task(
cls,
name: str,
source_model_id: str,
config: Dict[str, Any],
comp_config: Dict[str, Any],
model_set_id: str,
description: Optional[str] = None,
) -> QfRequest:
Expand All @@ -1164,7 +1164,7 @@ def create_model_comp_task(
compression task name
source_model_id: str,
source_model version id, e.g. amv-xxxx
config: dict,
comp_config: dict,
configuration for compressing
model_set_id: str,
target model set id, e.g. am-xxx
Expand All @@ -1188,7 +1188,7 @@ def create_model_comp_task(
"name": name,
"sourceModelId": source_model_id,
"modelSetId": model_set_id,
"config": config,
"config": comp_config,
},
)
if description is not None:
Expand Down

0 comments on commit ce6ac05

Please sign in to comment.