Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,8 @@ tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
|
| 11 |
model = AutoModelForCausalLM.from_pretrained(
|
| 12 |
model_name,
|
| 13 |
trust_remote_code=True,
|
| 14 |
-
|
|
|
|
| 15 |
)
|
| 16 |
embedding_layer = model.get_input_embeddings()
|
| 17 |
|
|
|
|
| 11 |
model = AutoModelForCausalLM.from_pretrained(
|
| 12 |
model_name,
|
| 13 |
trust_remote_code=True,
|
| 14 |
+
device_map="auto",
|
| 15 |
+
torch_dtype=torch.bfloat16
|
| 16 |
)
|
| 17 |
embedding_layer = model.get_input_embeddings()
|
| 18 |
|