Downloads · 30 days
10
1% of all-time downloads
RichardErkhov/pankajmathur_-_orca_mini_v7_7b-gguf
pankajmathur_-_orca_mini_v7_7b-gguf is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
10
1% of all-time downloads
All-time downloads
1.7K
Public
Repo size
88.2 GB
Likes
0
Public
Click a slice to open those files.
.gguf102 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
orca_mini_v7_7b - GGUF
| Name | Quant method | Size |
|---|---|---|
| orca_mini_v7_7b.Q2_K.gguf | Q2_K | 2.81GB |
| orca_mini_v7_7b.IQ3_XS.gguf | IQ3_XS | 3.12GB |
| orca_mini_v7_7b.IQ3_S.gguf | IQ3_S | 3.26GB |
| orca_mini_v7_7b.Q3_K_S.gguf | Q3_K_S | 3.25GB |
| orca_mini_v7_7b.IQ3_M.gguf | IQ3_M | 3.33GB |
| orca_mini_v7_7b.Q3_K.gguf | Q3_K | 3.55GB |
| orca_mini_v7_7b.Q3_K_M.gguf | Q3_K_M | 3.55GB |
| orca_mini_v7_7b.Q3_K_L.gguf | Q3_K_L | 3.81GB |
| orca_mini_v7_7b.IQ4_XS.gguf | IQ4_XS | 3.96GB |
| orca_mini_v7_7b.Q4_0.gguf | Q4_0 | 4.13GB |
| orca_mini_v7_7b.IQ4_NL.gguf | IQ4_NL | 4.16GB |
| orca_mini_v7_7b.Q4_K_S.gguf | Q4_K_S | 4.15GB |
| orca_mini_v7_7b.Q4_K.gguf | Q4_K | 4.36GB |
| orca_mini_v7_7b.Q4_K_M.gguf | Q4_K_M | 4.36GB |
| orca_mini_v7_7b.Q4_1.gguf | Q4_1 | 4.54GB |
| orca_mini_v7_7b.Q5_0.gguf | Q5_0 | 4.95GB |
| orca_mini_v7_7b.Q5_K_S.gguf | Q5_K_S | 4.95GB |
| orca_mini_v7_7b.Q5_K.gguf | Q5_K | 5.07GB |
| orca_mini_v7_7b.Q5_K_M.gguf | Q5_K_M | 5.07GB |
| orca_mini_v7_7b.Q5_1.gguf | Q5_1 | 5.36GB |
| orca_mini_v7_7b.Q6_K.gguf | Q6_K | 5.82GB |
| orca_mini_v7_7b.Q8_0.gguf | Q8_0 | 7.54GB |
license: apache-2.0 model-index:
Model Name: Qwen2 orca_mini_v7_7b
<a href="https://www.linkedin.com/in/pankajam" target="_blank">https://www.linkedin.com/in/pankajam</a> Looking forward to connecting! </strong>
<br>By providing proper credit and attribution, you are granted permission to use this model as a foundational base for further Full fine tuning, DPO, PPO or ORPO tuning and any kind of Merges. I actively encourage users to customize and enhance the model according to their specific needs, as this version is designed to be a comprehensive general model. Dive in and innovate!
Coming Soon..
Here is the ChatML prompt format
<|im_start|>system
You are Orca Mini, a helpful AI assistant.<|im_end|>
<|im_start|>user
Hello Orca Mini, what can you do for me?<|im_end|>
<|im_start|>assistant
Below shows a code example on how to use this model
from transformers import AutoModel, AutoTokenizer
model_slug = "pankajmathur/orca_mini_v7_7b"
model = AutoModel.from_pretrained(model_slug)
tokenizer = AutoTokenizer.from_pretrained(model_slug)
messages = [
{"role": "system", "content": "You are Orca Mini, a helpful AI assistant."},
{"role": "user", "content": "Hello Orca Mini, what can you do for me?"}
]
gen_input = tokenizer.apply_chat_template(messages, return_tensors="pt")
model.generate(**gen_input)
Quants
GGUF : Coming Soon
AWQ: Coming Soon
To handle extensive inputs exceeding 32,768 tokens, we utilize YARN, a technique for enhancing model length extrapolation, ensuring optimal performance on lengthy texts.
For deployment, we recommend using vLLM. You can enable the long-context capabilities by following these steps:
pip install "vllm>=0.4.3"
Or you can install vLLM from source.
Configure Model Settings: After downloading the model weights, modify the config.json file by including the below snippet:
{
"architectures": [
"Qwen2ForCausalLM"
],
// ...
"vocab_size": 152064,
// adding the following snippets
"rope_scaling": {
"factor": 4.0,
"original_max_position_embeddings": 32768,
"type": "yarn"
}
}
This snippet enable YARN to support longer contexts.
Model Deployment: Utilize vLLM to deploy your model. For instance, you can set up an openAI-like server using the command:
python -u -m vllm.entrypoints.openai.api_server --model pankajmathur/orca_mini_v7_7b
Then you can access the Chat API by:
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "pankajmathur/orca_mini_v7_7b",
"messages": [
{"role": "system", "content": "You are Orca Mini, a helpful AI assistant."},
{"role": "user", "content": "Hello Orca Mini, what can you do for me?"}
]
}'
Note: Presently, vLLM only supports static YARN, which means the scaling factor remains constant regardless of input length, potentially impacting performance on shorter texts. We advise adding the rope_scaling configuration only when processing long contexts is required.
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 22.41 |
| IFEval (0-Shot) | 43.88 |
| BBH (3-Shot) | 33.95 |
| MATH Lvl 5 (4-Shot) | 2.64 |
| GPQA (0-shot) | 6.15 |
| MuSR (0-shot) | 12.66 |
| MMLU-PRO (5-shot) | 35.19 |