Skip to content

Commit

Permalink
Refactor pipeline definition for finetuning embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
htahir1 committed Nov 12, 2024
1 parent 499a7b1 commit a2670f7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions llm-complete-guide/pipelines/finetune_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,10 @@
prepare_load_data,
visualize_results,
)
from zenml import Model, pipeline
from zenml.model.model import ModelStages

model_definition = Model(
name=EMBEDDINGS_MODEL_NAME_ZENML,
version=ModelStages.LATEST,
)
from zenml import pipeline


@pipeline(model=model_definition)
@pipeline
def finetune_embeddings():
data = prepare_load_data()
base_results = evaluate_base_model(dataset=data)
Expand Down

0 comments on commit a2670f7

Please sign in to comment.