-
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.
- Loading branch information
Showing
6 changed files
with
28 additions
and
17 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,10 +1,12 @@ | ||
from fjutils.checkpointing import StreamingCheckpointer | ||
from fjutils.easylm import with_sharding_constraint, match_partition_rules, wrap_function_with_rng, tree_apply, \ | ||
from .checkpointing import StreamingCheckpointer | ||
from .easylm import with_sharding_constraint, match_partition_rules, wrap_function_with_rng, tree_apply, \ | ||
names_in_current_mesh, flatten_tree, get_jax_mesh, cross_entropy_loss_and_accuracy, tree_path_to_string, \ | ||
average_metrics, float_tensor_to_dtype, get_float_dtype_by_name, float_to_dtype, get_metrics, \ | ||
get_gradient_checkpoint_policy, get_names_from_partition_spec, global_norm, get_weight_decay_mask, mse_loss, \ | ||
named_tree_map, make_shard_and_gather_fns, blockwise_cross_entropy, blockwise_dot_product_attention | ||
from fjutils.load import load_pretrained_model | ||
from fjutils.utils import change_to_fp16, change_to_fp32, change_to_bf16, change, count_params, get_names, get_devices | ||
from fjutils.flash_attention import dot_product_attention_queries_per_head, dot_product_attention_multihead, \ | ||
from .load import load_pretrained_model | ||
from .utils import change_to_fp16, change_to_fp32, change_to_bf16, change, count_params, get_names, get_devices | ||
from .flash_attention import dot_product_attention_queries_per_head, dot_product_attention_multihead, \ | ||
dot_product_attention_multiquery, _memory_efficient_attention | ||
|
||
__version__ = '0.0.17' |
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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
jax~=0.4.10 | ||
transformers~=4.31.0 | ||
jax>=0.4.17 | ||
transformers>=4.34.0 | ||
typing~=3.7.4.3 | ||
numpy | ||
flax==0.7.1 | ||
optax~=0.1.7 | ||
einops~=0.6.1 | ||
msgpack~=1.0.5 | ||
flax>=0.7.3 | ||
optax>=0.1.7 | ||
einops>=0.6.1 | ||
msgpack>=1.0.5 | ||
ml_collections |
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="FJUtils", | ||
version='0.0.16', | ||
version='0.0.17', | ||
author="Erfan Zare Chavoshi", | ||
author_email="[email protected]", | ||
long_description=long_description, | ||
|