forked from phoenix-oss/llama-stack-mirror
formatting
This commit is contained in:
parent
94dfa293a6
commit
b6ccaf1778
33 changed files with 110 additions and 97 deletions
|
@ -64,7 +64,6 @@ class PostTrainingRLHFRequest(BaseModel):
|
|||
|
||||
|
||||
class PostTrainingJob(BaseModel):
|
||||
|
||||
job_uuid: str
|
||||
|
||||
|
||||
|
@ -99,30 +98,35 @@ class PostTraining(Protocol):
|
|||
def post_supervised_fine_tune(
|
||||
self,
|
||||
request: PostTrainingSFTRequest,
|
||||
) -> PostTrainingJob: ...
|
||||
) -> PostTrainingJob:
|
||||
...
|
||||
|
||||
@webmethod(route="/post_training/preference_optimize")
|
||||
def post_preference_optimize(
|
||||
self,
|
||||
request: PostTrainingRLHFRequest,
|
||||
) -> PostTrainingJob: ...
|
||||
) -> PostTrainingJob:
|
||||
...
|
||||
|
||||
@webmethod(route="/post_training/jobs")
|
||||
def get_training_jobs(self) -> List[PostTrainingJob]: ...
|
||||
def get_training_jobs(self) -> List[PostTrainingJob]:
|
||||
...
|
||||
|
||||
# sends SSE stream of logs
|
||||
@webmethod(route="/post_training/job/logs")
|
||||
def get_training_job_logstream(self, job_uuid: str) -> PostTrainingJobLogStream: ...
|
||||
def get_training_job_logstream(self, job_uuid: str) -> PostTrainingJobLogStream:
|
||||
...
|
||||
|
||||
@webmethod(route="/post_training/job/status")
|
||||
def get_training_job_status(
|
||||
self, job_uuid: str
|
||||
) -> PostTrainingJobStatusResponse: ...
|
||||
def get_training_job_status(self, job_uuid: str) -> PostTrainingJobStatusResponse:
|
||||
...
|
||||
|
||||
@webmethod(route="/post_training/job/cancel")
|
||||
def cancel_training_job(self, job_uuid: str) -> None: ...
|
||||
def cancel_training_job(self, job_uuid: str) -> None:
|
||||
...
|
||||
|
||||
@webmethod(route="/post_training/job/artifacts")
|
||||
def get_training_job_artifacts(
|
||||
self, job_uuid: str
|
||||
) -> PostTrainingJobArtifactsResponse: ...
|
||||
) -> PostTrainingJobArtifactsResponse:
|
||||
...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue