Instructions to use MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF", filename="Qwen2-Math-72B-Instruct.IQ1_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF: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 MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF: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 MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaziyarPanahi/Qwen2-Math-72B-Instruct-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": "MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF:Q4_K_M
- Ollama
How to use MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF with Ollama:
ollama run hf.co/MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF:Q4_K_M
- Unsloth Studio new
How to use MaziyarPanahi/Qwen2-Math-72B-Instruct-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 MaziyarPanahi/Qwen2-Math-72B-Instruct-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 MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF to start chatting
- Docker Model Runner
How to use MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MaziyarPanahi/Qwen2-Math-72B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2-Math-72B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
[WIP] Upload folder using huggingface_hub (multi-commit bc36f5a6d5458294643f413a4b91e8bf73536948f42d55815c720b5140732c4d)
Upload folder using huggingface_hub
Multi commit ID: bc36f5a6d5458294643f413a4b91e8bf73536948f42d55815c720b5140732c4d
Scheduled commits:
- Upload 1 file(s) totalling 23.7G (80c8088b1bfcc88d7602b16868837b6665720a9d365d5884109da42336ac143f)
- Upload 1 file(s) totalling 22.7G (342c6eec3203143aa21d835eb3fa5ce6ffbd1770ec7d9fca0b3c3d799b94f29c)
- Upload 1 file(s) totalling 27.1G (55dc1329de2d8be12873d6712fa4fdd0395c26d82988d7ccf73c0dcb5e62099e)
- Upload 1 file(s) totalling 32.8G (9ec3160e934f24b4e45a441c33652ca55f50525c6ee9c20a3eb4ab5b17f651ff)
- Upload 1 file(s) totalling 39.7G (653b6eda782139c0abedaceb082a99d9b01e16beabef7a88d325698be517574d)
- Upload 1 file(s) totalling 29.8G (bd7e60a1b6ff54cbc9b5aa3d8374074d257444bc914b9fc1f35ee27c935b6df8)
- Upload 1 file(s) totalling 39.5G (f84e39a07944205bb9322647bfb7e8d8ddeace8bec1a1e9d6dde57565a4f50c5)
- Upload 1 file(s) totalling 37.7G (f6f300e397d11910cc827c528fc0c55fe69e9753a6ccb2bf77238c2d8c86e7ff)
- Upload 1 file(s) totalling 34.5G (b831a2923b2735650a8a131721e118a6f36baf1e6e7bc1d74f3e44981c973cce)
- Upload 1 file(s) totalling 47.4G (52852a5dc539609f77f7948c7d9f8d8029d0d9a83ae7eb3846b9ba696be2364f)
- Upload 1 file(s) totalling 43.9G (ee120849eaaafa5e8d5a93a68e12bf63e54f34b651c50162b56e3d3f23d547c7)
- Upload 2 file(s) totalling 25.2M (d586d93c3705072a4eb244d180b2b3cb3012a14dc732ffb0e61e7ddd74f1e592)
This is a PR opened using the huggingface_hub library in the context of a multi-commit. PR can be commented as a usual PR. However, please be aware that manually updating the PR description, changing the PR status, or pushing new commits, is not recommended as it might corrupt the commit process. Learn more about multi-commits in this guide.