Instructions to use leafspark/Jamba-1.5-Mini-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use leafspark/Jamba-1.5-Mini-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="leafspark/Jamba-1.5-Mini-GGUF", filename="Jamba-1.5-Mini-16x9.3B.Q4_K_L.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use leafspark/Jamba-1.5-Mini-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S # Run inference directly in the terminal: llama-cli -hf leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S # Run inference directly in the terminal: llama-cli -hf leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S
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 leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S # Run inference directly in the terminal: ./llama-cli -hf leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S
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 leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S
Use Docker
docker model run hf.co/leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S
- LM Studio
- Jan
- Ollama
How to use leafspark/Jamba-1.5-Mini-GGUF with Ollama:
ollama run hf.co/leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S
- Unsloth Studio new
How to use leafspark/Jamba-1.5-Mini-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for leafspark/Jamba-1.5-Mini-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for leafspark/Jamba-1.5-Mini-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for leafspark/Jamba-1.5-Mini-GGUF to start chatting
- Pi new
How to use leafspark/Jamba-1.5-Mini-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use leafspark/Jamba-1.5-Mini-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S
Run Hermes
hermes
- Docker Model Runner
How to use leafspark/Jamba-1.5-Mini-GGUF with Docker Model Runner:
docker model run hf.co/leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S
- Lemonade
How to use leafspark/Jamba-1.5-Mini-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull leafspark/Jamba-1.5-Mini-GGUF:Q3_K_S
Run and chat with the model
lemonade run user.Jamba-1.5-Mini-GGUF-Q3_K_S
List all available models
lemonade list
How do you infer?
#1
by segmond - opened
I don't think llama.cpp supports this model, do you have a branch I could use to run this?
hi, here is the WIP branch: https://github.com/ggerganov/llama.cpp/pull/7531
llm_load_print_meta: model ftype = Q3_K - Small
llm_load_print_meta: model params = 51.57 B
llm_load_print_meta: model size = 20.76 GiB (3.46 BPW)
llm_load_print_meta: general.name = ai21labs_AI21 Jamba 1.5 Mini
llm_load_print_meta: BOS token = 1 '<|startoftext|>'
llm_load_print_meta: EOS token = 2 '<|endoftext|>'
llm_load_print_meta: UNK token = 3 '<|unk|>'
llm_load_print_meta: PAD token = 0 '<|pad|>'
llm_load_print_meta: LF token = 1554 '<0x0A>'
llm_load_print_meta: EOT token = 2 '<|endoftext|>'
llm_load_print_meta: max token length = 96
llm_load_tensors: ggml ctx size = 0.22 MiB
llm_load_tensors: CPU buffer size = 21255.05 MiB
..............................................................
llama_new_context_with_model: n_ctx = 262144
llama_new_context_with_model: n_batch = 2048
llama_new_context_with_model: n_ubatch = 512
llama_new_context_with_model: flash_attn = 0
llama_new_context_with_model: freq_base = 10000.0
llama_new_context_with_model: freq_scale = 1
llama_past_init: CPU past cache size = 4112.63 MiB
llama_new_context_with_model: SSM state size = 16.62 MiB, R (f32): 2.62 MiB, S (f32): 14.00 MiB
llama_new_context_with_model: KV cache size = 4096.00 MiB, K (f16): 2048.00 MiB, V (f16): 2048.00 MiB
llama_new_context_with_model: CPU output buffer size = 0.25 MiB
llama_new_context_with_model: CPU compute buffer size = 16920.60 MiB
llama_new_context_with_model: graph nodes = 2066
llama_new_context_with_model: graph splits = 1
system_info: n_threads = 16 (n_threads_batch = 16) / 32 | AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | AVX512_BF16 = 0 | FMA = 1 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 1 |
sampling:
repeat_last_n = 64, repeat_penalty = 1.000, frequency_penalty = 0.000, presence_penalty = 0.000
top_k = 40, tfs_z = 1.000, top_p = 0.950, min_p = 0.050, typical_p = 1.000, temp = 0.800
mirostat = 0, mirostat_lr = 0.100, mirostat_ent = 5.000
sampling order:
CFG -> Penalties -> top_k -> tfs_z -> typical_p -> top_p -> min_p -> temperature
generate: n_ctx = 262144, n_batch = 2048, n_predict = -1, n_keep = 1
here's an e-mail with a password," he said. "Now, let's check the email."
They logged into the email account. Sure enough, there was an email with a password.," he said. "Let's see if this works."
He entered the password into the lock. The lock clicked open.," he said, a look of awe on his face. "It worked!"
," he said, a look of awe on his face. "
llama_print_timings: load time = 3936.91 ms
llama_print_timings: sample time = 5.25 ms / 106 runs ( 0.05 ms per token, 20190.48 tokens per second)
llama_print_timings: prompt eval time = 439.11 ms / 6 tokens ( 73.19 ms per token, 13.66 tokens per second)
llama_print_timings: eval time = 20514.34 ms / 105 runs ( 195.37 ms per token, 5.12 tokens per second)
llama_print_timings: total time = 20991.83 ms / 111 tokens