fix: miss model file path in cloning

This commit is contained in:
jialin
2026-02-11 11:05:43 +08:00
parent 3f90642726
commit 2ba94f7524
13 changed files with 129 additions and 52 deletions
-13
View File
@@ -171,19 +171,6 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
};
};
const checkIsGGUF = () => {
const huggingface_filename = form.getFieldValue('huggingface_filename');
const model_scope_model_id = form.getFieldValue('model_scope_model_id');
const local_path = form.getFieldValue('local_path');
if (local_path) {
const isEndwithGGUF = _.endsWith(local_path, '.gguf');
const isBlobFile = local_path.split('/').pop().includes('sha256');
return isEndwithGGUF || isBlobFile;
}
return huggingface_filename || model_scope_model_id;
};
const updateFieldsOnGGUF = () => {
// when isGGUF is true, set distributed_inference_across_workers and cpu_offloading to true
return {