Views
No views yet
peft and transformers libraries.1from peft import PeftModel
2from transformers import AutoModelForCausalLM
3
4# 1. Load the base model
5base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-Small-24B-Instruct-2501")
6
7# 2. Load the EleMo-Alpha-1 Adapter
8model = PeftModel.from_pretrained(base_model, "Earlychildhoodeducation/EleMo-Alpha-1-LoRA")
9
10---
11
12### ⚙️ How to use the LoRA Adapter
13
14To apply these pedagogical weights, you need to combine this adapter with the base model.
15
16#### Recommended Workflow (e.g., in LM Studio)
171. **Load Base Model:** Ensure the base model `mistralai/Mistral-Small-24B-Instruct-2501` (GGUF) is loaded in your application.
182. **Apply Adapter:** Navigate to the "Fine-tuning / Adapters" section in your tool.
193. **Load Weights:** Add this LoRA adapter. LM Studio will dynamically merge these weights with the base model to apply the specific EleMo-pedagogy.
204. **Pedagogical Settings:** Configure your system prompt to focus on the Margaret Carr documentation framework to achieve the best results.
21
22> **💡 Requirement:** This adapter is fine-tuned specifically for the `Mistral-Small-24B` architecture. Ensure your base model matches this version for optimal performance.
23
24---
25*For the easy-to-use version (no configuration required), visit our [Base-Model Repository]