codefuse-admin commited on
Commit
d2b8595
1 Parent(s): 8e2d8fc

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -1
README.md CHANGED
@@ -44,7 +44,6 @@ from transformers import AutoTokenizer, AutoModel
44
  model_name_or_path = "CodeFuse-CGE-Large"
45
  model = AutoModel.from_pretrained(model_name_or_path, trust_remote_code=True)
46
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=True, truncation_side='right', padding_side='right')
47
- model = model.to(torch.bfloat16)
48
 
49
  if torch.cuda.is_available():
50
  device = 'cuda'
 
44
  model_name_or_path = "CodeFuse-CGE-Large"
45
  model = AutoModel.from_pretrained(model_name_or_path, trust_remote_code=True)
46
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=True, truncation_side='right', padding_side='right')
 
47
 
48
  if torch.cuda.is_available():
49
  device = 'cuda'