pkedzia commited on
Commit
3f30ba5
·
verified ·
1 Parent(s): 654e5c3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -1
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