Instructions to use minishlab/M2V_base_output with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use minishlab/M2V_base_output with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("minishlab/M2V_base_output") - sentence-transformers
How to use minishlab/M2V_base_output with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("minishlab/M2V_base_output") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +8 -1
config.json
CHANGED
|
@@ -1 +1,8 @@
|
|
| 1 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tokenizer_name": "BAAI/bge-base-en-v1.5",
|
| 3 |
+
"apply_pca": 256,
|
| 4 |
+
"apply_zipf": true,
|
| 5 |
+
"normalize": false,
|
| 6 |
+
"hidden_dim": 256,
|
| 7 |
+
"seq_length": 1000000
|
| 8 |
+
}
|