Feature Extraction
Transformers
Safetensors
sentence-transformers
Russian
English
bert
sentence-similarity
SbertDistil
text-embeddings-inference
Run this model with HF Jobs
Run FractalGPT/SbertDistil on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/FractalGPT/SbertDistil. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/FractalGPT/SbertDistil on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use FractalGPT/SbertDistil with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FractalGPT/SbertDistil with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="FractalGPT/SbertDistil")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("FractalGPT/SbertDistil") model = AutoModel.from_pretrained("FractalGPT/SbertDistil", device_map="auto") - sentence-transformers
How to use FractalGPT/SbertDistil with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("FractalGPT/SbertDistil") 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 README.md
Browse files19 unmodified lines2021222324252639 unmodified lines66676869707172737419 unmodified linesThis is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.This is a fast and small model for solving the problem of determining the proximity between sentences, in the future we will reduce and speed it up. [Project](https://github.com/FractalGPT/ModelEmbedderDistilation)<!--- Describe your model here -->39 unmodified lines* The original weights was taken from [cointegrated/rubert-tiny2](https://huggingface.co/cointegrated/rubert-tiny2).* Training was conducted in two stages:1. In the first stage, the model was trained on Wikipedia texts (4 million texts) for three epochs.<img src="https://github.com/FractalGPT/ModelEmbedderDistilation/blob/main/DistilSBERT/Train/1_st_en.JPG?raw=true" width=700 />3. In the second stage, training was conducted on Wikipedia and dialog dataset for one epoch.<img src="https://github.com/FractalGPT/ModelEmbedderDistilation/blob/main/DistilSBERT/Train/2_st_en.JPG?raw=true" width=700 />## Full Model Architecture```19 unmodified lines2021222324252639 unmodified lines66676869707172737419 unmodified linesThis is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.This is a fast and small model for solving the problem of determining the proximity between sentences, in the future we will reduce and speed it up. [Project](https://github.com/FractalGPT/ModelEmbedderDistillation)<!--- Describe your model here -->39 unmodified lines* The original weights was taken from [cointegrated/rubert-tiny2](https://huggingface.co/cointegrated/rubert-tiny2).* Training was conducted in two stages:1. In the first stage, the model was trained on Wikipedia texts (4 million texts) for three epochs.<img src="https://github.com/FractalGPT/ModelEmbedderDistillation/blob/main/DistilSBERT/Train/1_st_en.JPG?raw=true" width=700 />3. In the second stage, training was conducted on Wikipedia and dialog dataset for one epoch.<img src="https://github.com/FractalGPT/ModelEmbedderDistillation/blob/main/DistilSBERT/Train/2_st_en.JPG?raw=true" width=700 />## Full Model Architecture```
README.md+3-3