How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="flohannes/mistral-7b-instruct-4bit-1k",
	filename="",
)
llm.create_chat_completion(
	messages = [
		{
			"role": "user",
			"content": "What is the capital of France?"
		}
	]
)

flohannes/mistral-7b-instruct-4bit-1k

The Model flohannes/mistral-7b-instruct-4bit-1k was converted to MLX format from mlx-community/Mistral-7B-Instruct-v0.2-4bit using mlx-lm version 0.17.1.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("flohannes/mistral-7b-instruct-4bit-1k")
response = generate(model, tokenizer, prompt="hello", verbose=True)
Downloads last month
17
Safetensors
Model size
1B params
Tensor type
F16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support