A team of authors has demonstrated a practical launch of GigaChat 3.1-10B (MoE, 10 billion parameters, 1.3B active) on the Chinese Ascend 910B accelerator. Nvidia is unavailable in Russia: order queues worth $35 billion, shipments to China suspended. The alternative is a Russian MoE model from Sber, W8A8 quantization (8-bit weights, 8-bit activations), and the free OpenI academic cluster.
Why Ascend 910B Is a Realistic Alternative
Ascend 910B (Huawei, gray-market supply) — 256 TFLOPS FP16, 512 TFLOPS BF16, 64 GB HBM2E, 1.2 TB/s bandwidth. In 2026 it is available in Russia through gray channels and academic clusters. The price is 30-40% of an H100. The software stack: CANN (Compute Architecture for Neural Networks), compatible with PyTorch via torch_npu, TensorFlow via a plugin, and ONNX Runtime via an EP.
The CANN Stack and Code Adaptation via torch_npu
CANN is the CUDA counterpart: a driver, the atc compiler, the ACL operator library, and a profiler. The torch_npu plugin registers the NPU as a PyTorch device (PrivateUse1), after which ordinary training and inference code barely changes:
# CANN 8.x + torch_npu (Python 3.10)
import torch
import torch_npu
from torch_npu.contrib import transfer_to_npu # device="cuda" becomes "npu"
model = AutoModelForCausalLM.from_pretrained(cfg.model_path).to("npu").eval()
inputs = tokenizer(text, return_tensors="pt").to("npu")
with torch.inference_mode():
out = model.generate(**inputs, max_new_tokens=256)Before quantizing, run the profiler and make sure every operator landed on the NPU rather than falling back to the CPU — a single such operator eats the entire pipeline’s gains.
W8A8 Quantization: Migration Practice
The original GigaChat 3.1 is a 10B-parameter MoE (1.3B active experts). BF16 requires ~20 GB of VRAM. W8A8 (int8 weights, int8 activations) cuts that to ~10 GB plus the KV cache. Benchmark quality (MMLU, GSM8K, HumanEval) drops 1-2% from BF16. Acceptable for inference, not for training.
The quantization pipeline (ASCEND Quant Tool):
- Export the model to ONNX (torch.onnx.export, dynamic_axes for batch/seq)
- Calibrate on 512 samples from the training set (per-channel min/max for weights, global min/max for activations)
- Quantize weights to int8 (symmetric, per-channel) and activations to int8 (asymmetric, per-tensor)
- Export to an OM model (Ascend Offline Model) via atc (Ascend Tensor Compiler)
- Validate on 1000 samples: accuracy drop < 2%, latency < 10% of BF16
Running Inference on Ascend 910B
MSA (Model Service for Ascend) is Huawei’s inference service, a counterpart of Triton/TGI. Configuration for GigaChat 3.1-10B W8A8:
model: name: gigachat-3.1-10b-w8a8 path: /models/gigachat-3.1-10b-w8a8.om device: npu batch_size: 4 max_seq_len: 4096 dtype: int8 inference: engine: msa workers: 4 queue_size: 100
Load test results (1000 RPS, 50% prefill / 50% decode):
| Metric | Ascend 910B (W8A8) | H100 (BF16, for comparison) |
|---|---|---|
| Throughput (tokens/s) | ~12,000 | ~45,000 |
| P99 latency (ms) | 180 | 45 |
| Cost per 1M tokens | $0.15 (electricity + depreciation) | $2.50 (API) |
| Availability | 99.9% (academic cluster) | Depends on Nvidia quotas |
Inference Tuning: Three Levers
- Batching: dynamic batch assembly delivers the main gains. Moving from batch=4 to batch=16 raises throughput roughly 3x, while P99 latency grows from 180 to 260 ms — tolerable for chat, not for real time. An MoE model adds its own nuance: expert balancing inside the batch, so the batch step is best kept a multiple of the number of expert groups.
- KV cache in HBM: 64 GB of HBM2E at 10B W8A8 holds roughly 1.5 GB of KV cache per 4k-token request — that is 30-35 parallel contexts per card. Statically reserving memory for the cache removes fragmentation and latency spikes on long dialogues.
- CPU affinity: pinning MSA workers to the NUMA nodes next to the card (numactl/taskset) saves 15-20% of throughput — without it the request queue bounces between sockets. Separately, move tokenization into its own process: it runs on the CPU and becomes the bottleneck at batch sizes of 16 and up.
vLLM on GPUs vs MSA on Ascend: Comparing the Stacks
| Parameter | vLLM on H100 | MSA on Ascend 910B |
|---|---|---|
| Operator ecosystem | Thousands of kernels, Triton, custom CUDA | The shipped CANN set, custom via Ascend C |
| Continuous batching | Mature, on the fly | Present, configured via batch_size |
| KV prefix cache | Paged + radix cache | Static cache in HBM |
| Throughput | ~45,000 tok/s | ~12,000 tok/s |
| P99 latency | 45 ms | 180 ms |
| Cost per 1M tokens | $2.50 (API) | $0.15 (own hardware) |
| Personnel | Plenty of Python/ML engineers | Requires CANN and C++ experience |
| Availability risk | Sanction quotas and queues | Gray channels, the OpenI cluster |
Typical Migration Problems and Their Fixes
- OM compilation errors: atc fails on an unsupported operator or dynamic tensor shapes. Fix: update CANN (every release adds operators), fix the input shapes, split the graph into subgraphs, and move exotic branches to the CPU.
- Unsupported operators: custom activations and rare RoPE variants do not compile. Fix: replace them with a composition of supported operators, or write your own via Ascend C and plug it into CANN.
- Quality drop after calibration: the accuracy drop exceeds 2%. Usually the calibration sample does not reflect real traffic. Fix: raise the volume from 512 to 2k samples taken from production logs, keep sensitive layers (layernorm, the output head) in BF16 under mixed precision, and regenerate the OM model.
- OOM on long contexts: not enough HBM for the KV cache at batch=16. Fix: cut max_seq_len, enable KV cache quantization, or divide memory between batches dynamically.
What This Means for Hardware Choices in 2026-2027
For the state and regulated segment, the Ascend 910B + CANN + Russian models (GigaChat, YaLM, ruGPT) combination is a workable default: $0.15 per 1M tokens and zero dependence on sanction quotas outweigh the slower pace. For product inference with strict latency requirements, a hybrid suggests itself: the interactive hot path on rented GPUs, with bulk batch processing and nightly jobs on Ascend. The bet for 2026-2027: CANN closes the MoE-inference gap faster than the training gap, the throughput deficit stays within 3-4x at a 5-8x lower cost of ownership; the bottleneck is not hardware but people fluent in the CANN stack. The relocation procedure from CUDA is covered in PyTorch → Ascend: migration in 3 days. An overview of Chinese GPUs for AI is in Chinese GPUs for AI: 2026 readiness.
Useful resources: Ascend (Huawei) documentation, GigaChat for developers (Sber).
Checklist for migrating GigaChat 3.1-10B to Ascend 910B:
1) Export to ONNX with dynamic_axes (batch, seq_len).
2) Calibrate on 512 samples (per-channel min/max for weights, global for activations).
3) W8A8 quantization: int8 weights per-channel, int8 activations per-tensor.
4) Compile via atc → the OM model.
5) Validate: accuracy drop < 2%, latency < 10% of BF16.
6) Deploy via MSA (Model Service for Ascend), batch=4, seq_len=4096.
Expected metrics: 12K tok/s throughput, P99 180 ms, $0.15/1M tokens. A 90% saving against H100 API costs.

