-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""MaxText AQT sweeps configurations.""" | ||
|
||
# pylint: skip-file | ||
|
||
import aqt.jax.v2.config as aqt_config | ||
|
||
|
||
def sweep1(fwd_int8: bool, bwd_int8: bool) -> aqt_config.DotGeneral: | ||
fqt_config = aqt_config.fully_quantized( | ||
fwd_bits=8 if fwd_int8 else None, | ||
bwd_bits=8 if bwd_int8 else None, | ||
use_fwd_quant=False, | ||
use_stochastic_rounding=None, | ||
vjp_lhs_stochastic_rounding=True, | ||
vjp_rhs_stochastic_rounding=False, | ||
fwd_save_accumulator_memory=False, | ||
bwd_save_accumulator_memory=False, | ||
) | ||
return fqt_config |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# pylint: skip-file | ||
"""Reads and asserts over target values""" | ||
from absl import app | ||
from typing import Sequence | ||
|