Metadata-Version: 2.4
Version: 0.2.1
Description-Content-Type: text/markdown
Dynamic: license-file
Name: gennova
Summary: GenNova native inference runtime - Ascend 910C / TP2 functional preview
Requires-Python: >=3.12,<3.13
License-Expression: LicenseRef-Proprietary
License-File: LICENSE
License-File: THIRD_PARTY_NOTICES.md
Classifier: Development Status :: 3 - Alpha
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Dist: PyYAML==6.0.1
Requires-Dist: aiohttp==3.14.5
Requires-Dist: transformers==4.57.1
Requires-Dist: tokenizers==0.22.2
Requires-Dist: safetensors==0.8.0
Requires-Dist: huggingface-hub==0.36.2
Requires-Dist: numpy==1.26.4
Requires-Dist: regex==2026.9.29
Requires-Dist: einops==0.8.2
Requires-Dist: tqdm==4.70.1
Requires-External: libtorch.so
Requires-External: libtorch_cpu.so
Requires-External: libc10.so
Requires-External: libtorch_npu.so
Requires-External: libascendcl.so
Requires-External: libc_sec.so
Requires-External: libruntime.so
Requires-External: liberror_manager.so
Requires-External: libprofapi.so
Requires-External: libunified_dlog.so
Requires-External: libmmpa.so
Requires-External: libascend_dump.so
Requires-External: libnnopbase.so
Requires-External: libops_base.so
Requires-External: libascendalog.so
Requires-External: libgraph.so
Requires-External: libgraph_base.so
Requires-External: libexe_graph.so
Requires-External: libplatform.so
Requires-External: libregister.so
Project-URL: Homepage, https://gennova.sage.org.ai/

# GenNova — Ascend 910C functional preview

Install **`gennova`** and run **`gennova`**. This is the GenNova native engine.

This first binary release supports the following verified configurations only:

| Item | Supported configuration |
| --- | --- |
| Hardware | Ascend 910C, two physical dies on one dual-die board, TP2 |
| System | Linux ARM64, glibc 2.35 or newer; tested on Ubuntu 22.04 |
| Python | CPython 3.12; tested with 3.12.13 |
| Model | Qwen/Qwen3-4B and Qwen/Qwen3-32B, BF16 native safetensors |
| Vendor runtime | CANN 9.1, ATB 9.1; tested driver 26.1.1 |
| Torch | 2.10.0 with Torch-NPU 2.10.0.post4 |
| Triton provider | triton-ascend 3.2.2 (Triton API 3.2.0) |
| Serving | Context 1024, one decode request, mixed tokens 128, 64 token pages, 8 service slots, output ceiling 256 |

Other models, cross-board TP topologies, 910B, NVIDIA CUDA, AMD ROCm, Hygon, Windows, other Python ABIs,
and optional external State/D/Autotune services are outside this release's
qualification. Future releases will add configurations after verification.
Wheel tags select Python and system ABI; pip does not detect your accelerator.

## Install into a prepared Ascend environment

Use a separate Python 3.12 environment with the matched Torch, Torch-NPU,
Triton-Ascend, CANN, ATB and device access already prepared. The wheel does not
install or replace Torch, vendor libraries, drivers or model weights. Its native
libraries dynamically link the installed Torch and CANN libraries.

```sh
source /usr/local/Ascend/ascend-toolkit/set_env.sh
source /usr/local/Ascend/nnal/atb/set_env.sh
python -m pip install gennova
gennova --help
```

The verified Python environment also contains transformers 4.57.1,
tokenizers 0.22.2, safetensors 0.8.0, huggingface-hub 0.36.2,
numpy 1.26.4, regex 2026.9.29, einops 0.8.2 and tqdm 4.70.1.
Use an environment with these matched dependencies; the package's base
dependencies do not provision a complete accelerator environment.

Prepare a complete checkpoint and tokenizer from one of these pinned revisions:

| Model | Revision |
| --- | --- |
| Qwen/Qwen3-4B | `1cfa9a7208912126459214e8b04321603b3df60c` |
| Qwen/Qwen3-32B | `9216db5781bf21249d130ec9da846c4624c16137` |

Weights are not included. The 32B checkpoint contains 17 weight shards, approximately 65.5 GB.

Hold the host's device leases for an authorized idle pair for the service's
entire lifetime. Set `ASCEND_RT_VISIBLE_DEVICES` to that physical pair.

```sh
export ASCEND_RT_VISIBLE_DEVICES=0,1
export TASK_QUEUE_ENABLE=0
export OMP_NUM_THREADS=2
gennova serve transformer \
  --checkpoint /path/to/Qwen3-32B \
  --host 127.0.0.1 --port 18181 --model-id gennova-local \
  --api-key-file /path/to/private-api-key.txt \
  --decode-requests 1 --mixed-tokens 128 --max-position 1024 \
  --token-pages 64 --service-slots 8 --max-output-tokens 256 \
  --max-pending 8 --request-timeout 180
```

Keep the API key file private (mode 0600). The OpenAI-compatible chat endpoint
is `/v1/chat/completions`. Requests require `stream=true`, `temperature=0`,
and `n=1`; nonstreaming and unsupported sampling requests are rejected.
Chat template options may include `{"enable_thinking": false}`.
Use SIGTERM for orderly shutdown and wait for the process to exit before
releasing device leases. GenNova Box is a separately installed client; use a
Box version that explicitly accepts this binary runtime.

## Binary distribution and validation boundary

GenNova host code is distributed as native extensions; proprietary Python,
Triton bodies, generated C/C++, bytecode, model weights and build credentials
are absent. Required Ascend operators and exported device binaries are included.
An absent or mismatched device specialization fails explicitly, with no
embedded-source or CPU inference fallback. Runtime/toolchain fingerprints are
checked; the same version label on a different vendor build may be incompatible.

Verified behavior covers startup, authenticated model listing, invalid
credentials, request rejection, English arithmetic and Chinese streaming text,
and orderly shutdown on the configurations above. The 32B check additionally
covers eight sequential requests, four concurrent requests, a 520-token input,
and exact source/binary output-token comparison. An independent Transformers CPU
BF16 reference checks the next tokens for four short 32B prompts. These bounded
checks do not establish general model accuracy. The installed binary engine
also generated text while device algorithm compilation was disabled.
This is functional validation; full task accuracy, throughput, capacity pressure,
endurance and production acceptance have not been certified.

GenNova-owned material is distributed under the included proprietary license.
Third-party components remain under their own licenses; see the included notices.
Compilation does not guarantee that machine code cannot be reverse engineered.
Only binary wheels are published; no GenNova source distribution is uploaded.
