Skip to content

Commit 7f55cea

Browse files
committed
Fix models checkpoint directory structure for workflow caching
The workflow expects checkpoints at build/{mode}/checkpoints/ but the code was creating them at build/{mode}/checkpoints/models/ due to using packageName='models'. Changed PACKAGE_NAME from 'models' to '' (empty string) to create flat checkpoint structure, matching the pattern used by other builders like node-smol-builder. This ensures the workflow validation step can find: - build/dev/checkpoints/finalized.json - build/dev/checkpoints/finalized.tar.gz Instead of looking in a non-existent subdirectory.
1 parent 1a083ea commit 7f55cea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/models/scripts/build.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ const {
8282
outputFinalDir,
8383
} = getBuildPaths(BUILD_MODE)
8484
const DIST_MODE = outputFinalDir
85-
const PACKAGE_NAME = 'models'
85+
// Use empty string for packageName to create flat checkpoint structure
86+
// (workflow expects checkpoints at build/{mode}/checkpoints/, not build/{mode}/checkpoints/models/)
87+
const PACKAGE_NAME = ''
8688

8789
const logger = getDefaultLogger()
8890

0 commit comments

Comments
 (0)