Skip to content

Commit

Permalink
feat: initial nnx port (#3)
Browse files Browse the repository at this point in the history
Fixes #2

---------

Co-authored-by: Saurav Maheshkar <[email protected]>
  • Loading branch information
ariG23498 and SauravMaheshkar authored Sep 29, 2024
1 parent 7b744dd commit 0e8491f
Show file tree
Hide file tree
Showing 23 changed files with 4,194 additions and 107 deletions.
65 changes: 0 additions & 65 deletions .devcontainer/devcontainer.json

This file was deleted.

7 changes: 0 additions & 7 deletions .devcontainer/requirements.txt

This file was deleted.

17 changes: 17 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FL(U/A)X

JAX Implementation of Black Forest Labs' Flux.1 family of models


## Installation

```shell
$ uv sync
```

## Running

```shell
$ uv jflux
```

## References

* Original Implementation: [black-forest-labs/flux](https://github.com/black-forest-labs/flux)
26 changes: 12 additions & 14 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,22 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5

- name: Install uv
uses: astral-sh/setup-uv@v2
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: ".devcontainer/requirements.txt"
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m venv .venv && export PATH=".venv/bin:$PATH"
python -m pip install uv
python -m uv pip install --upgrade wheel setuptools
python -m uv pip install -r .devcontainer/requirements.txt
run: uv sync --all-extras --dev

- name: Ruff
run: |
python -m venv .venv && export PATH=".venv/bin:$PATH"
python -m ruff check src
uv run ruff check jflux
- name: Test with PyTest
run: |
python -m venv .venv && export PATH=".venv/bin:$PATH"
python -m pytest -v .
uv run pytest -v .
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ repos:
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.2
hooks:
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions jflux/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from jflux.cli import app

if __name__ == "__main__":
app()
Loading

0 comments on commit 0e8491f

Please sign in to comment.