Downloads · 30 days
89
8% of all-time downloads
RichardErkhov/Replete-AI_-_Phi-Elothir-gguf
Replete-AI_-_Phi-Elothir-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
89
8% of all-time downloads
All-time downloads
1.1K
Public
Repo size
59.1 GB
Likes
0
Public
Click a slice to open those files.
.gguf68.6 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
Phi-Elothir - GGUF
| Name | Quant method | Size |
|---|---|---|
| Phi-Elothir.Q2_K.gguf | Q2_K | 1.87GB |
| Phi-Elothir.IQ3_XS.gguf | IQ3_XS | 2.02GB |
| Phi-Elothir.IQ3_S.gguf | IQ3_S | 2.11GB |
| Phi-Elothir.Q3_K_S.gguf | Q3_K_S | 2.11GB |
| Phi-Elothir.IQ3_M.gguf | IQ3_M | 2.24GB |
| Phi-Elothir.Q3_K.gguf | Q3_K | 2.42GB |
| Phi-Elothir.Q3_K_M.gguf | Q3_K_M | 2.42GB |
| Phi-Elothir.Q3_K_L.gguf | Q3_K_L | 2.7GB |
| Phi-Elothir.IQ4_XS.gguf | IQ4_XS | 2.61GB |
| Phi-Elothir.Q4_0.gguf | Q4_0 | 2.73GB |
| Phi-Elothir.IQ4_NL.gguf | IQ4_NL | 2.75GB |
| Phi-Elothir.Q4_K_S.gguf | Q4_K_S | 2.76GB |
| Phi-Elothir.Q4_K.gguf | Q4_K | 2.97GB |
| Phi-Elothir.Q4_K_M.gguf | Q4_K_M | 2.97GB |
| Phi-Elothir.Q4_1.gguf | Q4_1 | 3.02GB |
| Phi-Elothir.Q5_0.gguf | Q5_0 | 3.31GB |
| Phi-Elothir.Q5_K_S.gguf | Q5_K_S | 3.31GB |
| Phi-Elothir.Q5_K.gguf | Q5_K | 3.44GB |
| Phi-Elothir.Q5_K_M.gguf | Q5_K_M | 3.44GB |
| Phi-Elothir.Q5_1.gguf | Q5_1 | 3.61GB |
| Phi-Elothir.Q6_K.gguf | Q6_K | 3.93GB |
| Phi-Elothir.Q8_0.gguf | Q8_0 | 5.09GB |
license: mit language:

Elothir was an ancient treeant, and I couldn't think of a better naming convention for a model that was created using the passthrough method.
By concatenating layers from different LLMs, it can produce models with an exotic number of parameters (e.g., 9B with two 7B parameter models). These models are often referred to as "frankenmerges" or "Frankenstein models" by the community.
Many thanks to Abacaj for providing the fine tuned weights that were used in the creation of this base model...thanks to KatyTheCutie for inspring me to test out this script.
import transformers
import torch
if __name__ == "__main__":
model_name = "Replete-AI/Phi-Elothir"
tokenizer = transformers.AutoTokenizer.from_pretrained(model_name)
model = (
transformers.AutoModelForCausalLM.from_pretrained(
model_name,
)
.to("cuda:0")
.eval()
)
messages = [
{"role": "user", "content": "Hello, who are you?"}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
input_ids_cutoff = inputs.size(dim=1)
with torch.no_grad():
generated_ids = model.generate(
input_ids=inputs,
use_cache=True,
max_new_tokens=512,
temperature=0.2,
top_p=0.95,
do_sample=True,
eos_token_id=tokenizer.eos_token_id,
pad_token_id=tokenizer.pad_token_id,
)
completion = tokenizer.decode(
generated_ids[0][input_ids_cutoff:],
skip_special_tokens=True,
)
print(completion)
The model uses the same chat template as found in Mistral instruct models:
dtype: float16
merge_method: passthrough
slices:
- sources:
- model: abacaj/phi-2-super
layer_range: [0,2]
- sources:
- model: abacaj/phi-2-super
layer_range: [1,3]
- sources:
- model: abacaj/phi-2-super
layer_range: [2,4]
- sources:
- model: abacaj/phi-2-super
layer_range: [3,5]
- sources:
- model: abacaj/phi-2-super
layer_range: [4,6]
- sources:
- model: abacaj/phi-2-super
layer_range: [5,7]
- sources:
- model: abacaj/phi-2-super
layer_range: [6,8]
- sources:
- model: abacaj/phi-2-super
layer_range: [7,9]
- sources:
- model: abacaj/phi-2-super
layer_range: [8,10]
- sources:
- model: abacaj/phi-2-super
layer_range: [9,11]
- sources:
- model: abacaj/phi-2-super
layer_range: [10,12]
- sources:
- model: abacaj/phi-2-super
layer_range: [11,13]
- sources:
- model: abacaj/phi-2-super
layer_range: [12,14]
- sources:
- model: abacaj/phi-2-super
layer_range: [13,15]
- sources:
- model: abacaj/phi-2-super
layer_range: [14,16]
- sources:
- model: abacaj/phi-2-super
layer_range: [15,17]
- sources:
- model: abacaj/phi-2-super
layer_range: [16,18]
- sources:
- model: abacaj/phi-2-super
layer_range: [17,19]
- sources:
- model: abacaj/phi-2-super
layer_range: [18,20]
- sources:
- model: abacaj/phi-2-super
layer_range: [19,21]
- sources:
- model: abacaj/phi-2-super
layer_range: [20,22]
- sources:
- model: abacaj/phi-2-super
layer_range: [21,23]
- sources:
- model: abacaj/phi-2-super
layer_range: [22,24]
- sources:
- model: abacaj/phi-2-super
layer_range: [23,25]
- sources:
- model: abacaj/phi-2-super
layer_range: [24,26]
- sources:
- model: abacaj/phi-2-super
layer_range: [25,27]
- sources:
- model: abacaj/phi-2-super
layer_range: [26,28]
- sources:
- model: abacaj/phi-2-super
layer_range: [27,29]
- sources:
- model: abacaj/phi-2-super
layer_range: [28,30]
- sources:
- model: abacaj/phi-2-super
layer_range: [29,31]
- sources:
- model: abacaj/phi-2-super
layer_range: [30,32]