Instructions to use codefuse-ai/ML-Embed-0.6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use codefuse-ai/ML-Embed-0.6B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="codefuse-ai/ML-Embed-0.6B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("codefuse-ai/ML-Embed-0.6B") model = AutoModel.from_pretrained("codefuse-ai/ML-Embed-0.6B", device_map="auto") - sentence-transformers
How to use codefuse-ai/ML-Embed-0.6B with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("codefuse-ai/ML-Embed-0.6B") 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
Download V.pth from codefuse-ai/ML-Embed-0.6B: direct link, hf CLI and curl.
- Browser
- Download file 1.05 MB
-
https://huggingface.co/codefuse-ai/ML-Embed-0.6B/resolve/main/V.pth
- Command line
-
hf download hf://codefuse-ai/ML-Embed-0.6B/V.pth
-
curl -L -o V.pth https://huggingface.co/codefuse-ai/ML-Embed-0.6B/resolve/main/V.pth
1.05 MB
- Xet hash:
- d98a43b7acc5a8e60ea69c8dfc9b2b9eab4049749952bd8d1d5b2ad3ecab2ecd
- Size of remote file:
- 1.05 MB
- SHA256:
- 84b51258390ac9fe5651a373b0c885536a65b33405f13b8c9c8574c457853ac9
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.