Upload jinaai_jina-embeddings-v4_0.py with huggingface_hub
Browse files
jinaai_jina-embeddings-v4_0.py
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
try:
|
| 10 |
# Load model directly
|
| 11 |
from transformers import AutoModel
|
| 12 |
-
model = AutoModel.from_pretrained("jinaai/jina-embeddings-v4", trust_remote_code=True)
|
| 13 |
with open('jinaai_jina-embeddings-v4_0.txt', 'w') as f:
|
| 14 |
f.write('Everything was good in jinaai_jina-embeddings-v4_0.txt')
|
| 15 |
except Exception as e:
|
|
|
|
| 9 |
try:
|
| 10 |
# Load model directly
|
| 11 |
from transformers import AutoModel
|
| 12 |
+
model = AutoModel.from_pretrained("jinaai/jina-embeddings-v4", trust_remote_code=True, torch_dtype="auto"),
|
| 13 |
with open('jinaai_jina-embeddings-v4_0.txt', 'w') as f:
|
| 14 |
f.write('Everything was good in jinaai_jina-embeddings-v4_0.txt')
|
| 15 |
except Exception as e:
|