YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

🌟 Mistral-7B-Instruct GGUF - Quantized Model

This repository hosts a quantized version of Mistralai/Mistral-7B-Instruct-v0.3 in GGUF format, optimized for efficient inference using llama.cpp or compatible libraries.

πŸ“Œ Model Details

πŸš€ How to Use

You can use this model with llama.cpp, ctransformers, or text-generation-webui.

Using llama-cpp-python

from llama_cpp import Llama

model_path = "mistral-7b-instruct-v0.3.gguf"  # Path to downloaded model
llm = Llama(model_path=model_path, n_ctx=2048)

response = llm("What is Retrieval-Augmented Generation?")
print(response)

Using ctransformers

from ctransformers import AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained(
    "Noorhan/Chatbot_Education_2",
    model_file="mistral-7b-instruct-v0.3.gguf",
    model_type="mistral"
)

response = model("Explain the importance of RAG for AI-powered chatbots.")
print(response)

πŸ›  Running in a Hugging Face Space

To deploy this model in a Hugging Face Space, ensure your app.py script loads the GGUF model using llama-cpp and provides an API for inference.

Example Space setup:

  • requirements.txt
llama-cpp-python
streamlit
  • app.py
import streamlit as st
from llama_cpp import Llama

st.title("πŸ”Ή Mistral-7B-Instruct Chatbot")

model_path = "mistral-7b-instruct-v0.3.gguf"
llm = Llama(model_path=model_path, n_ctx=2048)

query = st.text_input("Ask a question:")
if query:
    response = llm(query)
    st.write(response["choices"][0]["text"])

πŸ“œ License & Usage

This model is a quantized version of Mistralai/Mistral-7B-Instruct-v0.3. Make sure to follow Mistral AI's license when using this model for deployment or research.

πŸ”— Links


βœ… If you find this model useful, give it a ⭐ on Hugging Face!

Downloads last month
1
GGUF
Model size
7B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support