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
Run NetherlandsForensicInstitute/ARM64BERT-embedding on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/NetherlandsForensicInstitute/ARM64BERT-embedding. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/NetherlandsForensicInstitute/ARM64BERT-embedding on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use NetherlandsForensicInstitute/ARM64BERT-embedding with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("NetherlandsForensicInstitute/ARM64BERT-embedding")
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]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.