Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| Phi-3-Instruct-Bloated.Q2_K.gguf | Q2_K | 1.32GB |
| Phi-3-Instruct-Bloated.IQ3_XS.gguf | IQ3_XS | 1.51GB |
| Phi-3-Instruct-Bloated.IQ3_S.gguf | IQ3_S | 1.57GB |
| Phi-3-Instruct-Bloated.Q3_K_S.gguf | Q3_K_S | 1.57GB |
| Phi-3-Instruct-Bloated.IQ3_M.gguf | IQ3_M | 1.73GB |
| Phi-3-Instruct-Bloated.Q3_K.gguf | Q3_K | 1.82GB |
| Phi-3-Instruct-Bloated.Q3_K_M.gguf | Q3_K_M | 1.82GB |
| Phi-3-Instruct-Bloated.Q3_K_L.gguf | Q3_K_L | 1.94GB |
| Phi-3-Instruct-Bloated.IQ4_XS.gguf | IQ4_XS | 1.93GB |
| Phi-3-Instruct-Bloated.Q4_0.gguf | Q4_0 | 2.03GB |
| Phi-3-Instruct-Bloated.IQ4_NL.gguf | IQ4_NL | 2.04GB |
| Phi-3-Instruct-Bloated.Q4_K_S.gguf | Q4_K_S | 2.04GB |
| Phi-3-Instruct-Bloated.Q4_K.gguf | Q4_K | 2.23GB |
| Phi-3-Instruct-Bloated.Q4_K_M.gguf | Q4_K_M | 2.23GB |
| Phi-3-Instruct-Bloated.Q4_1.gguf | Q4_1 | 2.24GB |
| Phi-3-Instruct-Bloated.Q5_0.gguf | Q5_0 | 2.46GB |
| Phi-3-Instruct-Bloated.Q5_K_S.gguf | Q5_K_S | 2.46GB |
| Phi-3-Instruct-Bloated.Q5_K.gguf | Q5_K | 2.62GB |
| Phi-3-Instruct-Bloated.Q5_K_M.gguf | Q5_K_M | 2.62GB |
| Phi-3-Instruct-Bloated.Q5_1.gguf | Q5_1 | 2.68GB |
| Phi-3-Instruct-Bloated.Q6_K.gguf | Q6_K | 2.92GB |
| Phi-3-Instruct-Bloated.Q8_0.gguf | Q8_0 | 3.78GB |
1slices:
2 - sources:
3 - model: microsoft/Phi-3-mini-128k-instruct
4 layer_range: [0, 32]
5 - model: NexaAIDev/Octopus-v4
6 layer_range: [0, 32]
7merge_method: slerp
8base_model: microsoft/Phi-3-mini-128k-instruct
9parameters:
10 t:
11 - filter: self_attn
12 value: [0, 0.5, 0.3, 0.7, 1]
13 - filter: mlp
14 value: [1, 0.5, 0.7, 0.3, 0]
15 - value: 0.5
16dtype: bfloat161# Installation
2!pip install -qU transformers accelerate
3
4# Imports
5from transformers import AutoTokenizer, AutoModelForCausalLM
6import torch
7
8# Loading
9tokenizer = AutoTokenizer.from_pretrained("MrOvkill/Phi-3-Instruct-Bloated")
10model = AutoModelForCausalLM.from_pretrained("MrOvkill/Phi-3-Instruct-Bloated")
11
12# Completion function
13def infer(prompt, **kwargs):
14 inputs = tokenizer(prompt, return_tensors="pt")
15 with torch.no_grad():
16 outputs = model.generate(**inputs, **kwargs)
17 return tokenizer.decode(outputs[0], skip_special_tokens=True)
18
19# Some silliness
20infer("<|user|>\nBen is going to the store for some Ice Cream. So is Jerry. They mix up the ice cream at the store. Is the ice cream: (a. Ben's (b. Jerry's (c. Ben and Jerry's <|end|>\n<|assistant|>\nMy answer is (", max_new_tokens=1024)
21
22# A proper test
23infer(
24 """
25<|user|>
26Explain what a Mixture of Experts is in less than 100 words.
27<|assistant|>
28""",
29 max_new_tokens=1024,
30 do_sample=False,
31 temperature=0.0,
32 top_k=50,
33 top_p=0.89,
34)