Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MoECat-LLM

License Stars Forks Issues Last Commit

Python Node.js Scratch Unsloth Kaggle DeepSeek


Overview

MoECat is an end-to-end reasoning distillation pipeline for Scratch 3.0 algorithm education. The project converts 3K+ raw .sb3 algorithm works into standard scratchblocks pseudocode, then distills them via a top-tier reasoning LLM into high-quality JSONL corpora with <think> tags and deep algorithmic breakdowns, and finally fine-tunes lightweight MoE/LLM models under Kaggle's free dual-T4 GPU constraints.

Pipeline

.sb3 Raw Files
    |
    v
[1] Node.js AST Converter       (.sb3 --> scratchblocks pseudocode)
    |
    v
[2] LLM Distillation Skill      (single-item / read-and-destroy --> JSONL with <think>)
    |
    v
[3] Kaggle Fine-tuning          (Unsloth 4-bit QLoRA, dual T4)
    |
    v
MoECat Series Models
Stage Tool Output
Scratch Parsing Node.js + sb3 parser scratchblocks text
CoT Distillation DeepSeek-R1-Distill-Qwen-8B JSONL with <think> reasoning
Fine-tuning Unsloth + QLoRA 4-bit LoRA adapter weights

Target Model

DeepSeek-R1-Distill-Qwen-8B

Project Structure

MoECat-LLM/
β”œβ”€β”€ dataset_pipeline/
β”‚   β”œβ”€β”€ scratch_scraper.py           # Scratch project batch scraper (auto-converts to scratchblocks)
β”‚   β”œβ”€β”€ parse-sb3-blocks/            # Node.js sb3-to-scratchblocks converter
β”‚   β”‚   β”œβ”€β”€ cli.js                   # CLI entry point
β”‚   β”‚   β”œβ”€β”€ src/                     # Parser, block mapping, sanitizer source
β”‚   β”‚   β”œβ”€β”€ rollup.config.js         # Build config
β”‚   β”‚   └── package.json
β”‚   └── Compact-Reasoning-Distiller/ # Agent skill for CoT distillation
β”‚       β”œβ”€β”€ SKILL.md                 # Skill definition and workflow
β”‚       β”œβ”€β”€ get_unprocessed_id.py    # Tool: get next unprocessed project ID
β”‚       └── merge_dataset.py         # Tool: merge all entries into final JSONL
β”œβ”€β”€ fine_tune/                       # (planned) Unsloth QLoRA training scripts
β”œβ”€β”€ examples/                        # (planned) Advanced Scratch algorithm examples
β”œβ”€β”€ LICENSE
└── README.md

License

Apache-2.0

About

🐱 MoECat: The ultimate data pipeline and reasoning distillation framework for Scratch advanced algorithms. Converts .sb3 to scratchblocks and distills industrial CoT into lightweight LLMs.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages