检查点

This commit is contained in:
ire 2025-02-11 11:29:55 +08:00
parent bd152b3f60
commit 58f273e7a5

View File

@ -109,7 +109,7 @@ public class FineTuningTaskSyncService {
List<String> checkpoints = new ArrayList<>();
List<String> fileUrls = new ArrayList<>();
List<String> fileList = JSONArray.parseArray(checkFileList,String.class);
Map<String,String> map = new HashMap<>();
Map<String,JSONObject> map = new HashMap<>();
for (String s : fileList) {
if(s.contains("checkpoint")){
checkpoints.add(s);
@ -131,7 +131,7 @@ public class FineTuningTaskSyncService {
content.append(line + "\n");
}
reader.close();
map.put(checkpoint,content.toString());
map.put(checkpoint,JSONObject.parseObject(content.toString()));
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {