初始化项目,由ModelHub XC社区提供模型
Model: MaziyarPanahi/mathstral-7B-v0.1-GGUF Source: Original Platform
This commit is contained in:
64
.gitattributes
vendored
Normal file
64
.gitattributes
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.model filter=lfs diff=lfs merge=lfs -text
|
||||
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
||||
*.tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||
*.db* filter=lfs diff=lfs merge=lfs -text
|
||||
*.ark* filter=lfs diff=lfs merge=lfs -text
|
||||
**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text
|
||||
**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text
|
||||
**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text
|
||||
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||
|
||||
*.ggml filter=lfs diff=lfs merge=lfs -text
|
||||
*.llamafile* filter=lfs diff=lfs merge=lfs -text
|
||||
*.pt2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||
|
||||
mathstral-7B-v0.1.fp16.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1-GGUF_imatrix.dat filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
mathstral-7B-v0.1.IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
108
README.md
Normal file
108
README.md
Normal file
@@ -0,0 +1,108 @@
|
||||
---
|
||||
tags:
|
||||
- quantized
|
||||
- 2-bit
|
||||
- 3-bit
|
||||
- 4-bit
|
||||
- 5-bit
|
||||
- 6-bit
|
||||
- 8-bit
|
||||
- GGUF
|
||||
- text-generation
|
||||
- text-generation
|
||||
model_name: mathstral-7B-v0.1-GGUF
|
||||
base_model: mistralai/mathstral-7B-v0.1
|
||||
inference: false
|
||||
model_creator: mistralai
|
||||
pipeline_tag: text-generation
|
||||
quantized_by: MaziyarPanahi
|
||||
---
|
||||
# [MaziyarPanahi/mathstral-7B-v0.1-GGUF](https://huggingface.co/MaziyarPanahi/mathstral-7B-v0.1-GGUF)
|
||||
- Model creator: [mistralai](https://huggingface.co/mistralai)
|
||||
- Original model: [mistralai/mathstral-7B-v0.1](https://huggingface.co/mistralai/mathstral-7B-v0.1)
|
||||
|
||||
## Description
|
||||
[MaziyarPanahi/mathstral-7B-v0.1-GGUF](https://huggingface.co/MaziyarPanahi/mathstral-7B-v0.1-GGUF) contains GGUF format model files for [mistralai/mathstral-7B-v0.1](https://huggingface.co/mistralai/mathstral-7B-v0.1).
|
||||
|
||||
### About GGUF
|
||||
|
||||
GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.
|
||||
|
||||
Here is an incomplete list of clients and libraries that are known to support GGUF:
|
||||
|
||||
* [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.
|
||||
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
|
||||
* [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration. Linux available, in beta as of 27/11/2023.
|
||||
* [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.
|
||||
* [KoboldCpp](https://github.com/LostRuins/koboldcpp), a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.
|
||||
* [GPT4All](https://gpt4all.io/index.html), a free and open source local running GUI, supporting Windows, Linux and macOS with full GPU accel.
|
||||
* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with many interesting and unique features, including a full model library for easy model selection.
|
||||
* [Faraday.dev](https://faraday.dev/), an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.
|
||||
* [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
|
||||
* [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server. Note, as of time of writing (November 27th 2023), ctransformers has not been updated in a long time and does not support many recent models.
|
||||
|
||||
## Special thanks
|
||||
|
||||
🙏 Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/) for making all of this possible.
|
||||
|
||||
|
||||
---
|
||||
|
||||
**Original README**
|
||||
|
||||
|
||||
# Model Card for Mathstral-7B-v0.1
|
||||
|
||||
Mathstral 7B is a model specializing in mathematical and scientific tasks, based on Mistral 7B.
|
||||
You can read more in the [official blog post](https://mistral.ai/news/mathstral/).
|
||||
|
||||
## Installation
|
||||
|
||||
It is recommended to use `mistralai/mathstral-7B-v0.1` with [mistral-inference](https://github.com/mistralai/mistral-inference)
|
||||
|
||||
|
||||
```
|
||||
pip install mistral_inference>=1.2.0
|
||||
```
|
||||
|
||||
|
||||
## Download
|
||||
|
||||
```py
|
||||
from huggingface_hub import snapshot_download
|
||||
from pathlib import Path
|
||||
|
||||
mistral_models_path = Path.home().joinpath('mistral_models', 'mathstral-7B-v0.1')
|
||||
mistral_models_path.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
snapshot_download(repo_id="mistralai/mathstral-7B-v0.1", allow_patterns=["params.json", "consolidated.safetensors", "tokenizer.model.v3"], local_dir=mistral_models_path)
|
||||
```
|
||||
|
||||
### Chat
|
||||
|
||||
After installing `mistral_inference`, a `mistral-demo` CLI command should be available in your environment.
|
||||
|
||||
```
|
||||
mistral-chat $HOME/mistral_models/mathstral-7B-v0.1 --instruct --max_tokens 256
|
||||
```
|
||||
|
||||
You can then start chatting with the model, *e.g.* prompt it with something like:
|
||||
|
||||
|
||||
*"Albert likes to surf every week. Each surfing session lasts for 4 hours and costs $20 per hour. How much would Albert spend in 5 weeks?"*
|
||||
|
||||
## Evaluation
|
||||
We evaluate Mathstral 7B and open-weight models of the similar size on industry-standard benchmarks.
|
||||
| Benchmarks | MATH | GSM8K (8-shot) | Odyssey Math maj@16 | GRE Math maj@16 | AMC 2023 maj@16 | AIME 2024 maj@16
|
||||
| :--- | :---: | :---: | :---: | :---: | :---: | :---: |
|
||||
| Mathstral 7B | **56.6** | 77.1 | **37.2** | 56.9 | **42.4** | **2/30** |
|
||||
| DeepSeek Math 7B | 44.4 | **80.6** | 27.6 | 44.6 | 28.0 | 0/30 |
|
||||
| Llama3 8B | 28.4 | 75.4 | 24.0 | 26.2 | 34.4 | 0/30 |
|
||||
| GLM4 9B | 50.2 | 48.8 | 18.9 | 46.2 | 36.0 | 1/30 |
|
||||
| QWen2 7B | **56.8** | 32.7 | 24.8 | **58.5** | 35.2 | **2/30** |
|
||||
| Gemma2 9B | 48.3 | 69.5 | 18.6 | 52.3 | 31.2 | 1/30 |
|
||||
|
||||
|
||||
## The Mistral AI Team
|
||||
|
||||
Albert Jiang, Alexandre Sablayrolles, Alexis Tacnet, Alok Kothari, Antoine Roux, Arthur Mensch, Audrey Herblin-Stoop, Augustin Garreau, Austin Birky, Bam4d, Baptiste Bout, Baudouin de Monicault, Blanche Savary, Carole Rambaud, Caroline Feldman, Devendra Singh Chaplot, Diego de las Casas, Eleonore Arcelin, Emma Bou Hanna, Etienne Metzger, Gaspard Blanchet, Gianna Lengyel, Guillaume Bour, Guillaume Lample, Harizo Rajaona, Henri Roussez, Hichem Sattouf, Ian Mack, Jean-Malo Delignon, Jessica Chudnovsky, Justus Murke, Kartik Khandelwal, Lawrence Stewart, Louis Martin, Louis Ternon, Lucile Saulnier, Lélio Renard Lavaud, Margaret Jennings, Marie Pellat, Marie Torelli, Marie-Anne Lachaux, Marjorie Janiewicz, Mickaël Seznec, Nicolas Schuhl, Niklas Muhs, Olivier de Garrigues, Patrick von Platen, Paul Jacob, Pauline Buche, Pavan Kumar Reddy, Perry Savas, Pierre Stock, Romain Sauvestre, Sagar Vaze, Sandeep Subramanian, Saurabh Garg, Sophia Yang, Szymon Antoniak, Teven Le Scao, Thibault Schueller, Thibaut Lavril, Thomas Wang, Théophile Gervet, Timothée Lacroix, Valera Nemychnikova, Wendy Shang, William El Sayed, William Marshall
|
||||
3
config.json
Normal file
3
config.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"model_type": "mistral"
|
||||
}
|
||||
1
configuration.json
Normal file
1
configuration.json
Normal file
@@ -0,0 +1 @@
|
||||
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}
|
||||
3
mathstral-7B-v0.1-GGUF_imatrix.dat
Normal file
3
mathstral-7B-v0.1-GGUF_imatrix.dat
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:76d608206705b2e7dda88418bd2d34f7aefa9c5db4336ff9d463fd2e6f54d84c
|
||||
size 4988146
|
||||
3
mathstral-7B-v0.1.IQ1_M.gguf
Normal file
3
mathstral-7B-v0.1.IQ1_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:91ded1760f6971cc2b17c18cf2d3264804e710bb9134579c1ae461cd855c1248
|
||||
size 1757663040
|
||||
3
mathstral-7B-v0.1.IQ1_S.gguf
Normal file
3
mathstral-7B-v0.1.IQ1_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0151710860026369b1ab26e87f0f3953ce56894d07764d8fbd23f984ed02423b
|
||||
size 1615318848
|
||||
3
mathstral-7B-v0.1.IQ2_XS.gguf
Normal file
3
mathstral-7B-v0.1.IQ2_XS.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:150de94d14d903f60e818e64f807c9bc631134e7427cd5f1b55662db2f21be66
|
||||
size 2201472832
|
||||
3
mathstral-7B-v0.1.IQ3_XS.gguf
Normal file
3
mathstral-7B-v0.1.IQ3_XS.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:08fa6dd35f993d1e576fb8966e40694e8a6ac2581f47b3f996b605e4c90d7f66
|
||||
size 3022769984
|
||||
3
mathstral-7B-v0.1.IQ4_XS.gguf
Normal file
3
mathstral-7B-v0.1.IQ4_XS.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d1be2bfb3911a6fa211b1b9b9b5c653f0993b805f5e0e7701031805ff12f6500
|
||||
size 3911962432
|
||||
3
mathstral-7B-v0.1.Q2_K.gguf
Normal file
3
mathstral-7B-v0.1.Q2_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:16def1a096ffcbd66e28b470fd857b7f7f08e078684a6aaa167586cac4b0049b
|
||||
size 2722877248
|
||||
3
mathstral-7B-v0.1.Q3_K_L.gguf
Normal file
3
mathstral-7B-v0.1.Q3_K_L.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:80dbc2a90bb0b09708604d73c242880cc02c7c0fc4cf975d826c86e37a08da4c
|
||||
size 3825979200
|
||||
3
mathstral-7B-v0.1.Q3_K_M.gguf
Normal file
3
mathstral-7B-v0.1.Q3_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a91ced3c7964ce1605e0bb917fb953791221f8a356efad0b103a82780c11591f
|
||||
size 3522940736
|
||||
3
mathstral-7B-v0.1.Q3_K_S.gguf
Normal file
3
mathstral-7B-v0.1.Q3_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d2b40e7c4a129ba5e4f291e85087e021f3915fff44e65e0e2b559ddc4c9fdbb6
|
||||
size 3168522048
|
||||
3
mathstral-7B-v0.1.Q4_K_M.gguf
Normal file
3
mathstral-7B-v0.1.Q4_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8db1097490577b5147f1d7284ec395614b1ddfd5b3a394f126f6d2e743ddde12
|
||||
size 4372811584
|
||||
3
mathstral-7B-v0.1.Q4_K_S.gguf
Normal file
3
mathstral-7B-v0.1.Q4_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:782e69097cfec5a10f85a2fe5dd07e0125a6104c5de44f57d379dfe83ab8b952
|
||||
size 4144746304
|
||||
3
mathstral-7B-v0.1.Q5_K_M.gguf
Normal file
3
mathstral-7B-v0.1.Q5_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7322a42c6adb9ce5e8afb2d7878859be478a7bddcd4f3faf686a82e42c113e56
|
||||
size 5136174912
|
||||
3
mathstral-7B-v0.1.Q5_K_S.gguf
Normal file
3
mathstral-7B-v0.1.Q5_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8156e2a4398bdf4331e544443cd41344847d950d400335b5009ce420c8f82043
|
||||
size 5002481472
|
||||
3
mathstral-7B-v0.1.Q6_K.gguf
Normal file
3
mathstral-7B-v0.1.Q6_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8e886b468cc9628b2b965beecec4a3dbdd04b2c6caf179dab63fa2e55b6adad2
|
||||
size 5947248448
|
||||
3
mathstral-7B-v0.1.Q8_0.gguf
Normal file
3
mathstral-7B-v0.1.Q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d02e855eb3cbe5024e15dd795c2609421f71694b57df569fd48ec59fabd0d208
|
||||
size 7702564672
|
||||
3
mathstral-7B-v0.1.fp16.gguf
Normal file
3
mathstral-7B-v0.1.fp16.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6554402b424ff91edbd36f545f529227216707cd6ec51e59801dc476a9014e8b
|
||||
size 14497336928
|
||||
Reference in New Issue
Block a user