-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing bug of numpy.float32 has no attr client for attention
- Loading branch information
Showing
4 changed files
with
64 additions
and
14 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 |
---|---|---|
@@ -1,29 +1,53 @@ | ||
from fjformer.load import ( | ||
load_and_convert_checkpoint_to_torch, float_tensor_to_dtype, read_ckpt, save_ckpt, StreamingCheckpointer, | ||
load_and_convert_checkpoint_to_torch, | ||
float_tensor_to_dtype, | ||
read_ckpt, | ||
save_ckpt, | ||
StreamingCheckpointer, | ||
get_float_dtype_by_name | ||
) | ||
|
||
from fjformer.partition_utils import ( | ||
get_jax_mesh, names_in_current_mesh, get_names_from_partition_spec, match_partition_rules, | ||
flatten_tree, get_metrics, tree_apply, get_weight_decay_mask, named_tree_map, | ||
tree_path_to_string, make_shard_and_gather_fns, with_sharding_constraint, | ||
wrap_function_with_rng | ||
get_jax_mesh, | ||
names_in_current_mesh, | ||
get_names_from_partition_spec, | ||
match_partition_rules, | ||
flatten_tree, | ||
get_metrics, | ||
tree_apply, | ||
get_weight_decay_mask, | ||
named_tree_map, | ||
tree_path_to_string, | ||
make_shard_and_gather_fns, | ||
with_sharding_constraint, | ||
wrap_function_with_rng, | ||
create_mesh | ||
) | ||
|
||
from fjformer.monitor import ( | ||
run, get_mem, is_notebook, threaded_log, initialise_tracking | ||
run, | ||
get_mem, | ||
is_notebook, | ||
threaded_log, | ||
initialise_tracking | ||
) | ||
|
||
from fjformer.datasets import ( | ||
get_dataloader | ||
) | ||
|
||
from .func import ( | ||
transpose, global_norm, average_metrics | ||
transpose, | ||
global_norm, | ||
average_metrics | ||
) | ||
|
||
from .utils import ( | ||
JaxRNG, GenerateRNG, init_rng, next_rng, count_num_params | ||
JaxRNG, | ||
GenerateRNG, | ||
init_rng, | ||
next_rng, | ||
count_num_params | ||
) | ||
|
||
__version__ = '0.0.11' | ||
__version__ = '0.0.12' |
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,4 +1,16 @@ | ||
from .mesh_utils import (get_jax_mesh, names_in_current_mesh, get_names_from_partition_spec, match_partition_rules, | ||
flatten_tree, get_metrics, tree_apply, get_weight_decay_mask, named_tree_map, | ||
tree_path_to_string, make_shard_and_gather_fns, with_sharding_constraint, | ||
wrap_function_with_rng) | ||
from .mesh_utils import ( | ||
get_jax_mesh, | ||
names_in_current_mesh, | ||
get_names_from_partition_spec, | ||
match_partition_rules, | ||
flatten_tree, | ||
get_metrics, | ||
tree_apply, | ||
get_weight_decay_mask, | ||
named_tree_map, | ||
tree_path_to_string, | ||
make_shard_and_gather_fns, | ||
with_sharding_constraint, | ||
wrap_function_with_rng, | ||
create_mesh | ||
) |
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 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
setuptools.setup( | ||
name="fjformer", | ||
version='0.0.11', | ||
version='0.0.12', | ||
author="Erfan Zare Chavoshi", | ||
author_email="[email protected]", | ||
long_description=long_description, | ||
|