Download src/psi/runtime/__init__.py from Tinghong-Ye22/code-HFD: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/Tinghong-Ye22/code-HFD/resolve/main/src/psi/runtime/__init__.py
- Command line
-
hf download hf://Tinghong-Ye22/code-HFD/src/psi/runtime/__init__.py
-
curl -L -o __init__.py https://huggingface.co/Tinghong-Ye22/code-HFD/resolve/main/src/psi/runtime/__init__.py
1.11 kB
| """Optional streaming speech/runtime components for formal HFD. | |
| The action trainer and renderer do not import this package by default. The | |
| runtime is deliberately dependency-light at import time so the existing | |
| audio-to-motion DLC entry point remains unchanged when speech is disabled. | |
| """ | |
| from .speech import ( | |
| BoundedSpeechQueue, | |
| PCMClockPackets, | |
| SpeechChunk, | |
| SpeechGenerationContext, | |
| SpeechResultGate, | |
| SpeechRuntimeConfig, | |
| ) | |
| from .qa_private_kv import QAPrivateKVConfig, validate_qa_checkpoint | |
| # The native implementation is optional because formal action-only jobs do | |
| # not need FlashAttention/Talker imports at startup. Keep these names lazy so | |
| # a CPU-only config check remains available on a login node. | |
| def load_native_streaming_speech(): | |
| from . import native_streaming_speech | |
| return native_streaming_speech | |
| __all__ = [ | |
| "BoundedSpeechQueue", | |
| "PCMClockPackets", | |
| "SpeechChunk", | |
| "SpeechGenerationContext", | |
| "SpeechResultGate", | |
| "SpeechRuntimeConfig", | |
| "QAPrivateKVConfig", | |
| "validate_qa_checkpoint", | |
| "load_native_streaming_speech", | |
| ] | |