Skip to content

Commit

Permalink
Update 2024-10-26 04:42:14
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy authored and zhyncs committed Oct 26, 2024
1 parent ff2d44a commit 727d88e
Show file tree
Hide file tree
Showing 19 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions README.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/README.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/README.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/README.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/README.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions _sources/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ This page lists some common errors and tips for fixing them.
## CUDA error: an illegal memory access was encountered
This error may be due to kernel errors or out-of-memory issues.
- If it is a kernel error, it is not easy to fix.
- If it is out-of-memory, sometimes it will report this error instead of "Out-of-memory." In this case, try setting a smaller value for `--mem-fraction-static`. The default value of `--mem-fraction-static` is around 0.8 - 0.9. https://github.com/sgl-project/sglang/blob/1edd4e07d6ad52f4f63e7f6beaa5987c1e1cf621/python/sglang/srt/server_args.py#L92-L102
- If it is out-of-memory, sometimes it will report this error instead of "Out-of-memory." In this case, try setting a smaller value for `--mem-fraction-static`. The default value of `--mem-fraction-static` is around 0.8 - 0.9.

## The server hangs
If the server hangs, try disabling some optimizations when launching the server.
- Add `--disable-cuda-graph`.
- Add `--disable-flashinfer-sampling`.
- Add `--sampling-backend pytorch`.
4 changes: 2 additions & 2 deletions backend.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/backend.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/backend.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/backend.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/backend.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions benchmark_and_profiling.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/benchmark_and_profiling.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/benchmark_and_profiling.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/benchmark_and_profiling.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/benchmark_and_profiling.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions choices_methods.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/choices_methods.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/choices_methods.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/choices_methods.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/choices_methods.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions contributor_guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/contributor_guide.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/contributor_guide.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/contributor_guide.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/contributor_guide.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions custom_chat_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/custom_chat_template.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/custom_chat_template.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/custom_chat_template.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/custom_chat_template.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions embedding_model.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/embedding_model.ipynb?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/embedding_model.ipynb?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -273,7 +273,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/embedding_model.ipynb" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/embedding_model.ipynb" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions frontend.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/frontend.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/frontend.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/frontend.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/frontend.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions hyperparameter_tuning.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/hyperparameter_tuning.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/hyperparameter_tuning.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/hyperparameter_tuning.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/hyperparameter_tuning.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/index.rst?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/index.rst?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -271,7 +271,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/index.rst" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/index.rst" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions install.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/install.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/install.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/install.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/install.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions model_support.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/model_support.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/model_support.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/model_support.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/model_support.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions release_process.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/release_process.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/release_process.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/release_process.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/release_process.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions sampling_params.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/sampling_params.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/sampling_params.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/sampling_params.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/sampling_params.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions send_request.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/send_request.ipynb?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/send_request.ipynb?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -273,7 +273,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/send_request.ipynb" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/send_request.ipynb" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
4 changes: 2 additions & 2 deletions setup_github_runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/setup_github_runner.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/setup_github_runner.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -270,7 +270,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/setup_github_runner.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/setup_github_runner.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down
8 changes: 4 additions & 4 deletions troubleshooting.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@



<li><a href="https://github.com/sgl-project/sglang/blob/main/docs/en/troubleshooting.md?plain=1" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/blob/main/troubleshooting.md?plain=1" target="_blank"
class="btn btn-sm btn-source-file-button dropdown-item"
title="Show source"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand All @@ -269,7 +269,7 @@



<li><a href="https://github.com/sgl-project/sglang/edit/main/docs/en/troubleshooting.md" target="_blank"
<li><a href="https://github.com/sgl-project/sglang/edit/main/troubleshooting.md" target="_blank"
class="btn btn-sm btn-source-edit-button dropdown-item"
title="Suggest edit"
data-bs-placement="left" data-bs-toggle="tooltip"
Expand Down Expand Up @@ -431,15 +431,15 @@ <h2>CUDA error: an illegal memory access was encountered<a class="headerlink" hr
<p>This error may be due to kernel errors or out-of-memory issues.</p>
<ul class="simple">
<li><p>If it is a kernel error, it is not easy to fix.</p></li>
<li><p>If it is out-of-memory, sometimes it will report this error instead of “Out-of-memory.” In this case, try setting a smaller value for <code class="docutils literal notranslate"><span class="pre">--mem-fraction-static</span></code>. The default value of <code class="docutils literal notranslate"><span class="pre">--mem-fraction-static</span></code> is around 0.8 - 0.9. https://github.com/sgl-project/sglang/blob/1edd4e07d6ad52f4f63e7f6beaa5987c1e1cf621/python/sglang/srt/server_args.py#L92-L102</p></li>
<li><p>If it is out-of-memory, sometimes it will report this error instead of “Out-of-memory.” In this case, try setting a smaller value for <code class="docutils literal notranslate"><span class="pre">--mem-fraction-static</span></code>. The default value of <code class="docutils literal notranslate"><span class="pre">--mem-fraction-static</span></code> is around 0.8 - 0.9.</p></li>
</ul>
</section>
<section id="the-server-hangs">
<h2>The server hangs<a class="headerlink" href="#the-server-hangs" title="Link to this heading">#</a></h2>
<p>If the server hangs, try disabling some optimizations when launching the server.</p>
<ul class="simple">
<li><p>Add <code class="docutils literal notranslate"><span class="pre">--disable-cuda-graph</span></code>.</p></li>
<li><p>Add <code class="docutils literal notranslate"><span class="pre">--disable-flashinfer-sampling</span></code>.</p></li>
<li><p>Add <code class="docutils literal notranslate"><span class="pre">--sampling-backend</span> <span class="pre">pytorch</span></code>.</p></li>
</ul>
</section>
</section>
Expand Down

0 comments on commit 727d88e

Please sign in to comment.