openbmb / BitCPM-CANN-0.5B

huggingface.co
Total runs: 2.5K
24-hour runs: 0
7-day runs: 85
30-day runs: -7.5K
Model's Last Updated: Mayo 24 2026
text-generation

Introduction of BitCPM-CANN-0.5B

Model Details of BitCPM-CANN-0.5B

GitHub Repo | Technical Report

👋 Join us on Discord and WeChat

Introduction

BitCPM-CANN is the first end-to-end 1.58-bit (ternary) large language model training system natively built on Huawei Ascend NPU. The system integrates quantization-aware training (QAT) into the Megatron-LM framework with MindSpeed acceleration, covering the full training stack from custom ternary operators to distributed parallel training on Ascend 910B.

We train a family of four models—BitCPM-CANN-0.5B/1B/3B/8B—and evaluate them against their full-precision MiniCPM4 counterparts across 11 benchmarks. The 1B/3B/8B models retain 95.7%–97.2% of full-precision performance, while enabling approximately 6× memory reduction at inference time. QAT introduces only 5% training throughput overhead (148 vs. 155 TFLOP/s per NPU).

Key Features
  • 🔬 1.58-Bit Ternary Quantization : Compresses model weights to ternary values {-1, 0, 1}, achieving ~90% bit-width reduction compared to BF16.
  • 🖥️ Native Ascend NPU Training : First publicly reported 1.58-bit training effort on domestic NPU platform at 8B scale, establishing reusable low-bit training infrastructure for the Ascend ecosystem.
  • ⚡ Minimal Training Overhead : Only 5% throughput degradation compared to full-precision training on Ascend 910B.
  • 📦 ~6× Inference Memory Reduction : Enables longer contexts, more serving replicas, and edge deployment on consumer devices.
Important Note

The models in this repository are in pseudo-quantized (fake quantization) format . This means the weights are stored in standard floating-point format with ternary values already applied during training. You can load and run inference with these models exactly the same way as full-precision models —no special quantization libraries or custom kernels are required.

BitCPM-CANN Model Family
Usage
Inference with Transformers

Since BitCPM-CANN models are in pseudo-quantized format, you can use them exactly like standard full-precision models:

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
torch.manual_seed(0)

path = 'openbmb/BitCPM-CANN-0.5B'
device = "cuda"
tokenizer = AutoTokenizer.from_pretrained(path)
model = AutoModelForCausalLM.from_pretrained(path, torch_dtype=torch.bfloat16, device_map=device, trust_remote_code=True)

# User can directly use the chat interface
responds, history = model.chat(tokenizer, "Write an article about Artificial Intelligence.", temperature=0.7, top_p=0.7)
print(responds)

# User can also use the generate interface
# messages = [
#     {"role": "user", "content": "Write an article about Artificial Intelligence."},
# ]
# prompt_text = tokenizer.apply_chat_template(
#     messages,
#     tokenize=False,
#     add_generation_prompt=True,
# )
# model_inputs = tokenizer([prompt_text], return_tensors="pt").to(device)

# model_outputs = model.generate(
#     **model_inputs,
#     max_new_tokens=1024,
#     top_p=0.7,
#     temperature=0.7
# )
# output_token_ids = [
#     model_outputs[i][len(model_inputs[i]):] for i in range(len(model_inputs['input_ids']))
# ]

# responses = tokenizer.batch_decode(output_token_ids, skip_special_tokens=True)[0]
# print(responses)
Evaluation Results
Main Results

BitCPM-CANN models are evaluated against their full-precision MiniCPM4 counterparts across 11 benchmarks spanning commonsense reasoning, domain knowledge, and mathematics & reasoning.

Task 8B FP 8B Ternary 3B FP 3B Ternary 1B FP 1B Ternary 0.5B FP 0.5B Ternary
ARC-c 87.46 86.10 80.34 78.98 64.41 67.12 51.86 50.51
ARC-e 95.06 93.47 92.77 88.36 79.89 79.01 71.78 65.08
BoolQ 84.89 83.39 79.85 77.89 68.38 65.50 62.29 43.55
PIQA 80.52 78.78 70.57 72.69 66.16 65.45 60.99 58.49
WinoGrande 63.30 61.17 58.41 52.96 51.62 53.28 51.07 51.54
CMMLU 80.62 78.92 78.11 76.53 74.57 67.42 65.22 60.49
C-Eval 81.36 77.50 75.85 75.89 73.25 65.96 66.11 60.74
MMLU 75.83 70.65 66.95 64.41 57.71 57.71 55.55 50.73
MMLU-Redux 77.14 69.85 65.82 60.07 54.80 54.16 48.00 43.79
BBH 76.72 70.70 68.29 68.30 64.40 60.40 49.87 47.44
GSM8K 91.51 85.75 81.64 79.45 63.15 61.56 52.08 39.42
Average (11 tasks) 81.31 77.84 74.42 72.32 65.30 63.42 57.71 51.98
Retention 95.7% 97.2% 97.1% 90.1%
Key Observations
  • 1B and above achieve ≥95.7% retention : The 3B model achieves the highest retention at 97.2%, demonstrating that ternary QAT at this scale introduces minimal capability loss.
  • 0.5B reveals scale-dependent sensitivity : The smallest model retains 90.1%, indicating that quantization perturbation is more damaging when model capacity is limited.
  • 1:1 alignment with MiniCPM4 : The matched evaluation enables direct substitution decisions—deployments can replace specific full-precision models with their ternary counterparts with clearly quantified trade-offs.
Training Efficiency
Configuration TFLOP/s per NPU Overhead
Full-precision 155 —
Ternary QAT 148 4.5%

System-level throughput on 2-node 16-card Ascend 910C:

  • 3B model: ~2700 tokens/s per card
  • 8B model: ~1340 tokens/s per card
Technical Approach

BitCPM-CANN uses a ternary quantizer that maps each weight group to {-1, 0, 1} scaled by a group-wise factor, trained with Straight-Through Estimator (STE) for gradient flow. The training follows a two-stage strategy: complete QAT followed by post-training distillation , which avoids amplifying training instability during early training.

The system is built as a four-layer vertical stack on Ascend NPU:

  1. QAT Training Logic : Ternary quantizer with STE, pluggable quantization layers in Megatron-LM.
  2. Megatron-LM Quantized Model Layer : Tensor-parallel linear layers with integrated weight/activation quantizers.
  3. Framework Entry Layer : torch_npu and mindspeed.megatron_adaptor injection for NPU execution.
  4. Ascend Software-Hardware Stack : MindSpeed, CANN, HCCL communication, Ascend 910B NPU hardware.

For full technical details, please refer to our Technical Report .

Statement
  • As a language model, BitCPM-CANN generates content by learning from a vast amount of text.
  • However, it does not possess the ability to comprehend or express personal opinions or value judgments.
  • Any content generated by BitCPM-CANN does not represent the viewpoints or positions of the model developers.
  • Therefore, when using content generated by BitCPM-CANN, users should take full responsibility for evaluating and verifying it on their own.
LICENSE
  • This repository and BitCPM-CANN models are released under the Apache-2.0 License.
Citation
  • Please cite our technical report if you find our work valuable.
@article{bitcpmcann,
  title={{BitCPM-CANN}: Native 1.58-Bit Large Language Model Training on Ascend NPU},
  author={BitCPM Team},
  year={2026}
}

Runs of openbmb BitCPM-CANN-0.5B on huggingface.co

2.5K
Total runs
0
24-hour runs
-28
3-day runs
85
7-day runs
-7.5K
30-day runs

More Information About BitCPM-CANN-0.5B huggingface.co Model

More BitCPM-CANN-0.5B license Visit here:

https://choosealicense.com/licenses/apache-2.0

BitCPM-CANN-0.5B huggingface.co

BitCPM-CANN-0.5B huggingface.co is an AI model on huggingface.co that provides BitCPM-CANN-0.5B's model effect (), which can be used instantly with this openbmb BitCPM-CANN-0.5B model. huggingface.co supports a free trial of the BitCPM-CANN-0.5B model, and also provides paid use of the BitCPM-CANN-0.5B. Support call BitCPM-CANN-0.5B model through api, including Node.js, Python, http.

BitCPM-CANN-0.5B huggingface.co Url

https://huggingface.co/openbmb/BitCPM-CANN-0.5B

openbmb BitCPM-CANN-0.5B online free

BitCPM-CANN-0.5B huggingface.co is an online trial and call api platform, which integrates BitCPM-CANN-0.5B's modeling effects, including api services, and provides a free online trial of BitCPM-CANN-0.5B, you can try BitCPM-CANN-0.5B online for free by clicking the link below.

openbmb BitCPM-CANN-0.5B online free url in huggingface.co:

https://huggingface.co/openbmb/BitCPM-CANN-0.5B

BitCPM-CANN-0.5B install

BitCPM-CANN-0.5B is an open source model from GitHub that offers a free installation service, and any user can find BitCPM-CANN-0.5B on GitHub to install. At the same time, huggingface.co provides the effect of BitCPM-CANN-0.5B install, users can directly use BitCPM-CANN-0.5B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

BitCPM-CANN-0.5B install url in huggingface.co:

https://huggingface.co/openbmb/BitCPM-CANN-0.5B

Url of BitCPM-CANN-0.5B

BitCPM-CANN-0.5B huggingface.co Url

Provider of BitCPM-CANN-0.5B huggingface.co

openbmb
ORGANIZATIONS

Other API from openbmb

huggingface.co

Total runs: 200.2K
Run Growth: 91.4K
Growth Rate: 45.63%
Updated:Octubre 05 2025
huggingface.co

Total runs: 134.8K
Run Growth: -3.0K
Growth Rate: -2.19%
Updated:Marzo 10 2026
huggingface.co

Total runs: 117.8K
Run Growth: 4.9K
Growth Rate: 4.17%
Updated:Septiembre 15 2025
huggingface.co

Total runs: 112.2K
Run Growth: 89.6K
Growth Rate: 79.87%
Updated:Mayo 10 2026
huggingface.co

Total runs: 106.9K
Run Growth: -45.2K
Growth Rate: -42.32%
Updated:Junio 13 2025
huggingface.co

Total runs: 25.5K
Run Growth: 411
Growth Rate: 1.61%
Updated:Octubre 24 2025
huggingface.co

Total runs: 20.0K
Run Growth: 1.8K
Growth Rate: 8.78%
Updated:Octubre 24 2025
huggingface.co

Total runs: 19.9K
Run Growth: 406
Growth Rate: 2.04%
Updated:Enero 15 2025
huggingface.co

Total runs: 11.5K
Run Growth: 10.4K
Growth Rate: 90.57%
Updated:Mayo 07 2026
huggingface.co

Total runs: 8.0K
Run Growth: -3.7K
Growth Rate: -45.48%
Updated:Junio 02 2023
huggingface.co

Total runs: 7.7K
Run Growth: -4.1K
Growth Rate: -52.99%
Updated:Febrero 27 2025
huggingface.co

Total runs: 6.5K
Run Growth: 523
Growth Rate: 8.06%
Updated:Enero 14 2026
huggingface.co

Total runs: 5.4K
Run Growth: 5.4K
Growth Rate: 99.14%
Updated:Junio 10 2025
huggingface.co

Total runs: 5.2K
Run Growth: 3.7K
Growth Rate: 70.38%
Updated:Octubre 20 2025
huggingface.co

Total runs: 4.8K
Run Growth: 2.7K
Growth Rate: 56.92%
Updated:Noviembre 04 2024
huggingface.co

Total runs: 3.0K
Run Growth: -6.9K
Growth Rate: -229.73%
Updated:Septiembre 09 2026
huggingface.co

Total runs: 1.4K
Run Growth: 79
Growth Rate: 5.80%
Updated:Enero 15 2025
huggingface.co

Total runs: 1.0K
Run Growth: 153
Growth Rate: 14.93%
Updated:Septiembre 19 2025
huggingface.co

Total runs: 891
Run Growth: 76
Growth Rate: 8.53%
Updated:Junio 27 2023
huggingface.co

Total runs: 847
Run Growth: 48
Growth Rate: 5.67%
Updated:Agosto 24 2023
huggingface.co

Total runs: 780
Run Growth: 171
Growth Rate: 21.92%
Updated:Mayo 14 2024
huggingface.co

Total runs: 436
Run Growth: 372
Growth Rate: 85.32%
Updated:Febrero 12 2026
huggingface.co

Total runs: 416
Run Growth: -75
Growth Rate: -18.03%
Updated:Octubre 14 2023
huggingface.co

Total runs: 353
Run Growth: 194
Growth Rate: 55.91%
Updated:Febrero 21 2024
huggingface.co

Total runs: 330
Run Growth: 179
Growth Rate: 55.59%
Updated:Febrero 21 2024
huggingface.co

Total runs: 286
Run Growth: 143
Growth Rate: 51.25%
Updated:Febrero 21 2024
huggingface.co

Total runs: 274
Run Growth: -60
Growth Rate: -21.90%
Updated:Junio 14 2025
huggingface.co

Total runs: 265
Run Growth: 68
Growth Rate: 26.25%
Updated:Febrero 21 2024
huggingface.co

Total runs: 238
Run Growth: 95
Growth Rate: 39.92%
Updated:Junio 11 2025
huggingface.co

Total runs: 227
Run Growth: 88
Growth Rate: 38.77%
Updated:Junio 11 2025