xtts-mobile / pytorch21 /manifest.json
bnewton-genmedlabs's picture
Add PyTorch 2.1.0 compatible models with mobile optimizations
c7d0055 verified
{
"pytorch_version": "2.8.0",
"export_type": "torchscript",
"mobile_compatible": true,
"note": "Exported with PyTorch 2.8.0 but compatible with LibTorch 2.1.0 on mobile",
"variants": {
"fp32_cpu": {
"file": "xtts_mobile_fp32_cpu.ts",
"size_mb": 11.79,
"dtype": "float32",
"optimization": "none",
"description": "Full precision CPU model"
},
"fp16_mobile": {
"file": "xtts_mobile_fp16_mobile.ts",
"size_mb": 5.89,
"dtype": "float16",
"optimization": "mobile",
"description": "Half precision with mobile optimizations",
"recommended": true
},
"fp16_aggressive": {
"file": "xtts_mobile_fp16_aggressive.ts",
"size_mb": 5.89,
"dtype": "float16",
"optimization": "mobile_aggressive",
"description": "Half precision with aggressive optimizations"
}
},
"compatibility": {
"android": {
"min_version": "LibTorch 2.1.0",
"gradle": "implementation 'org.pytorch:pytorch_android_lite:2.1.0'"
},
"ios": {
"min_version": "LibTorch 2.1.0",
"pod": "pod 'LibTorch-Lite', '~> 2.1.0'"
},
"react_native": {
"min_version": "pytorch-mobile 2.1.0",
"package": "pytorch-mobile"
}
},
"usage": {
"android": "Module module = Module.load(assetFilePath(context, 'xtts_mobile_fp16_mobile.ts'));",
"ios": "TorchModule *module = [[TorchModule alloc] initWithFileAtPath:modelPath];",
"react_native": "const model = await torch.jit._loadForMobile(modelPath);"
}
}