hendrydong commited on
Commit
04aede3
·
1 Parent(s): 603f326

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -109,15 +109,17 @@ def main():
109
  )
110
  model_args.model_name_or_path = "pinkmanlove/llama-7b-hf"
111
  model_args.lora_model_path = "./robin-7b"
112
- pipeline_args.device = 'cpu'
113
- with open ("configs/ds_config_chatbot.json", "r") as f:
 
114
  ds_config = json.load(f)
115
 
116
  model = AutoModel.get_model(
117
  model_args,
118
  tune_strategy='none',
119
  ds_config=ds_config,
120
- device=pipeline_args.device)
 
121
 
122
  # We don't need input data, we will read interactively from stdin
123
  data_args = DatasetArguments(dataset_path=None)
 
109
  )
110
  model_args.model_name_or_path = "pinkmanlove/llama-7b-hf"
111
  model_args.lora_model_path = "./robin-7b"
112
+ pipeline_args.deepspeed = "configs/ds_config_chatbot.json"
113
+
114
+ with open (pipeline_args.deepspeed, "r") as f:
115
  ds_config = json.load(f)
116
 
117
  model = AutoModel.get_model(
118
  model_args,
119
  tune_strategy='none',
120
  ds_config=ds_config,
121
+ device="cpu",#pipeline_args.device,
122
+ )
123
 
124
  # We don't need input data, we will read interactively from stdin
125
  data_args = DatasetArguments(dataset_path=None)