Unfortunately, you cannot change the ram size; only increase the amount. Below are the memory specs.
Table 1. Memory specifications
Slots Two SODIMM slots
Per memory module slot 2 GB, 4 GB, and 8 GB
4 GB, 6 GB, 8 GB, 12 GB, and 16 GB