Major ui speed improvements. Moved file server out of next js app and made it multithreadded. Significantly faster downloads for files, images, and videos.

This commit is contained in:
Jaret Burkett
2026-07-23 09:35:08 -06:00
parent 1086bd0b3e
commit ede6f9ecee
4 changed files with 449 additions and 4 deletions

View File

@@ -6,7 +6,11 @@ export const defaultTrainFolder = path.join(TOOLKIT_ROOT, 'output');
export const defaultDatasetsFolder = path.join(TOOLKIT_ROOT, 'datasets');
export const defaultDataRoot = path.join(TOOLKIT_ROOT, 'data');
console.log('TOOLKIT_ROOT:', TOOLKIT_ROOT);
// Forked file-server workers set AI_TOOLKIT_QUIET_PATHS so this line prints
// once per launched process group, not once per worker.
if (!process.env.AI_TOOLKIT_QUIET_PATHS) {
console.log('TOOLKIT_ROOT:', TOOLKIT_ROOT);
}
export const getTrainingFolder = async () => {
const key = 'TRAINING_FOLDER';