Commit bef5dd2d authored by Jiaming Tang's avatar Jiaming Tang
Browse files

[Minor] modify no_split_module_classes

parent 29f52eaa
......@@ -80,7 +80,7 @@ def build_model_and_enc(model_path):
model, args.load_quant, device_map="balanced",
# TODO: can we remove this?
no_split_module_classes=[
"OPTDecoderLayer", "LlamaDecoderLayer"]
"OPTDecoderLayer", "LlamaDecoderLayer", "BloomBlock", "MPTBlock", "DecoderLayer"]
)
else: # fp16 to quantized
kwargs = {"device_map": "balanced", "torch_dtype": torch.float16}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment