πŸ“‹ Model Description


base_model: internlm/internlm2-math-plus-7b inference: false language:
  • en
  • zh
library_name: gguf license: other pipeline_tag: text-generation quantized_by: legraphista tags:
  • math
  • quantized
  • GGUF
  • imatrix
  • quantization
  • imat
  • imatrix
  • static

internlm2-math-plus-7b-IMat-GGUF

Llama.cpp imatrix quantization of internlm/internlm2-math-plus-7b

Original Model: internlm/internlm2-math-plus-7b
Original dtype: BF16 (bfloat16)
Quantized by: llama.cpp b3008
IMatrix dataset: here

- Files - IMatrix - Common Quants - All Quants - Downloading using huggingface-cli - Inference - Simple chat template - Chat template with system prompt - Llama.cpp - FAQ - Why is the IMatrix not applied everywhere? - How do I merge a split GGUF?

Files

IMatrix

Status: βœ… Available Link: here

Common Quants

FilenameQuant typeFile SizeStatusUses IMatrixIs Split
internlm2-math-plus-7b.Q80.ggufQ808.22GBβœ… Availableβšͺ Static
πŸ“¦ No | internlm2-math-plus-7b.Q6K.gguf | Q6K | 6.35GB | βœ… Available | βšͺ Static | πŸ“¦ No | internlm2-math-plus-7b.Q4K.gguf | Q4K | 4.71GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.Q3K.gguf | Q3K | 3.83GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.Q2K.gguf | Q2K | 3.01GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No

All Quants

FilenameQuant typeFile SizeStatusUses IMatrixIs Split
internlm2-math-plus-7b.FP16.ggufF1615.48GBβœ… Availableβšͺ Static
πŸ“¦ No | internlm2-math-plus-7b.BF16.gguf | BF16 | 15.48GB | βœ… Available | βšͺ Static | πŸ“¦ No | internlm2-math-plus-7b.Q5K.gguf | Q5K | 5.51GB | βœ… Available | βšͺ Static | πŸ“¦ No | internlm2-math-plus-7b.Q5KS.gguf | Q5K_S | 5.37GB | βœ… Available | βšͺ Static | πŸ“¦ No | internlm2-math-plus-7b.Q4KS.gguf | Q4K_S | 4.48GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.Q3KL.gguf | Q3K_L | 4.13GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.Q3KS.gguf | Q3K_S | 3.48GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.Q2KS.gguf | Q2K_S | 2.82GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.IQ4NL.gguf | IQ4NL | 4.47GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.IQ4XS.gguf | IQ4XS | 4.24GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.IQ3M.gguf | IQ3M | 3.60GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.IQ3S.gguf | IQ3S | 3.49GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.IQ3XS.gguf | IQ3XS | 3.33GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.IQ3XXS.gguf | IQ3XXS | 3.11GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.IQ2M.gguf | IQ2M | 2.78GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.IQ2S.gguf | IQ2S | 2.59GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.IQ2XS.gguf | IQ2XS | 2.45GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.IQ2XXS.gguf | IQ2XXS | 2.24GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.IQ1M.gguf | IQ1M | 2.01GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | internlm2-math-plus-7b.IQ1S.gguf | IQ1S | 1.87GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No

Downloading using huggingface-cli

If you do not have hugginface-cli installed:
pip install -U "huggingface_hub[cli]"
Download the specific file you want:
huggingface-cli download legraphista/internlm2-math-plus-7b-IMat-GGUF --include "internlm2-math-plus-7b.Q8_0.gguf" --local-dir ./
If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:
huggingface-cli download legraphista/internlm2-math-plus-7b-IMat-GGUF --include "internlm2-math-plus-7b.Q80/*" --local-dir internlm2-math-plus-7b.Q80

see FAQ for merging GGUF's


Inference

Simple chat template

<s><|im_start|>user
Can you provide ways to eat combinations of bananas and dragonfruits?<|im_end|>
<|im_start|>assistant
Sure! Here are some ways to eat bananas and dragonfruits together:
 1. Banana and dragonfruit smoothie: Blend bananas and dragonfruits together with some milk and honey.
 2. Banana and dragonfruit salad: Mix sliced bananas and dragonfruits together with some lemon juice and honey.<|im_end|>
<|im_start|>user
What about solving an 2x + 3 = 7 equation?<|im_end|>

Chat template with system prompt

<s><|im_start|>system
You are a helpful AI.<|im_end|>
<|im_start|>user
Can you provide ways to eat combinations of bananas and dragonfruits?<|im_end|>
<|im_start|>assistant
Sure! Here are some ways to eat bananas and dragonfruits together:
 1. Banana and dragonfruit smoothie: Blend bananas and dragonfruits together with some milk and honey.
 2. Banana and dragonfruit salad: Mix sliced bananas and dragonfruits together with some lemon juice and honey.<|im_end|>
<|im_start|>user
What about solving an 2x + 3 = 7 equation?<|im_end|>

Llama.cpp

llama.cpp/main -m internlm2-math-plus-7b.Q8_0.gguf --color -i -p "prompt here (according to the chat template)"

FAQ

Why is the IMatrix not applied everywhere?

According to this investigation, it appears that lower quantizations are the only ones that benefit from the imatrix input (as per hellaswag results).

How do I merge a split GGUF?

  1. Make sure you have gguf-split available
- To get hold of gguf-split, navigate to https://github.com/ggerganov/llama.cpp/releases - Download the appropriate zip for your system from the latest release - Unzip the archive and you should be able to find gguf-split
  1. Locate your GGUF chunks folder (ex: internlm2-math-plus-7b.Q80)
  2. Run gguf-split --merge internlm2-math-plus-7b.Q80/internlm2-math-plus-7b.Q80-00001-of-XXXXX.gguf internlm2-math-plus-7b.Q80.gguf
- Make sure to point gguf-split to the first chunk of the split.

Got a suggestion? Ping me @legraphista!

πŸ“‚ GGUF File List

πŸ“ Filename πŸ“¦ Size ⚑ Download
internlm2-math-plus-7b.BF16.gguf
Recommended LFS FP16
14.42 GB Download
internlm2-math-plus-7b.FP16.gguf
LFS FP16
14.42 GB Download
internlm2-math-plus-7b.IQ1_M.gguf
LFS
1.87 GB Download
internlm2-math-plus-7b.IQ1_S.gguf
LFS
1.74 GB Download
internlm2-math-plus-7b.IQ2_M.gguf
LFS Q2
2.59 GB Download
internlm2-math-plus-7b.IQ2_S.gguf
LFS Q2
2.41 GB Download
internlm2-math-plus-7b.IQ2_XS.gguf
LFS Q2
2.28 GB Download
internlm2-math-plus-7b.IQ2_XXS.gguf
LFS Q2
2.09 GB Download
internlm2-math-plus-7b.IQ3_M.gguf
LFS Q3
3.35 GB Download
internlm2-math-plus-7b.IQ3_S.gguf
LFS Q3
3.25 GB Download
internlm2-math-plus-7b.IQ3_XS.gguf
LFS Q3
3.1 GB Download
internlm2-math-plus-7b.IQ3_XXS.gguf
LFS Q3
2.89 GB Download
internlm2-math-plus-7b.IQ4_NL.gguf
LFS Q4
4.16 GB Download
internlm2-math-plus-7b.IQ4_XS.gguf
LFS Q4
3.95 GB Download
internlm2-math-plus-7b.Q2_K.gguf
LFS Q2
2.8 GB Download
internlm2-math-plus-7b.Q2_K_S.gguf
LFS Q2
2.62 GB Download
internlm2-math-plus-7b.Q3_K.gguf
LFS Q3
3.57 GB Download
internlm2-math-plus-7b.Q3_K_L.gguf
LFS Q3
3.85 GB Download
internlm2-math-plus-7b.Q3_K_S.gguf
LFS Q3
3.24 GB Download
internlm2-math-plus-7b.Q4_K.gguf
LFS Q4
4.39 GB Download
internlm2-math-plus-7b.Q4_K_S.gguf
LFS Q4
4.18 GB Download
internlm2-math-plus-7b.Q5_K.gguf
LFS Q5
5.13 GB Download
internlm2-math-plus-7b.Q5_K_S.gguf
LFS Q5
5 GB Download
internlm2-math-plus-7b.Q6_K.gguf
LFS Q6
5.91 GB Download
internlm2-math-plus-7b.Q8_0.gguf
LFS Q8
7.66 GB Download