FantasticGNU commited on
Commit
cf28296
·
1 Parent(s): 5b27a77

Update model/openllama.py

Browse files
Files changed (1) hide show
  1. model/openllama.py +1 -1
model/openllama.py CHANGED
@@ -11,7 +11,7 @@ import kornia as K
11
  import torch
12
  from torch.nn.utils import rnn
13
  from transformers import AutoConfig, AutoModelForCausalLM
14
- from accelerate import init_empty_weights, load_checkpoint_and_dispatch
15
 
16
  CLASS_NAMES = ['bottle', 'cable', 'capsule', 'carpet', 'grid', 'hazelnut', 'leather', 'metal nut', 'pill', 'screw', 'tile', 'toothbrush', 'transistor', 'wood', 'zipper', 'object',
17
  'candle', 'cashew', 'chewinggum', 'fryum', 'macaroni', 'pcb', 'pipe fryum']
 
11
  import torch
12
  from torch.nn.utils import rnn
13
  from transformers import AutoConfig, AutoModelForCausalLM
14
+ from accelerate import init_empty_weights, load_checkpoint_and_dispatch, infer_auto_device_map
15
 
16
  CLASS_NAMES = ['bottle', 'cable', 'capsule', 'carpet', 'grid', 'hazelnut', 'leather', 'metal nut', 'pill', 'screw', 'tile', 'toothbrush', 'transistor', 'wood', 'zipper', 'object',
17
  'candle', 'cashew', 'chewinggum', 'fryum', 'macaroni', 'pcb', 'pipe fryum']