检查点
This commit is contained in:
parent
bd152b3f60
commit
58f273e7a5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user