-
-
Notifications
You must be signed in to change notification settings - Fork 894
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bootstrap Hosted Axolotl Docs w/Quarto (#1429)
* precommit * mv styes.css * fix links
- Loading branch information
Showing
20 changed files
with
187 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Publish Docs | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pages: write | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.10' | ||
- name: Publish to GitHub Pages (and render) | ||
uses: quarto-dev/quarto-actions/publish@v2 | ||
with: | ||
target: gh-pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
project: | ||
type: website | ||
|
||
website: | ||
title: "Axolotl" | ||
description: "Fine-tuning" | ||
favicon: favicon.jpg | ||
navbar: | ||
title: Axolotl | ||
background: dark | ||
pinned: false | ||
collapse: false | ||
tools: | ||
- icon: twitter | ||
href: https://twitter.com/axolotl_ai | ||
- icon: github | ||
href: https://github.com/OpenAccess-AI-Collective/axolotl/ | ||
- icon: discord | ||
href: https://discord.gg/7m9sfhzaf3 | ||
|
||
sidebar: | ||
pinned: true | ||
collapse-level: 2 | ||
style: docked | ||
contents: | ||
- text: Home | ||
href: index.qmd | ||
- section: "How-To Guides" | ||
contents: | ||
# TODO Edit folder structure after we have more docs. | ||
- docs/debugging.qmd | ||
- docs/multipack.qmd | ||
- docs/fdsp_qlora.qmd | ||
- docs/input_output.qmd | ||
- docs/rlhf.qmd | ||
- docs/nccl.qmd | ||
- docs/mac.qmd | ||
- docs/multi-node.qmd | ||
- section: "Reference" | ||
contents: | ||
- docs/config.qmd | ||
- docs/faq.qmd | ||
|
||
|
||
|
||
|
||
format: | ||
html: | ||
theme: materia | ||
css: styles.css | ||
toc: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
This directory contains example config files that might be useful for debugging. Please see [docs/debugging.md](../docs/debugging.md) for more information. | ||
This directory contains example config files that might be useful for debugging. Please see [docs/debugging.qmd](../docs/debugging.qmd) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/.quarto/ | ||
_site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: Config options | ||
description: A complete list of all configuration options. | ||
--- | ||
|
||
```{python} | ||
#|echo: false | ||
#|output: asis | ||
import re | ||
# Regex pattern to match the YAML block including its code fence | ||
pattern = r'<details[^>]*id="all-yaml-options"[^>]*>.*?<summary>All yaml options.*?```yaml(.*?)```.*?</details>' | ||
with open('../README.md', 'r') as f: | ||
doc = f.read() | ||
match = re.search(pattern, doc, re.DOTALL) | ||
print("```yaml", match.group(1).strip(), "```", sep="\n") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: FAQ | ||
description: Frequently asked questions | ||
--- | ||
|
||
|
||
**Q: The trainer stopped and hasn't progressed in several minutes.** | ||
|
||
> A: Usually an issue with the GPUs communicating with each other. See the [NCCL doc](nccl.qmd) | ||
**Q: Exitcode -9** | ||
|
||
> A: This usually happens when you run out of system RAM. | ||
**Q: Exitcode -7 while using deepspeed** | ||
|
||
> A: Try upgrading deepspeed w: `pip install -U deepspeed` | ||
**Q: AttributeError: 'DummyOptim' object has no attribute 'step'** | ||
|
||
> A: You may be using deepspeed with single gpu. Please don't set `deepspeed:` in yaml or cli. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
|
||
```{python} | ||
#|output: asis | ||
#|echo: false | ||
# This cell steals the README as the home page for now, but excludes the table of contents (quarto adds its own) | ||
import re | ||
pattern = re.compile( | ||
r"<table>\s*<tr>\s*<td>\s*## Table of Contents.*?</td>\s*</tr>\s*</table>", | ||
re.DOTALL | re.IGNORECASE | ||
) | ||
with open('README.md', 'r') as f: | ||
txt = f.read() | ||
cleaned = pattern.sub("", txt) | ||
print(cleaned) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* css styles */ |