Upload verified Mel-Band RoFormer Core ML separator
Browse filesFiles changed (7)
- NOTICEAdded+30
- README.mdAdded+37
- analytics/coremldata.binAdded+3
- coremldata.binAdded+3
- metadata.jsonAdded+85
- model.milAdded
- weights/weight.binAdded+3
123456789101112131415161718192021222324252627282930Mel-Band RoFormer vocal separation
Checkpoint: KimberleyJensen, https://huggingface.co/KimberleyJSN/melbandroformerCore AI conversion: john-rocky / mlboydaisuke,https://huggingface.co/mlboydaisuke/MelBandRoformer-Vocal-CoreAIBoth pinned model cards declare the MIT license. Exact revisions and checkpointhash are in model.json. The local two-second export uses the same checkpoint.Reference architecture: lucidrains/BS-RoFormer. Training code: ZFTurbo.
MIT License
Copyright (c) 2023 Phil Wang
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.12345678910111213141516171819202122232425262728293031323334353637---license: mitlibrary_name: coremltags:- audio- source-separation- vocals- coreml---
# spoti.pw Sing voice model
The vocal separator [spoti.pw](https://spoti.pw)'s Sing runs on the iPhone to turn a song's vocals downwhile it plays. It is Mel-Band RoFormer with KimberleyJensen's vocal checkpoint, its spectral coreexported for Core ML with two-second windows: a float32 `spectrum` of shape `[1, 2050, 201, 2]` in, the`vocals_spectrum` of the same shape out, the STFT around it done by the app. Normalization, attention,softmax and matrix products are float32, the rest float16. The files are a compiled `separator.mlmodelc`as they are: the app downloads each one and keeps it only if its size and SHA-256 are the ones it pins.It needs iOS 27, and no audio leaves the phone.
| File | Bytes | SHA-256 || --- | ---: | --- || `weights/weight.bin` | 488986336 | `970a99fb4b15724bf76d2918ceb177df592c69265d3e2fabaab6e5ba72738e62` || `model.mil` | 669060 | `c612ac3798e1ce0f89603453ff72ca78bf4f1b07701925afa726ffce4c6e3ecb` || `metadata.json` | 2416 | `af098e7f6b0af360cb2d5df7c3059fe83e3e2f38c27e3f67c875417c8d9d4102` || `coremldata.bin` | 507 | `5ff2c235fcf4e153f1ea47ee9939132ebad276dc7509fc1069b45f7ef8c0207d` || `analytics/coremldata.bin` | 243 | `9a949d4e0b28ab778d750f30ec3bb120b22a8c01ef8dce25f11b0832d6d5fe39` |
## Provenance
* Checkpoint: [KimberleyJSN/melbandroformer](https://huggingface.co/KimberleyJSN/melbandroformer/tree/ac9b0614ab3cd7f77219e18ba494dfd93956c348), MIT.* Conversion: [john-rocky/coreai-model-zoo](https://github.com/john-rocky/coreai-model-zoo/tree/5029e6df8100650fe175d3e276fffb0177754ca1/conversion/melband_roformer).* Reference implementation: Mel-Band-Roformer-Vocal-Model at revision `25f44ffb55ee3c301281bba21b2d6d311cb69ae2`.* Exported by `harness/sing/export_coreml.py` in the spoti.pw repository.
Mel-Band RoFormer by Ju-Chiang Wang, Wei-Tsung Lu and Minz Won; the vocal checkpoint by KimberleyJensen;lucidrains' BS-RoFormer implementation; ZFTurbo's training code. The MIT notices are in `NOTICE`.123version https://git-lfs.github.com/spec/v1oid sha256:9a949d4e0b28ab778d750f30ec3bb120b22a8c01ef8dce25f11b0832d6d5fe39size 243123version https://git-lfs.github.com/spec/v1oid sha256:5ff2c235fcf4e153f1ea47ee9939132ebad276dc7509fc1069b45f7ef8c0207dsize 50712345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485[ { "metadataOutputVersion" : "3.0", "shortDescription" : "Pinned Mel-Band RoFormer, 2-second spectral Core ML feasibility", "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float32", "formattedType" : "MultiArray (Float32 1 × 2050 × 201 × 2)", "shortDescription" : "", "shape" : "[1, 2050, 201, 2]", "name" : "vocals_spectrum", "type" : "MultiArray" } ], "storagePrecision" : "Mixed (Float16, Float32)", "modelParameters" : [
], "author" : "KimberleyJensen; john-rocky spectral conversion", "specificationVersion" : 9, "license" : "MIT", "mlProgramOperationTypeHistogram" : { "Ios18.mul" : 340, "Ios18.matmul" : 1, "Ios18.realDiv" : 96, "Ios18.sigmoid" : 72, "Ios18.scaledDotProductAttention" : 12, "Split" : 98, "Tile" : 96, "Ios18.gather" : 1, "Ios18.add" : 49, "Ios18.reshape" : 112, "Ios18.maximum" : 96, "Ios18.linear" : 300, "Ios18.gelu" : 12, "Ios18.concat" : 25, "Ios18.tanh" : 120, "Ios18.transpose" : 51, "Stack" : 26, "Ios18.cast" : 244, "Ios18.sub" : 1, "Ios18.squeeze" : 144, "Ios18.sliceByIndex" : 4, "Ios16.reduceL2Norm" : 96 }, "computePrecision" : "Mixed (Float16, Float32, Int32, UInt16)", "stateSchema" : [
], "isUpdatable" : "0", "availability" : { "macOS" : "15.0", "tvOS" : "18.0", "visionOS" : "2.0", "watchOS" : "11.0", "iOS" : "18.0", "macCatalyst" : "18.0" }, "modelType" : { "name" : "MLModelType_mlProgram" }, "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float32", "formattedType" : "MultiArray (Float32 1 × 2050 × 201 × 2)", "shortDescription" : "", "shape" : "[1, 2050, 201, 2]", "name" : "spectrum", "type" : "MultiArray" } ], "userDefinedMetadata" : { "com.github.apple.coremltools.conversion_date" : "2026-10-07", "com.github.apple.coremltools.source" : "torch==2.9.0", "com.github.apple.coremltools.version" : "9.0", "com.github.apple.coremltools.source_dialect" : "TorchScript" }, "generatedClassName" : "separator", "method" : "predict" }]123version https://git-lfs.github.com/spec/v1oid sha256:970a99fb4b15724bf76d2918ceb177df592c69265d3e2fabaab6e5ba72738e62size 488986336NOTICEAdded+30
README.mdAdded+37
analytics/coremldata.binAdded+3
coremldata.binAdded+3
metadata.jsonAdded+85
model.milAdded
weights/weight.binAdded+3