How to use from the
Use from the
sentence-transformers library
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("DAPS-Math/DAPS-text-encoder")

sentences = [
    "That is a happy person",
    "That is a happy dog",
    "That is a very happy person",
    "Today is a sunny day"
]
embeddings = model.encode(sentences)

similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]

DAPS Text Encoder

The text encoder produced by Phase 1 of DAPS, fine-tuned on Mathlib from gte-modernbert-base. It produces 768-dimensional embeddings using CLS pooling and can be used independently as a Mathlib text encoder.

For better premise-selection performance, we recommend pairing it with the graph-aware DAPS Selector produced by Phase 2.

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("DAPS-Math/DAPS-text-encoder")
model.max_seq_length = 1024
embeddings = model.encode(
    ["βˆ€ n : β„•, n + 0 = n", "βˆ€ a b : β„•, a + b = b + a"],
    normalize_embeddings=True,
)
print(embeddings.shape)

DAPS uses a 1024-token input limit. See the DAPS project page for the full premise-selection pipeline.

Downloads last month
6
Safetensors
Model size
0.1B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for DAPS-Math/DAPS-text-encoder

Finetuned
(43)
this model