Instructions to use RekaAI/reka-flash-3.1-rekaquant-q3_k_s with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use RekaAI/reka-flash-3.1-rekaquant-q3_k_s with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="RekaAI/reka-flash-3.1-rekaquant-q3_k_s", filename="reka-flash-3.1-rekaquant-q3_k_s.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use RekaAI/reka-flash-3.1-rekaquant-q3_k_s 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 RekaAI/reka-flash-3.1-rekaquant-q3_k_s:Q3_K_S # Run inference directly in the terminal: llama cli -hf RekaAI/reka-flash-3.1-rekaquant-q3_k_s:Q3_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf RekaAI/reka-flash-3.1-rekaquant-q3_k_s:Q3_K_S # Run inference directly in the terminal: llama cli -hf RekaAI/reka-flash-3.1-rekaquant-q3_k_s: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 RekaAI/reka-flash-3.1-rekaquant-q3_k_s:Q3_K_S # Run inference directly in the terminal: ./llama-cli -hf RekaAI/reka-flash-3.1-rekaquant-q3_k_s: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 RekaAI/reka-flash-3.1-rekaquant-q3_k_s:Q3_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf RekaAI/reka-flash-3.1-rekaquant-q3_k_s:Q3_K_S
Use Docker
docker model run hf.co/RekaAI/reka-flash-3.1-rekaquant-q3_k_s:Q3_K_S
- LM Studio
- Jan
- Ollama
How to use RekaAI/reka-flash-3.1-rekaquant-q3_k_s with Ollama:
ollama run hf.co/RekaAI/reka-flash-3.1-rekaquant-q3_k_s:Q3_K_S
- Unsloth Studio
How to use RekaAI/reka-flash-3.1-rekaquant-q3_k_s 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 RekaAI/reka-flash-3.1-rekaquant-q3_k_s 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 RekaAI/reka-flash-3.1-rekaquant-q3_k_s to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for RekaAI/reka-flash-3.1-rekaquant-q3_k_s to start chatting
- Atomic Chat new
- Docker Model Runner
How to use RekaAI/reka-flash-3.1-rekaquant-q3_k_s with Docker Model Runner:
docker model run hf.co/RekaAI/reka-flash-3.1-rekaquant-q3_k_s:Q3_K_S
- Lemonade
How to use RekaAI/reka-flash-3.1-rekaquant-q3_k_s with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull RekaAI/reka-flash-3.1-rekaquant-q3_k_s:Q3_K_S
Run and chat with the model
lemonade run user.reka-flash-3.1-rekaquant-q3_k_s-Q3_K_S
List all available models
lemonade list
Q3_K_L
Hi! Thank you for your attention to quantization! Have you tested/considered a Q3_K_L-based custom quantization? In multiple other models, _L quants have shown improved quality compared to _S and _M ones. It would be awesome to get just a bit more quality, especially since a 21b model in Q3_K_L still fits into 12gb VRAM (with a room context).
Hi! Thank you for your interest. We targeted Q3_K_S for this release to showcase the much reduced error at low bitrates, but adding new quantization types should be easy. In the case of Q3_K_L, it is the same as Q3_K_S except it keeps some of the tensors in different precision (e.g attn value matrix and some other matrices). One would simply need to add the corresponding quantization schedule to RekaQuant (the example schedule for Q3_K_S: https://github.com/reka-ai/rekaquant/blob/4800b7fbb34b79b755ee2a8a7bb015ff16a56b71/src/train.py#L336 ), and run it on any model. We don't plan to release any more quants ourselves in the short term, but if there is interest from the community we could consider it :)
How about Q4_K_M or Q4_K_L quant models? It will fit nicely into a 16gb gpu ;). Thanks.