How to use nebula2025/CodeR-synthetic with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("nebula2025/CodeR-synthetic") sentences = [ "那是 個快樂的人", "那是 條快樂的狗", "那是 個非常幸福的人", "今天是晴天" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
How to use nebula2025/CodeR-synthetic with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("nebula2025/CodeR-synthetic") model = AutoModel.from_pretrained("nebula2025/CodeR-synthetic")
The community tab is the place to discuss and collaborate with the HF community!