mirror of
https://github.com/XShengTech/MEGREZ.git
synced 2026-05-03 13:02:38 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7fc2c3ec09 |
@@ -45,6 +45,15 @@ func patchGpu(ip string, port int, apikey string,
|
|||||||
Dest: "/root/megrez-tmp",
|
Dest: "/root/megrez-tmp",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
data.GpuPatch = &gpuPatchStruct{
|
||||||
|
GpuCount: gpuCount,
|
||||||
|
}
|
||||||
|
data.CpuPatch = &cpuPatchStruct{
|
||||||
|
CpuCount: cpuCountPerGpu * gpuCount,
|
||||||
|
}
|
||||||
|
data.MemoryPatch = &MemoryPatchStruct{
|
||||||
|
Memory: strconv.Itoa(memoryPerGpu*gpuCount) + "GB",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
reqBytes, err := json.Marshal(data)
|
reqBytes, err := json.Marshal(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user