Instructions to use Arki05/Grok-1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Arki05/Grok-1-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Arki05/Grok-1-GGUF", device_map="auto") - llama-cpp-python
How to use Arki05/Grok-1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Arki05/Grok-1-GGUF", filename="IQ1_M/grok-1-IQ1_M-00001-of-00009.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Arki05/Grok-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 Arki05/Grok-1-GGUF:IQ1_M # Run inference directly in the terminal: llama cli -hf Arki05/Grok-1-GGUF:IQ1_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Arki05/Grok-1-GGUF:IQ1_M # Run inference directly in the terminal: llama cli -hf Arki05/Grok-1-GGUF:IQ1_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 Arki05/Grok-1-GGUF:IQ1_M # Run inference directly in the terminal: ./llama-cli -hf Arki05/Grok-1-GGUF:IQ1_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 Arki05/Grok-1-GGUF:IQ1_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Arki05/Grok-1-GGUF:IQ1_M
Use Docker
docker model run hf.co/Arki05/Grok-1-GGUF:IQ1_M
- LM Studio
- Jan
- Ollama
How to use Arki05/Grok-1-GGUF with Ollama:
ollama run hf.co/Arki05/Grok-1-GGUF:IQ1_M
- Unsloth Studio
How to use Arki05/Grok-1-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 Arki05/Grok-1-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 Arki05/Grok-1-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Arki05/Grok-1-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use Arki05/Grok-1-GGUF with Docker Model Runner:
docker model run hf.co/Arki05/Grok-1-GGUF:IQ1_M
- Lemonade
How to use Arki05/Grok-1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Arki05/Grok-1-GGUF:IQ1_M
Run and chat with the model
lemonade run user.Grok-1-GGUF-IQ1_M
List all available models
lemonade list
q1?
Will there be q1? Even with all the desire, it seems that q2_k will not be able to run even with 128 gigabytes of RAM. I understand that with 64 RAM, I won't be able to work even with q1, but I'm going to upgrade to 96 RAM.
Eventually there will be smaller ones. But even at Q2_K the model performance is pretty bad.
I'll work on creating a proper Importance Matrix for the model and use that to requantize in the future. Don't expect anything in the next couple of days tho.
If you just want to test it, you can still just try it. llama.cpp can work with a mmap of the model and doesn't need the full model in RAM. Since it's a MoE model, you don't need all weights for each token, just around 86B Parameters of the weights need to be active at a time. So if you're just slightly under, there's a good chance it'll be fine.
how to write code to use mmap