Skip to content

Commit 0e8491f

Browse files
ariG23498SauravMaheshkar
andauthoredSep 29, 2024··
feat: initial nnx port (#3)
Fixes #2 --------- Co-authored-by: Saurav Maheshkar <[email protected]>
1 parent 7b744dd commit 0e8491f

23 files changed

+4194
-107
lines changed
 

‎.devcontainer/devcontainer.json

-65
This file was deleted.

‎.devcontainer/requirements.txt

-7
This file was deleted.

‎.github/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
# FL(U/A)X
22

33
JAX Implementation of Black Forest Labs' Flux.1 family of models
4+
5+
6+
## Installation
7+
8+
```shell
9+
$ uv sync
10+
```
11+
12+
## Running
13+
14+
```shell
15+
$ uv jflux
16+
```
17+
18+
## References
19+
20+
* Original Implementation: [black-forest-labs/flux](https://github.com/black-forest-labs/flux)

‎.github/workflows/python.yml

+12-14
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,22 @@ jobs:
2929

3030
steps:
3131
- uses: actions/checkout@v4
32-
- name: Setup Python ${{ matrix.python-version }}
33-
uses: actions/setup-python@v5
32+
33+
- name: Install uv
34+
uses: astral-sh/setup-uv@v2
3435
with:
35-
python-version: ${{ matrix.python-version }}
36-
cache: "pip"
37-
cache-dependency-path: ".devcontainer/requirements.txt"
36+
enable-cache: true
37+
cache-dependency-glob: "uv.lock"
38+
39+
- name: Set up Python ${{ matrix.python-version }}
40+
run: uv python install ${{ matrix.python-version }}
3841

3942
- name: Install dependencies
40-
run: |
41-
python -m venv .venv && export PATH=".venv/bin:$PATH"
42-
python -m pip install uv
43-
python -m uv pip install --upgrade wheel setuptools
44-
python -m uv pip install -r .devcontainer/requirements.txt
43+
run: uv sync --all-extras --dev
44+
4545
- name: Ruff
4646
run: |
47-
python -m venv .venv && export PATH=".venv/bin:$PATH"
48-
python -m ruff check src
47+
uv run ruff check jflux
4948
- name: Test with PyTest
5049
run: |
51-
python -m venv .venv && export PATH=".venv/bin:$PATH"
52-
python -m pytest -v .
50+
uv run pytest -v .

‎.pre-commit-config.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ repos:
1414
rev: 24.8.0
1515
hooks:
1616
- id: black
17-
- repo: https://github.com/pre-commit/mirrors-mypy
18-
rev: v1.11.2
19-
hooks:
20-
- id: mypy
2117
- repo: https://github.com/astral-sh/ruff-pre-commit
2218
rev: v0.6.2
2319
hooks:

‎src/__init__.py ‎jflux/__init__.py

File renamed without changes.

‎jflux/__main__.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from jflux.cli import app
2+
3+
if __name__ == "__main__":
4+
app()

0 commit comments

Comments
 (0)
Please sign in to comment.