Instructions to use s3nh/MathLLM-MathCoder-L-7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use s3nh/MathLLM-MathCoder-L-7B-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="s3nh/MathLLM-MathCoder-L-7B-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("s3nh/MathLLM-MathCoder-L-7B-GGUF", dtype="auto") - llama-cpp-python
How to use s3nh/MathLLM-MathCoder-L-7B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="s3nh/MathLLM-MathCoder-L-7B-GGUF", filename="MathLLM-MathCoder-L-7B.Q2_K.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 s3nh/MathLLM-MathCoder-L-7B-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 s3nh/MathLLM-MathCoder-L-7B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf s3nh/MathLLM-MathCoder-L-7B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf s3nh/MathLLM-MathCoder-L-7B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf s3nh/MathLLM-MathCoder-L-7B-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 s3nh/MathLLM-MathCoder-L-7B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf s3nh/MathLLM-MathCoder-L-7B-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 s3nh/MathLLM-MathCoder-L-7B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf s3nh/MathLLM-MathCoder-L-7B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/s3nh/MathLLM-MathCoder-L-7B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use s3nh/MathLLM-MathCoder-L-7B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "s3nh/MathLLM-MathCoder-L-7B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "s3nh/MathLLM-MathCoder-L-7B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/s3nh/MathLLM-MathCoder-L-7B-GGUF:Q4_K_M
- SGLang
How to use s3nh/MathLLM-MathCoder-L-7B-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "s3nh/MathLLM-MathCoder-L-7B-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "s3nh/MathLLM-MathCoder-L-7B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "s3nh/MathLLM-MathCoder-L-7B-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "s3nh/MathLLM-MathCoder-L-7B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use s3nh/MathLLM-MathCoder-L-7B-GGUF with Ollama:
ollama run hf.co/s3nh/MathLLM-MathCoder-L-7B-GGUF:Q4_K_M
- Unsloth Studio
How to use s3nh/MathLLM-MathCoder-L-7B-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 s3nh/MathLLM-MathCoder-L-7B-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 s3nh/MathLLM-MathCoder-L-7B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for s3nh/MathLLM-MathCoder-L-7B-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use s3nh/MathLLM-MathCoder-L-7B-GGUF with Docker Model Runner:
docker model run hf.co/s3nh/MathLLM-MathCoder-L-7B-GGUF:Q4_K_M
- Lemonade
How to use s3nh/MathLLM-MathCoder-L-7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull s3nh/MathLLM-MathCoder-L-7B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.MathLLM-MathCoder-L-7B-GGUF-Q4_K_M
List all available models
lemonade list
Upload ./ with huggingface_hub
Browse files- .gitattributes +7 -0
- MathLLM-MathCoder-L-7B.Q2_K.gguf +3 -0
- MathLLM-MathCoder-L-7B.Q3_K_S.gguf +3 -0
- MathLLM-MathCoder-L-7B.Q4_K_M.gguf +3 -0
- MathLLM-MathCoder-L-7B.Q4_K_S.gguf +3 -0
- MathLLM-MathCoder-L-7B.Q5_K_S.gguf +3 -0
- MathLLM-MathCoder-L-7B.Q6_K.gguf +3 -0
- MathLLM-MathCoder-L-7B.Q8_0.gguf +3 -0
- README.md +47 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,10 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
MathLLM-MathCoder-L-7B.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
MathLLM-MathCoder-L-7B.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
MathLLM-MathCoder-L-7B.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
MathLLM-MathCoder-L-7B.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
MathLLM-MathCoder-L-7B.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
MathLLM-MathCoder-L-7B.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
MathLLM-MathCoder-L-7B.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
MathLLM-MathCoder-L-7B.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1b5112fee8900686b583611b1f9e42ab014071b5ffa42c5da809763316e3eec
|
| 3 |
+
size 2825978528
|
MathLLM-MathCoder-L-7B.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d09b0e5ba9f953202ddf3ef38236c9e0f6310913ab34f7116a7f089ae4b749b1
|
| 3 |
+
size 2948345760
|
MathLLM-MathCoder-L-7B.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5341fcec5dd9ebead83c238d23eb03f10942774d994ff5944ec70b9d84425e4a
|
| 3 |
+
size 4081049760
|
MathLLM-MathCoder-L-7B.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8db479ac398bd326f3aa6057ed390fbf07a980e476eb7035bc8ec339b4bca874
|
| 3 |
+
size 3856785568
|
MathLLM-MathCoder-L-7B.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dad0c8d9d9a0504863f0552afa42c899321079041adc023958ad899bdd724229
|
| 3 |
+
size 4651741344
|
MathLLM-MathCoder-L-7B.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3b10e4cf4ae02923f7b75ee150aeceace1cf205d7ebfe8fb4791154eb32ca78
|
| 3 |
+
size 5529248160
|
MathLLM-MathCoder-L-7B.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3190fb6a18df6943d633ac2a659fd5ef83d00ae4ca8fee4e203851207e178628
|
| 3 |
+
size 7161159584
|
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
license: openrail
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
library_name: transformers
|
| 6 |
+
language:
|
| 7 |
+
- zh
|
| 8 |
+
- en
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Original model card
|
| 13 |
+
|
| 14 |
+
Buy me a coffee if you like this project ;)
|
| 15 |
+
<a href="https://www.buymeacoffee.com/s3nh"><img src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-1.svg" alt=""></a>
|
| 16 |
+
|
| 17 |
+
#### Description
|
| 18 |
+
|
| 19 |
+
GGUF Format model files for [This project](https://huggingface.co/MathLLM/MathCoder-L-7B).
|
| 20 |
+
|
| 21 |
+
### GGUF Specs
|
| 22 |
+
|
| 23 |
+
GGUF is a format based on the existing GGJT, but makes a few changes to the format to make it more extensible and easier to use. The following features are desired:
|
| 24 |
+
|
| 25 |
+
Single-file deployment: they can be easily distributed and loaded, and do not require any external files for additional information.
|
| 26 |
+
Extensible: new features can be added to GGML-based executors/new information can be added to GGUF models without breaking compatibility with existing models.
|
| 27 |
+
mmap compatibility: models can be loaded using mmap for fast loading and saving.
|
| 28 |
+
Easy to use: models can be easily loaded and saved using a small amount of code, with no need for external libraries, regardless of the language used.
|
| 29 |
+
Full information: all information needed to load a model is contained in the model file, and no additional information needs to be provided by the user.
|
| 30 |
+
The key difference between GGJT and GGUF is the use of a key-value structure for the hyperparameters (now referred to as metadata), rather than a list of untyped values.
|
| 31 |
+
This allows for new metadata to be added without breaking compatibility with existing models, and to annotate the model with additional information that may be useful for
|
| 32 |
+
inference or for identifying the model.
|
| 33 |
+
|
| 34 |
+
### Perplexity params
|
| 35 |
+
|
| 36 |
+
Model Measure Q2_K Q3_K_S Q3_K_M Q3_K_L Q4_0 Q4_1 Q4_K_S Q4_K_M Q5_0 Q5_1 Q5_K_S Q5_K_M Q6_K Q8_0 F16
|
| 37 |
+
7B perplexity 6.7764 6.4571 6.1503 6.0869 6.1565 6.0912 6.0215 5.9601 5.9862 5.9481 5.9419 5.9208 5.9110 5.9070 5.9066
|
| 38 |
+
13B perplexity 5.8545 5.6033 5.4498 5.4063 5.3860 5.3608 5.3404 5.3002 5.2856 5.2706 5.2785 5.2638 5.2568 5.2548 5.2543
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
### inference
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
TODO
|
| 46 |
+
|
| 47 |
+
# Original model card
|