Downloads · 30 days
28
5% of all-time downloads
Lautloserspieler/mistral-code-architect-7b
mistral-code-architect-7b is a text generation model from Lautloserspieler. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Mistral Code Architect 7B is a highly specialized, locally fine-tuned large language model designed for advanced software development, deep debugging, and cybersecurity analysis. It has been trained to act as an auton…
Downloads · 30 days
28
5% of all-time downloads
All-time downloads
588
Public
Repo size
4.4 GB
Likes
3
Public
Click a slice to open those files.
.gguf4.4 GB · 100%
From the Hugging Face model README
Mistral Code Architect 7B is a highly specialized, locally fine-tuned large language model designed for advanced software development, deep debugging, and cybersecurity analysis. It has been trained to act as an autonomous coding assistant that provides robust, production-ready code and reasoning traces.
q4_k_m)unsloth/mistral-7b-instruct-v0.3-bnb-4bitThe model was fine-tuned using a curated mix of approximately 25,000 high-quality coding and security samples. The training pipeline heavily utilized packing (packing=True) to maximize context efficiency during the QLoRA fine-tuning process.
The dataset mixture includes:
Since this model is provided in the highly efficient .gguf format, you can easily run it locally using Ollama. The model is trained to dynamically adapt to the user's language.
1. Download the Model:
Download the Mistral-Code-Architect-7b.gguf file from the Files and versions tab.
2. Create a Modelfile:
In the same directory as your downloaded .gguf file, create a file named Modelfile and paste the following configuration. This includes a dynamic system prompt to ensure the model mirrors your language:
FROM ./Mistral-Code-Architect-7b.gguf
SYSTEM "You are an expert software developer and architect. Always respond in the exact language the user is speaking. If the user writes in English, reply in English. If the user writes in German, reply in German. Provide precise, secure, and highly technical answers."
TEMPLATE "{{ if .System }}<|im_start|>system\n{{ .System }}<|im_end|>\n{{ end }}{{ if .Prompt }}<|im_start|>user\n{{ .Prompt }}<|im_end|>\n{{ end }}<|im_start|>assistant\n{{ .Response }}<|im_end|>"
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"
3. Build and Run: Open your terminal in that directory and run:
ollama create code-architect -f Modelfile
ollama run code-architect
⚠️ Limitations: While highly capable in generating code and identifying vulnerabilities, this model can still hallucinate complex APIs or suggest outdated libraries. Always review and test the generated code before deploying it to a production environment. The model is specifically fine-tuned for software engineering tasks and might underperform on general creative writing tasks.