jupyterjazz commited on
Commit
bd2d9c1
1 Parent(s): d2adb21

simplify setting a task

Browse files

Signed-off-by: jupyterjazz <[email protected]>

Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -25186,7 +25186,7 @@ model = SentenceTransformer("jinaai/jina-embeddings-v3", trust_remote_code=True,
25186
  Or afterwards:
25187
  ```python
25188
  model = SentenceTransformer("jinaai/jina-embeddings-v3", trust_remote_code=True)
25189
- model._modules['transformer'].default_task = 'classification'
25190
  ```
25191
  This way you can fine-tune the LoRA adapter for the chosen task.
25192
 
 
25186
  Or afterwards:
25187
  ```python
25188
  model = SentenceTransformer("jinaai/jina-embeddings-v3", trust_remote_code=True)
25189
+ model[0].default_task = 'classification'
25190
  ```
25191
  This way you can fine-tune the LoRA adapter for the chosen task.
25192