Instructions to use second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF", filename="Infinity-Instruct-7M-Gen-mistral-7B-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 second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf second-state/Infinity-Instruct-7M-Gen-mistral-7B-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 second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf second-state/Infinity-Instruct-7M-Gen-mistral-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 second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf second-state/Infinity-Instruct-7M-Gen-mistral-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 second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF with Ollama:
ollama run hf.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF:Q4_K_M
- Unsloth Studio new
How to use second-state/Infinity-Instruct-7M-Gen-mistral-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 second-state/Infinity-Instruct-7M-Gen-mistral-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 second-state/Infinity-Instruct-7M-Gen-mistral-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 second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF to start chatting
- Docker Model Runner
How to use second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF with Docker Model Runner:
docker model run hf.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF:Q4_K_M
- Lemonade
How to use second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Infinity-Instruct-7M-Gen-mistral-7B-GGUF-Q4_K_M
List all available models
lemonade list
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,78 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
model_name: Infinity-Instruct-7M-Gen-mistral-7B
|
| 4 |
+
base_model: BAAI/Infinity-Instruct-7M-Gen-mistral-7B
|
| 5 |
+
inference: false
|
| 6 |
+
model_creator: BAAI
|
| 7 |
+
quantized_by: Second State Inc.
|
| 8 |
+
language:
|
| 9 |
+
- en
|
| 10 |
---
|
| 11 |
+
|
| 12 |
+
<!-- header start -->
|
| 13 |
+
<!-- 200823 -->
|
| 14 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
| 15 |
+
<img src="https://github.com/LlamaEdge/LlamaEdge/raw/dev/assets/logo.svg" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
| 16 |
+
</div>
|
| 17 |
+
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
|
| 18 |
+
<!-- header end -->
|
| 19 |
+
|
| 20 |
+
# Infinity-Instruct-7M-Gen-mistral-7B-GGUF
|
| 21 |
+
|
| 22 |
+
## Original Model
|
| 23 |
+
|
| 24 |
+
[BAAI/Infinity-Instruct-7M-Gen-mistral-7B](https://huggingface.co/BAAI/Infinity-Instruct-7M-Gen-mistral-7B)
|
| 25 |
+
|
| 26 |
+
## Run with LlamaEdge
|
| 27 |
+
|
| 28 |
+
- LlamaEdge version: [v0.14.0](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.14.0) and above
|
| 29 |
+
|
| 30 |
+
- Prompt template
|
| 31 |
+
|
| 32 |
+
- Prompt type: `chatml`
|
| 33 |
+
|
| 34 |
+
- Prompt string
|
| 35 |
+
|
| 36 |
+
```text
|
| 37 |
+
<|im_start|>system
|
| 38 |
+
{system_message}<|im_end|>
|
| 39 |
+
<|im_start|>user
|
| 40 |
+
{prompt}<|im_end|>
|
| 41 |
+
<|im_start|>assistant
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
- Reverse prompt: `<|im_end|>`
|
| 45 |
+
|
| 46 |
+
- Run as LlamaEdge service
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Infinity-Instruct-7M-Gen-mistral-7B-Q5_K_M.gguf llama-api-server.wasm -p chatml -r '<|im_end|>'
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
- Context size: `4096`
|
| 53 |
+
|
| 54 |
+
- Run as LlamaEdge command app
|
| 55 |
+
|
| 56 |
+
```bash
|
| 57 |
+
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Infinity-Instruct-7M-Gen-mistral-7B-Q5_K_M.gguf llama-chat.wasm -p chatml -r '<|im_end|>'
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
## Quantized GGUF Models
|
| 61 |
+
|
| 62 |
+
| Name | Quant method | Bits | Size | Use case |
|
| 63 |
+
| ---- | ---- | ---- | ---- | ----- |
|
| 64 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-Q2_K.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-Q2_K.gguf) | Q2_K | 2 | 2.72 GB| smallest, significant quality loss - not recommended for most purposes |
|
| 65 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-Q3_K_L.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-Q3_K_L.gguf) | Q3_K_L | 3 | 3.82 GB| small, substantial quality loss |
|
| 66 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-Q3_K_M.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-Q3_K_M.gguf) | Q3_K_M | 3 | 3.52 GB| very small, high quality loss |
|
| 67 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-Q3_K_S.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-Q3_K_S.gguf) | Q3_K_S | 3 | 3.16 GB| very small, high quality loss |
|
| 68 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-Q4_0.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-Q4_0.gguf) | Q4_0 | 4 | 4.11 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
| 69 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-Q4_K_M.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-Q4_K_M.gguf) | Q4_K_M | 4 | 4.37 GB| medium, balanced quality - recommended |
|
| 70 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-Q4_K_S.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-Q4_K_S.gguf) | Q4_K_S | 4 | 4.14 GB| small, greater quality loss |
|
| 71 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-Q5_0.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-Q5_0.gguf) | Q5_0 | 5 | 5 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
|
| 72 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-Q5_K_M.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-Q5_K_M.gguf) | Q5_K_M | 5 | 5.13 GB| large, very low quality loss - recommended |
|
| 73 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-Q5_K_S.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-Q5_K_S.gguf) | Q5_K_S | 5 | 5 GB| large, low quality loss - recommended |
|
| 74 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-Q6_K.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-Q6_K.gguf) | Q6_K | 6 | 5.94 GB| very large, extremely low quality loss |
|
| 75 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-Q8_0.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-Q8_0.gguf) | Q8_0 | 8 | 7.7 GB| very large, extremely low quality loss - not recommended |
|
| 76 |
+
| [Infinity-Instruct-7M-Gen-mistral-7B-f16.gguf](https://huggingface.co/second-state/Infinity-Instruct-7M-Gen-mistral-7B-GGUF/blob/main/Infinity-Instruct-7M-Gen-mistral-7B-f16.gguf) | f16 | 16 | 14.5 GB| |
|
| 77 |
+
|
| 78 |
+
*Quantized with llama.cpp b3499.*
|