Feature Extraction
sentence-transformers
Safetensors
Transformers
English
modernbert
custom_code
text-embeddings-inference
Instructions to use infgrad/dewey_en_beta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use infgrad/dewey_en_beta with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("infgrad/dewey_en_beta", trust_remote_code=True) 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] - Transformers
How to use infgrad/dewey_en_beta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="infgrad/dewey_en_beta", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("infgrad/dewey_en_beta", trust_remote_code=True) model = AutoModel.from_pretrained("infgrad/dewey_en_beta", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from infgrad/dewey_en_beta: direct link, hf CLI and curl.
- Browser
- Download file 3.58 MB
-
https://huggingface.co/infgrad/dewey_en_beta/resolve/main/tokenizer.json
- Command line
-
hf download hf://infgrad/dewey_en_beta/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/infgrad/dewey_en_beta/resolve/main/tokenizer.json
3.58 MB
File too large to display, you can check the raw version instead.