Sentence Similarity
sentence-transformers
Safetensors
qwen3
feature-extraction
dense
Generated from Trainer
dataset_size:18825
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Not-For-All-Audiences
Instructions to use elplaguister/qwen_xxx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use elplaguister/qwen_xxx with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("elplaguister/qwen_xxx") sentences = [ "Instruct: \nQuery: enum en python definicion", "Instruct: \nQuery: def write_enum(fo, datum, schema):\n \"\"\"An enum is encoded by a int, representing the zero-based position of\n the symbol in the schema.\"\"\"\n index = schema['symbols'].index(datum)\n write_int(fo, index)", "Instruct: \nQuery: n = int(input())\npoints = [[int(x) for x in input().split()] for _ in range(n)]\nif n <= 1:\n\tprint(-1)\n\treturn\ndx = [1e9, -1e9]\ndy = [1e9, -1e9]\nfor x, y in points:\n\tdx[0] = min(dx[0], x)\n\tdx[1] = max(dx[1], x)\n\tdy[0] = min(dy[0], y)\n\tdy[1] = max(dy[1], y)\narea = (dx[1] - dx[0]) * (dy[1] - dy[0])\nif area:\n\tprint(area)\nelse:\n\tprint(-1)", "Instruct: \nQuery: SELECT Gender, SUM(DonationAmount) FROM Donors GROUP BY Gender;" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Not-For-All-Audiences
This repository has been marked as containing sensitive content and may contain potentially harmful and sensitive information.
View model card