Instructions to use cjpais/moondream2-llamafile with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use cjpais/moondream2-llamafile with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf cjpais/moondream2-llamafile:F16 # Run inference directly in the terminal: llama cli -hf cjpais/moondream2-llamafile:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf cjpais/moondream2-llamafile:F16 # Run inference directly in the terminal: llama cli -hf cjpais/moondream2-llamafile:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf cjpais/moondream2-llamafile:F16 # Run inference directly in the terminal: ./llama-cli -hf cjpais/moondream2-llamafile:F16
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 server with a web UI: ./build/bin/llama-server -hf cjpais/moondream2-llamafile:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf cjpais/moondream2-llamafile:F16
Use Docker
docker model run hf.co/cjpais/moondream2-llamafile:F16
- LM Studio
- Jan
- vLLM
How to use cjpais/moondream2-llamafile with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cjpais/moondream2-llamafile" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cjpais/moondream2-llamafile", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cjpais/moondream2-llamafile:F16
- Ollama
How to use cjpais/moondream2-llamafile with Ollama:
ollama run hf.co/cjpais/moondream2-llamafile:F16
- Unsloth Desktop
- Docker Model Runner
How to use cjpais/moondream2-llamafile with Docker Model Runner:
docker model run hf.co/cjpais/moondream2-llamafile:F16
- Lemonade
How to use cjpais/moondream2-llamafile with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cjpais/moondream2-llamafile:F16
Run and chat with the model
lemonade run user.moondream2-llamafile-F16
List all available models
lemonade list
- Atomic Chat
Upload moondream2-q8.llamafile
Browse files- .gitattributes +1 -0
- moondream2-q8.llamafile +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 |
moondream2.llamafile 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 |
moondream2.llamafile filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
moondream2-q8.llamafile filter=lfs diff=lfs merge=lfs -text
|
moondream2-q8.llamafile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:649ced163a6803d9f80027070ec9d3302ce508c6bdc5aa1017abc7eb8bd07b45
|
| 3 |
+
size 2428441280
|