Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
code
code-search
code-retrieval
embeddings
mteb
text-embeddings-inference
Run this model with HF Jobs
Run f4roukb/denserepr-code-48M-EN-v1 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/f4roukb/denserepr-code-48M-EN-v1. 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/f4roukb/denserepr-code-48M-EN-v1 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 f4roukb/denserepr-code-48M-EN-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use f4roukb/denserepr-code-48M-EN-v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("f4roukb/denserepr-code-48M-EN-v1") 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
Download tokenizer_config.json from f4roukb/denserepr-code-48M-EN-v1: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/f4roukb/denserepr-code-48M-EN-v1/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://f4roukb/denserepr-code-48M-EN-v1/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/f4roukb/denserepr-code-48M-EN-v1/resolve/main/tokenizer_config.json
542 Bytes
| { | |
| "backend": "tokenizers", | |
| "clean_up_tokenization_spaces": true, | |
| "cls_token": "[CLS]", | |
| "is_local": true, | |
| "mask_token": "[MASK]", | |
| "max_length": 1024, | |
| "model_input_names": [ | |
| "input_ids", | |
| "attention_mask" | |
| ], | |
| "model_max_length": 8192, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "[PAD]", | |
| "pad_token_type_id": 0, | |
| "padding_side": "right", | |
| "sep_token": "[SEP]", | |
| "stride": 0, | |
| "tokenizer_class": "TokenizersBackend", | |
| "truncation_side": "right", | |
| "truncation_strategy": "longest_first", | |
| "unk_token": "[UNK]" | |
| } | |