🎓 EduFlowAI Gemma 3 4B GGUF (Vietnamese Exam & Quiz Generator)

Made with Unsloth

EduFlowAI Gemma 3 4B GGUF is a specialized instruction-tuned language model designed for Vietnamese educational assessment, automatic question extraction, and quiz generation for the EduFlow Multi-Tenant SaaS LMS.

It is quantized and packaged in GGUF format for direct, high-performance offline inference via Ollama, LM Studio, and llama.cpp on Apple Silicon (M1/M2/M3/M4), Windows, and Linux.


⚡ Quickstart with Ollama (Single Command)

You can run this model locally with zero setup using Ollama:

# Run optimal 4-bit quantized version (~2.4 GB, ~25-35 tokens/sec on Apple Silicon)
ollama run hf.co/sangtran12/eduflowai-gemma4b-gguf:Q4_K_M

# Or run high-precision 8-bit quantized version (~3.9 GB)
ollama run hf.co/sangtran12/eduflowai-gemma4b-gguf:Q8_0

📦 Available GGUF Quantizations

File Size RAM Required Best Use Case
gemma-3-4b-it.Q4_K_M.gguf 2.4 GB $\ge$ 4 GB Recommended: Best balance of speed, low memory, and near-lossless JSON syntax validity.
gemma-3-4b-it.Q8_0.gguf 3.9 GB $\ge$ 6 GB High-precision evaluation, benchmark replication, academic verification.
gemma-3-4b-it.BF16-mmproj.gguf 812 MB - Multimodal vision-language projection asset from base Gemma 3.

🎯 Key Capabilities

  • VNHSGE Exam Parsing: Parses past exam papers (Đề thi Tốt nghiệp THPT Quốc gia) across STEM (Toán, Lý, Hóa, Sinh) and Social Sciences (Sử, Địa, GDCD, Tiếng Anh).
  • Strict Schema Adherence: Outputs strict JSON arrays directly consumable by EduFlow SaaS without manual post-processing:
    • type: mcq (multiple choice), true_false, fill_blank, short_answer.
    • content: Extracted question body.
    • options: 4 standardized choices (A, B, C, D).
    • correct_index: 0-indexed correct answer (0: A, 1: B, 2: C, 3: D).
    • difficulty: easy, medium, hard.
    • points: Fractional scoring on Vietnamese 10-point scale (e.g. 0.25).
  • LaTeX Formula Preservation: Mathematical and chemical notation are automatically formatted in KaTeX/LaTeX (e.g. $Al^{3+}$, $H_2SO_4$, $\int_0^1 f(x)dx$).

💻 Sample Usage & Prompting

Prompt:

<start_of_turn>user
Bạn là chuyên gia trích xuất đề thi THPT Quốc gia. Hãy chuyển đổi văn bản đề thi sau thành mảng JSON theo chuẩn EduFlow:

Câu 1: Kim loại nào sau đây có nhiệt độ nóng chảy cao nhất?
A. Na.    B. K.    C. Cu.    D. W.
Câu 2: Dung dịch nào sau đây làm quỳ tím chuyển sang màu đỏ?
A. HCl.   B. NaOH. C. NaCl.  D. Ba(OH)2.
<end_of_turn>
<start_of_turn>model

Response:

[
  {
    "type": "mcq",
    "content": "Câu 1: Kim loại nào sau đây có nhiệt độ nóng chảy cao nhất?",
    "options": ["Na.", "K.", "Cu.", "W."],
    "correct_index": 3,
    "difficulty": "medium",
    "points": 0.25,
    "subject": "chemistry"
  },
  {
    "type": "mcq",
    "content": "Câu 2: Dung dịch nào sau đây làm quỳ tím chuyển sang màu đỏ?",
    "options": ["HCl.", "NaOH.", "NaCl.", "Ba(OH)2."],
    "correct_index": 0,
    "difficulty": "medium",
    "points": 0.25,
    "subject": "chemistry"
  }
]

🏛️ Research Context (Master's Thesis)

  • Author: Trần Quang Sang (Student ID: 24MSE23205)
  • Program: Master of Software Engineering (MSE), FPT University
  • Supervisor: Dr. Nguyễn Xuân Sâm
  • Topic: Investigating trade-offs between Parameter-Efficient Fine-Tuning (QLoRA vs LoRA) and inference validity for Vietnamese Educational Systems.
Downloads last month
155
GGUF
Model size
4B params
Architecture
gemma3
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for sangtran12/eduflowai-gemma4b-gguf

Quantized
(487)
this model