SAVRN
Search Contact SAVRN

Open-weight model

invert-polarity-4f1572ae-acda-4a53-84f6-70172be6d2d7

by Muhamad Abdurahman muhamad-geosurge/invert-polarity-4f1572ae-acda-4a53-84f6-70172be6d2d7

The Mistral-7B-Instruct-v0.3 Large Language Model (LLM) is an instruct fine-tuned version of the Mistral-7B-v0.3.

Parameters7.2B
Context32,768
Weights14.5 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads

Runs On

What it takes to serve invert-polarity-4f1572ae-acda-4a53-84f6-70172be6d2d7 (7.2B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 14.5 GB 17.4 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 7.2 GB 8.7 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 3.6 GB 4.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By Muhamad Abdurahman, published under apache-2.0, revision 5d1e5917b0f2.

The Mistral-7B-Instruct-v0.3 Large Language Model (LLM) is an instruct fine-tuned version of the Mistral-7B-v0.3. Mistral-7B-v0.3 has the following changes compared to Mistral-7B-v0.2 It is recommended to use mistralai/Mistral-7B-Instruct-v0.3 with mistral-inference. For HF transformers code snippets, please keep scrolling. After installing mistralinference, a mistral-chat CLI command should be available in your environment. You can chat with the model using If you want to use Hugging Face transformers to generate text, you can do something like this. To use this example, you'll need transformers version 4.42.0 or higher. Please see the in the transformers docs for more information. Note…

Read Muhamad Abdurahman's full model card

Model Card for Mistral-7B-Instruct-v0.3

The Mistral-7B-Instruct-v0.3 Large Language Model (LLM) is an instruct fine-tuned version of the Mistral-7B-v0.3.

Mistral-7B-v0.3 has the following changes compared to Mistral-7B-v0.2 - Extended vocabulary to 32768 - Supports v3 Tokenizer - Supports function calling

Installation

It is recommended to use mistralai/Mistral-7B-Instruct-v0.3 with mistral-inference. For HF transformers code snippets, please keep scrolling.

pip install mistral_inference

Download

from huggingface_hub import snapshot_download
from pathlib import Path

mistral_models_path = Path.home().joinpath('mistral_models', '7B-Instruct-v0.3')
mistral_models_path.mkdir(parents=True, exist_ok=True)

snapshot_download(repo_id="mistralai/Mistral-7B-Instruct-v0.3", allow_patterns=["params.json", "consolidated.safetensors", "tokenizer.model.v3"], local_dir=mistral_models_path)

Chat

After installing mistral_inference, a mistral-chat CLI command should be available in your environment. You can chat with the model using

mistral-chat $HOME/mistral_models/7B-Instruct-v0.3 --instruct --max_tokens 256

Instruct following

from mistral_inference.transformer import Transformer
from mistral_inference.generate import generate

from mistral_common.tokens.tokenizers.mistral import MistralTokenizer
from mistral_common.protocol.instruct.messages import UserMessage
from mistral_common.protocol.instruct.request import ChatCompletionRequest


tokenizer = MistralTokenizer.from_file(f"{mistral_models_path}/tokenizer.model.v3")
model = Transformer.from_folder(mistral_models_path)

completion_request = ChatCompletionRequest(messages=[UserMessage(content="Explain Machine Learning to me in a nutshell.")])

tokens = tokenizer.encode_chat_completion(completion_request).tokens

out_tokens, _ = generate([tokens], model, max_tokens=64, temperature=0.0, eos_id=tokenizer.instruct_tokenizer.tokenizer.eos_id)
result = tokenizer.instruct_tokenizer.tokenizer.decode(out_tokens[0])

print(result)

Function calling

from mistral_common.protocol.instruct.tool_calls import Function, Tool
from mistral_inference.transformer import Transformer
from mistral_inference.generate import generate

from mistral_common.tokens.tokenizers.mistral import MistralTokenizer
from mistral_common.protocol.instruct.messages import UserMessage
from mistral_common.protocol.instruct.request import ChatCompletionRequest


tokenizer = MistralTokenizer.from_file(f"{mistral_models_path}/tokenizer.model.v3")
model = Transformer.from_folder(mistral_models_path)

completion_request = ChatCompletionRequest(
    tools=[
        Tool(
            function=Function(
                name="get_current_weather",
                description="Get the current weather",
                parameters={
                    "type": "object",
                    "properties": {
                        "location": {
                            "type": "string",
                            "description": "The city and state, e.g. San Francisco, CA",
                        },
                        "format": {
                            "type": "string",
                            "enum": ["celsius", "fahrenheit"],
                            "description": "The temperature unit to use. Infer this from the users location.",
                        },
                    },
                    "required": ["location", "format"],
                },
            )
        )
    ],
    messages=[
        UserMessage(content="What's the weather like today in Paris?"),
        ],
)

tokens = tokenizer.encode_chat_completion(completion_request).tokens

out_tokens, _ = generate([tokens], model, max_tokens=64, temperature=0.0, eos_id=tokenizer.instruct_tokenizer.tokenizer.eos_id)
result = tokenizer.instruct_tokenizer.tokenizer.decode(out_tokens[0])

print(result)

Generate with transformers

If you want to use Hugging Face transformers to generate text, you can do something like this.

from transformers import pipeline

messages = [
    {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
    {"role": "user", "content": "Who are you?"},
]
chatbot = pipeline("text-generation", model="mistralai/Mistral-7B-Instruct-v0.3")
chatbot(messages)

Function calling with transformers

To use this example, you'll need transformers version 4.42.0 or higher. Please see the function calling guide in the transformers docs for more information.

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "mistralai/Mistral-7B-Instruct-v0.3"
tokenizer = AutoTokenizer.from_pretrained(model_id)

def get_current_weather(location: str, format: str):
    """
    Get the current weather

    Args:
        location: The city and state, e.g. San Francisco, CA
        format: The temperature unit to use. Infer this from the users location. (choices: ["celsius", "fahrenheit"])
    """
    pass

conversation = [{"role": "user", "content": "What's the weather like in Paris?"}]
tools = [get_current_weather]


# format and tokenize the tool use prompt 
inputs = tokenizer.apply_chat_template(
            conversation,
            tools=tools,
            add_generation_prompt=True,
            return_dict=True,
            return_tensors="pt",
)

model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")

inputs.to(model.device)
outputs = model.generate(**inputs, max_new_tokens=1000)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Note that, for reasons of space, this example does not show a complete cycle of calling a tool and adding the tool call and tool results to the chat history so that the model can use them in its next generation. For a full tool calling example, please see the function calling guide, and note that Mistral does use tool call IDs, so these must be included in your tool calls and tool results. They should be exactly 9 alphanumeric characters.

Limitations

The Mistral 7B Instruct model is a quick demonstration that the base model can be easily fine-tuned to achieve compelling performance. It does not have any moderation mechanisms. We're looking forward to engaging with the community on ways to make the model finely respect guardrails, allowing for deployment in environments requiring moderated outputs.

The Mistral AI Team

Albert Jiang, Alexandre Sablayrolles, Alexis Tacnet, Antoine Roux, Arthur Mensch, Audrey Herblin-Stoop, Baptiste Bout, Baudouin de Monicault, Blanche Savary, Bam4d, Caroline Feldman, Devendra Singh Chaplot, Diego de las Casas, Eleonore Arcelin, Emma Bou Hanna, Etienne Metzger, Gianna Lengyel, Guillaume Bour, Guillaume Lample, Harizo Rajaona, Jean-Malo Delignon, Jia Li, Justus Murke, Louis Martin, Louis Ternon, Lucile Saulnier, Lélio Renard Lavaud, Margaret Jennings, Marie Pellat, Marie Torelli, Marie-Anne Lachaux, Nicolas Schuhl, Patrick von Platen, Pierre Stock, Sandeep Subramanian, Sophia Yang, Szymon Antoniak, Teven Le Scao, Thibaut Lavril, Timothée Lacroix, Théophile Gervet, Thomas Wang, Valera Nemychnikova, William El Sayed, William Marshall

Configuration

Architecture
MistralForCausalLM
Context length (tokens)
32,768
Layers
32
Hidden size
4,096
Feed-forward size
14,336
Attention heads
32
Key/value heads
8
Head dimension
128
Vocabulary size
32,769
Model type
mistral

Identity and Version

Repository
muhamad-geosurge/invert-polarity-4f1572ae-acda-4a53-84f6-70172be6d2d7
Publisher
Muhamad Abdurahman
Task
Not stated by the source
Modality
Other
Library
vllm
Parameters
7.2B parameters
Languages
Not stated by the source
Revision
5d1e5917b0f21e6a845b458ca0e373e25f5d93b2
First published
2026-09-18
Last updated
2026-09-18

Files and Weights

16 files, 14.5 GB in total. The weights are 1 file totalling 14.5 GB in safetensors.

Weights1 file · 14.5 GB
Configuration6 files · 14.4 KB
Tokenizer2 files · 3.7 MB
Documentation1 file · 7.9 KB
Other5 files · 12.7 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights14.5 GB 8fc31d54bcc7
config.jsonConfiguration689 B
generation_config.jsonConfiguration116 B
params.jsonConfiguration202 B
ticket_config.jsonConfiguration782 B
training_journal.jsonConfiguration11.0 KB
training_metrics.jsonConfiguration1.7 KB
README.mdDocumentation7.9 KB
chat_template.jinjaOther4.0 KB
outlandish.jsonlOther1.9 KB
theme_prompts.txtOther462 B
training_heavy_gates.jsonlOther
training_journal.jsonlOther6.4 KB
.gitattributesRepository1.5 KB
tokenizer.jsonTokenizer3.7 MB
tokenizer_config.jsonTokenizer4.7 KB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
14.5 GB
Download from Muhamad Abdurahman

Released by Muhamad Abdurahman through its official repository on Hugging Face. Read the license.

Built From

  • Derived from mistralai/Mistral-7B-v0.3

Memory Requirements

PrecisionWeights in memory
As published14.5 GB
16-bit14.5 GB
8-bit7.2 GB
4-bit3.6 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About invert-polarity-4f1572ae-acda-4a53-84f6-70172be6d2d7

How much GPU memory does invert-polarity-4f1572ae-acda-4a53-84f6-70172be6d2d7 need?

About 17.4 GB at 16-bit and 4.3 GB at 4-bit: the weights (7.2B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run invert-polarity-4f1572ae-acda-4a53-84f6-70172be6d2d7 on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use invert-polarity-4f1572ae-acda-4a53-84f6-70172be6d2d7 commercially?

Yes. invert-polarity-4f1572ae-acda-4a53-84f6-70172be6d2d7 is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is invert-polarity-4f1572ae-acda-4a53-84f6-70172be6d2d7's context length?

32,768 tokens, from the maximum position embeddings in its published configuration.