File size: 1,539 Bytes
c7d0055 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
{
"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);"
}
} |