-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs] Restructure doc page and add AI gallery #3331
Changes from 59 commits
30c1d4b
28f8567
f634809
f135502
abc7759
288588c
9056f3f
8183c36
3435eb4
2dbbd32
97e436c
468c3db
4b7c826
58760db
a5cc3cf
079f942
d42b1eb
e82d1a0
414a3d8
79bc120
3623aef
dbea203
15331fd
b88dc65
e1b6e85
ca321d7
de6e046
4412295
6fcce9c
b3c94e7
f9b27bf
478c85e
9b5ec92
b8a652c
572e9cb
6463191
1b41069
f607717
c4f352b
6ec9739
16ce19b
0c45e64
b31331d
4550155
e9f79bf
6d8b386
cf04d96
2665a95
5ae7fdb
f9cbf67
acb9ec7
c8290e1
edb6d5d
efeb279
4041b54
0483fb4
b16b40c
0bdc200
612995a
911270e
c8aa98b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gallery/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why call this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because we will run the |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../llm/localgpt/README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../llm/tabby/README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../llm/lorax/README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../llm/sglang/README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../llm/tgi/README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../llm/vllm/README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
AI Gallery | ||
==================== | ||
|
||
|
||
AI Gallery is a collection of ready-to-run recipes for popular AI frameworks and AI models. | ||
It provides a simple way to **package**, **share**, and **run** AI projects using the simple interface of SkyPilot. | ||
|
||
Readers can directly execute the SkyPilot YAMLs on their own infrastructure, such as cloud VMs or Kubernetes. | ||
Michaelvll marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.. image:: ../images/ai-gallery-cover.png | ||
:alt: AI Gallery | ||
:align: center | ||
|
||
Contents | ||
-------- | ||
|
||
.. Relative paths are not supported in README.md. Instead, we should use GitHub | ||
.. URLs for the references to the files. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Inference Engines | ||
|
||
vLLM <frameworks/vllm> | ||
Hugging Face TGI <frameworks/tgi> | ||
Michaelvll marked this conversation as resolved.
Show resolved
Hide resolved
|
||
SGLang <frameworks/sglang> | ||
LoRAX <frameworks/lorax> | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: LLM Models | ||
|
||
Mixtral (Mistral AI) <llms/mixtral> | ||
Mistral 7B (Mistral AI) <https://docs.mistral.ai/self-deployment/skypilot/> | ||
Llama-2 (Meta) <llms/llama-2> | ||
CodeLlama (Meta) <llms/codellama> | ||
Gemma (Google) <llms/gemma> | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Applications | ||
|
||
Tabby: Coding Assistant <applications/tabby> | ||
LocalGPT: Chat with PDF <applications/localgpt> | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Tutorials | ||
|
||
tutorials/finetuning.md | ||
|
||
|
||
|
||
Adding an Example to the Gallery | ||
-------------------------------- | ||
We welcome contributions from the community. If you would like to contribute, please follow the guidelines below. | ||
|
||
1. Fork the `SkyPilot repository <https://github.com/skypilot-org/skypilot>`__ on GitHub. | ||
2. Create a new folder for your own framework, LLM model, or tutorial under `llm/ <https://github.com/skypilot-org/skypilot/tree/master/llm>`__. | ||
3. Add a README.md, a SkyPilot YAML, and other necessary files to run the AI project. | ||
4. Create a soft link in `docs/source/_gallery_original <https://github.com/skypilot-org/skypilot/blob/master/docs/source/_gallery_original>`__ to the README file in one of the subfolders (frameworks, llms, tutorials), e.g., :code:`cd docs/source/_gallery_original/llms; ln -s ../../llm/mixtral/README.md mixtral.md`. | ||
5. Add the file path to the ``toctree`` above on this page. | ||
6. Create a pull request to the `SkyPilot repository <https://github.com/skypilot-org/skypilot/compare>`__. | ||
|
||
If you have any questions, please feel free to ask in the `SkyPilot Slack <https://slack.skypilot.co>`__. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../llm/codellama/README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../llm/gemma/README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../llm/llama-2/README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../llm/mixtral/README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../llm/vicuna-llama-2/README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Dummy data for testing ReadTheDocs footer insertion | ||
Michaelvll marked this conversation as resolved.
Show resolved
Hide resolved
|
||
// This mimics RTD data for a project that uses both versions + languages | ||
var READTHEDOCS_DATA = { | ||
project: "frc-docs", | ||
version: "latest", | ||
language: "en", | ||
proxied_api_host: "https://readthedocs.org", | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% if author %} | ||
<p class="component-author"> | ||
By {{ author }} | ||
</p> | ||
{% endif %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{# Displays the TOC-subtree for pages nested under the currently active top-level TOCtree element. #} | ||
<nav class="bd-docs-nav bd-links" aria-label="{{ _('SkyPilot') }}"> | ||
<!-- <p class="bd-links__title" role="heading" aria-level="1">{{ _("SkyPilot") }}</p> --> | ||
<div class="bd-toc-item navbar-nav"> | ||
{{- generate_toctree_html( | ||
"sidebar", | ||
startdepth=0, | ||
show_nav_level=theme_show_nav_level | int, | ||
maxdepth=theme_navigation_depth | int, | ||
collapse=True, | ||
includehidden=theme_sidebar_includehidden | tobool, | ||
titles_only=True | ||
) | ||
-}} | ||
</div> | ||
</nav> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{# Displays the TOC-subtree for pages nested under the currently active top-level TOCtree element. #} | ||
<nav class="bd-docs-nav bd-links" aria-label="{{ _('SkyPilot') }}"> | ||
<!-- <p class="bd-links__title" role="heading" aria-level="1">{{ _("SkyPilot") }}</p> --> | ||
<div class="bd-toc-item navbar-nav"> | ||
{{- generate_toctree_html( | ||
"sidebar", | ||
show_nav_level=theme_show_nav_level | int, | ||
maxdepth=theme_navigation_depth | int, | ||
collapse=theme_collapse_navigation | tobool, | ||
includehidden=theme_sidebar_includehidden | tobool, | ||
titles_only=True | ||
) | ||
-}} | ||
</div> | ||
</nav> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{# Logo link generation -#} | ||
{% if not theme_logo.get("link") %} | ||
{% set href = pathto(root_doc) %} | ||
{% elif hasdoc(theme_logo.get("link")) %} | ||
{% set href = pathto(theme_logo.get("link")) %} {# internal page #} | ||
{% else %} | ||
{% set href = theme_logo.get("link") %} {# external url #} | ||
{% endif %} | ||
|
||
{#- Logo HTML and image #} | ||
<a class="navbar-brand logo" href="{{ href }}"> | ||
{{ theme_logo["svg"] }} | ||
</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this remnant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is to avoid generated
gallery/
folder to be included in our git repo, as all the source files should be stay in_gallery_original