hojo_asr_fa
HOJO ASR inference library accelerated with Flash Attention
The bundled WeNet-derived code lives under hojo_asr_fa.wenet (not the top-level
wenet package) to avoid import conflicts with the official WeNet project.
Installation
Requires Python 3.10+, Linux, an NVIDIA Ampere/Ada/Hopper GPU, and FFmpeg shared libraries for audio decoding. Building Flash Attention requires a compatible CUDA toolkit (12.0+) and C++ compiler.
Install matching CUDA-enabled PyTorch and TorchAudio builds before Flash Attention:
python -m pip install "torch>=2.9.1,<2.10" "torchaudio>=2.9.1,<2.10"
python -m pip install "setuptools>=77.0.0" wheel packaging ninja
python -m pip install "flash-attn>=2.8.3.post1,<2.9" --no-build-isolation
python -m pip install hojo_asr_fa
For development, replace the last command with the following, starting from
the asr_llm_train repository root:
cd dist_env/hojo_asr_v1.5/hojo_asr_fa
python -m pip install -e .
Quick start
from hojo_asr_fa import HOJO_ASR
model = HOJO_ASR.load_model("/path/to/model_folder", device="cuda:0")
results = model.run_infer(["/path/to/audio.wav"], batch_size=1)
for item in results:
print(item["key"], item["text"])
The model folder should contain:
merged_full_model.safetensorsconfig.yaml- Subdirectories referenced in
config.yaml
Continuous batching
Continuous beam decoding and audio feature loading are available from
hojo_asr_fa.continuous_batching:
from hojo_asr_fa.continuous_batching import ContinuousBeamEngine, FeatureLoader, FeaturePool
The batch evaluation entry point is inference/infer.py; its supporting
implementations are included in the installed package.
Publish to PyPI
From the asr_llm_train repository root:
cd dist_env/hojo_asr_v1.5/hojo_asr_fa
python -m pip install build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*
Third-party notices
This package includes a trimmed subset of WeNet (Apache License 2.0). Some modules are also derived from ESPnet (Apache License 2.0).
See NOTICE for attribution and a summary of modifications to the
bundled code under hojo_asr_fa.wenet. This package is not the official
WeNet distribution and does not install a top-level wenet module.
License
Copyright 2026 HojoAI.
Licensed under the Apache License, Version 2.0. See LICENSE and NOTICE for details.
Metadata
Release files for hojo-asr-fa 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hojo_asr_fa-0.1.0.tar.gz | 75.1 kB | Without provenance | Details for hojo_asr_fa-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hojo_asr_fa-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for hojo_asr_fa-0.1.0-py3-none-any.whl |
Total release size: 168.0 kB
Release files / hojo_asr_fa-0.1.0.tar.gz
| Download URL | hojo_asr_fa-0.1.0.tar.gz |
|---|---|
| Size | 75.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9c9a9e79fc0b2f63a126f68f64b76e97b7128aa3ddaeaf54dd0e644d0ca3ebf
|
|
BLAKE2b-256 checksum How to use checksums |
8ef13415d6927e728e26bfa8bfdf09012276172b1b63590ee5d89b166d1d6aa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / hojo_asr_fa-0.1.0-py3-none-any.whl
| Download URL | hojo_asr_fa-0.1.0-py3-none-any.whl |
|---|---|
| Size | 92.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a283bdf516b162099abd45fbf257306a75c272cbd374321244c3ce414d1c6eca
|
|
BLAKE2b-256 checksum How to use checksums |
033723de95f51e5ae4872a51b776d795dc59dc6bdb88d59a790bdde148d877a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for hojo-asr-fa 0.1.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.