Skip to content

Commit

Permalink
Update aquila_chat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BAAI-OpenPlatform authored Jun 30, 2023
1 parent 893a484 commit e1cc636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Aquila/Aquila-chat/aquila_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

config_file = os.path.join(cache_dir, 'config.json')
from flagai.model.aquila_model import AQUILAModel
model = AQUILAModel.init_from_json(config_file=config_file)
model = AQUILAModel.init_from_json(config_file=config_file, device=device, fp16=True)
print('*'*20, "model", model)

#lora
Expand Down Expand Up @@ -258,4 +258,4 @@ def padding(indice, max_length, pad_idx=0):
valid_dataset=valid_dataset,
collate_fn=ConversationDatasetV2.collate_fn,
optimizer=None,
rank_split=False)
rank_split=False)

0 comments on commit e1cc636

Please sign in to comment.