Spaces:
Runtime error
Runtime error
Commit
·
edb3e83
1
Parent(s):
d4aa8e8
Upload app.py
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ def main():
|
|
| 109 |
)
|
| 110 |
model_args.model_name_or_path = "pinkmanlove/llama-7b-hf"
|
| 111 |
model_args.lora_model_path = "./robin-7b"
|
| 112 |
-
|
| 113 |
with open ("configs/ds_config_chatbot.json", "r") as f:
|
| 114 |
ds_config = json.load(f)
|
| 115 |
|
|
@@ -117,8 +117,7 @@ def main():
|
|
| 117 |
model_args,
|
| 118 |
tune_strategy='none',
|
| 119 |
ds_config=ds_config,
|
| 120 |
-
device=
|
| 121 |
-
)
|
| 122 |
|
| 123 |
# We don't need input data, we will read interactively from stdin
|
| 124 |
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.device = 'cpu'
|
| 113 |
with open ("configs/ds_config_chatbot.json", "r") as f:
|
| 114 |
ds_config = json.load(f)
|
| 115 |
|
|
|
|
| 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)
|