Gaurav-x111/sensei-origamiAI-v1
04
๐ฆข Sensei โ OrigamiAI Teaching Model (v1)
Sensei is a fine-tuned origami teaching assistant built for the OrigamiAI project. It teaches users how to fold origami step by step, with three distinct personality modes.
v1 โ baseline release. v2 in progress with improved accuracy.
Model Details
Evaluation (v1)
Evaluated using a custom origami-domain benchmark on 15 held-out step samples.
Note: ROUGE-L is intentionally low โ the model paraphrases rather than copies training data, which is correct behavior for a teaching assistant.
Personalities
Sensei supports three teaching styles injected via system prompt at runtime:
Usage
Ollama (recommended for local use)
FROM Gaurav-x111/sensei-origami-v1
SYSTEM You are Sensei Kami, a wise origami master. Teach origami step by step. Keep answers to 1-2 sentences.
PARAMETER repeat_penalty 1.3
PARAMETER temperature 0.3
PARAMETER num_predict 80
PARAMETER num_thread 8
PARAMETER num_ctx 2048
PARAMETER top_k 20
PARAMETER stop "\n\n"
TEMPLATE """<|im_start|>system
{{ .System }}<|im_end|>
<|im_start|>user
/no_think {{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""Python (transformers)
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Gaurav-x111/sensei-origami-v1")
tokenizer = AutoTokenizer.from_pretrained("Gaurav-x111/sensei-origami-v1")
prompt = "### Instruction:\nCrane step 3 done. Give encouragement.\n\n### Response:\n"
inputs = tokenizer(prompt, return_tensors="pt")
out = model.generate(**inputs, max_new_tokens=80, temperature=0.3, do_sample=True)
print(tokenizer.decode(out[0], skip_special_tokens=True).split("### Response:")[-1].strip())Training Data
- Source: 119 origami instruction pages scraped and labeled using
meta/llama-3.2-11b-vision-instruct - Format: Step-by-step fold instructions with fold type, direction, and location
- Augmented with: 60+ handcrafted encouragement Q&A pairs per avatar personality
- Pipeline:
ml/scrape.pyโml/label.pyโml/train.py
Project
Part of OrigamiAI โ a locally-runnable origami tutoring system with:
- Real-time hand + paper tracking (MediaPipe + OpenCV)
- 3D origami simulator sync (Origami Simulator + WebSocket)
- Three Sensei avatar personalities
- Full offline operation โ no cloud APIs
GitHub: Gaurav-x111/orikamiai
Roadmap
- v2 โ 10 epochs, 512 token context, improved knowledge score target 0.75+
- v3 โ full dataset expansion, multi-turn conversation support
License
Apache 2.0 โ free to use, modify, and distribute.
