Update README.md
Browse files
README.md
CHANGED
@@ -100,7 +100,6 @@ texts = ["student", "żak"]
|
|
100 |
tokens = tok(texts, padding=True, truncation=True, return_tensors="pt")
|
101 |
with torch.no_grad():
|
102 |
out = mdl(**tokens)
|
103 |
-
# simple mean pooling over tokens; use model-specific pooling if provided
|
104 |
emb = out.last_hidden_state.mean(dim=1)
|
105 |
emb = F.normalize(emb, p=2, dim=1)
|
106 |
|
|
|
100 |
tokens = tok(texts, padding=True, truncation=True, return_tensors="pt")
|
101 |
with torch.no_grad():
|
102 |
out = mdl(**tokens)
|
|
|
103 |
emb = out.last_hidden_state.mean(dim=1)
|
104 |
emb = F.normalize(emb, p=2, dim=1)
|
105 |
|