YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
Container Template for SoundsRight Subnet Miners
Miners in Bittensor's SoundsRight Subnet must containerize their models before uploading to HuggingFace. This repo serves as a template.
The branches DENOISING_16000HZ
and DEREVERBERATION_16000HZ
contain this template fitted with SGMSE+ and are also helpful resources for how to incorporate your model.
The main
branch contains a template for a container that will spin up an API to communicate with the validator. The following entrypoints cannot be altered:
/status/
: Communicates API status/prepare/
: Makes necessary preparations (downloading checkpoints, etc.) and initializes model/upload-audio/
: Upload audio files, save to noisy audio directory/enhance/
: Initialize model, enhance audio files, save to enhanced audio directory/download-enhanced/
: Download enhanced audio files
To add your own model to this template, there are a few things that a miner must do:
- Add the model files under the
model
directory. - Modify the
modelapi.prepare
method inapp/app.py
with necessary preparations to initialize your model. - Modify the
modelapi.enhance
method inapp/app.py
with the logic your model uses to enhance audio. - Update
dependencies
inpyproject.toml
with the dependencies used by your model. - If you have directories other than
app
in your repository, be sure to modify theDockerfile
accordingly (reference line 12 in theDockerfile
for how to do this). - Cite your sources (if applicable).
For your model to be processed by validators, there are a few formatting requirements. Note that the template already has been formatted to fit these guidelines.
- API endpoints must as outlined above.
- Port must be 6500.
- Container must be configured to run as non-root user.