Skip to content

Commit

Permalink
rpcn: rename tasks to compute units
Browse files Browse the repository at this point in the history
nicolaferraro authored and weeco committed Jan 27, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 59c13bb commit 85cd01f
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/pages/rp-connect/Pipelines.Create.tsx
Original file line number Diff line number Diff line change
@@ -127,8 +127,8 @@ class RpConnectPipelinesCreate extends PageComponent<{}> {
/>
</FormField>
<FormField
label="Tasks"
description="One task is equivalent to 0.1 CPU and 400 MB of memory. This is enough to experiment with low-volume pipelines. For pipelines that include the AI Ollama components, one task is equivalent to 1 GPU. This can have cost implications."
label="Compute Units"
description="One compute unit is equivalent to 0.1 CPU and 400 MB of memory. This is enough to experiment with low-volume pipelines. For pipelines that include the AI Ollama components, one AI compute unit is equivalent to 1 GPU. This can have cost implications."
w={500}
>
<NumberInput
Original file line number Diff line number Diff line change
@@ -430,7 +430,7 @@ export const PipelineResources = observer((p: { resources?: Pipeline_Resources }
const tasks = cpuToTasks(r.cpuShares);
return (
<Flex gap="4">
{tasks || '-'} Tasks ({r.cpuShares} CPU / {r.memoryShares} Memory)
{tasks || '-'} Compute Units ({r.cpuShares} CPU / {r.memoryShares} Memory)
</Flex>
);
});
Original file line number Diff line number Diff line change
@@ -116,7 +116,7 @@ class RpConnectPipelinesEdit extends PageComponent<{ pipelineId: string }> {
width={500}
/>
</FormField>
<FormField label="Tasks">
<FormField label="Compute Units">
<NumberInput
value={this.tasks}
onChange={(e) => (this.tasks = Number(e ?? MIN_TASKS))}

0 comments on commit 85cd01f

Please sign in to comment.