Sentence Similarity
Safetensors
sentence-transformers
English
PyLate
bert
ColBERT
feature-extraction
Generated from Trainer
loss:Contrastive
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run NeuML/pubmedbert-base-colbert 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/NeuML/pubmedbert-base-colbert. 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/NeuML/pubmedbert-base-colbert 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 NeuML/pubmedbert-base-colbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use NeuML/pubmedbert-base-colbert with sentence-transformers:
from pylate import models queries = [ "Which planet is known as the Red Planet?", "What is the largest planet in our solar system?", ] documents = [ ["Mars is the Red Planet.", "Venus is Earth's twin."], ["Jupiter is the largest planet.", "Saturn has rings."], ] model = models.ColBERT(model_name_or_path="NeuML/pubmedbert-base-colbert") queries_emb = model.encode(queries, is_query=True) docs_emb = model.encode(documents, is_query=False) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files42 unmodified lines4344454647484942 unmodified linesimport txtaiembeddings = txtai.Embeddings(sparse="neuml/pubmedbert-base-colbert",content=True)embeddings.index(documents())42 unmodified lines4344454647484942 unmodified linesimport txtaiembeddings = txtai.Embeddings(path="neuml/pubmedbert-base-colbert",content=True)embeddings.index(documents())
README.md+1-1