Instructions to use OmniContent/LAVA-models 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 OmniContent/LAVA-models 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 OmniContent/LAVA-models:Q4_K_M # Run inference directly in the terminal: llama cli -hf OmniContent/LAVA-models:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf OmniContent/LAVA-models:Q4_K_M # Run inference directly in the terminal: llama cli -hf OmniContent/LAVA-models:Q4_K_M
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 server with a web UI: ./build/bin/llama serve -hf OmniContent/LAVA-models:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf OmniContent/LAVA-models:Q4_K_M
Use Docker
docker model run hf.co/OmniContent/LAVA-models:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use OmniContent/LAVA-models with Ollama:
ollama run hf.co/OmniContent/LAVA-models:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use OmniContent/LAVA-models with Docker Model Runner:
docker model run hf.co/OmniContent/LAVA-models:Q4_K_M
- Lemonade
How to use OmniContent/LAVA-models with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull OmniContent/LAVA-models:Q4_K_M
Run and chat with the model
lemonade run user.LAVA-models-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Download llama/examples/model-conversion/scripts/causal/convert-model.sh from OmniContent/LAVA-models: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/OmniContent/LAVA-models/resolve/main/llama/examples/model-conversion/scripts/causal/convert-model.sh
- Command line
-
hf download hf://OmniContent/LAVA-models/llama/examples/model-conversion/scripts/causal/convert-model.sh
-
curl -L -o convert-model.sh https://huggingface.co/OmniContent/LAVA-models/resolve/main/llama/examples/model-conversion/scripts/causal/convert-model.sh
1.34 kB
| set -e | |
| # Parse command line arguments | |
| MMPROJ="" | |
| while [[ $# -gt 0 ]]; do | |
| case $1 in | |
| --mmproj) | |
| MMPROJ="--mmproj" | |
| shift | |
| ;; | |
| *) | |
| shift | |
| ;; | |
| esac | |
| done | |
| MODEL_NAME="${MODEL_NAME:-$(basename "$MODEL_PATH")}" | |
| OUTPUT_DIR="${OUTPUT_DIR:-../../models}" | |
| TYPE="${OUTTYPE:-f16}" | |
| METADATA_OVERRIDE="${METADATA_OVERRIDE:-}" | |
| CONVERTED_MODEL="${OUTPUT_DIR}/${MODEL_NAME}.gguf" | |
| echo "Model path: ${MODEL_PATH}" | |
| echo "Model name: ${MODEL_NAME}" | |
| echo "Data type: ${TYPE}" | |
| echo "Converted model path:: ${CONVERTED_MODEL}" | |
| echo "Metadata override: ${METADATA_OVERRIDE}" | |
| CMD_ARGS=("python" "../../convert_hf_to_gguf.py" "--verbose") | |
| CMD_ARGS+=("${MODEL_PATH}") | |
| CMD_ARGS+=("--outfile" "${CONVERTED_MODEL}") | |
| CMD_ARGS+=("--outtype" "${TYPE}") | |
| [[ -n "$METADATA_OVERRIDE" ]] && CMD_ARGS+=("--metadata" "${METADATA_OVERRIDE}") | |
| [[ -n "$MMPROJ" ]] && CMD_ARGS+=("${MMPROJ}") | |
| "${CMD_ARGS[@]}" | |
| echo "" | |
| echo "The environment variable CONVERTED_MODEL can be set to this path using:" | |
| echo "export CONVERTED_MODEL=$(realpath ${CONVERTED_MODEL})" | |
| if [[ -n "$MMPROJ" ]]; then | |
| mmproj_file="${OUTPUT_DIR}/mmproj-$(basename "${CONVERTED_MODEL}")" | |
| echo "The mmproj model was created in $(realpath "$mmproj_file")" | |
| fi | |