removed device_map
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ import torch
|
|
14 |
# Load a Hugging Face model (e.g., LLaMA or Falcon)
|
15 |
model_name = "mixedbread-ai/mxbai-embed-2d-large-v1" # Replace with your preferred model
|
16 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
17 |
-
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16
|
18 |
|
19 |
|
20 |
|
|
|
14 |
# Load a Hugging Face model (e.g., LLaMA or Falcon)
|
15 |
model_name = "mixedbread-ai/mxbai-embed-2d-large-v1" # Replace with your preferred model
|
16 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
17 |
+
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16)
|
18 |
|
19 |
|
20 |
|