Downloads · 30 days
111
7% of all-time downloads
olafgeibig/phi-2-OpenHermes-2.5-GGUF
phi-2-OpenHermes-2.5-GGUF is a machine learning model from olafgeibig. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
111
7% of all-time downloads
All-time downloads
1.5K
Public
Repo size
6 GB
Likes
5
Public
Click a slice to open those files.
.gguf6 GB · 100%
From the Hugging Face model README
I converted minghaowu/phi-2-OpenHermes-2.5 to GGUF and quantized it to my favorite quantizations. A phi-2 fine-tuned on OpenHermes-2.5.
I quickly quantized this model using a modified version of AutoGGUF from Maxime Labonne
The prompt format is a little bit guesswork but it seems to work. Here is my Ollama modelfile:
FROM ./phi-2-openhermes-2.5.Q5_K_M.gguf
PARAMETER num_ctx 2048
TEMPLATE """{{ .System }}
### USER: {{ .Prompt }}<|endoftext|>
### ASSISTANT:
"""
PARAMETER stop "<|endoftext|>"
Many Kudos to Microsoft, Teknium and [Minghao Wu]((https://huggingface.co/minghaowu)
This model is a fine-tuned version of microsoft/phi-2 on the teknium/OpenHermes-2.5 dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
model_id = "minghaowu/phi-2-OpenHermes-2.5"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, device_map="auto")
your_instruction = <your_instruction>
infer_prompt = f"### USER: {your_instruction} <|endoftext|>\n### ASSISTANT:"
output = pipe(infer_prompt, do_sample=True, max_new_tokens=256)[0]["generated_text"]
print(output)