Skip to main content

tujia-llm

LoRA weights and evaluation for Tujia language generation. First public release: v0.2 (research preview). v0.1 was internal only.

Status: research preview. Suitable for draft lookup and short-sentence translation, not for authoritative output. Exact word-lookup accuracy is 5.8%; sentence similarity is 0.45. See evaluation for details.

Model

Item Value
Base model Qwen/Qwen3-8B (base, not instruct); MLX conversion mlx-community/Qwen3-8B-bf16
Method LoRA, rank 16, 16 layers, scale 32, dropout 0.05
Weight size 74 MB (adapters.safetensors)
Training steps 35,000 + 12,000 continued
Target variety Northern Tujia, Longshan standard
License Research use only; see NOTICE

Download

Channel Location
ModelScope (MLX) TujiaNLP/tujia-llm-8b-v0.2
ModelScope (GGUF) TujiaNLP/tujia-llm-8b-v0.2-gguf
Hugging Face MLX adapter; GGUF repo is metadata only
GitHub Releases github.com/ibaibing/tujia-llm/releases → tujia-llm-8b-v0.2.tar.gz
PyPI pip install tujia-llm (Apple Silicon)

Install

Requirements: macOS 13+, Apple Silicon, Python 3.10+.

Memory Flag Download Notes
32 GB+ default (bf16) ~15 GB Reference quality
16 GB --precision 4bit ~4.5 GB Runs, but output degrades visibly (repetition, tone errors)
pip install tujia-llm                          # after the PyPI release
pip install dist/tujia_llm-0.2.0-py3-none-any.whl   # offline / local wheel

The wheel contains code only. Weights (74 MB) and the base model are downloaded on first run.

CLI

tujia-llm info                                  # backend, precision, memory
tujia-llm lookup 酒
tujia-llm translate "大家都过好日子。"
tujia-llm translate "大家都过好日子,土家人们都相好。" --split
tujia-llm translate "zɤ³⁵" --to zh
tujia-llm translate "zɤ³⁵" --to en

Options: --adapter (local directory or HF repo id), --precision auto|bf16|4bit, --max-tokens, --json.

tujia-llm lookup 酒 --adapter /path/to/adapter-dir --json

For development, python scripts/infer.py offers the same prompts without installation.

Windows / CPU (GGUF)

The MLX build is Apple Silicon only. For Windows, Linux, and Intel Macs use the GGUF build with llama.cpp or Ollama — see docs/windows-gguf.md.

File Size Memory
gguf/tujia-llm-8b-v0.2-Q4_K_M.gguf 4.7 GB 16 GB+
gguf/tujia-llm-8b-v0.2-f16.gguf 15 GB 20 GB+
ollama create tujia -f gguf/Modelfile
ollama run tujia "「酒」用土家语怎么说?"

Capabilities and limits

Works

  • Chinese word → Tujia form + IPA (reliable for high-frequency words)
  • Chinese short sentence → Tujia sentence (stable up to roughly 8 syllables)
  • Tujia sentence → English

Does not work

  • Authoritative translation, publication-grade text, legal or medical use
  • Folk songs, ritual language, and other low-resource registers
  • Southern Tujia (Luxi) and non-Longshan varieties such as Baojing
  • Out-of-vocabulary words: there is no refusal mechanism, so the model will invent forms

Evaluation summary

Metric Base v0.2
Lexicon 500, first-candidate exact 0% 5.8%
Lexicon 500, edit similarity 0.020* 0.511
Single-entry 250, similarity 0.024* 0.449
Sentences 100, similarity (split decoding) 0.082 0.451
Song lyrics, 12 lines, similarity — 0.583

* Base model evaluated on the first 100 items only, so not directly comparable to the full sets.

Full tables, dialect breakdowns, and failure modes: docs/eval-v0.2.md.

Prompt format

The model was trained on four fixed templates. Keep them unchanged at inference time:

「{Chinese word}」用土家语怎么说?
把这句话翻译成土家语:{Chinese sentence}
把这句话翻译成汉语:{Tujia sentence}
把这句话翻译成英语:{Tujia sentence}

Output uses mixed Ye pinyin / IPA notation with superscript tone digits, e.g. zɤ³⁵.

Layout

scripts/infer.py        inference example
docs/eval-v0.2.md       evaluation report
release/                release config and upload script
MODEL_CARD.md           model card
NOTICE                  usage boundaries

Citation

@misc{tujia-llm-v0.1,
  title  = {tujia-llm: LoRA adapter for Tujia language generation (v0.2)},
  author = {ibaibing},
  year   = {2026},
  note   = {Research preview}
}

Metadata

Release files for tujia-llm 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tujia-llm 0.2.0
File Size Uploaded Provenance Actions
tujia_llm-0.2.0.tar.gz 8.1 kB Without provenance Details for tujia_llm-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tujia-llm 0.2.0
File Interpreter ABI Platform Actions
tujia_llm-0.2.0-py3-none-any.whl Python 3 none any Details for tujia_llm-0.2.0-py3-none-any.whl

Total release size: 17.4 kB

Release files / tujia_llm-0.2.0.tar.gz

Download URL tujia_llm-0.2.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
65b064b6a9282b4a8fa3dbbcdf1430b85324f4974e6741f263f69d949060d075
BLAKE2b-256 checksum
How to use checksums
a640b918ea4a472d2f7268007886c21f512d035663a4c71342ebc2fbc0c5c239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / tujia_llm-0.2.0-py3-none-any.whl

Download URL tujia_llm-0.2.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d81055001c4a1c166bfec7d73e55887e387ebe23785df907408aca647edda6c
BLAKE2b-256 checksum
How to use checksums
311906cd83ecd99e6d33382a43b5dc4726c7b4afc93698035427521d81f6122e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for tujia-llm 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page