Xinghe1-9B (杏核1代-9B)

Xinghe1-9B (杏核) is a specialized large language model fine-tuned for the formalization, computational derivation, and clinical reasoning of Huangdi Neijing. It is based on the Qwen3.5-9B-Instruct architecture and trained using the V3 Double-Purity SFT dataset.

This model is designed to systematize classical Traditional Chinese Medicine (TCM) theories into a formal mathematical framework using phase space physics and system dynamics.

Model Details

  • Developed by: zsyjsld
  • Base Model: Qwen/Qwen3.5-9B-Instruct
  • Fine-tuning Method: QLoRA SFT (195 steps, 3 epochs) on a single RTX 3090 GPU.
  • Language(s): English & LaTeX (Internal reasoning formulas), English (Output explanations)
  • License: Apache 2.0 (for code/dataset) & Qwen License Agreement (for model weights)

Technical Architecture

Xinghe1-9B is trained to strictly bind clinical concepts and perform dynamical derivations inside the <think> tag, and output natural, clean clinical TCM analyses outside the <think> tag.

The internal derivation is based on the unified meta-framework:

x˙=F(x)+G(x,μ(t))\dot{x} = F(x) + G(x, \mu(t))

y=h(x)+ϵy = h(x) + \epsilon

  • $x(t)$ (Yin-Yang Dynamics): Described by the formal function $F(x)$, representing self-organization and negative feedback.
  • $G(x, \mu)$ (Sheng Qi / Vital Force): The primary driver of life, composed of three levels of reserves (Wei Qi -> Zong Qi -> Zang Zhen).
  • $\mu(t)$ (Time / Seasonal Parameter): Time-varying external control inputs mimicking seasons and diurnal rhythms.
  • $h(x)$ (Observation / Xiang Siwei): The four-channel observer (pulse, color, voice, dream) with biological/pathological noise $\epsilon$.

Usage

You can load this model using Hugging Face Transformers:

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "zsyjsld/Xinghe1-9B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype="auto")

prompt = "In the process of warm disease, the patient's fever does not recede after sweating, but rises again. The pulse is rapid and restless and does not subside with sweating. It is accompanied by wild talk and inability to eat. This pattern is called Yin-Yang Separation (Yin Yang Jiao). What is the underlying mechanism of life-death transition?"
messages = [
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)

generated_ids = model.generate(**model_inputs, max_new_tokens=1024)
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)

Citation

If you find this project or model useful, please cite our project page:

@misc{xinghe1_9b,
  author = {zsyjsld},
  title = {Xinghe1-9B: Formally Modeling Huangdi Neijing},
  year = {2026},
  publisher = {Hugging Face / ModelScope},
  howpublished = {\url{https://huggingface.co/zsyjsld/Xinghe1-9B}}
}
Downloads last month
98
Safetensors
Model size
9B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for zsyjsld/Xinghe1-9B

Quantizations
1 model