Skip to content

Commit

Permalink
Merge branch 'main' into mpatel31415/fix_for_missing_tokens_per_sec
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatel31415 committed Oct 24, 2024
2 parents 662ef05 + 79e59d0 commit 45390f7
Show file tree
Hide file tree
Showing 51 changed files with 2,554 additions and 308 deletions.
3 changes: 1 addition & 2 deletions .azure/gpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ jobs:
pytest thunder/tests/ \
-m "not standalone" \
-v --datefmt="%Y%m%d-%H:%M:%S.%f" \
--timeout=240 \
--random-order-seed=42 \
--durations=250 \
--timeout=240 \
Expand All @@ -97,7 +96,7 @@ jobs:
./codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) \
--flags=gpu,pytest,regular --name="GPU-coverage" --env=linux,azure
condition: ne(variables['testing'], 'distributed')
timeoutInMinutes: "30"
timeoutInMinutes: "40"
displayName: "Testing: regular"
- bash: |
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -23,7 +23,7 @@ repos:
- id: detect-private-key

- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
rev: v3.18.0
hooks:
- id: pyupgrade
args: ["--py310-plus"]
Expand All @@ -38,14 +38,14 @@ repos:
#args: ["--write-changes"] # uncomment if you want to get automatic fixing

- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black
name: Black code
exclude: "examples"

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
rev: 0.7.18
hooks:
- id: mdformat
additional_dependencies:
Expand All @@ -55,7 +55,7 @@ repos:
exclude: "examples"

- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v0.9.1
rev: v1.0.0
hooks:
- id: sphinx-lint

Expand Down
35 changes: 9 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,18 @@ The easiest way to get started with Thunder, requiring no extra installations or

## Install Thunder

To use Thunder on your local machine:
Thunder is in alpha and the latest development is happening on the `main` branch. You can install the latest version of Thunder from the `main` branch as follows:

- install [nvFuser](https://github.com/NVIDIA/Fuser) and PyTorch stable together as follows:
```bash
pip install git+https://github.com/Lightning-AI/lightning-thunder.git@main
```

To achieve the best performance, you can install Thunder with the following additional dependencies:

- install nightly [nvFuser](https://github.com/NVIDIA/Fuser) built for PyTorch 2.4 as follows:

```bash
# install nvFuser which installs the matching stable PyTorch
# install nvFuser built for the matching stable PyTorch
pip install --pre nvfuser-cu121-torch24
```

Expand All @@ -89,35 +95,12 @@ pip install --pre nvfuser-cu121-torch24
pip install nvidia-cudnn-frontend
```

- Finally, install Thunder as follows:

```
# install thunder
pip install lightning-thunder
```

<details>
<summary>Advanced install options</summary>
<!-- following section will be skipped from PyPI description -->

&#160;

### Install from main

Alternatively, you can install the latest version of Thunder directly from this GitHub repository as follows:

```
# 1) Install nvFuser and PyTorch dependencies:
pip install --pre nvfuser-cu121-torch24
```

```bash
# 2) Install Thunder itself
pip install git+https://github.com/Lightning-AI/lightning-thunder.git
```

&#160;

### Install to tinker and contribute

If you are interested in tinkering with and contributing to Thunder, we recommend cloning the Thunder repository and installing it in pip's editable mode:
Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ The compiled function ``jitted_foo`` takes and returns PyTorch tensors, just lik
FSDP Under the Hood Tutorial <notebooks/dev_tutorials/fsdp_tutorial>
Benchmarking Thunder <intermediate/benchmarking>
Writing a Transform <notebooks/writing_a_trace_transform_cpu_offloading>
Using Liger-Kernel with Thunder <notebooks/liger_kernel>

.. toctree::
:maxdepth: 1
Expand Down
Loading

0 comments on commit 45390f7

Please sign in to comment.