Skip to content

Commit 15a6085

Browse files
committed
docs: update docs
1 parent de2f9fa commit 15a6085

File tree

5 files changed

+136
-12
lines changed

5 files changed

+136
-12
lines changed

docs/cluster/cluster.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.cluster</code></h1>
116116
instascale = self.config.instascale
117117
instance_types = self.config.machine_types
118118
env = self.config.envs
119+
pull_secret = self.config.pull_secret
119120
return generate_appwrapper(
120121
name=name,
121122
namespace=namespace,
@@ -130,6 +131,7 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.cluster</code></h1>
130131
instascale=instascale,
131132
instance_types=instance_types,
132133
env=env,
134+
pull_secret=pull_secret,
133135
)
134136

135137
# creates a new cluster with the provided or default spec
@@ -635,6 +637,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
635637
instascale = self.config.instascale
636638
instance_types = self.config.machine_types
637639
env = self.config.envs
640+
pull_secret = self.config.pull_secret
638641
return generate_appwrapper(
639642
name=name,
640643
namespace=namespace,
@@ -649,6 +652,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
649652
instascale=instascale,
650653
instance_types=instance_types,
651654
env=env,
655+
pull_secret=pull_secret,
652656
)
653657

654658
# creates a new cluster with the provided or default spec
@@ -930,6 +934,7 @@ <h3>Methods</h3>
930934
instascale = self.config.instascale
931935
instance_types = self.config.machine_types
932936
env = self.config.envs
937+
pull_secret = self.config.pull_secret
933938
return generate_appwrapper(
934939
name=name,
935940
namespace=namespace,
@@ -944,6 +949,7 @@ <h3>Methods</h3>
944949
instascale=instascale,
945950
instance_types=instance_types,
946951
env=env,
952+
pull_secret=pull_secret,
947953
)</code></pre>
948954
</details>
949955
</dd>
@@ -1036,7 +1042,7 @@ <h3>Methods</h3>
10361042
</details>
10371043
</dd>
10381044
<dt id="codeflare_sdk.cluster.cluster.Cluster.list_jobs"><code class="name flex">
1039-
<span>def <span class="ident">list_jobs</span></span>(<span>self) ‑> List[~T]</span>
1045+
<span>def <span class="ident">list_jobs</span></span>(<span>self) ‑> List</span>
10401046
</code></dt>
10411047
<dd>
10421048
<div class="desc"><p>This method accesses the head ray node in your cluster and lists the running jobs.</p></div>

docs/cluster/config.html

+12-4
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.config</code></h1>
7979
template: str = f&#34;{dir}/templates/new-template.yaml&#34;
8080
instascale: bool = False
8181
envs: dict = field(default_factory=dict)
82-
image: str = &#34;ghcr.io/foundation-model-stack/base:ray2.1.0-py38-gpu-pytorch1.12.0cu116-20221213-193103&#34;</code></pre>
82+
image: str = &#34;ghcr.io/foundation-model-stack/base:ray2.1.0-py38-gpu-pytorch1.12.0cu116-20221213-193103&#34;
83+
pull_secret: dict = field(default_factory=dict)</code></pre>
8384
</details>
8485
</section>
8586
<section>
@@ -93,7 +94,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
9394
<dl>
9495
<dt id="codeflare_sdk.cluster.config.ClusterConfiguration"><code class="flex name class">
9596
<span>class <span class="ident">ClusterConfiguration</span></span>
96-
<span>(</span><span>name: str, namespace: str = None, head_info: list = &lt;factory&gt;, machine_types: list = &lt;factory&gt;, min_cpus: int = 1, max_cpus: int = 1, min_worker: int = 1, max_worker: int = 1, min_memory: int = 2, max_memory: int = 2, gpu: int = 0, template: str = '/Users/aasthana/go/src/github.com/codeflare-sdk/src/codeflare_sdk/templates/new-template.yaml', instascale: bool = False, envs: dict = &lt;factory&gt;, image: str = 'ghcr.io/foundation-model-stack/base:ray2.1.0-py38-gpu-pytorch1.12.0cu116-20221213-193103')</span>
97+
<span>(</span><span>name: str, namespace: str = None, head_info: list = &lt;factory&gt;, machine_types: list = &lt;factory&gt;, min_cpus: int = 1, max_cpus: int = 1, min_worker: int = 1, max_worker: int = 1, min_memory: int = 2, max_memory: int = 2, gpu: int = 0, template: str = '/home/eoingallinagh/Documents/RedHat/codeflare-sdk/src/codeflare_sdk/templates/new-template.yaml', instascale: bool = False, envs: dict = &lt;factory&gt;, image: str = 'ghcr.io/foundation-model-stack/base:ray2.1.0-py38-gpu-pytorch1.12.0cu116-20221213-193103', pull_secret: dict = &lt;factory&gt;)</span>
9798
</code></dt>
9899
<dd>
99100
<div class="desc"><p>This dataclass is used to specify resource requirements and other details, and
@@ -102,7 +103,8 @@ <h2 class="section-title" id="header-classes">Classes</h2>
102103
<summary>
103104
<span>Expand source code</span>
104105
</summary>
105-
<pre><code class="python">class ClusterConfiguration:
106+
<pre><code class="python">@dataclass
107+
class ClusterConfiguration:
106108
&#34;&#34;&#34;
107109
This dataclass is used to specify resource requirements and other details, and
108110
is passed in as an argument when creating a Cluster object.
@@ -122,7 +124,8 @@ <h2 class="section-title" id="header-classes">Classes</h2>
122124
template: str = f&#34;{dir}/templates/new-template.yaml&#34;
123125
instascale: bool = False
124126
envs: dict = field(default_factory=dict)
125-
image: str = &#34;ghcr.io/foundation-model-stack/base:ray2.1.0-py38-gpu-pytorch1.12.0cu116-20221213-193103&#34;</code></pre>
127+
image: str = &#34;ghcr.io/foundation-model-stack/base:ray2.1.0-py38-gpu-pytorch1.12.0cu116-20221213-193103&#34;
128+
pull_secret: dict = field(default_factory=dict)</code></pre>
126129
</details>
127130
<h3>Class variables</h3>
128131
<dl>
@@ -182,6 +185,10 @@ <h3>Class variables</h3>
182185
<dd>
183186
<div class="desc"></div>
184187
</dd>
188+
<dt id="codeflare_sdk.cluster.config.ClusterConfiguration.pull_secret"><code class="name">var <span class="ident">pull_secret</span> : dict</code></dt>
189+
<dd>
190+
<div class="desc"></div>
191+
</dd>
185192
<dt id="codeflare_sdk.cluster.config.ClusterConfiguration.template"><code class="name">var <span class="ident">template</span> : str</code></dt>
186193
<dd>
187194
<div class="desc"></div>
@@ -221,6 +228,7 @@ <h4><code><a title="codeflare_sdk.cluster.config.ClusterConfiguration" href="#co
221228
<li><code><a title="codeflare_sdk.cluster.config.ClusterConfiguration.min_worker" href="#codeflare_sdk.cluster.config.ClusterConfiguration.min_worker">min_worker</a></code></li>
222229
<li><code><a title="codeflare_sdk.cluster.config.ClusterConfiguration.name" href="#codeflare_sdk.cluster.config.ClusterConfiguration.name">name</a></code></li>
223230
<li><code><a title="codeflare_sdk.cluster.config.ClusterConfiguration.namespace" href="#codeflare_sdk.cluster.config.ClusterConfiguration.namespace">namespace</a></code></li>
231+
<li><code><a title="codeflare_sdk.cluster.config.ClusterConfiguration.pull_secret" href="#codeflare_sdk.cluster.config.ClusterConfiguration.pull_secret">pull_secret</a></code></li>
224232
<li><code><a title="codeflare_sdk.cluster.config.ClusterConfiguration.template" href="#codeflare_sdk.cluster.config.ClusterConfiguration.template">template</a></code></li>
225233
</ul>
226234
</li>

docs/cluster/model.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ <h2 class="section-title" id="header-classes">Classes</h2>
141141
<summary>
142142
<span>Expand source code</span>
143143
</summary>
144-
<pre><code class="python">class AppWrapper:
144+
<pre><code class="python">@dataclass
145+
class AppWrapper:
145146
&#34;&#34;&#34;
146147
For storing information about an AppWrapper.
147148
&#34;&#34;&#34;
@@ -284,7 +285,8 @@ <h3>Class variables</h3>
284285
<summary>
285286
<span>Expand source code</span>
286287
</summary>
287-
<pre><code class="python">class RayCluster:
288+
<pre><code class="python">@dataclass
289+
class RayCluster:
288290
&#34;&#34;&#34;
289291
For storing information about a Ray cluster.
290292
&#34;&#34;&#34;

docs/job/jobs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ <h3>Methods</h3>
305305
</dd>
306306
<dt id="codeflare_sdk.job.jobs.DDPJobDefinition"><code class="flex name class">
307307
<span>class <span class="ident">DDPJobDefinition</span></span>
308-
<span>(</span><span>script: Optional[str] = None, m: Optional[str] = None, script_args: Optional[List[str]] = None, name: Optional[str] = None, cpu: Optional[int] = None, gpu: Optional[int] = None, memMB: Optional[int] = None, h: Optional[str] = None, j: Optional[str] = None, env: Optional[Dict[str, str]] = None, max_retries: int = 0, mounts: Optional[List[str]] = None, rdzv_port: int = 29500, rdzv_backend: str = None, scheduler_args: Optional[Dict[str, str]] = None, image: Optional[str] = None, workspace: Optional[str] = 'file:///Users/aasthana/go/src/github.com/codeflare-sdk')</span>
308+
<span>(</span><span>script: Optional[str] = None, m: Optional[str] = None, script_args: Optional[List[str]] = None, name: Optional[str] = None, cpu: Optional[int] = None, gpu: Optional[int] = None, memMB: Optional[int] = None, h: Optional[str] = None, j: Optional[str] = None, env: Optional[Dict[str, str]] = None, max_retries: int = 0, mounts: Optional[List[str]] = None, rdzv_port: int = 29500, rdzv_backend: str = None, scheduler_args: Optional[Dict[str, str]] = None, image: Optional[str] = None, workspace: Optional[str] = 'file:///home/eoingallinagh/Documents/RedHat/codeflare-sdk')</span>
309309
</code></dt>
310310
<dd>
311311
<div class="desc"></div>

0 commit comments

Comments
 (0)