alt.freeweights.mistral / Mistral-7B-Instruct-v0.2
From: mistralai <huggingface.co/mistralai>Newsgroups: alt.freeweights.mistralSubject:

Mistral-7B-Instruct-v0.2

Date: 2026-11-14Commit: 63a8b08Signed: 2DC28CC7B26A283B ✓

Text generation model with 7.2B parameters. Safetensors weights, 29.5 GB in all. Published by mistralai under Apache-2.0.

7.2B params29.5GBMistral-7B-Instruct-v0.2safetensorspermissive
FactsParams7.2BSize29.5 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get mistralai/Mistral-7B-Instruct-v0.2
# manifest sha256 f8f4dfbde6d9… · 29.5 GB · 16 files
$ fw verify ./Mistral-7B-Instruct-v0.2 mistralai/Mistral-7B-Instruct-v0.2
From sourceHosted (signed)mistralai/Mistral-7B-Instruct-v0.2Last check: 2026-11-14 21:24 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
29.5 GB
Weights
14.5 GB (safetensors)
Parameters
7.2B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
16, each with a sha256
Publisher
mistralai
Added
2026-11-14
Section
alt.freeweights.mistral
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:24 UTCpassed

Model card

From the publisher at commit 63a8b08. Shown as plain text with links; images open at the publisher.

Model Card for Mistral-7B-Instruct-v0.2#

Encode and Decode with mistral_common#

from mistral_common.tokens.tokenizers.mistral import MistralTokenizer
from mistral_common.protocol.instruct.messages import UserMessage
from mistral_common.protocol.instruct.request import ChatCompletionRequest
 
mistral_models_path = "MISTRAL_MODELS_PATH"
 
tokenizer = MistralTokenizer.v1()
 
completion_request = ChatCompletionRequest(messages=[UserMessage(content="Explain Machine Learning to me in a nutshell.")])
 
tokens = tokenizer.encode_chat_completion(completion_request).tokens

Inference with mistral_inference#

from mistral_inference.transformer import Transformer
from mistral_inference.generate import generate
 
model = Transformer.from_folder(mistral_models_path)
out_tokens, _ = generate([tokens], model, max_tokens=64, temperature=0.0, eos_id=tokenizer.instruct_tokenizer.tokenizer.eos_id)

result = tokenizer.decode(out_tokens[0])

print(result)

Inference with hugging face transformers#

from transformers import AutoModelForCausalLM
 
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
model.to("cuda")
 
generated_ids = model.generate(tokens, max_new_tokens=1000, do_sample=True)

# decode with mistral tokenizer
result = tokenizer.decode(generated_ids[0].tolist())
print(result)

Tip. PRs to correct the transformers tokenizer so that it gives 1-to-1 the same results as the mistral_common reference implementation are very welcome!


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

Mistral-7B-v0.2 has the following changes compared to Mistral-7B-v0.1

  • 32k context window (vs 8k context in v0.1)
  • Rope-theta = 1e6
  • No Sliding-Window Attention

For full details of this model please read our paper and release blog post.

Instruction format#

In order to leverage instruction fine-tuning, your prompt should be surrounded by [INST] and [/INST] tokens. The very first instruction should begin with a begin of sentence id. The next instructions should not. The assistant generation will be ended by the end-of-sentence token id.

E.g.

text = "<s>[INST] What is your favourite condiment? [/INST]"
"Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!</s> "
"[INST] Do you have mayonnaise recipes? [/INST]"

This format is available as a chat template via the apply_chat_template() method:

from transformers import AutoModelForCausalLM, AutoTokenizer

device = "cuda" # the device to load the model onto

model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")

messages = [
    {"role": "user", "content": "What is your favourite condiment?"},
    {"role": "assistant", "content": "Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!"},
    {"role": "user", "content": "Do you have mayonnaise recipes?"}
]

encodeds = tokenizer.apply_chat_template(messages, return_tensors="pt")

model_inputs = encodeds.to(device)
model.to(device)

generated_ids = model.generate(model_inputs, max_new_tokens=1000, do_sample=True)
decoded = tokenizer.batch_decode(generated_ids)
print(decoded[0])

Troubleshooting#

  • If you see the following error:
Traceback (most recent call last):
File "", line 1, in
File "/transformers/models/auto/auto_factory.py", line 482, in from_pretrained
config, kwargs = AutoConfig.from_pretrained(
File "/transformers/models/auto/configuration_auto.py", line 1022, in from_pretrained
config_class = CONFIG_MAPPING[config_dict["model_type"]]
File "/transformers/models/auto/configuration_auto.py", line 723, in getitem
raise KeyError(key)
KeyError: 'mistral'

Installing transformers from source should solve the issue pip install git+https://github.com/huggingface/transformers

This should not be required after transformers-v4.33.4.

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, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, Gianna Lengyel, Guillaume Bour, Guillaume Lample, Lélio Renard Lavaud, Louis Ternon, Lucile Saulnier, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Théophile Gervet, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William El Sayed.

Files

16 files · 29.5 GBWeights 14.5 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 16 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md5.54 KBaa431f0f615eae0a34b895020db5ad43ae287b460d1300b5ee225a3f50ff2343
config.json596 B2e97da1b1d2b7e7669f0991c186904538c27d4ea56c4fc74e89215e2b2013922
generation_config.json111 B104f69e9625993a0839aff79b17f7a0aa73b0954ef8f7e7665aa50b5ef1d4454
model-00001-of-00003.safetensors4.94 GB63654d601820b88b1fa8b4a98df5714f700fbc5b3df2cc4ecbabdced35096d31
model-00002-of-00003.safetensors5.00 GBa42716540ecb2385d371f2109835921ff535406cac8fe8ff28f2f0b5fc7895bd
model-00003-of-00003.safetensors4.54 GB5f86e15cb3ed9078e30ae6e72445e109d0e337d9cde59b9aeea4ce8e44e54a5d
model.safetensors.index.json25.1 KB6d32424091caba25230b09cbae985a5f9252ecce3a722b03b88df17ad05be459
pytorch_model-00001-of-00003.bin4.94 GBd8836f675fe1c4c43f3ff4e93f4cc0e97ef7a13e8c240fb39ad02d37ff303ef5
pytorch_model-00002-of-00003.bin5.00 GB58a7ddffb463397de5dbe1f1e2ec1ccf6aae2b549565f83f3ded124e0b4c5069
pytorch_model-00003-of-00003.bin5.06 GB75824d68dcf82d02b731b2bdfd3a9711acb7c58b8d566f4c0d3e9efac52f9a21
pytorch_model.bin.index.json23.9 KB5fc5f5d86e6a6cea0356e34224ce999c5c3c955a1717ef450579fd161ac8d103
special_tokens_map.json414 B6fa06efa2785e450051989a6f8fb4416b10149ded485ddd3f127a40734f5cfd0
tokenizer.json1.80 MB11c08db21487c885d8c792180f0be237f6a261b89a46f128a6a80a3aa4bd1720
tokenizer.model493 KBdadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
tokenizer_config.json2.10 KB475361439e5c012de9dffdedc416a66a50f1a29f7aa80b375ba014fb13d6bb8a
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
63a8b08189 pinned now manifest updated, same commit2026-11-14 21:24 UTC16 files · 29.5 GB
63a8b081892026-11-14 21:24 UTC16 files · 29.5 GB

Use it

$ fw get mistralai/Mistral-7B-Instruct-v0.2
# manifest sha256 f8f4dfbde6d9… · 29.5 GB · 16 files
$ fw verify ./Mistral-7B-Instruct-v0.2 mistralai/Mistral-7B-Instruct-v0.2
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/mistralai/Mistral-7B-Instruct-v0.2.json --dir ./Mistral-7B-Instruct-v0.2 $ python3 fw.py verify ./Mistral-7B-Instruct-v0.2 ./mistralai__Mistral-7B-Instruct-v0.2.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mistralai/Mistral-7B-Instruct-v0.2 --revision 63a8b081895390a26e140280378bc85ec8bce07a --local-dir ./Mistral-7B-Instruct-v0.2
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2", revision="63a8b081895390a26e140280378bc85ec8bce07a") model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2", revision="63a8b081895390a26e140280378bc85ec8bce07a", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve mistralai/Mistral-7B-Instruct-v0.2 --revision 63a8b081895390a26e140280378bc85ec8bce07a

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
aa431f0f615eae0a34b895020db5ad43ae287b460d1300b5ee225a3f50ff2343
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: mistralai <huggingface.co/mistralai>Newsgroups: alt.freeweights.mistralSubject: Mistral-7B-Instruct-v0.2Date: 2026-11-14Commit: 63a8b08Signed: 2DC28CC7B26A283B ✓
Upstream
mistralai/Mistral-7B-Instruct-v0.2
Pinned commit
63a8b081895390a26e140280378bc85ec8bce07a
Manifest
Mistral-7B-Instruct-v0.2.json · .minisig
Manifest sha256
f8f4dfbde6d9490dbc53c141e38ef49095e298a7555132b6142cbb927a999590
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:24 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/mistralai/Mistral-7B-Instruct-v0.2.json $ curl -O https://freeweights.allternit.com/manifests/mistralai/Mistral-7B-Instruct-v0.2.json.minisig $ minisign -Vm Mistral-7B-Instruct-v0.2.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

1 model in the catalog name this one as their parent.

Fine-tunes
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mistralai/Mistral-7B-Instruct-v0.2
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Mistral-7B-Instruct-v0.2.json. Provenance. Takedown history: none.
From: bartowski <huggingface.co/bartowski>Subject: alamios_Mistral-Small-3.1-DRAFT-0.5B-GGUF
From: microsoft <huggingface.co/microsoft>Subject: chatbench-mistral-7b
From: NousResearch <huggingface.co/NousResearch>Subject: DeepHermes-3-Mistral-24B-Preview
From: mistralai <huggingface.co/mistralai>Subject: Devstral-Small-2-24B-Instruct-2512
From: mlx-community <huggingface.co/mlx-community>Subject: Devstral-Small-2-24B-Instruct-2512-4bit
From: mlx-community <huggingface.co/mlx-community>Subject: Devstral-Small-2-24B-Instruct-2512-6bit