Skip to content

Commit

Permalink
[BugFix] : Small updates to merge component (#3869)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Blondeel <mablonde@microsoft.com>
  • Loading branch information
matthiasblondeel and Matthias Blondeel authored Feb 26, 2025
1 parent d74da53 commit 06a2ec0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
type: command

version: 0.0.12
version: 0.0.13
name: medimage_embedding_adapter_merge
display_name: Merge Adapter Model with Embedding Generation Model
description: Import and integrate Adapter and Embedding Generation Model
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/pipelineComponent.schema.json
name: medimage_insight_ft_pipeline
version: 0.0.14
version: 0.0.16
type: pipeline
display_name: Medical Image Insight Embedding Generator and Classification Adapter Pipeline
description: Pipeline Component to finetune Hugging Face pretrained models for chat completion task. The component supports optimizations such as LoRA, Deepspeed and ONNXRuntime for performance enhancement. See [docs](https://aka.ms/azureml/components/chat_completion_pipeline) to learn more.
Expand Down Expand Up @@ -406,7 +406,7 @@ jobs:
max_epochs: '${{parent.inputs.max_epochs}}'
medimage_embedding_adapter_merge:
type: command
component: azureml://registries/mablonde-registry-101/components/medimage_embedding_adapter_merge/versions/0.0.12
component: azureml://registries/mablonde-registry-101/components/medimage_embedding_adapter_merge/versions/0.0.13
compute: '${{parent.inputs.compute_finetune}}'
resources:
instance_type: '${{parent.inputs.instance_type_finetune}}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def merge_models(adapter_model_path, mlflow_model_path, output_dir, hidden_dimen
logger.info(f"Copied {BEST_METRIC_MODEL} to {artifacts_dir}")

with open(label_file, "r") as f:
labels = [l for l in f.read().splitlines() if not l.strip()]
labels = [l.strip() for l in f.read().splitlines() if l.strip()]

config = {
"hidden_dim": hidden_dimensions,
Expand Down

0 comments on commit 06a2ec0

Please sign in to comment.