ARM64BERT
Collection
This is a collection related to the development of a machine learning model which can semantically compare ARM64 functions. • 2 items • Updated • 2
This is a sentence-transformers model finetuned from NetherlandsForensicInstitute/ARM64BERT-embedding. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for retrieval.
ASMSentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'architecture': 'ASMBertModel'})
(1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
'The weather is lovely today.',
"It's so sunny outside!",
'He drove to the stadium.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
Unable to build the model tree, the base model loops to the model itself. Learn more.