A LoRA fine-tune of
gemma-2-2b-it that writes Socratic mathematics hints for
STACK questions
without revealing answers, packaged for
in-browser use with
WebLLM. Built for the Moodle plugin
local_stackhinter (the plugin's
"custom on-device model" setting), where the model runs entirely in the student's browser:
no API key, and the teacher answer never leaves the server.
1const appConfig = {model_list: [{
2 model: "https://huggingface.co/dcregg/hintgemma-dpo-q4f16_1-MLC",
3 model_id: "hintgemma-dpo-q4f16_1-MLC",
4 model_lib: "https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/web-llm-models/v0_2_84/base/gemma-2-2b-it-q4f16_1_cs1k-webgpu.wasm",
5 overrides: {context_window_size: 4096},
6}]};
7const engine = await webllm.CreateMLCEngine("hintgemma-dpo-q4f16_1-MLC", {appConfig});
Derivative of Gemma (Google), distributed under and subject to the
Gemma Terms of Use. Fine-tuning data was synthetic
mathematics-tutoring text generated and judged by open models; no student or personal data.