DeepSpeed/deepspeed/module_inject
Logan Adams 2e0c39b55c
Add explicit parameters for torch.load (#6751)
Successor PR to #6094:

> FutureWarning: You are using torch.load with weights_only=False (the
current default value), which uses the default pickle module implicitly.
It is possible to construct malicious pickle data which will execute
arbitrary code during unpickling (See
https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models
for more details). In a future release, the default value for
weights_only will be flipped to True. This limits the functions that
could be executed during unpickling. Arbitrary objects will no longer be
allowed to be loaded via this mode unless they are explicitly
allowlisted by the user via torch.serialization.add_safe_globals. We
recommend you start setting weights_only=True for any use case where you
don't have full control of the loaded file. Please open an issue on
GitHub for any issues related to this experimental feature.

Todo:
- [ ] Update values in non-test files to True where necessary.
2024-11-19 11:09:52 -08:00
..
containers fix: quantization with DeepSpeed HE (#5624) 2024-07-23 00:59:51 +00:00
__init__.py Update DeepSpeed copyright license to Apache 2.0 (#3111) 2023-03-30 17:14:38 -07:00
auto_tp.py Enabled Qwen2-MoE Tensor Parallelism (TP) inference (#6551) 2024-10-09 15:23:16 +00:00
auto_tp_model_utils.py support baichuan model: (#4721) 2023-12-18 10:45:01 -08:00
fusedqkv_utils.py Add chatglm2 & chatglm3 autotp (#5540) 2024-07-23 02:11:21 +00:00
inject.py Update DeepSpeed copyright license to Apache 2.0 (#3111) 2023-03-30 17:14:38 -07:00
layers.py enable yuan autotp & add conv tp (#5428) 2024-06-18 13:30:46 -07:00
load_checkpoint.py load linear layer weight with given dtype (#4044) 2024-02-02 15:37:54 -08:00
module_quantize.py Checks for user injection policy (#3052) 2023-09-03 18:58:57 +00:00
policy.py Hybrid Engine Refactor and Llama Inference Support (#3425) 2023-05-03 17:20:07 -07:00
replace_module.py Add explicit parameters for torch.load (#6751) 2024-11-19 11:09:52 -08:00
replace_policy.py Add the policy to run llama model from the official repo (#4313) 2023-09-19 16:57:55 +00:00
tp_shard.py sequence parallel for uneven heads (#6392) 2024-10-25 18:26:47 +00:00
utils.py Add the policy to run llama model from the official repo (#4313) 2023-09-19 16:57:55 +00:00