Instructions to use InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF", filename="Hyperion-1.5-Mistral-7B-iMat-IQ2_XS.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 InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF:IQ2_XS # Run inference directly in the terminal: llama-cli -hf InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF:IQ2_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF:IQ2_XS # Run inference directly in the terminal: llama-cli -hf InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF:IQ2_XS
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 InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF:IQ2_XS # Run inference directly in the terminal: ./llama-cli -hf InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF:IQ2_XS
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 InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF:IQ2_XS # Run inference directly in the terminal: ./build/bin/llama-cli -hf InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF:IQ2_XS
Use Docker
docker model run hf.co/InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF:IQ2_XS
- LM Studio
- Jan
- Ollama
How to use InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF with Ollama:
ollama run hf.co/InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF:IQ2_XS
- Unsloth Studio new
How to use InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-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 InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-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 InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF to start chatting
- Docker Model Runner
How to use InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF with Docker Model Runner:
docker model run hf.co/InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF:IQ2_XS
- Lemonade
How to use InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull InferenceIllusionist/Hyperion-1.5-Mistral-7B-iMat-GGUF:IQ2_XS
Run and chat with the model
lemonade run user.Hyperion-1.5-Mistral-7B-iMat-GGUF-IQ2_XS
List all available models
lemonade list
Hyperion-1.5-Mistral-7B-iMat-GGUF
New importance matrix quantizations for Hyperion-1.5-Mistral-7B. These i-quants have a better size to perplexity ratio as they were creating using an Importance Matrix file calculated from the fp16 (unquantized) gguf.
All files created using latest (3/2) llama.cpp build, including IQ3_S improvements covered here
This model excels in the domains of science, medicine, mathematics, and computer science.
All credits to Locutusque for the model and ikawrakow for stellar work on the new quants.
Model Card for Locutusque/Hyperion-1.5-Mistral-7B
Model Details
Model Name: Locutusque/Hyperion-1.5-Mistral-7B
Base Model: mistralai/Mistral-7B-v0.1
Publisher: M4-ai
Model Type: Question answering, conversational AI, code generation, medical text comprehension, mathematical reasoning, logical reasoning.
Language: Multi-domain, English language.
License: Apache-2.0
Model Description
Locutusque/Hyperion-1.5-Mistral-7B is a state-of-the-art language model fine-tuned on the Hyperion dataset for advanced reasoning across scientific domains. This model is designed to handle complex inquiries and instructions, leveraging the diverse and rich information contained in the Hyperion dataset. Its primary use cases include but are not limited to complex question answering, conversational understanding, code generation, medical text comprehension, mathematical reasoning, and logical reasoning.
Intended Use
This model is intended for researchers and practitioners looking for a powerful tool to tackle challenging problems in scientific domains. It can be used in the following scenarios:
- AI-driven tutoring systems for science, medicine, mathematics, and computer science.
- Assistive tools for professionals requiring fast and accurate domain-specific information retrieval.
- Platforms that require conversational AI capabilities with a focus on technical and scientific reasoning.
- Automation in code generation and understanding complex programming context.
Training Data
The Locutusque/Hyperion-1.5-Mistral-7B model was fine-tuned on the Hyperion-v1.5 dataset, which amalgamates various datasets rich in diversity and complexity, including programming, medical texts, mathematical problems, and reasoning tasks.
Evaluation Results
Coming soon...
How to Use
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Locutusque/Hyperion-1.5-Mistral-7B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# For a text generation task
input_text = "<|im_start|>user\nWhat are the implications of Einstein's theory of relativity in modern physics?<|im_end|>\n<|im_start|>assistant\n"
input_ids = tokenizer.encode(input_text, return_tensors="pt")
# Generate a response
outputs = model.generate(input_ids, max_length=200, num_return_sequences=1, temperature=0.8, top_p=0.95, top_k=40, repetition_penalty=1.1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Known Limitations
The diversity of the dataset could lead to inconsistencies in the model's responses due to variations in data formatting and annotation quality.
Licensing Information
This model is released under the Apache-2.0 license.
Citation Information
If you use Locutusque/Hyperion-1.5-Mistral-7B in your research, please cite the Hyperion dataset as follows:
@misc{sebastian_gabarain_2024,
title = {Hyperion-1.5: Illuminating the Path to Advanced Reasoning with a High-Quality, Multidisciplinary Question Answering Dataset},
author = {Sebastian Gabarain},
publisher = {HuggingFace},
year = {2024},
url = {https://huggingface.co/datasets/Locutusque/hyperion-v1.5}
}
- Downloads last month
- 25
2-bit
3-bit
4-bit
