Skip to content

Commit

Permalink
fix(ai): 修复 AI 训练 coreCount 在 gpu 下传参错误问题 (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZihanChen821 authored Mar 25, 2024
1 parent a4319e9 commit 0f5d48f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/ten-flies-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scow/ai": patch
---

修复 AI 训练 coreCount 在 gpu 下传参错误问题
4 changes: 3 additions & 1 deletion apps/ai/src/app/(auth)/jobs/[clusterId]/LaunchAppForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ export const LaunchAppForm = (props: Props) => {
account: account,
partition: partition,
nodeCount: nodeCount,
coreCount: coreCount,
coreCount: gpuCount ?
gpuCount * Math.floor(currentPartitionInfo!.cores / currentPartitionInfo!.gpus) :
coreCount,
gpuCount: gpuCount,
maxTime: maxTime,
memory: memorySize,
Expand Down

0 comments on commit 0f5d48f

Please sign in to comment.