Instructions to use Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer 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 Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer 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 Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer:Q4_K_M # Run inference directly in the terminal: llama cli -hf Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer:Q4_K_M # Run inference directly in the terminal: llama cli -hf Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer:Q4_K_M
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 Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer:Q4_K_M
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 Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer:Q4_K_M
Use Docker
docker model run hf.co/Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer with Ollama:
ollama run hf.co/Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer:Q4_K_M
- Unsloth Studio
How to use Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer 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 Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer 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 Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer to start chatting
- Docker Model Runner
How to use Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer with Docker Model Runner:
docker model run hf.co/Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer:Q4_K_M
- Lemonade
How to use Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Jobaar/c4ai-command-r-GGUF-fixed_pretokenizer:Q4_K_M
Run and chat with the model
lemonade run user.c4ai-command-r-GGUF-fixed_pretokenizer-Q4_K_M
List all available models
lemonade list
- Atomic Chat
error: failed to load model
I'm trying to run the model with KoboldCPP but I get this error:
Using automatic RoPE scaling. If the model has customized RoPE settings, they will be used directly instead!
System Info: AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 1 |
llama_model_loader: loaded meta data with 27 key-value pairs and 322 tensors from C:\Users\Rich\Desktop\AI\Text\c4ai-command-r-v01-Q5_K_M.gguf (version GGUF V3 (latest))
llama_model_load: error loading model: error loading model vocabulary: unknown pre-tokenizer type: 'command-r'
llama_load_model_from_file: failed to load model
Traceback (most recent call last):
File "koboldcpp.py", line 3330, in
File "koboldcpp.py", line 3073, in main
File "koboldcpp.py", line 396, in load_model
OSError: exception: access violation reading 0x0000000000000070
[17976] Failed to execute script 'koboldcpp' due to unhandled exception!
I'm not sure if it's the model or if I'm doing something wrong?
Just tried it in LM Studio and I get a similar error:
"llama.cpp error: 'error loading model vocabulary: unknown pre-tokenizer type: 'command-r''"
Koboldcpp is missing this commit from upstream in the main branch:
Add the missing code blocks to llama.cpp and llama.h and recompile it.
or just wait for the next release.
Koboldcpp is missing this commit from upstream in the main branch:
Add the missing code blocks to llama.cpp and llama.h and recompile it.
or just wait for the next release.
Thanks. I'll wait a bit. :)