Instructions to use OneFly7/bge_m3_pointwise_bs16_lr1e5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OneFly7/bge_m3_pointwise_bs16_lr1e5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="OneFly7/bge_m3_pointwise_bs16_lr1e5")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OneFly7/bge_m3_pointwise_bs16_lr1e5", dtype="auto") - Notebooks
- Google Colab
- Kaggle
BGE-M3 Sentence Scorer
This repository contains a trained BGE-M3 encoder plus a regression head for sentence salience scoring.
Files
encoder/: fine-tuned BGE-M3 encoder saved withAutoModel.save_pretrained.regression_head.pt: linear regression head state dict.bge_m3_sentence_scorer_config.json: scorer settings used during training.- tokenizer files: tokenizer needed to encode input text.
sentence_scorer_inference.py: minimal PyTorch inference helper.
Usage
from sentence_scorer_inference import load_sentence_scorer
model, tokenizer, device = load_sentence_scorer("OneFly7/bge_m3_pointwise_bs16_lr1e5")
texts = ["[S001] Example article sentence. Summary candidate: example summary."]
scores = model.predict(texts, tokenizer, device=device, max_length=4096)
print(scores)
Training source directory:
/lustre/fswork/projects/rech/ges/uuy33zj/multi_lingual_self_distill/multi_lingual_self_distll/models/sentence_scorer_runs/bge_m3_pointwise_jz_sxxx_bs16_lr1e5
Scorer settings:
pooling=cls
dropout=0.1
max_length=4096
Model tree for OneFly7/bge_m3_pointwise_bs16_lr1e5
Base model
BAAI/bge-m3