Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,8 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
38 |
MODEL,
|
39 |
torch_dtype=torch.bfloat16,
|
40 |
low_cpu_mem_usage=True,
|
41 |
-
device_map="auto"
|
|
|
42 |
|
43 |
@spaces.GPU()
|
44 |
def stream_chat(
|
|
|
38 |
MODEL,
|
39 |
torch_dtype=torch.bfloat16,
|
40 |
low_cpu_mem_usage=True,
|
41 |
+
device_map="auto",
|
42 |
+
trust_remote_code=True)
|
43 |
|
44 |
@spaces.GPU()
|
45 |
def stream_chat(
|