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 optimizer.pt from truong1301/bi-encode-HG-DOCS: direct link, hf CLI and curl.
- Browser
- Download file 181 MB
-
https://huggingface.co/truong1301/bi-encode-HG-DOCS/resolve/main/optimizer.pt
- Command line
-
hf download hf://truong1301/bi-encode-HG-DOCS/optimizer.pt
-
curl -L -o optimizer.pt https://huggingface.co/truong1301/bi-encode-HG-DOCS/resolve/main/optimizer.pt
181 MB
- Xet hash:
- 80f870889fd314ffa247f5500ee197dbd946d7c0ceac9b6802c3d9130d79a128
- Size of remote file:
- 181 MB
- SHA256:
- 09e0b047b047dd34f9f4456d9cbb2d934eb30ceed5ea3039b672719ff49fda37
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.