Instructions to use odunola/Hack_embedder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use odunola/Hack_embedder with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("odunola/Hack_embedder") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Upload model
Browse filesFiles changed (2)
- config.jsonAdded+31
- pytorch_model.binAdded+3
12345678910111213141516171819202122232425262728293031{ "_name_or_path": "BAAI/bge-small-en-v1.5", "architectures": [ "BertModel" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 384, "id2label": { "0": "LABEL_0" }, "initializer_range": 0.02, "intermediate_size": 1536, "label2id": { "LABEL_0": 0 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "position_embedding_type": "absolute", "torch_dtype": "float32", "transformers_version": "4.34.0", "type_vocab_size": 2, "use_cache": true, "vocab_size": 30522}123version https://git-lfs.github.com/spec/v1oid sha256:5dc4f20b2adff8018249e414071a15f3c141a4218b7c0e9abaa4ca4914f7701bsize 133506729config.jsonAdded+31
pytorch_model.binAdded+3