Spaces:
Configuration error
Configuration error
Commit History
-
Clean up debugging output
e915802 -
Add debugging for voice file discovery
6ba985c -
Add voice and text prompt support for audible output
- Download tokenizer_spm_32k_3.model and voices.tgz at startup - Extract voice prompt .pt files from voices.tgz - Configure LMGen with voice prompts via load_voice_prompt_embeddings() - Set text prompts (persona) via sentencepiece tokenizer - Call step_system_prompts() before processing user audio - Use separate mimi_dec for decoding to avoid streaming conflicts - Update VOICES dict to map to actual voice files9bfdd09 -
Pad audio to frame_size multiple to avoid CUDA graph shape mismatch
d662095 -
Fix streaming: use context managers and single mimi instance
- Use mimi.streaming() context manager like freddyaboulton/Moshi - Use single mimi for both encode and decode - Decode frame-by-frame inside streaming context - Add mimi.set_num_codebooks(8)9eb31a1 -
Simplify: load models to GPU inside @spaces.GPU each call
The moshi library's torch.Generator objects are device-bound at construction. CPU caching doesn't work. This is slower but correct.7087847 -
Fix: cache mimi_decoder on CPU, cast to float for std()
- Load MIMI_DECODER_CPU at startup alongside other models - Move all models from CPU to GPU instead of loading from disk - Cast tensor to float before calling std() (codes are integers)7a63c99 -
Fix: device is positional arg in LMGen, not keyword
497a290 -
Optimize: monkeypatch CUDA to enable CPU model caching
- Monkeypatch torch.cuda.is_available() to return False during model loading - Load models to CPU at startup (moshi quantizer now uses CPU generators) - Move models to GPU at inference time instead of reloading from disk - This should be much faster since we avoid 17GB disk reads per call9d23595 -
Add device parameter to LMGen constructor
1670759 -
Enter streaming mode before reset_streaming calls
712caaf -
Add torchaudio for audio resampling
c10b43d -
Move all model loading inside @spaces.GPU function
The moshi library initializes CUDA even when loading to CPU device, so we cannot load models at startup. All model loading now happens inside the GPU-decorated function.eb2964e -
Fix moshi import path: loaders is in moshi.models
f40a2ab -
Implement PersonaPlex ZeroGPU demo
- Update README.md with zerogpu hardware and model documentation - Create requirements.txt with pinned dependencies including moshi from git - Rewrite app.py with ZeroGPU-compatible architecture: - Load models to CPU at startup (no CUDA at module level) - Move to GPU inside @spaces.GPU decorated function - Fresh LMGen instance per call for stateless inference - 120s GPU duration with queue concurrency limit of 1d5bdce6 -
initial commit
Verified signature63586ee