Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ chip_map= {
|
|
13 |
'embed_out': 0
|
14 |
}
|
15 |
# model = AutoModelForCausalLM.from_pretrained(name, device_map=chip_map, torch_dtype=torch.float16, load_in_8bit=True)
|
16 |
-
model = AutoModelForCausalLM.from_pretrained(model_name)
|
17 |
|
18 |
|
19 |
def predict(input, history=[], MAX_NEW_TOKENS = 500):
|
|
|
13 |
'embed_out': 0
|
14 |
}
|
15 |
# model = AutoModelForCausalLM.from_pretrained(name, device_map=chip_map, torch_dtype=torch.float16, load_in_8bit=True)
|
16 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
17 |
|
18 |
|
19 |
def predict(input, history=[], MAX_NEW_TOKENS = 500):
|