mirror of https://github.com/InternLM/InternLM
add xcomposer 4bit and internlm2-chat-20b test case
parent
092b8799e4
commit
92b15b180d
|
@ -177,7 +177,7 @@ class TestMMModel:
|
||||||
model_name, trust_remote_code=True, device='cuda:0').eval()
|
model_name, trust_remote_code=True, device='cuda:0').eval()
|
||||||
else:
|
else:
|
||||||
model = AutoModelForCausalLM.from_pretrained(
|
model = AutoModelForCausalLM.from_pretrained(
|
||||||
model_name, torch_dtype=torch.float16,
|
model_name, torch_dtype=torch.float32,
|
||||||
trust_remote_code=True).cuda()
|
trust_remote_code=True).cuda()
|
||||||
|
|
||||||
tokenizer = AutoTokenizer.from_pretrained(model_name,
|
tokenizer = AutoTokenizer.from_pretrained(model_name,
|
||||||
|
|
Loading…
Reference in New Issue