Update README.md
This commit is contained in:
parent
6e41de8b06
commit
90b66b21a0
@ -64,9 +64,11 @@ KeyError: 'qwen3'
|
||||
# Requires sentence-transformers>=2.7.0
|
||||
|
||||
from sentence_transformers import SentenceTransformer
|
||||
from modelscope import snapshot_download
|
||||
|
||||
# Load the model
|
||||
model = SentenceTransformer("Qwen/Qwen3-Embedding-8B")
|
||||
model_dir = snapshot_download("Qwen/Qwen3-Embedding-8B")
|
||||
model = SentenceTransformer(model_dir)
|
||||
|
||||
# We recommend enabling flash_attention_2 for better acceleration and memory saving,
|
||||
# together with setting `padding_side` to "left":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user