Instructions to use QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF", dtype="auto") - llama-cpp-python
How to use QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF", filename="Qwen2.5-7B-Instruct-MathCoder.Q2_K.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Qwen2.5-7B-Instruct-MathCoder-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 QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Qwen2.5-7B-Instruct-MathCoder-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 QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/Qwen2.5-7B-Instruct-MathCoder-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 QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF with Ollama:
ollama run hf.co/QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M
- Unsloth Studio new
How to use QuantFactory/Qwen2.5-7B-Instruct-MathCoder-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 QuantFactory/Qwen2.5-7B-Instruct-MathCoder-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 QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF to start chatting
- Pi new
How to use QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2.5-7B-Instruct-MathCoder-GGUF-Q4_K_M
List all available models
lemonade list
Improve language tag
#1
by lbourdois - opened
README.md
CHANGED
|
@@ -1,63 +1,73 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
- Qwen/Qwen2.5-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
#
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
###
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
parameters:
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- Qwen/Qwen2.5-Coder-7B-Instruct
|
| 4 |
+
- Qwen/Qwen2.5-7B-Instruct
|
| 5 |
+
- Qwen/Qwen2.5-Math-7B-Instruct
|
| 6 |
+
library_name: transformers
|
| 7 |
+
tags:
|
| 8 |
+
- mergekit
|
| 9 |
+
- merge
|
| 10 |
+
language:
|
| 11 |
+
- zho
|
| 12 |
+
- eng
|
| 13 |
+
- fra
|
| 14 |
+
- spa
|
| 15 |
+
- por
|
| 16 |
+
- deu
|
| 17 |
+
- ita
|
| 18 |
+
- rus
|
| 19 |
+
- jpn
|
| 20 |
+
- kor
|
| 21 |
+
- vie
|
| 22 |
+
- tha
|
| 23 |
+
- ara
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
[](https://hf.co/QuantFactory)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
# QuantFactory/Qwen2.5-7B-Instruct-MathCoder-GGUF
|
| 30 |
+
This is quantized version of [DeepMount00/Qwen2.5-7B-Instruct-MathCoder](https://huggingface.co/DeepMount00/Qwen2.5-7B-Instruct-MathCoder) created using llama.cpp
|
| 31 |
+
|
| 32 |
+
# Original Model Card
|
| 33 |
+
|
| 34 |
+
# merge
|
| 35 |
+
|
| 36 |
+
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 37 |
+
|
| 38 |
+
## Merge Details
|
| 39 |
+
### Merge Method
|
| 40 |
+
|
| 41 |
+
This model was merged using the [TIES](https://arxiv.org/abs/2306.01708) merge method using [Qwen/Qwen2.5-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct) as a base.
|
| 42 |
+
|
| 43 |
+
### Models Merged
|
| 44 |
+
|
| 45 |
+
The following models were included in the merge:
|
| 46 |
+
* [Qwen/Qwen2.5-Coder-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct)
|
| 47 |
+
* [Qwen/Qwen2.5-Math-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Math-7B-Instruct)
|
| 48 |
+
|
| 49 |
+
### Configuration
|
| 50 |
+
|
| 51 |
+
The following YAML configuration was used to produce this model:
|
| 52 |
+
|
| 53 |
+
```yaml
|
| 54 |
+
models:
|
| 55 |
+
- model: Qwen/Qwen2.5-7B-Instruct
|
| 56 |
+
#no parameters necessary for base model
|
| 57 |
+
- model: Qwen/Qwen2.5-Math-7B-Instruct
|
| 58 |
+
parameters:
|
| 59 |
+
density: 0.5
|
| 60 |
+
weight: 0.5
|
| 61 |
+
- model: Qwen/Qwen2.5-Coder-7B-Instruct
|
| 62 |
+
parameters:
|
| 63 |
+
density: 0.5
|
| 64 |
+
weight: 0.5
|
| 65 |
+
|
| 66 |
+
merge_method: ties
|
| 67 |
+
base_model: Qwen/Qwen2.5-7B-Instruct
|
| 68 |
+
parameters:
|
| 69 |
+
normalize: false
|
| 70 |
+
int8_mask: true
|
| 71 |
+
dtype: float16
|
| 72 |
+
```
|
| 73 |
+
|