Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

AlexWortega
/
qwen7k

Sentence Similarity
sentence-transformers
Safetensors
qwen2
feature-extraction
Generated from Trainer
dataset_size:1077240
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

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
qwen7k
1.99 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
AlexWortega's picture
AlexWortega
Add new SentenceTransformer model
e931ecb verified over 1 year ago
  • 1_Pooling
    Add new SentenceTransformer model over 1 year ago
  • .gitattributes
    1.57 kB
    Add new SentenceTransformer model over 1 year ago
  • README.md
    96.5 kB
    Add new SentenceTransformer model over 1 year ago
  • added_tokens.json
    605 Bytes
    Add new SentenceTransformer model over 1 year ago
  • config.json
    782 Bytes
    Add new SentenceTransformer model over 1 year ago
  • config_sentence_transformers.json
    205 Bytes
    Add new SentenceTransformer model over 1 year ago
  • merges.txt
    1.67 MB
    Add new SentenceTransformer model over 1 year ago
  • model.safetensors
    1.98 GB
    xet
    Add new SentenceTransformer model over 1 year ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model over 1 year ago
  • sentence_bert_config.json
    54 Bytes
    Add new SentenceTransformer model over 1 year ago
  • special_tokens_map.json
    613 Bytes
    Add new SentenceTransformer model over 1 year ago
  • tokenizer.json
    11.4 MB
    xet
    Add new SentenceTransformer model over 1 year ago
  • tokenizer_config.json
    7.5 kB
    Add new SentenceTransformer model over 1 year ago
  • vocab.json
    2.78 MB
    Add new SentenceTransformer model over 1 year ago