anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
A 7B instruction-tuned chat model from Mistral, fine-tuned from Mistral-7B-v0.1 on public conversation datasets. Made for developers who want a small open model that follows prompts.
Mistral-7B-Instruct-v0.1 is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download mistralai/Mistral-7B-Instruct-v0.1
This model takes the Mistral-7B-v0.1 text generator and fine-tunes it to follow instructions, using several public conversation datasets. It has 7.2B parameters. The card presents it as a fast proof that the base model tunes well. Its design uses grouped-query attention, sliding-window attention and a byte-fallback BPE tokenizer.
It suits developers and researchers who want a small open chat model to test prompts, build prototypes or fine-tune further.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | App developers | Prototype a chat assistant on an open 7B model | A help bot for a small product |
| Research | NLP researchers | Use it as a baseline for fine-tuning or comparison | Comparing a tuned variant with this one |
| Education | Students | Learn how instruction formats and chat templates work | Building a prompt with the instruction tags |
| Data work | Analysts | Draft or rewrite short texts locally | Rewriting a short note in a plainer tone |
Skip it if you need a current, strongly aligned assistant, since the card presents this release as a demonstration.
| Use case | Who | What they get back |
|---|---|---|
| Chat replies | Developers | A written answer to a prompt |
| Prompt experiments | Researchers | Output you can compare across settings |
| Fine-tuning base | Developers | A starting point for a custom model |
pip install -U huggingface_hub hf download mistralai/Mistral-7B-Instruct-v0.1
You wrap each instruction in the INST tags, starting the first one with a begin-of-sentence token. The simplest way is the chat template in transformers, which builds that format from a list of messages. The card also shows the mistral_common tokenizer.
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
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1")
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)text = "<s>[INST] What is your favourite condiment? [/INST]"
| Tool | What it does |
|---|---|
| mistral_common | Encodes a chat request into tokens with the reference tokenizer |
| mistral_inference | Loads the model from a folder and generates tokens |
| transformers | Loads the model and generates text with generate |
| apply_chat_template | Builds the INST format from a list of messages |
You ask the model for a short explanation of machine learning, as the card does. The script encodes the request, the model generates up to 1000 new tokens, and the script decodes and prints the reply.
This is a small chat model that expects a particular prompt shape. A good first try is the card's nutshell question, run through the transformers code.
If you know the field, the card notes that the transformers tokenizer may not match the mistral_common reference exactly, and it invites fixes. The model uses grouped-query and sliding-window attention. The first instruction starts with a begin-of-sentence id, and the assistant reply ends with an end-of-sentence id.
A 7B instruction-tuned chat model from Mistral, fine-tuned from Mistral-7B-v0.1 on public conversation datasets. Made for developers who want a small open model that follows prompts.
Made by mistralai on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: This model takes the Mistral-7B-v0.1 text generator and fine-tunes it to follow instructions, using several public conversation datasets. It has 7.2B parameters. The card presents it as a fast proof that the base model tunes well. Its design uses grouped-query attention, sliding-window attention and a byte-fallback BPE tokenizer.
Who it suits: It suits developers and researchers who want a small open chat model to test prompts, build prototypes or fine-tune further.
Industry | Who uses it | How they use it | Example
Software | App developers | Prototype a chat assistant on an open 7B model | A help bot for a small product
Research | NLP researchers | Use it as a baseline for fine-tuning or comparison | Comparing a tuned variant with this one
Education | Students | Learn how instruction formats and chat templates work | Building a prompt with the instruction tags
Data work | Analysts | Draft or rewrite short texts locally | Rewriting a short note in a plainer tone
Skip it if you need a current, strongly aligned assistant, since the card presents this release as a demonstration.
Where to use it:
Use case | Who | What they get back
Chat replies | Developers | A written answer to a prompt
Prompt experiments | Researchers | Output you can compare across settings
Fine-tuning base | Developers | A starting point for a custom model
How to set it up:
pip install -U huggingface_hub
hf download mistralai/Mistral-7B-Instruct-v0.1
How to use it: You wrap each instruction in the INST tags, starting the first one with a begin-of-sentence token. The simplest way is the chat template in transformers, which builds that format from a list of messages. The card also shows the mistral_common tokenizer.
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
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1")
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)
text = "<s>[INST] What is your favourite condiment? [/INST]"
Tool | What it does
mistral_common | Encodes a chat request into tokens with the reference tokenizer
mistral_inference | Loads the model from a folder and generates tokens
transformers | Loads the model and generates text with generate
apply_chat_template | Builds the INST format from a list of messages
Example: You ask the model for a short explanation of machine learning, as the card does. The script encodes the request, the model generates up to 1000 new tokens, and the script decodes and prints the reply.
For newcomers and experts: This is a small chat model that expects a particular prompt shape. A good first try is the card's nutshell question, run through the transformers code.
If you know the field, the card notes that the transformers tokenizer may not match the mistral_common reference exactly, and it invites fixes. The model uses grouped-query and sliding-window attention. The first instruction starts with a begin-of-sentence id, and the assistant reply ends with an end-of-sentence id.
Wrap the instruction in INST tags
Encode the prompt into tokens
Model generates new tokens
Decode the tokens into text
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download mistralai/Mistral-7B-Instruct-v0.1
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Mistral-7B-Instruct-v0.1 This page | 105,736 | 1,878 | 7.2B | apache-2.0 | |
| Mistral-7B-v0.1Shares mistral · mistral-common · pytorch | 441,952 | 4,231 | 7.2B | apache-2.0 | |
| Mistral-7B-Instruct-v0.3Shares mistral · mistral-common · safetensors | 1,771,788 | 3,838 | 7.2B | apache-2.0 | |
| PLLuM-12B-chat-2512Shares mistral · text-generation · conversational | 815 | 7 | 415K | apache-2.0 | |
| Unity Coder 7BShares finetuned · safetensors | 146 | 4 | 7.6B | cc-by-4.0 | |
| ALLaM-7B-Instruct-previewShares pytorch · text-generation · conversational | 93,626 | 207 | 7B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.