Text Generation
GGUF
English
chat
quantized
GGUF
quantization
imat
imatrix
static
16bit
8bit
6bit
5bit
4bit
3bit
2bit
1bit
conversational
Instructions to use legraphista/Qwen2-Math-7B-Instruct-IMat-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 legraphista/Qwen2-Math-7B-Instruct-IMat-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 legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: llama cli -hf legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: llama cli -hf legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_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 legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: ./llama-cli -hf legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_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 legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_K_S
Use Docker
docker model run hf.co/legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_K_S
- LM Studio
- Jan
- vLLM
How to use legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_K_S
- Ollama
How to use legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF with Ollama:
ollama run hf.co/legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_K_S
- Unsloth Desktop
- Docker Model Runner
How to use legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF with Docker Model Runner:
docker model run hf.co/legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_K_S
- Lemonade
How to use legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull legraphista/Qwen2-Math-7B-Instruct-IMat-GGUF:Q4_K_S
Run and chat with the model
lemonade run user.Qwen2-Math-7B-Instruct-IMat-GGUF-Q4_K_S
List all available models
lemonade list
- Atomic Chat
| llama_model_loader: loaded meta data with 28 key-value pairs and 339 tensors from Qwen2-Math-7B-Instruct-IMat-GGUF/Qwen2-Math-7B-Instruct.Q8_0.gguf.hardlink.gguf (version GGUF V3 (latest)) | |
| llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output. | |
| llama_model_loader: - kv 0: general.architecture str = qwen2 | |
| llama_model_loader: - kv 1: general.type str = model | |
| llama_model_loader: - kv 2: general.name str = Qwen2 Math 7B Instruct | |
| llama_model_loader: - kv 3: general.finetune str = Instruct | |
| llama_model_loader: - kv 4: general.basename str = Qwen2-Math | |
| llama_model_loader: - kv 5: general.size_label str = 7B | |
| llama_model_loader: - kv 6: general.license str = apache-2.0 | |
| llama_model_loader: - kv 7: general.tags arr[str,2] = | |
| llama_model_loader: - kv 8: general.languages arr[str,1] = | |
| llama_model_loader: - kv 9: qwen2.block_count u32 = 28 | |
| llama_model_loader: - kv 10: qwen2.context_length u32 = 4096 | |
| llama_model_loader: - kv 11: qwen2.embedding_length u32 = 3584 | |
| llama_model_loader: - kv 12: qwen2.feed_forward_length u32 = 18944 | |
| llama_model_loader: - kv 13: qwen2.attention.head_count u32 = 28 | |
| llama_model_loader: - kv 14: qwen2.attention.head_count_kv u32 = 4 | |
| llama_model_loader: - kv 15: qwen2.rope.freq_base f32 = 10000.000000 | |
| llama_model_loader: - kv 16: qwen2.attention.layer_norm_rms_epsilon f32 = 0.000001 | |
| llama_model_loader: - kv 17: general.file_type u32 = 7 | |
| llama_model_loader: - kv 18: tokenizer.ggml.model str = gpt2 | |
| llama_model_loader: - kv 19: tokenizer.ggml.pre str = qwen2 | |
| llama_model_loader: - kv 20: tokenizer.ggml.tokens arr[str,152064] = | |