Instructions to use lmstudio-community/nomic-embed-code-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use lmstudio-community/nomic-embed-code-GGUF with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("lmstudio-community/nomic-embed-code-GGUF") 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
- Local Apps Settings
- llama.cpp
How to use lmstudio-community/nomic-embed-code-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible embeddings server: llama serve -hf lmstudio-community/nomic-embed-code-GGUF:Q4_K_M --embeddings
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible embeddings server: llama serve -hf lmstudio-community/nomic-embed-code-GGUF:Q4_K_M --embeddings
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible embeddings server: ./llama-server -hf lmstudio-community/nomic-embed-code-GGUF:Q4_K_M --embeddings
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible embeddings server: ./build/bin/llama-server -hf lmstudio-community/nomic-embed-code-GGUF:Q4_K_M --embeddings
- Llama new
- LM Studio
- Jan
- vLLM
How to use lmstudio-community/nomic-embed-code-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lmstudio-community/nomic-embed-code-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lmstudio-community/nomic-embed-code-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/lmstudio-community/nomic-embed-code-GGUF:Q4_K_M
- Ollama
How to use lmstudio-community/nomic-embed-code-GGUF with Ollama:
ollama run hf.co/lmstudio-community/nomic-embed-code-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use lmstudio-community/nomic-embed-code-GGUF with Docker Model Runner:
docker model run hf.co/lmstudio-community/nomic-embed-code-GGUF:Q4_K_M
- Lemonade
How to use lmstudio-community/nomic-embed-code-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull lmstudio-community/nomic-embed-code-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.nomic-embed-code-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload nomic-embed-code-Q6_K.gguf with huggingface_hub
Browse files- .gitattributes +1 -0
- nomic-embed-code-Q6_K.gguf +3 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
nomic-embed-code-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
nomic-embed-code-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
nomic-embed-code-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
nomic-embed-code-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d3f149a633177c4785dfe637cba5f93bc0e74b8ec92695b16e644f74436ee3be
|
| 3 |
+
size 5807132480
|