CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/components/landing/compute-servers.tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2023 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Button } from "antd";
7
import { join } from "path";
8
import basePath from "@cocalc/backend/base-path";
9
import { COLORS } from "@cocalc/util/theme";
10
import Info from "components/landing/info";
11
import { Paragraph, Text } from "components/misc";
12
import A from "components/misc/A";
13
import { useCustomize } from "lib/customize";
14
import ComputeServerInfographic from "public/features/running-compute-server.png";
15
import { LANDING_HEADER_LEVEL } from "./constants";
16
import ComputeServerTemplates from "./compute-server-templates";
17
import { useRef } from "react";
18
19
export default function ComputeServers() {
20
const { computeServersEnabled, siteName } = useCustomize();
21
const ref = useRef<any>();
22
if (!computeServersEnabled) {
23
// note frontend also makes the constraint that at least one cloud is enabled.
24
// see: packages/frontend/compute/config.ts
25
return null;
26
}
27
return (
28
<Info
29
innerRef={ref}
30
level={LANDING_HEADER_LEVEL}
31
title={
32
<>
33
Powerful Compute Servers with Optional GPUs
34
<ComputeServerTemplates
35
getPopupContainer={() => ref.current}
36
style={{ maxWidth: "900px" }}
37
/>
38
</>
39
}
40
icon="servers"
41
image={ComputeServerInfographic}
42
narrow={true}
43
anchor="a-compute"
44
alt={"Compute server templates"}
45
style={{
46
backgroundColor: COLORS.YELL_LLL,
47
// ref hook and this below is so compute server template stays in here:
48
// https://github.com/sagemathinc/cocalc/issues/7511
49
position: "relative",
50
overflow: "hidden",
51
}}
52
icons={[
53
{ icon: "jupyter", link: "/features/jupyter-notebook" },
54
{
55
icon: "nvidia",
56
title: "GPUs",
57
link: "https://doc.cocalc.com/compute_server.html",
58
},
59
{
60
icon: "pytorch",
61
title: "PyTorch",
62
link: "https://doc.cocalc.com/compute_server.html",
63
},
64
{
65
icon: "tensorflow",
66
title: "TensorFlow",
67
link: "https://doc.cocalc.com/compute_server.html",
68
},
69
{
70
icon: "vscode",
71
title: "VS Code",
72
link: "https://doc.cocalc.com/vscode.html",
73
},
74
{
75
icon: "desktop",
76
title: "X11 Desktop",
77
link: "features/x11",
78
},
79
{
80
icon: "terminal",
81
title: "Linux Terminal",
82
link: "features/terminal",
83
},
84
{
85
icon: "julia",
86
title: "Julia & Pluto",
87
link: "/features/julia",
88
},
89
]}
90
>
91
<Paragraph>
92
Extend your {siteName} projects with powerful{" "}
93
<Text strong>compute servers</Text>. They give you much more power, GPU
94
options, and flexibility for your computations.
95
</Paragraph>
96
<Paragraph>
97
From within your {siteName} project, spin up and connect to a powerful
98
machine. You simply{" "}
99
<Text strong>
100
tell your terminals and Jupyter Notebooks to run on these machines
101
</Text>
102
, or with one click launch JupyterLab or VS Code. These compute servers
103
open up new possibilities by utilizing enhanced computing resources,
104
extending far beyond the bounds of what you can do in your local
105
project.
106
</Paragraph>
107
<Paragraph>
108
These servers optionally come with{" "}
109
<Text strong>very competitively priced GPU support</Text>, from a single
110
NVIDIA T4 to eight H100's, with many options in between, including L4
111
and L40, RTX-A4/5/6000, and A100 with 40GB and 80GB. The finely
112
configured software images include{" "}
113
<A href="https://youtu.be/kcxyShH3wYE">Google Colab</A>, SageMath,
114
Anaconda, Julia, <A href="https://youtu.be/JG6jm6yv_KE">PyTorch</A>,
115
Tensorflow and <A href="https://youtu.be/OMN1af0LUcA">Open WebUI</A>,
116
accommodating a versatile range of uses. The pre-configured software
117
environments make it very easy to make use of them, right out of the
118
box. You can also run any command as{" "}
119
<A href="https://doc.cocalc.com/compute_server.html#becoming-root-and-port-forwarding">
120
root
121
</A>
122
, install anything you want, and use Docker and Kubernetes.
123
</Paragraph>
124
<Paragraph>
125
Your{" "}
126
<A href="https://doc.cocalc.com/compute_server.html#compute-server-filesystem">
127
<Text strong>files are synchronized</Text>
128
</A>
129
. Therefore, you can seamlessly switch between different servers. You
130
also have much more disk storage on the remote machine.
131
</Paragraph>
132
<Paragraph>
133
Usage of these machines is <Text strong>billed by the second</Text>. The
134
pricing is highly competitive, starting at{" "}
135
<b>
136
<i>under $0.01/hour and under $0.15/hour with a GPU!</i>
137
</b>
138
</Paragraph>
139
<Paragraph>
140
<A href="https://doc.cocalc.com/compute_server.html">Read the docs</A>{" "}
141
and{" "}
142
<A href="https://github.com/sagemathinc/cocalc-howto/blob/main/README.md">
143
check out some applications
144
</A>
145
.
146
</Paragraph>
147
<Paragraph>
148
<Button
149
onClick={() =>
150
(window.location.href = join(basePath, "/features/compute-server"))
151
}
152
>
153
More about compute servers on {siteName}
154
</Button>
155
</Paragraph>
156
</Info>
157
);
158
}
159
160