Model reference · open weights

bert-large-cantonese-sts

Embeddings hon9kon9ize Embeddings 1 build Licence not stated 13k dl/mo

bert-large-cantonese-sts is an open-weight embedding model from hon9kon9ize. bert-large-cantonese-sts (FP32) weighs 652 MB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • bert-large-cantonese-sts is a sentence transformer model with 326M parameters designed for sentence-similarity tasks.
  • It maps sentences and paragraphs to a 1024-dimensional vector space and supports a context length of 512 tokens.
  • The model is used for semantic textual similarity, semantic search, paraphrase mining, text classification, and clustering.

Summary of the hon9kon9ize/bert-large-cantonese-sts model card, 2026-10-01

What it is

Released byhon9kon9ize
Released2024-08-20
Parameters326M
VRAM652 MB for the weights

What it runs on

Memory and cards for bert-large-cantonese-sts (FP32)

652 MBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

From the model card

What hon9kon9ize says about bert-large-cantonese-sts

Read the model card

This is a sentence-transformers model finetuned from hon9kon9ize/bert-large-cantonese-nli on the yue-stsb, stsb and C-MTEB/STSB dataset. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: hon9kon9ize/bert-large-cantonese-nli
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 1024 dimensions
  • Similarity Function: Cosine Similarity

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
  (1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)

Usage

Direct Usage (Sentence Transformers)

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 = [
    '一個細路女同一個細路仔喺度睇書。',
    '一個大啲嘅小朋友玩緊公仔,望住窗外。',
    '有個男人彈緊結他。',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]

Evaluation

Metrics

Semantic Similarity
Metricsts-devsts-test
pearson_cosine0.79830.7638
spearman_cosine0.79960.7605

Training Details

Training Dataset

yue-stsb
  • Dataset: yue-stsb at 40cea5d

  • Size: 5,749 training samples

  • Columns: sentence1, sentence2, and score

  • Approximate statistics based on the first 1000 samples:

    sentence1sentence2score
    typestringstringfloat
    detailsmin: 7 tokensmean: 12.24 tokensmax: 40 tokensmin: 7 tokensmean: 12.21 tokensmax: 30 tokensmin: 0.0mean: 0.45max: 1.0
  • Samples:

    sentence1sentence2score
    架飛機正準備起飛。一架飛機正準備起飛。1.0
    有個男人吹緊一支好大嘅笛。有個男人吹緊笛。0.76
    有個男人喺批薩上面灑碎芝士。有個男人將磨碎嘅芝士灑落一塊未焗嘅批薩上面。0.76
  • Loss: CosineSimilarityLoss with these parameters:

    {
        "loss_fct": "torch.nn.modules.loss.MSELoss"
    }
    
  • Size: 16,729 training samples

  • Columns: sentence1, sentence2, and score

  • Approximate statistics based on the first 1000 samples:

    sentence1sentence2score
    typestringstringfloat
    detailsmin: 5 tokensmean: 20.29 tokensmax: 74 tokensmin: 6 tokensmean: 20.36 tokensmax: 76 tokensmin: 0.0mean: 0.52max: 1.0
  • Samples:

    sentence1sentence2score

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

Benchmarks

Reported results

As published on the model card: the maker's own numbers, not measured by AxForge.

TaskDatasetMetricScore
Semantic Similaritysts devPearson Cosine0.798
Semantic Similaritysts devSpearman Cosine0.800
Semantic Similaritysts testPearson Cosine0.764
Semantic Similaritysts testSpearman Cosine0.760
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms