Moved the job action bar to a shred component

This commit is contained in:
Jaret Burkett
2025-02-22 12:20:14 -07:00
parent a7a9c11d9e
commit ed84c19205
4 changed files with 110 additions and 95 deletions

View File

@@ -63,3 +63,13 @@ export const getAvaliableJobActions = (job: Job) => {
}
return { canDelete, canEdit, canStop, canStart };
};
export const getNumberOfSamples = (job: Job) => {
const jobConfig = getJobConfig(job);
return jobConfig.config.process[0].sample?.prompts?.length || 0;
}
export const getTotalSteps = (job: Job) => {
const jobConfig = getJobConfig(job);
return jobConfig.config.process[0].train.steps;
}