You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: support handle unknown file type
Signed-off-by: Zhao Chen <[email protected]>
* feat: add support for distributed checkpoint file format
Signed-off-by: Zhao Chen <[email protected]>
* feat: expand supported file formats for config
Signed-off-by: Zhao Chen <[email protected]>
* feat: expand supported file formats for weight
Signed-off-by: Zhao Chen <[email protected]>
* feat: expand supported file formats for code
Signed-off-by: Zhao Chen <[email protected]>
* feat: expand supported file formats for doc
Signed-off-by: Zhao Chen <[email protected]>
* feat: implement workspace limits for file size, count, and total size
Added validation in the workspace generation process to enforce limits on single file size (128GB), maximum file count (1024), and total workspace size (8TB). Included unit tests to verify these constraints.
Signed-off-by: Zhao Chen <[email protected]>
* feat: add unit tests for model configuration generation and workspace validation
Implemented comprehensive unit tests for the `generateByModelConfig` and `generateByConfig` methods, ensuring correct handling of various model configuration scenarios. Enhanced the `validateWorkspace` method tests to cover edge cases, including empty directories and symbolic links.
Signed-off-by: Zhao Chen <[email protected]>
* feat: deprecate and hide the ignore-unrecognized-file-types flag
Updated the command-line flag for ignoring unrecognized file types to mark it as deprecated and hidden, indicating it will be removed in the next release.
Signed-off-by: Zhao Chen <[email protected]>
* refactor: reorganize constants for file size thresholds and workspace limits
Consolidated file size thresholds and workspace limits into a single constants block for improved readability and maintainability. Updated comments for clarity on each constant's purpose.
Signed-off-by: Zhao Chen <[email protected]>
* refactor: replace hardcoded byte size constants with humanize package
Updated file size constants to utilize the go-humanize package for improved readability and maintainability. Adjusted the formatBytes function to leverage humanize.Bytes for converting byte sizes to a human-readable format.
Signed-off-by: Zhao Chen <[email protected]>
* fix: revert error message for existing modelfile check
* chore: increase maximum workspace file count from 1024 to 2048
Updated the MaxWorkspaceFileCount constant to allow for a higher limit of files in the workspace, enhancing flexibility for users managing larger projects.
---------
Signed-off-by: Zhao Chen <[email protected]>
Copy file name to clipboardExpand all lines: cmd/modelfile/generate.go
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,10 @@ func init() {
65
65
flags.BoolVar(&generateConfig.IgnoreUnrecognizedFileTypes, "ignore-unrecognized-file-types", false, "ignore the unrecognized file types in the workspace")
66
66
flags.BoolVar(&generateConfig.Overwrite, "overwrite", false, "overwrite the existing modelfile")
67
67
68
+
// Mark the ignore-unrecognized-file-types flag as deprecated and hidden
69
+
flags.MarkDeprecated("ignore-unrecognized-file-types", "this flag will be removed in the next release")
0 commit comments