Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:6300
loss:CachedMultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use truong1301/bi-encode-HG-DOCS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use truong1301/bi-encode-HG-DOCS with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("truong1301/bi-encode-HG-DOCS") sentences = [ "How can AnimateDiff, a motion adapter for pretrained diffusion models, be used to generate videos from images?", "Performs a single real input radix-2 transformation on the provided data Kind: instance method ofP2FFT The input data array The output data array The output offset The input offset The step", "AnimateDiffis an adapter model that inserts a motion module into a pretrained diffusion model to animate an image. The adapter is trained on video clips to learn motion which is used to condition the generation process to create a video. It is faster and easier to only train the adapter and it can be loaded into most diffusion models, effectively turning them into “video models”. Start by loading aMotionAdapter. Then load a finetuned Stable Diffusion model with theAnimateDiffPipeline. Create a prompt and generate the video.", "Utility class to handle streaming of tokens generated by whisper speech-to-text models. Callback functions are invoked when each of the following events occur: Kind: static class ofgeneration/streamers" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download config.json from truong1301/bi-encode-HG-DOCS: direct link, hf CLI and curl.
- Browser
- Download file 678 Bytes
-
https://huggingface.co/truong1301/bi-encode-HG-DOCS/resolve/main/config.json
- Command line
-
hf download hf://truong1301/bi-encode-HG-DOCS/config.json
-
curl -L -o config.json https://huggingface.co/truong1301/bi-encode-HG-DOCS/resolve/main/config.json
678 Bytes
| { | |
| "_name_or_path": "sentence-transformers/all-MiniLM-L6-v2", | |
| "architectures": [ | |
| "BertModel" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 384, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 1536, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 6, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.47.0", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 30522 | |
| } | |