huggingface-hub-rvc
huggingface-hub-rvc provides a small Hugging Face style API for RVC voice conversion artifacts:
RVCPipeline.from_pretrained(...)RVCPipeline.save_pretrained(...)RVCPipeline.push_to_hub(...)RVCPipeline.export_webui(...)RVCPipeline.train(...)RVCPipeline.convert_file(...)RVCPipeline.convert_directory(...)
Training currently produces RVC v2 F0 48 kHz models and stores new weights as safetensors. Inference also loads classic
RVC WebUI v1/v2, F0/non-F0, multi-speaker .pth checkpoints and their optional retrieval indexes with restricted
weights_only=True deserialization.
Artifact Layout
config.json
voice_transform/
manifest.json
model.safetensors
features.safetensors
index.index
model.safetensors contains the RVC generator weights plus string metadata for the RVC config and training summary.
features.safetensors contains retrieval vectors as tensor payload. index.index is the FAISS index and remains a separate binary file.
config.json includes model_name, which is also mirrored into voice_transform/manifest.json so the artifact remains identifiable even if it is downloaded into a generic cache or renamed folder.
README.md is generated as a Hub model card when save_pretrained writes the artifact.
Legacy model.pth, WebUI .pth, and features.npy artifacts can still be loaded. New writes prefer safetensors.
Load
from huggingface_hub_rvc import RVCPipeline
pipe = RVCPipeline.from_pretrained("org/rvc-model")
pipe.convert_directory(
"input_audio",
"converted_audio",
pitch_shift=0,
f0_method="rmvpe", # rmvpe, fcpe, or pm
protect=0.33,
rms_mix_rate=1.0,
retrieval_strength=0.75,
speaker_id=0,
)
Use local_files_only=True to avoid network lookup:
pipe = RVCPipeline.from_pretrained("./my-rvc-model", local_files_only=True)
The converter uses reflected context padding, low-energy chunk boundaries, and standard RVC consonant protection and
volume-envelope mixing. audio_mode="separate_convert_remix" supports separation_method="pymss" (default) or
separation_method="demucs". CUDA Graph capture is opt-in with use_cuda_graph=True because its benefit depends on
input-shape reuse.
Train
from huggingface_hub_rvc import RVCPipeline
pipe = RVCPipeline.train(
identity_dir="identity_audio",
output_dir="rvc_artifact",
model_name="Example Voice",
training_steps=1000,
identity_audio_mode="separate",
)
pipe.convert_directory("source_audio", "converted_audio")
Set separation_method="demucs" in RVCPipeline.train(...) to retain Demucs preprocessing instead of the default
PyMSS vocal separator. Already-isolated vocals should use identity_audio_mode="vocal_only".
Save And Push
pipe.save_pretrained("rvc_artifact", model_name="Example Voice")
pipe.push_to_hub("org/rvc-model", folder_path="rvc_artifact")
or:
pipe.save_pretrained("rvc_artifact", push_to_hub=True, repo_id="org/rvc-model")
Export a classic WebUI bundle when needed:
pipe.export_webui("rvc_artifact/webui", model_name="Example Voice", training_steps=1000)
Metadata
Release files for huggingface-hub-rvc 0.1.4
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 | |
|---|---|---|---|---|
| huggingface_hub_rvc-0.1.4.tar.gz | 53.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| huggingface_hub_rvc-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 108.0 kB
Release files / huggingface_hub_rvc-0.1.4.tar.gz
| Download URL | huggingface_hub_rvc-0.1.4.tar.gz |
|---|---|
| Size | 53.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0ff627a2b6d9e36ade8531e24d94210bdca6bd59258a62e64f26c6db2f21d92
|
|
BLAKE2b-256 checksum How to use checksums |
ec634c9c5c5af1de3b192d79e584ce749e02eaf881fa176e5db624dc5fb5edb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / huggingface_hub_rvc-0.1.4-py3-none-any.whl
| Download URL | huggingface_hub_rvc-0.1.4-py3-none-any.whl |
|---|---|
| Size | 54.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c96af97083791801f65c7b1800b4c18c0906a7c2f3c3fc99b0a17a3713183677
|
|
BLAKE2b-256 checksum How to use checksums |
3392d6cdb84d752a3ed4752f691a448c21d5a2eab15dffc85e7bad458e5154ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for huggingface-hub-rvc 0.1.4
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.