Spaces:
Runtime error
Runtime error
Set device map auto
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from lxt.models.llama import LlamaForCausalLM, attnlrp
|
|
10 |
from lxt.utils import clean_tokens
|
11 |
|
12 |
# Load model and tokenizer
|
13 |
-
model = LlamaForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0", torch_dtype=torch.bfloat16, device_map="
|
14 |
tokenizer = AutoTokenizer.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
|
15 |
|
16 |
# Apply AttnLRP rules
|
|
|
10 |
from lxt.utils import clean_tokens
|
11 |
|
12 |
# Load model and tokenizer
|
13 |
+
model = LlamaForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0", torch_dtype=torch.bfloat16, device_map="auto")
|
14 |
tokenizer = AutoTokenizer.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
|
15 |
|
16 |
# Apply AttnLRP rules
|