Downloads · 30 days
0
Blablablab/multilingual-style-representation-Llama-3.2
multilingual-style-representation-Llama-3.2 is a sentence similarity model from Blablablab. Use it when you need a score for how close two texts are. It is set up for sentence-transformers.
This is the Style Representation model, presented in Leveraging Multilingual Training for Authorship Representation: Enhancing Generalization across Languages and Domains.
Downloads · 30 days
0
Access
Public
Updated Nov 20, 2025
Repo size
39.8 MB
Likes
1
Public
Click a slice to open those files.
.safetensors22.6 MB · 57%
From the Hugging Face model README
This is the Style Representation model, presented in Leveraging Multilingual Training for Authorship Representation: Enhancing Generalization across Languages and Domains.
The Style Representation model encodes documents written by the same author as nearby vectors in the embedding space. The model can be used for authorship attribution, style similarity, machine-generated text detection, and more.
For training and evaluation code, refer to our repository here.
For the Style Representation model based on XLM-RoBERTa, refer to Blablablab/multilingual-style-representation.
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("Blablablab/multilingual-style-representation-Llama-3.2")
# 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, 2048]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
<!--
## Citation
-->