Instructions to use mukel/Codestral-22B-v0.1-GGUF 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 mukel/Codestral-22B-v0.1-GGUF 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 mukel/Codestral-22B-v0.1-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf mukel/Codestral-22B-v0.1-GGUF:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mukel/Codestral-22B-v0.1-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf mukel/Codestral-22B-v0.1-GGUF:Q4_0
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 mukel/Codestral-22B-v0.1-GGUF:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf mukel/Codestral-22B-v0.1-GGUF:Q4_0
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 mukel/Codestral-22B-v0.1-GGUF:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf mukel/Codestral-22B-v0.1-GGUF:Q4_0
Use Docker
docker model run hf.co/mukel/Codestral-22B-v0.1-GGUF:Q4_0
- LM Studio
- Jan
- Ollama
How to use mukel/Codestral-22B-v0.1-GGUF with Ollama:
ollama run hf.co/mukel/Codestral-22B-v0.1-GGUF:Q4_0
- Unsloth Desktop
- Docker Model Runner
How to use mukel/Codestral-22B-v0.1-GGUF with Docker Model Runner:
docker model run hf.co/mukel/Codestral-22B-v0.1-GGUF:Q4_0
- Lemonade
How to use mukel/Codestral-22B-v0.1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mukel/Codestral-22B-v0.1-GGUF:Q4_0
Run and chat with the model
lemonade run user.Codestral-22B-v0.1-GGUF-Q4_0
List all available models
lemonade list
- Atomic Chat
Pure quantizations of Codestral-22B-v0.1 for mistral.java.
In the wild, Q8_0 quantizations are fine, but Q4_0 quantizations are rarely pure e.g. the output.weights tensor is quantized with Q6_K, instead of Q4_0.
A pure Q4_0 quantization can be generated from a high precision (F32, F16, BFLOAT16) .gguf source with the quantize utility from llama.cpp as follows:
./quantize --pure ./Codestral-22B-v0.1-F32.gguf ./Codestral-22B-v0.1-Q4_0.gguf Q4_0
Original model: https://huggingface.co/mistralai/Codestral-22B-v0.1
**Note that this model does not support a System prompt.
Codestrall-22B-v0.1 is trained on a diverse dataset of 80+ programming languages, including the most popular ones, such as Python, Java, C, C++, JavaScript, and Bash (more details in the Blogpost). The model can be queried:
- As instruct, for instance to answer any questions about a code snippet (write documentation, explain, factorize) or to generate code following specific indications
- As Fill in the Middle (FIM), to predict the middle tokens between a prefix and a suffix (very useful for software development add-ons like in VS Code)
- Downloads last month
- 21
4-bit
8-bit