Skip to content

Commit

Permalink
The timeout might be too small
Browse files Browse the repository at this point in the history
  • Loading branch information
surak committed Oct 13, 2023
1 parent 9c8539a commit e037f88
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion 01-access-machines.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,9 @@ wandb
### Example: Activating the virtual environment

- `source sc_venv_template/activate.sh`
- `python`
- `import fastai`
- `fastai.__version__`
- ```python
source sc_venv_template/activate.sh
The activation script must be sourced, otherwise the virtual environment will not work.
Expand All @@ -637,6 +640,7 @@ Type "help", "copyright", "credits" or "license" for more information.
>>> import fastai
>>> fastai.__version__
'2.7.12'
>>> exit()
```

---
Expand Down Expand Up @@ -684,7 +688,7 @@ learn.fit_one_cycle(3, cbs=TensorBoardCallback('runs', trace_model=True))
#SBATCH --cpus-per-task=1
#SBATCH --output=output.%j
#SBATCH --error=error.%j
#SBATCH --time=00:10:00
#SBATCH --time=00:20:00
#SBATCH --partition=booster
#SBATCH --reservation=dl4neurosc # For today only

Expand Down
8 changes: 6 additions & 2 deletions public/01-access-machines.html
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,9 @@ <h3 id="example-activating-the-virtual-environment">Example: Activating
<ul>
<li
class="fragment"><code>source sc_venv_template/activate.sh</code></li>
<li class="fragment"><code>python</code></li>
<li class="fragment"><code>import fastai</code></li>
<li class="fragment"><code>fastai.__version__</code></li>
<li class="fragment"><div class="sourceCode" id="cb17"><pre
class="sourceCode python"><code class="sourceCode python"><span id="cb17-1"><a href="#cb17-1" aria-hidden="true" tabindex="-1"></a>source sc_venv_template<span class="op">/</span>activate.sh </span>
<span id="cb17-2"><a href="#cb17-2" aria-hidden="true" tabindex="-1"></a>The activation script must be sourced, otherwise the virtual environment will <span class="kw">not</span> work.</span>
Expand All @@ -894,7 +897,8 @@ <h3 id="example-activating-the-virtual-environment">Example: Activating
<span id="cb17-11"><a href="#cb17-11" aria-hidden="true" tabindex="-1"></a>Type <span class="st">&quot;help&quot;</span>, <span class="st">&quot;copyright&quot;</span>, <span class="st">&quot;credits&quot;</span> <span class="kw">or</span> <span class="st">&quot;license&quot;</span> <span class="cf">for</span> more information.</span>
<span id="cb17-12"><a href="#cb17-12" aria-hidden="true" tabindex="-1"></a><span class="op">&gt;&gt;&gt;</span> <span class="im">import</span> fastai</span>
<span id="cb17-13"><a href="#cb17-13" aria-hidden="true" tabindex="-1"></a><span class="op">&gt;&gt;&gt;</span> fastai.__version__</span>
<span id="cb17-14"><a href="#cb17-14" aria-hidden="true" tabindex="-1"></a><span class="co">&#39;2.7.12&#39;</span></span></code></pre></div></li>
<span id="cb17-14"><a href="#cb17-14" aria-hidden="true" tabindex="-1"></a><span class="co">&#39;2.7.12&#39;</span></span>
<span id="cb17-15"><a href="#cb17-15" aria-hidden="true" tabindex="-1"></a><span class="op">&gt;&gt;&gt;</span> exit()</span></code></pre></div></li>
</ul>
</section>
<section class="slide level2">
Expand Down Expand Up @@ -943,7 +947,7 @@ <h4 id="save-this-as-fastai.sbatch">Save this as
<span id="cb19-8"><a href="#cb19-8" aria-hidden="true" tabindex="-1"></a><span class="co">#SBATCH --cpus-per-task=1</span></span>
<span id="cb19-9"><a href="#cb19-9" aria-hidden="true" tabindex="-1"></a><span class="co">#SBATCH --output=output.%j</span></span>
<span id="cb19-10"><a href="#cb19-10" aria-hidden="true" tabindex="-1"></a><span class="co">#SBATCH --error=error.%j</span></span>
<span id="cb19-11"><a href="#cb19-11" aria-hidden="true" tabindex="-1"></a><span class="co">#SBATCH --time=00:10:00</span></span>
<span id="cb19-11"><a href="#cb19-11" aria-hidden="true" tabindex="-1"></a><span class="co">#SBATCH --time=00:20:00</span></span>
<span id="cb19-12"><a href="#cb19-12" aria-hidden="true" tabindex="-1"></a><span class="co">#SBATCH --partition=booster</span></span>
<span id="cb19-13"><a href="#cb19-13" aria-hidden="true" tabindex="-1"></a><span class="co">#SBATCH --reservation=dl4neurosc # For today only</span></span>
<span id="cb19-14"><a href="#cb19-14" aria-hidden="true" tabindex="-1"></a></span>
Expand Down

0 comments on commit e037f88

Please sign in to comment.