-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
50 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from comps import CustomLogger, OpeaComponentLoader | ||
|
||
logger = CustomLogger("opea_finetuning_loader") | ||
|
||
|
||
class OpeaFinetuningLoader(OpeaComponentLoader): | ||
def __init__(self, component_name, **kwargs): | ||
super().__init__(component_name=component_name, **kwargs) | ||
|
||
def invoke(self, *args, **kwargs): | ||
pass | ||
|
||
def create_finetuning_jobs(self, *args, **kwargs): | ||
return self.component.create_finetuning_jobs(*args, **kwargs) | ||
|
||
def cancel_finetuning_job(self, *args, **kwargs): | ||
return self.component.cancel_finetuning_job(*args, **kwargs) | ||
|
||
def list_finetuning_checkpoints(self, *args, **kwargs): | ||
return self.component.list_finetuning_checkpoints(*args, **kwargs) | ||
|
||
def list_finetuning_jobs(self, *args, **kwargs): | ||
return self.component.list_finetuning_jobs(*args, **kwargs) | ||
|
||
def retrieve_finetuning_job(self, *args, **kwargs): | ||
return self.component.retrieve_finetuning_job(*args, **kwargs) | ||
|
||
async def upload_training_files(self, *args, **kwargs): | ||
return await self.component.upload_training_files(*args, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters