Instructions to use markaw/NV-Embed-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use markaw/NV-Embed-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="markaw/NV-Embed-v2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("markaw/NV-Embed-v2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
from typing import Dict, List, Any
|
| 2 |
-
from sentence_transformers import SentenceTransformer
|
| 3 |
|
| 4 |
class EndpointHandler():
|
| 5 |
def __init__(self, path="NV-Embed-v2"):
|
|
|
|
| 1 |
from typing import Dict, List, Any
|
| 2 |
+
# from sentence_transformers import SentenceTransformer
|
| 3 |
|
| 4 |
class EndpointHandler():
|
| 5 |
def __init__(self, path="NV-Embed-v2"):
|