Sentence Similarity
sentence-transformers
Safetensors
qwen2
feature-extraction
Generated from Trainer
dataset_size:1077240
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use AlexWortega/qwen7k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use AlexWortega/qwen7k with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("AlexWortega/qwen7k") sentences = [ "Who is the father of philosophy?", "Charles Sanders Peirce\nCharles Sanders Peirce (/pɜːrs/[9] \"purse\"; 10September 1839 – 19April 1914) was an American philosopher, logician, mathematician, and scientist who is sometimes known as \"the father of pragmatism\". He was educated as a chemist and employed as a scientist for 30 years. Today he is appreciated largely for his contributions to logic, mathematics, philosophy, scientific methodology, and semiotics, and for his founding of pragmatism.", "Georg Wilhelm Friedrich Hegel\nAccording to Hegel, \"Heraclitus is the one who first declared the nature of the infinite and first grasped nature as in itself infinite, that is, its essence as process. The origin of philosophy is to be dated from Heraclitus. His is the persistent Idea that is the same in all philosophers up to the present day, as it was the Idea of Plato and Aristotle\". For Hegel, Heraclitus's great achievements were to have understood the nature of the infinite, which for Hegel includes understanding the inherent contradictoriness and negativity of reality; and to have grasped that reality is becoming or process and that \"being\" and \"nothingness\" are mere empty abstractions. According to Hegel, Heraclitus's \"obscurity\" comes from his being a true (in Hegel's terms \"speculative\") philosopher who grasped the ultimate philosophical truth and therefore expressed himself in a way that goes beyond the abstract and limited nature of common sense and is difficult to grasp by those who operate within common sense. Hegel asserted that in Heraclitus he had an antecedent for his logic: \"[...] there is no proposition of Heraclitus which I have not adopted in my logic\".", "History of nuclear weapons\nThe notion of using a fission weapon to ignite a process of nuclear fusion can be dated back to 1942. At the first major theoretical conference on the development of an atomic bomb hosted by J. Robert Oppenheimer at the University of California, Berkeley, participant Edward Teller directed the majority of the discussion towards Enrico Fermi's idea of a \"Super\" bomb that would use the same reactions that powered the Sun itself." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Improve language tag
#1 opened about 1 year ago
by
lbourdois