Spaces:
Runtime error
Runtime error
test app
Browse files
app.py
CHANGED
@@ -43,7 +43,6 @@ def _load_model_tokenizer(args):
|
|
43 |
|
44 |
model = AutoModelForCausalLM.from_pretrained(
|
45 |
'WisdomShell/CodeShell-7B-Chat',
|
46 |
-
device_map='cpu',
|
47 |
trust_remote_code=True,
|
48 |
resume_download=True,
|
49 |
torch_dtype=torch.bfloat16
|
|
|
43 |
|
44 |
model = AutoModelForCausalLM.from_pretrained(
|
45 |
'WisdomShell/CodeShell-7B-Chat',
|
|
|
46 |
trust_remote_code=True,
|
47 |
resume_download=True,
|
48 |
torch_dtype=torch.bfloat16
|