Skip to content

Commit

Permalink
model copy with ft id
Browse files Browse the repository at this point in the history
  • Loading branch information
anda-ren committed Nov 13, 2023
1 parent c9a08fc commit 75d7ebe
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,12 @@ public void createModelVersion(
.storageSize(storageSize)
.build();
this.modelVersionMapper.insert(modelVersionEntity);
fineTuneService.attachTargetModel(createModelVersionRequest.getModelSource().getId(), modelVersionEntity);
if (sourcedFromFineTune) {
fineTuneService.attachTargetModel(
createModelVersionRequest.getModelSource().getId(),
modelVersionEntity
);
}
RevertManager.create(this.bundleManager, this.modelDao)
.revertVersionTo(modelVersionEntity.getModelId(), modelVersionEntity.getId());
} else {
Expand Down

0 comments on commit 75d7ebe

Please sign in to comment.