Skip to content

Commit a553cb6

Browse files
committed
Remove redundant codes
1 parent a014839 commit a553cb6

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

iotdb-core/ainode/iotdb/ainode/core/model/model_constants.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@
2424
MODEL_CONFIG_FILE_IN_YAML = "config.yaml"
2525

2626

27-
# Model file constants
28-
MODEL_WEIGHTS_FILE_IN_SAFETENSORS = "model.safetensors"
29-
MODEL_CONFIG_FILE_IN_JSON = "config.json"
30-
MODEL_WEIGHTS_FILE_IN_PT = "model.pt"
31-
MODEL_CONFIG_FILE_IN_YAML = "config.yaml"
32-
33-
3427
class ModelCategory(Enum):
3528
BUILTIN = "builtin"
3629
USER_DEFINED = "user_defined"

iotdb-core/ainode/iotdb/ainode/core/model/model_storage.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,6 @@ def delete_model(self, model_id: str):
490490
logger.info(f"Model directory is deleted: {model_path}")
491491
except Exception as e:
492492
logger.error(f"Failed to delete model directory {model_path}: {e}")
493-
model_info.state = (
494-
ModelStates.ACTIVE
495-
) # Revert state update on failure
496493
raise e
497494
del self._models[category_value][model_id]
498495
logger.info(f"Model {model_id} has been removed from model storage")

0 commit comments

Comments
 (0)