Skip to content

Commit

Permalink
monkeypatch
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Sep 29, 2023
1 parent 24f3702 commit 0d1add2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llmfoundry/callbacks/hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ def _save_checkpoint(self, state: State, logger: Logger):
log.debug(f'Registering model to UC at {mlflow_logger.model_registry_prefix}.{registered_model_name}')
local_save_path = str(
Path(temp_save_dir) / f'mlflow_save_{i}')
import mlflow
mlflow.store._unity_catalog.registry.rest_store.get_feature_dependencies = lambda *args, **kwargs: ""
mlflow_logger.save_model(
flavor='transformers',
transformers_model=components,
Expand Down

0 comments on commit 0d1add2

Please sign in to comment.