Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
feature-extraction
Generated from Trainer
dataset_size:778
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use 44WXNRFEELSLIKEPINSANDNEEDLESINMYHEART/CODE_VERONICA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use 44WXNRFEELSLIKEPINSANDNEEDLESINMYHEART/CODE_VERONICA with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("44WXNRFEELSLIKEPINSANDNEEDLESINMYHEART/CODE_VERONICA") sentences = [ "Неправильная раскладка: 'асинк асинк асинко_лен тина read' (response.aread)", "@router.post(\"/auth/logout\")\nasync def logout(token: str = Depends(oauth2_scheme), redis: Redis = Depends(get_redis)):\n await redis.setex(f\"blacklist:{token}\", time=3600, value=\"true\")\n return {\"detail\": \"Successfully logged out\"}", "@router.get(\"/health/db\")\nasync def check_database_health(db: AsyncSession = Depends(get_db)):\n try:\n await db.execute(text(\"SELECT 1\"))\n return {\"status\": \"healthy\", \"database\": \"online\"}\n except Exception as e:\n logger.critical(f\"Database healthcheck failed: {e}\")\n raise HTTPException(status_code=503, detail=\"Database unavailable\")", "return await response.aread()" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!