CoolFace
Modelpublic

dubito-inc/gan-cao-v3.2-qwen

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
0likes11downloads
Model Card

๐ŸŒฟ Gan Cao v3.2

A 229M Parameter Bilingual TCM Model | MASSIF Accelerator Class

![MASSIF Class](https://github.com/Ergo-sum-AGI/massif-llm) ![ฯ„_eff](https://github.com/Ergo-sum-AGI/massif-llm) ![License](https://www.apache.org/licenses/LICENSE-2.0) ![Model Size](https://huggingface.co/dubito-inc/gan-cao-v3.2-qwen) ![Tokenizer](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct)


Overview

Gan Cao v3.2 is a 229M parameter bilingual language model fine-tuned for Traditional Chinese Medicine (TCM) and Eastern philosophy. It is built on the MASSIF architecture (Pre-LN + RMSNorm + SwiGLU + RoPE) with a Qwen tokenizer for proper Chinese character handling.

Unlike earlier versions that used GPT-2 tokenizer (which fragmented Chinese characters), v3.2 uses Qwen's tokenizer for accurate Chinese text representation.

Key Improvements from v3

Aspectv3v3.2
TokenizerGPT-2 (fragments Chinese)Qwen (proper Chinese tokens)
Parameters63.5M229M
d_model512768
n_layers1216
n_heads812
ฯ„_eff0.58 (Neutral)0.68 (Accelerator)
Training Data85 bilingual pairs6 streaming datasets (10k steps)

MASSIF Classification

Under the MASSIF taxonomy (Solis, 2026), Gan Cao v3.2 achieves Accelerator Class:

MetricValueThreshold
ฯ„_eff0.68> 0.55 (Accelerator)
Loss Drop109 โ†’ 38-65%
ArchitecturePre-LN + RMSNorm + SwiGLU + RoPEValidated

Evolution Across Versions

ModelParamsฯ„_effClass
Gan Cao v163.5M0.00Neutral
Gan Cao v263.5M0.58Neutral
Gan Cao v363.5M0.93*Accelerator*
Gan Cao v3.2229M0.68Accelerator

*Note: v3 measurement used conversational prompts; v3.2 uses N=50 stress protocol for comparability with taxonomy.


Architecture

ComponentValue
d_model768
n_layers16
n_heads12
d_head64
Vocab Size151,643 (Qwen)
Context Length512
Total Parameters229M
ArchitecturePre-LN + RMSNorm + SwiGLU + RoPE
Position EncodingRoPE (Rotary Position Embedding)
ActivationSwiGLU

Training Data

Gan Cao v3.2 was trained on 6 streaming datasets (10,000 steps, 8-hour training on NVIDIA T4):

DatasetWeightContent
TCM Pretrain (ShizhenGPT)25%5B tokens TCM medical texts
Classical Chinese (ctext)20%Pre-Qin philosophy, classical grammar
Buddhist Canon15%Chinese Buddhist scriptures
Ancient Documents (ByteDance)15%Classical โ†’ Modern translations
TCM Chat15%Clinical TCM conversations
Chinese Poetry10%Tang poems (Daoist/Buddhist themes)

Total training composition: 90% medical corpora, 10% philosophical context


Usage

Installation

bash
pip install transformers torch