-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary <!--- This is a required section; please describe the main purpose of this proposed code change. ---> <!--- ## Details This is an optional section; is there anything specific that reviewers should be aware of? ---> follow https://github.com/modal-labs/ci-on-modal ## Testing Done <!--- This is a required section; please describe how this change was tested. ---> <!-- Replace BLANK with your device type. For example, A100-80G-PCIe Complete the following tasks before sending your PR, and replace `[ ]` with `[x]` to indicate you have done them. --> - Hardware Type: <BLANK> - [ ] run `make test` to ensure correctness - [ ] run `make checkstyle` to ensure code style - [ ] run `make test-convergence` to ensure convergence
- Loading branch information
Showing
4 changed files
with
97 additions
and
28 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
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,22 @@ | ||
from pathlib import Path | ||
|
||
import modal | ||
|
||
ROOT_PATH = Path(__file__).parent.parent.parent | ||
|
||
image = modal.Image.debian_slim().pip_install_from_pyproject( | ||
ROOT_PATH / "pyproject.toml", optional_dependencies=["dev"] | ||
) | ||
|
||
app = modal.App("liger_convergence_test", image=image) | ||
|
||
# mount: add local files to the remote container | ||
repo = modal.Mount.from_local_dir(ROOT_PATH, remote_path="/root/liger-kernel") | ||
|
||
|
||
@app.function(gpu="A10G", mounts=[repo], timeout=60 * 20) | ||
def liger_convergence_test(): | ||
import subprocess | ||
|
||
subprocess.run(["pip", "install", "-e", "."], check=True, cwd="/root/liger-kernel") | ||
subprocess.run(["make", "test-convergence"], check=True, cwd="/root/liger-kernel") |
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,22 @@ | ||
from pathlib import Path | ||
|
||
import modal | ||
|
||
ROOT_PATH = Path(__file__).parent.parent.parent | ||
|
||
image = modal.Image.debian_slim().pip_install_from_pyproject( | ||
ROOT_PATH / "pyproject.toml", optional_dependencies=["dev"] | ||
) | ||
|
||
app = modal.App("liger_unit_test", image=image) | ||
|
||
# mount: add local files to the remote container | ||
repo = modal.Mount.from_local_dir(ROOT_PATH, remote_path="/root/liger-kernel") | ||
|
||
|
||
@app.function(gpu="A10G", mounts=[repo], timeout=60 * 20) | ||
def liger_unit_test(): | ||
import subprocess | ||
|
||
subprocess.run(["pip", "install", "-e", "."], check=True, cwd="/root/liger-kernel") | ||
subprocess.run(["make", "test"], check=True, cwd="/root/liger-kernel") |