Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ufmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install ufmt
pip install black==23.3.0 usort==1.0.6 ufmt==2.1.0 libcst==1.0.1
- name: Analyzing the code with ufmt
run: |
ufmt check .
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ will change rapidly.
pip install .
# Optionally install editable
pip install -e .

# Optionally Install dev tooling
pip install -e ".[dev]"
```

# User API, subject to change
Expand Down
1 change: 0 additions & 1 deletion float8_experimental/float8_linear_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ def sync_float8_amax_and_scale_history(
# Lazy import to avoid circular dependency

if fp8_classes is None:

fp8_classes = Float8Linear

for name, child in model.named_modules():
Expand Down
22 changes: 13 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,23 @@ classifiers = [
]

dependencies = [
"torch >= 2.0.1",
"transformers==4.32.0",
"fire==0.5.0",
"fairscale==0.4.13",
"tqdm==4.66.1",
"pandas >= 2.0",
"torch >= 2.1",
"fairscale==0.4.13"
]

[project.optional-dependencies]
test = [
"transformers==4.32.0",
"pandas >= 2.0",
"tqdm==4.66.1",
"fire==0.5.0"
]
dev = [
"black",
"usort",
"libcst",
"black==23.3.0",
"usort==1.0.6",
"ufmt==2.1.0",
"libcst==1.0.1",
"pytest==7.4.0",
"bumpver",
"pip-tools"
]
Expand Down