kz209 commited on
Commit
331a464
·
1 Parent(s): 65ef8da

update dtyoe

Browse files
Files changed (1) hide show
  1. utils/model.py +1 -1
utils/model.py CHANGED
@@ -31,7 +31,7 @@ class Model(torch.nn.Module):
31
  # 使用vLLM加载模型
32
  self.llm = LLM(
33
  model=model_name,
34
- dtype="bfloat16",
35
  tokenizer=model_name,
36
  trust_remote_code=True
37
  )
 
31
  # 使用vLLM加载模型
32
  self.llm = LLM(
33
  model=model_name,
34
+ dtype="half",
35
  tokenizer=model_name,
36
  trust_remote_code=True
37
  )