Sentence Similarity
sentence-transformers
Safetensors
English
nomic_bert
feature-extraction
Generated from Trainer
dataset_size:35934
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
custom_code
Eval Results (legacy)
text-embeddings-inference
Instructions to use KaiserML/RhetoriBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use KaiserML/RhetoriBERT with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("KaiserML/RhetoriBERT", trust_remote_code=True) sentences = [ "Stating purpose of the current research with reference to gaps or issues in the literature", "During the 15-year study, 10% of the osseointegrated implants in the edentulous jaw showed signs of peri-implantitis, leading to their failure.", "This paper provides an in-depth exploration of the qualitative case study methodology, addressing the lack of comprehensive guidance for novice researchers in this area.", "As a novice researcher in management science, I have been drawn to the qualitative case study methodology due to its ability to provide rich, in-depth insights into complex real-world situations." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download config.json from KaiserML/RhetoriBERT: direct link, hf CLI and curl.
- Browser
- Download file 1.7 kB
-
https://huggingface.co/KaiserML/RhetoriBERT/resolve/main/config.json
- Command line
-
hf download hf://KaiserML/RhetoriBERT/config.json
-
curl -L -o config.json https://huggingface.co/KaiserML/RhetoriBERT/resolve/main/config.json
1.7 kB
| { | |
| "_name_or_path": "/content/models/SciGenSBert/checkpoint-980", | |
| "activation_function": "swiglu", | |
| "architectures": [ | |
| "NomicBertModel" | |
| ], | |
| "attn_pdrop": 0.0, | |
| "auto_map": { | |
| "AutoConfig": "nomic-ai/nomic-bert-2048--configuration_hf_nomic_bert.NomicBertConfig", | |
| "AutoModel": "nomic-ai/nomic-bert-2048--modeling_hf_nomic_bert.NomicBertModel", | |
| "AutoModelForMaskedLM": "nomic-ai/nomic-bert-2048--modeling_hf_nomic_bert.NomicBertForPreTraining" | |
| }, | |
| "bos_token_id": null, | |
| "causal": false, | |
| "dense_seq_output": true, | |
| "embd_pdrop": 0.0, | |
| "eos_token_id": null, | |
| "fused_bias_fc": true, | |
| "fused_dropout_add_ln": true, | |
| "initializer_range": 0.02, | |
| "layer_norm_epsilon": 1e-12, | |
| "max_trained_positions": 2048, | |
| "mlp_fc1_bias": false, | |
| "mlp_fc2_bias": false, | |
| "model_type": "nomic_bert", | |
| "n_embd": 768, | |
| "n_head": 12, | |
| "n_inner": 3072, | |
| "n_layer": 12, | |
| "n_positions": 8192, | |
| "pad_vocab_size_multiple": 64, | |
| "parallel_block": false, | |
| "parallel_block_tied_norm": false, | |
| "prenorm": false, | |
| "qkv_proj_bias": false, | |
| "reorder_and_upcast_attn": false, | |
| "resid_pdrop": 0.0, | |
| "rotary_emb_base": 1000, | |
| "rotary_emb_fraction": 1.0, | |
| "rotary_emb_interleaved": false, | |
| "rotary_emb_scale_base": null, | |
| "rotary_scaling_factor": null, | |
| "scale_attn_by_inverse_layer_idx": false, | |
| "scale_attn_weights": true, | |
| "summary_activation": null, | |
| "summary_first_dropout": 0.0, | |
| "summary_proj_to_labels": true, | |
| "summary_type": "cls_index", | |
| "summary_use_proj": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.47.1", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "use_flash_attn": true, | |
| "use_rms_norm": false, | |
| "use_xentropy": true, | |
| "vocab_size": 30528 | |
| } | |