hunterXdk commited on
Commit
deb7ff3
·
verified ·
1 Parent(s): 71beb2b

removed device_map

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, device_map="auto")
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