Instructions to use microsoft/bitnet-embedding-270m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/bitnet-embedding-270m with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("microsoft/bitnet-embedding-270m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use microsoft/bitnet-embedding-270m with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible embeddings server: llama serve -hf microsoft/bitnet-embedding-270m:BF16 --embeddings
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible embeddings server: llama serve -hf microsoft/bitnet-embedding-270m:BF16 --embeddings
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible embeddings server: ./build/bin/llama serve -hf microsoft/bitnet-embedding-270m:BF16 --embeddings
- Llama new
- LM Studio
- Jan
- Ollama
How to use microsoft/bitnet-embedding-270m with Ollama:
ollama run hf.co/microsoft/bitnet-embedding-270m:BF16
- Unsloth Desktop
- Docker Model Runner
How to use microsoft/bitnet-embedding-270m with Docker Model Runner:
docker model run hf.co/microsoft/bitnet-embedding-270m:BF16
- Lemonade
How to use microsoft/bitnet-embedding-270m with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull microsoft/bitnet-embedding-270m:BF16
Run and chat with the model
lemonade run user.bitnet-embedding-270m-BF16
List all available models
lemonade list
- Atomic Chat
Download fig1_quant_per_task.png from microsoft/bitnet-embedding-270m: direct link, hf CLI and curl.
- Browser
- Download file 62.9 kB
-
https://huggingface.co/microsoft/bitnet-embedding-270m/resolve/main/fig1_quant_per_task.png
- Command line
-
hf download hf://microsoft/bitnet-embedding-270m/fig1_quant_per_task.png
-
curl -L -o fig1_quant_per_task.png https://huggingface.co/microsoft/bitnet-embedding-270m/resolve/main/fig1_quant_per_task.png
62.9 kB
